Commit Graph
14 Commits
Author SHA1 Message Date
Joren 303cf016be Drop duplicate label columns from SPSS exports
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.
2026-11-21 15:12:39 +01:00
Joren 67f4821caf Add comments-only condition and four-detector SPSS exports 2026-11-16 12:11:26 +01:00
Joren e4827debdc Document Qwen thinking-disabled deployment configuration 2026-11-12 20:30:42 +01:00
Joren 7fece442e1 Remove superseded validation exports 2026-11-12 19:56:01 +01:00
Joren 6984b5dd4c Add SPSS exports and raw per-sample outputs 2026-11-12 19:48:34 +01:00
Joren 2a2b70b970 Add reasoning control and JSON escape repair 2026-11-12 19:38:32 +01:00
Joren de37bb2551 Remove superseded v1 obfuscator, dataset, and prompt draft
- Delete Samples_Obfuscated, the broken v1 output
- Delete obfuscator.py, replaced by obfuscator_v2.py
- Delete prompt.txt, superseded by prompts/sast_v1.txt and sast_v2.txt
2026-11-10 23:09:59 +01:00
Joren 26da3173e9 Switch runner to 14-category CWE prompt and strict scoring
- Add sast_v2 prompt covering all BenchmarkPython CWEs
- Accept boolean vulnerable plus CWE and derive category from CWE
- Score flag accuracy separately from strict flag+CWE accuracy
- Report wrong-category true positives explicitly
- Run DeepSeek v2 on all 200 original and obfuscated samples
- Extend LLM and SAST exports with strict correctness and CWE fields
2026-11-10 22:58:36 +01:00
Joren 033e5d0ea3 Add Bandit and Semgrep per-sample comparison exports
- Run Semgrep p/python on original and obfuscated samples
- Add raw Bandit/Semgrep findings and per-sample target-category flags
- Add SPSS-ready tool-by-condition long file and summary
- Document tool mappings, coverage limits, and obfuscation effects
2026-11-10 20:33:23 +01:00
Joren 7f047030c6 Add SPSS-ready exports for DeepSeek comparison
- Add export_spss.py to generate long, wide, summary, and paired CSVs
- Add codebook, SPSS import syntax, and paired-analysis syntax
- Include generated SPSS files for the original and obfuscated runs
2026-11-10 19:21:35 +01:00
Joren c70239af0c Add script used to pick 200 random samples 2026-11-10 18:42:11 +01:00
Joren a999301b6d Add SAST evaluation runner and validation artifacts
- Add run_sast_eval.py with SQLite/CSV result storage, retries, JSON repair,
  resumability, and expected-label scoring
- Add exact SAST prompt and full benchmark expected-results CSV
- Add mock-API end-to-end tests and uv/bandit dev requirements
- Record Bandit parity and DeepSeek original-vs-obfuscated comparisons
2026-11-10 18:11:43 +01:00
Joren e12e932767 Add obfuscator v2 with semantic-preserving obfuscated dataset
- Rename functions, variables, parameters and imports with scope-aware AST passes
- Generalise Flask route and template paths to unique /route_N and tpl_N names
- Replace descriptive strings with length-preserving, word-consistent msg tokens
- Strip docstrings and comments
- Add verification for parse validity and leaked benchmark identifiers
- Include SAST prompt and expected labels
2026-11-10 02:48:03 +01:00
Joren ae4729b142 Initial commit: obfuscator script with original and obfuscated sample sets 2026-11-10 02:16:11 +01:00