tier_label, model_label, condition_label, and model_order duplicated the numeric codes; SPSS value labels already carry the names. model is now a numeric code (0=Bandit, 1=Semgrep, 2=DeepSeek V4.1 Flash, 3=Argon) with value labels in the .sav files and .sps syntax. Long file drops from 38 to 34 variables, summary from 30 to 26.
4.1 KiB
4.1 KiB
SPSS export: all detectors
This folder contains one combined SPSS-ready dataset covering:
- Traditional SAST: Bandit, Semgrep
- Open-weight LLM: DeepSeek V4.1 Flash, evaluated through a hosted endpoint
- Frontier LLM: Gemini 4 Argon
Files
| File | Shape | Use |
|---|---|---|
sast_all_long.csv |
2,400 rows: 4 detectors × 3 conditions × 200 samples | Mixed models, descriptives, crosstabs |
sast_all_wide.csv |
200 rows, paired columns for every detector | McNemar, paired tests, cross-model comparisons |
sast_all_summary.csv |
12 rows: 4 detectors × 3 conditions | Aggregate metrics |
sast_all_category.csv |
168 rows: 4 detectors × 3 conditions × 14 categories | Per-category accuracy/precision/recall |
sast_all_paired.csv |
12 rows: within-detector condition pairs | McNemar tests |
sast_all_between.csv |
18 rows: between-detector comparisons by condition | Pairwise McNemar tests |
sast_all_long.sav |
2,400 rows | Native SPSS long file |
sast_all_wide.sav |
200 rows | Native SPSS wide/paired file |
sast_all_summary.sav |
12 rows | Native SPSS aggregate summary |
sast_all_category.sav |
168 rows | Native SPSS per-category summary |
codebook.csv / codebook.md |
— | Variable documentation |
sast_all_import.sps |
— | Import/describe long CSV |
sast_all_wide.sps |
— | Import wide CSV and run paired tests |
sast_all_summary.sps |
— | Import aggregate CSV |
sast_all_category.sps |
— | Import category CSV |
Importing into SPSS
The easiest route is to open the .sav files directly:
sast_all_long.savfor most analysessast_all_wide.savfor paired McNemar testssast_all_summary.savfor the aggregate tablesast_all_category.savfor per-category metrics
Alternatively, set the SPSS working directory to this folder (validation/spss_all)
and run:
sast_all_import.spsfor the long CSV.sast_all_wide.spsfor paired McNemar tests.sast_all_summary.spsandsast_all_category.spsfor aggregate tables.
The .sav files are generated from the CSVs with validation/export_sav.py.
Model configurations
| Model | Tier | Reasoning | Deployment |
|---|---|---|---|
| DeepSeek V4.1 Flash | Open-weight | Provider default; reasoning recorded | Evaluated through a hosted endpoint |
| Gemini 4 Argon | Frontier | Provider default; reasoning not exposed | Hosted |
Limitations
DeepSeek is open-weight and locally hostable, but it was evaluated through a hosted endpoint; the served checkpoint or quantization may differ from the public weights, and latency/cost are not representative of local hardware. Argon is a hosted frontier model. Both LLMs used provider-default reasoning. Within-model condition comparisons hold model configuration constant and remain valid.
Codes
tier: 0 = Traditional SAST, 1 = Open-weight, 2 = Frontiermodel: 0 = Bandit, 1 = Semgrep, 2 = DeepSeek V4.1 Flash, 3 = Argoncondition: 0 = original, 1 = obfuscated_v2, 2 = comments_removedexpected_vuln/predicted_vuln: 0 = No, 1 = Yescorrect_flag: prediction matches ground truthstrict_correct: flag correct and, for vulnerable samples, CWE correct
Category codes
| Code | Category |
|---|---|
| 0 | None |
| 1 | pathtraver |
| 2 | sqli |
| 3 | xpathi |
| 4 | xxe |
| 5 | cmdi |
| 6 | deserialization |
| 7 | xss |
| 8 | weakrand |
| 9 | trustbound |
| 10 | hash |
| 11 | codeinj |
| 12 | securecookie |
| 13 | redirect |
| 14 | ldapi |
| 99 | other |
Notes
- The long file is the main analysis file.
tier,model, andconditionare numeric with SPSS value labels; there are no separate string label columns.- The wide file is for paired tests; each detector has
_orig_,_obf_, and_comments_columns. - SAST tools have
token_data_available = 0, with zero token/latency values. - All LLM conditions parse 200/200.
- The comments-removed condition removes only comments and docstrings; identifiers, strings, routes, and templates are unchanged from the original.
- DeepSeek recorded reasoning text on every sample; Argon used provider-default reasoning but no reasoning text was recorded.