File size: 8,525 Bytes
1340dfb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
{
  "baseline": "lexical_keywords_v1",
  "errors": [
    {
      "cwe_id": "CWE-117",
      "expected": "insecure",
      "expected_locations": [
        {
          "end_line": 2,
          "path": "snippet.py",
          "start_line": 2
        }
      ],
      "hard_negative": false,
      "outcome": "false_negative",
      "pair_id": "moderation-note-log-framing",
      "predicted": "secure",
      "sample_id": "psp-0ac5df35bdec",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-614",
      "expected": "insecure",
      "expected_locations": [
        {
          "end_line": 2,
          "path": "snippet.py",
          "start_line": 2
        }
      ],
      "hard_negative": false,
      "outcome": "false_negative",
      "pair_id": "handoff-cookie-transport-policy",
      "predicted": "secure",
      "sample_id": "psp-32928d79534c",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-614",
      "expected": "insecure",
      "expected_locations": [
        {
          "end_line": 9,
          "path": "snippet.py",
          "start_line": 9
        }
      ],
      "hard_negative": false,
      "outcome": "false_negative",
      "pair_id": "dashboard-session-cookie-transport",
      "predicted": "secure",
      "sample_id": "psp-abb10311fdd7",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-117",
      "expected": "insecure",
      "expected_locations": [
        {
          "end_line": 2,
          "path": "snippet.py",
          "start_line": 2
        }
      ],
      "hard_negative": false,
      "outcome": "false_negative",
      "pair_id": "sync-result-log-event-catalog",
      "predicted": "secure",
      "sample_id": "psp-c386cd238de6",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-78",
      "expected": "secure",
      "expected_locations": [],
      "hard_negative": true,
      "outcome": "false_positive",
      "pair_id": null,
      "predicted": "insecure",
      "sample_id": "psp-e9a92f174f5b",
      "verification_status": "behavior_verified"
    }
  ],
  "ground_truth_sha256": "5f6e22e0c15679ee79fa97ab795299c0b976aef82c7495beffc9cd545380ca6f",
  "hard_negatives": {
    "false_positive_rate": 0.3333333333333333,
    "false_positives": 1,
    "support": 3
  },
  "ignored_findings": [],
  "input_mode": "predictions",
  "location_matching": false,
  "overall": {
    "balanced_accuracy": 0.42857142857142855,
    "confusion": {
      "fn": 4,
      "fp": 1,
      "tn": 6,
      "tp": 0
    },
    "f1": 0.0,
    "false_negative_rate": 1.0,
    "false_positive_rate": 0.14285714285714285,
    "negative_support": 7,
    "positive_support": 4,
    "precision": 0.0,
    "recall": 0.0
  },
  "paired_consistency": {
    "both_correct_rate": 0.0,
    "details": [
      {
        "outcome": "both_missed",
        "pair_id": "dashboard-session-cookie-transport"
      },
      {
        "outcome": "both_missed",
        "pair_id": "handoff-cookie-transport-policy"
      },
      {
        "outcome": "both_missed",
        "pair_id": "moderation-note-log-framing"
      },
      {
        "outcome": "both_missed",
        "pair_id": "sync-result-log-event-catalog"
      }
    ],
    "outcomes": {
      "both_correct": 0,
      "both_flagged": 0,
      "both_missed": 4,
      "inverted": 0
    },
    "support": 4
  },
  "per_cwe": {
    "CWE-117": {
      "balanced_accuracy": 0.5,
      "confusion": {
        "fn": 2,
        "fp": 0,
        "tn": 2,
        "tp": 0
      },
      "f1": 0.0,
      "false_negative_rate": 1.0,
      "false_positive_rate": 0.0,
      "negative_support": 2,
      "positive_support": 2,
      "precision": null,
      "recall": 0.0
    },
    "CWE-614": {
      "balanced_accuracy": 0.5,
      "confusion": {
        "fn": 2,
        "fp": 0,
        "tn": 3,
        "tp": 0
      },
      "f1": 0.0,
      "false_negative_rate": 1.0,
      "false_positive_rate": 0.0,
      "negative_support": 3,
      "positive_support": 2,
      "precision": null,
      "recall": 0.0
    },
    "CWE-78": {
      "balanced_accuracy": null,
      "confusion": {
        "fn": 0,
        "fp": 1,
        "tn": 1,
        "tp": 0
      },
      "f1": 0.0,
      "false_negative_rate": null,
      "false_positive_rate": 0.5,
      "negative_support": 2,
      "positive_support": 0,
      "precision": 0.0,
      "recall": null
    }
  },
  "sample_count": 11,
  "samples": [
    {
      "cwe_id": "CWE-117",
      "expected": "insecure",
      "expected_locations": [
        {
          "end_line": 2,
          "path": "snippet.py",
          "start_line": 2
        }
      ],
      "hard_negative": false,
      "outcome": "false_negative",
      "pair_id": "moderation-note-log-framing",
      "predicted": "secure",
      "sample_id": "psp-0ac5df35bdec",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-117",
      "expected": "secure",
      "expected_locations": [],
      "hard_negative": false,
      "outcome": "correct",
      "pair_id": "moderation-note-log-framing",
      "predicted": "secure",
      "sample_id": "psp-268a2b1a5877",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-614",
      "expected": "secure",
      "expected_locations": [],
      "hard_negative": false,
      "outcome": "correct",
      "pair_id": "handoff-cookie-transport-policy",
      "predicted": "secure",
      "sample_id": "psp-2baf18b59c8b",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-614",
      "expected": "insecure",
      "expected_locations": [
        {
          "end_line": 2,
          "path": "snippet.py",
          "start_line": 2
        }
      ],
      "hard_negative": false,
      "outcome": "false_negative",
      "pair_id": "handoff-cookie-transport-policy",
      "predicted": "secure",
      "sample_id": "psp-32928d79534c",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-614",
      "expected": "secure",
      "expected_locations": [],
      "hard_negative": true,
      "outcome": "correct",
      "pair_id": null,
      "predicted": "secure",
      "sample_id": "psp-434ba5e39499",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-614",
      "expected": "secure",
      "expected_locations": [],
      "hard_negative": false,
      "outcome": "correct",
      "pair_id": "dashboard-session-cookie-transport",
      "predicted": "secure",
      "sample_id": "psp-4d12701661fa",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-78",
      "expected": "secure",
      "expected_locations": [],
      "hard_negative": true,
      "outcome": "correct",
      "pair_id": null,
      "predicted": "secure",
      "sample_id": "psp-a59d1748d047",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-614",
      "expected": "insecure",
      "expected_locations": [
        {
          "end_line": 9,
          "path": "snippet.py",
          "start_line": 9
        }
      ],
      "hard_negative": false,
      "outcome": "false_negative",
      "pair_id": "dashboard-session-cookie-transport",
      "predicted": "secure",
      "sample_id": "psp-abb10311fdd7",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-117",
      "expected": "secure",
      "expected_locations": [],
      "hard_negative": false,
      "outcome": "correct",
      "pair_id": "sync-result-log-event-catalog",
      "predicted": "secure",
      "sample_id": "psp-bb30712a268d",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-117",
      "expected": "insecure",
      "expected_locations": [
        {
          "end_line": 2,
          "path": "snippet.py",
          "start_line": 2
        }
      ],
      "hard_negative": false,
      "outcome": "false_negative",
      "pair_id": "sync-result-log-event-catalog",
      "predicted": "secure",
      "sample_id": "psp-c386cd238de6",
      "verification_status": "behavior_verified"
    },
    {
      "cwe_id": "CWE-78",
      "expected": "secure",
      "expected_locations": [],
      "hard_negative": true,
      "outcome": "false_positive",
      "pair_id": null,
      "predicted": "insecure",
      "sample_id": "psp-e9a92f174f5b",
      "verification_status": "behavior_verified"
    }
  ],
  "scope": "benchmark",
  "split": "test"
}