Secfathy commited on
Commit
0ae71bd
·
verified ·
1 Parent(s): 896866d

Thinking-optimized web-security SFT: 49% <think>, recitation dropped, grounded+authored, leakage-safe

Browse files
Files changed (6) hide show
  1. .gitattributes +1 -0
  2. README.md +40 -0
  3. manifest.json +25 -0
  4. test.jsonl +0 -0
  5. train.jsonl +3 -0
  6. valid.jsonl +0 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ train.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: [en]
3
+ license: gpl-2.0
4
+ task_categories: [text-generation]
5
+ tags: [cybersecurity, application-security, bug-bounty, pentest, thinking, reasoning, tool-calling, jsonl, qwen]
6
+ size_categories: [1K<n<10K]
7
+ ---
8
+
9
+ # OffsecCyber-Thinking — reasoning-optimized web-security SFT
10
+
11
+ A **thinking-mode** supervised fine-tuning set for web application security / bug-bounty models (Qwen3-style `<think>` + tool-calling). Reasoning-dominant and grounded: CVE-metadata **recitation was deliberately dropped** to reduce hallucination.
12
+
13
+ ## Composition (9,417 records)
14
+ | grounding | count | source |
15
+ |---|---:|---|
16
+ | grounded | 4,001 | Exploit-DB verified webapps, PoC extracted from the real exploit files |
17
+ | authored_curated | 2,500 | offensive/web-appsec instruction data |
18
+ | real_report | 2,000 | HackerOne-style reports |
19
+ | authored | 643 | synthetic tail-class + modern-stack + negatives (think + tool-calling) |
20
+ | grounded_lab | 273 | PortSwigger labs |
21
+
22
+ - **`<think>` share: 49%** · **negatives: 7.5%** · tool-calling trajectories included.
23
+ - Splits: train 8,475 / valid 470 / test 472, **leakage-safe** (grouped by CVE/EDB/report-id/hash), 0 cross-split leaks, 0 fabricated/forward CVEs, near-dup ≤3/template.
24
+ - Each record tags `metadata.grounding / license / provenance / has_think / is_negative / cvss_source / tool_output`.
25
+
26
+ ## ⚠️ Use in production (read before training/deploying)
27
+ This set trains **reasoning and judgment**, not a fact oracle. To avoid hallucination:
28
+ 1. **RAG for facts** — CVSS is estimated, not authoritative; CVE recall is unreliable at ≤8B. Supply CVE/CVSS/version truth from NVD/GHSA at inference.
29
+ 2. **Real tools, never invented output** — `metadata.tool_output="simulated"` marks learned tool results; execute tools for real in production.
30
+ 3. **Human-in-the-loop on exploitation** — PoCs are drafts to verify in a sandbox.
31
+
32
+ ## License / provenance (IMPORTANT)
33
+ Mixed provenance, tagged per record in `metadata.license`:
34
+ - **`GPL-2.0-or-later`** (4,001, provenance=exploit-db) — the card license reflects this (most restrictive).
35
+ - **`review-upstream`** (4,773, h1/portswigger/web_offensive) — confirm each upstream source's terms before redistribution.
36
+ - **`synthetic-authored`** (643) — project-authored.
37
+
38
+ For a **closed-source** product: training is generally permissible, but redistribution of GPL-derived data/weights can carry obligations — get legal review, or train a shippable model on the non-GPL (`provenance != exploit-db`) subset.
39
+
40
+ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
manifest.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Security SFT \u2014 THINKING-optimized (reasoning-dominant, recitation dropped)",
3
+ "seed": 240517,
4
+ "records": 9417,
5
+ "splits": {
6
+ "train": 8475,
7
+ "valid": 470,
8
+ "test": 472
9
+ },
10
+ "think_share": 0.493,
11
+ "negative_share": 0.075,
12
+ "grounding_mix": {
13
+ "grounded": 4001,
14
+ "authored_curated": 2500,
15
+ "real_report": 2000,
16
+ "authored": 643,
17
+ "grounded_lab": 273
18
+ },
19
+ "license_mix": {
20
+ "review-upstream": 4773,
21
+ "GPL-2.0-or-later": 4001,
22
+ "synthetic-authored": 643
23
+ },
24
+ "notes": "recitation (qwen_cve/NVD) dropped; all <think> records kept; curated non-think capped. RAG for CVE/CVSS facts; real tools only; human-verify PoCs."
25
+ }
test.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04628b44f2d699936e55423bbdc96daf55b470f1074ed3ed86b1949259442556
3
+ size 30434383
valid.jsonl ADDED
The diff for this file is too large to render. See raw diff