Bounce666 Secfathy commited on
Commit
7520d38
·
0 Parent(s):

Duplicate from PentesterFlow/OffsecCyber

Browse files

Co-authored-by: Mohmmaed Fathy <Secfathy@users.noreply.huggingface.co>

Files changed (8) hide show
  1. .gitattributes +61 -0
  2. LICENSE +202 -0
  3. README.md +148 -0
  4. banner.png +3 -0
  5. manifest.json +301 -0
  6. test.jsonl +0 -0
  7. train.jsonl +3 -0
  8. valid.jsonl +0 -0
.gitattributes ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.avro filter=lfs diff=lfs merge=lfs -text
4
+ *.bin filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
7
+ *.ftz filter=lfs diff=lfs merge=lfs -text
8
+ *.gz filter=lfs diff=lfs merge=lfs -text
9
+ *.h5 filter=lfs diff=lfs merge=lfs -text
10
+ *.joblib filter=lfs diff=lfs merge=lfs -text
11
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
13
+ *.mds filter=lfs diff=lfs merge=lfs -text
14
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
+ *.model filter=lfs diff=lfs merge=lfs -text
16
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
17
+ *.npy filter=lfs diff=lfs merge=lfs -text
18
+ *.npz filter=lfs diff=lfs merge=lfs -text
19
+ *.onnx filter=lfs diff=lfs merge=lfs -text
20
+ *.ot filter=lfs diff=lfs merge=lfs -text
21
+ *.parquet filter=lfs diff=lfs merge=lfs -text
22
+ *.pb filter=lfs diff=lfs merge=lfs -text
23
+ *.pickle filter=lfs diff=lfs merge=lfs -text
24
+ *.pkl filter=lfs diff=lfs merge=lfs -text
25
+ *.pt filter=lfs diff=lfs merge=lfs -text
26
+ *.pth filter=lfs diff=lfs merge=lfs -text
27
+ *.rar filter=lfs diff=lfs merge=lfs -text
28
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
29
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
31
+ *.tar filter=lfs diff=lfs merge=lfs -text
32
+ *.tflite filter=lfs diff=lfs merge=lfs -text
33
+ *.tgz filter=lfs diff=lfs merge=lfs -text
34
+ *.wasm filter=lfs diff=lfs merge=lfs -text
35
+ *.xz filter=lfs diff=lfs merge=lfs -text
36
+ *.zip filter=lfs diff=lfs merge=lfs -text
37
+ *.zst filter=lfs diff=lfs merge=lfs -text
38
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
39
+ # Audio files - uncompressed
40
+ *.pcm filter=lfs diff=lfs merge=lfs -text
41
+ *.sam filter=lfs diff=lfs merge=lfs -text
42
+ *.raw filter=lfs diff=lfs merge=lfs -text
43
+ # Audio files - compressed
44
+ *.aac filter=lfs diff=lfs merge=lfs -text
45
+ *.flac filter=lfs diff=lfs merge=lfs -text
46
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
47
+ *.ogg filter=lfs diff=lfs merge=lfs -text
48
+ *.wav filter=lfs diff=lfs merge=lfs -text
49
+ # Image files - uncompressed
50
+ *.bmp filter=lfs diff=lfs merge=lfs -text
51
+ *.gif filter=lfs diff=lfs merge=lfs -text
52
+ *.png filter=lfs diff=lfs merge=lfs -text
53
+ *.tiff filter=lfs diff=lfs merge=lfs -text
54
+ # Image files - compressed
55
+ *.jpg filter=lfs diff=lfs merge=lfs -text
56
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
57
+ *.webp 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
LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
README.md ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ task_categories:
6
+ - text-generation
7
+ - text-classification
8
+ tags:
9
+ - cybersecurity
10
+ - application-security
11
+ - vulnerabilities
12
+ - cve
13
+ - cwe
14
+ - instruction-tuning
15
+ - jsonl
16
+ size_categories:
17
+ - 10K<n<100K
18
+ ---
19
+
20
+ ![OffsecCyberDataset — AI Dataset for Penetration Testers](banner.png)
21
+
22
+ # Security Vulnerability Instruction Dataset
23
+
24
+ An English-language dataset of security-focused assistant conversations about software vulnerabilities. Examples cover vulnerability explanations, CVE analysis, severity and impact, CWE references, remediation guidance, and offensive/web-appsec reasoning. It combines CVE-oriented examples with NVD records, HackerOne report conversations, PortSwigger lab material, and offensive-security instruction data, and can support instruction tuning or experiments in security-topic classification and analysis.
25
+
26
+ > **This revision is a cleaned and enhanced build.** The previous version was deduplicated, re-labeled, and filtered (see **Processing and enhancement** below). Row counts and composition differ from earlier releases; the previous splits remain in the repository's git history.
27
+
28
+ ## What the data contains
29
+
30
+ Each example pairs a prompt and an assistant response with structured metadata. The prompt may ask for a summary, technical description, impact or severity assessment, exploitation reasoning, or defensive remediation. The answer may cite CVE/CWE identifiers, CVSS scores, affected products, attack conditions, impact, or mitigation steps, depending on the example. Conversations include system instructions and are not all the same length.
31
+
32
+ The current build combines these sources:
33
+
34
+ | `training_source` | Records | Share |
35
+ |---|---:|---:|
36
+ | `qwen_cve` (CVE-oriented synthetic analysis) | 30,956 | 51.2% |
37
+ | `NVD CVE 2.0 annual feed` | 21,228 | 35.1% |
38
+ | `web_offensive_elite_v2_sft` (offensive/web-appsec) | 5,673 | 9.4% |
39
+ | `h1` (HackerOne reports) | 2,350 | 3.9% |
40
+ | `portswigger_labs_sft` | 273 | 0.5% |
41
+ | `gapfill_synthetic` (reasoning / tool-use / negatives) | 21 | <0.1% |
42
+ | `Official CVE Program record (CVEProject/cvelistV5)` | 16 | <0.1% |
43
+
44
+ The JSONL metadata includes a normalized `training_source`, vulnerability/report `class`, optional CWE and CVE identifiers, CVSS/severity annotations, quality/completeness indicators, and conversation-level flags. These fields are useful for filtering and analysis but are not guaranteed to be complete or authoritative.
45
+
46
+ ## Dataset splits
47
+
48
+ | Split | Records |
49
+ |---|---:|
50
+ | Train | 54,484 |
51
+ | Validation | 3,017 |
52
+ | Test | 3,016 |
53
+ | **Total** | **60,517** |
54
+
55
+ The splits use a 90/5/5 ratio with seed `240517`. They are grouped to reduce leakage across splits using shared CVE IDs, normalized HackerOne report IDs, and exact conversation hashes (**0 cross-split CVE leakage** in this build). The accompanying `manifest.json` records the per-split class/source counts and the full processing report.
56
+
57
+ ## Processing and enhancement
58
+
59
+ This build was produced from the raw merged corpus (100,789 records) by a deterministic cleanup pipeline:
60
+
61
+ - **Near-duplicate reduction.** Template-redundant answers (normalized over CVE IDs, URLs, and numbers) were capped at 3 copies each, removing **36,137** near-duplicate rows. The most common boilerplate template dropped from **8,278** copies to **3**; measured near-duplicate redundancy fell from ~40% to **~6%**.
62
+ - **Label backfill.** Missing `class` labels were inferred from a CWE→class map learned from labeled rows (183 CWEs). Class-label coverage rose from ~37% to **95.3%**; backfilled rows carry `class_backfilled: true`.
63
+ - **Hallucination filtering.** **3,899** rows flagged `has_future_cve` (forward-dated/fabricated CVE identifiers) were dropped.
64
+ - **Prompt diversification.** The single dominant system prompt (previously ~57% of rows) was rotated across equivalent paraphrases; top-prompt share is now **~9%**.
65
+ - **Length isolation.** 257 rows whose full sequence exceeds ~4096 tokens were held out of the splits (not included here) to avoid silent truncation during training.
66
+ - **Gap-fill.** A small, validated set of records was added to introduce three otherwise-absent shapes: `<think>` reasoning traces, multi-turn agentic tool-calling trajectories, and negative / "not-a-vulnerability" / false-positive-rejection records. These carry `training_source: gapfill_synthetic`.
67
+
68
+ ## Data format
69
+
70
+ Each `.jsonl` line is a JSON object with:
71
+
72
+ - `messages`: a chat conversation of role/content pairs (`system`, `user`, `assistant`, and occasionally `tool`).
73
+ - `metadata`: labels and auxiliary fields, including `class`, `cwe`, `cvss_score`, `severity`, `cve_ids`, `training_source`, quality/completeness indicators, and flags such as `is_negative`, `class_backfilled`, and `signal`.
74
+ - Tool-calling records additionally carry a top-level `tools` array and `tool_calls` on the relevant assistant turn.
75
+
76
+ Example (abridged):
77
+
78
+ ```json
79
+ {
80
+ "messages": [
81
+ {"role": "system", "content": "You explain web security weaknesses using CWE and CVSS terminology correctly."},
82
+ {"role": "user", "content": "Summarize CVE-2026-9160."},
83
+ {"role": "assistant", "content": "..."}
84
+ ],
85
+ "metadata": {
86
+ "class": "ssti",
87
+ "cwe": "CWE-1336",
88
+ "cvss_score": 8.0,
89
+ "severity": "high",
90
+ "cve_ids": ["CVE-2026-9160"],
91
+ "training_source": "qwen_cve"
92
+ }
93
+ }
94
+ ```
95
+
96
+ ## Labels
97
+
98
+ There are 35 vulnerability/report classes, including `access_control`, `auth`, `business_logic`, `cmdi`, `deser`, `info_disclosure`, `pathtraver`, `sqli`, `ssrf`, `ssti`, `xss`, and `xxe`; `invalid_report` is also present. The largest classes are `xss` (8,290), `cmdi` (7,243), `access_control` (6,758), `info_disclosure` (6,232), `auth` (5,820), and `pathtraver` (4,967). About **2,834** records remain unlabeled (no `class` and no mappable CWE). Many tail classes have fewer than 100 records, and several (e.g. `ldapi`, `misconfig`, `oauth`, `cache_poisoning`) have only a handful. Class frequencies are imbalanced; consult `manifest.json` for exact counts by split, and prefer macro-averaged metrics and per-class results when evaluating classifiers.
99
+
100
+ ## Scope and domain note
101
+
102
+ This dataset is **web / application-security and bug-bounty oriented** (OWASP-style classes: injection, access control, auth, XSS, SSRF, etc.). It is **not** a memory-safety / binary-exploitation corpus: memory-safety examples are ~0.7% of records, and only ~3% of answers contain code. It is therefore **not aligned with execution-based vulnerability-reproduction benchmarks** such as CyberGym (which targets C/C++ OSS-Fuzz crashes verified by sanitizers). Use it for web-appsec reasoning, explanation, triage, and instruction tuning — not as training data for binary PoC reproduction.
103
+
104
+ ## Benchmarking
105
+
106
+ No model scores or benchmark results are included. The following is a recommended evaluation protocol, not a claim of measured performance.
107
+
108
+ ### Task A: vulnerability class prediction
109
+
110
+ Given an example's `messages`, predict `metadata.class`. Use the provided splits. For a generative model, ask for exactly one label from the class names, normalize the output, and score the parsed prediction; for a classifier, train on train and select on validation only. Report accuracy, macro-F1, weighted-F1, and per-class precision/recall/F1 with support counts and a confusion matrix — not accuracy alone. Exclude or separately report `class_backfilled` rows if you need human-verified labels.
111
+
112
+ ### Task B: security answer generation
113
+
114
+ Use each example's conversation as an instruction-tuning target, with the assistant message as the reference. Report the prompt template, model/version, decoding settings, and whether metadata was exposed to the model. Check CVE/CWE identifiers and numeric CVSS values against a dated authoritative source; text-overlap scores alone do not establish correctness.
115
+
116
+ ### Split and leakage cautions
117
+
118
+ - Keep the test split untouched for final evaluation; tune on validation.
119
+ - Grouping covers shared CVE IDs, normalized HackerOne report IDs, and exact conversation hashes, but does not guarantee independence by product, vendor, or vulnerability family.
120
+ - Near-duplicate answers are capped but not eliminated; audit if your benchmark requires strict example independence.
121
+ - Report results by `training_source` as well as overall, so the dominant CVE/NVD portion does not obscure performance on the offensive/HackerOne/lab examples.
122
+
123
+ ## Loading
124
+
125
+ ```python
126
+ from datasets import load_dataset
127
+
128
+ dataset = load_dataset("PentesterFlow/OffsecCyber", data_files={
129
+ "train": "train.jsonl",
130
+ "validation": "valid.jsonl",
131
+ "test": "test.jsonl",
132
+ })
133
+ ```
134
+
135
+ ## Data quality and use considerations
136
+
137
+ - This is a curated/assembled dataset, not a guarantee that every statement is correct, current, or suitable as production security advice. Verify vulnerability details against authoritative advisories before relying on them.
138
+ - A large portion of records is synthetic (`qwen_cve`, `gapfill_synthetic`). Treat `cvss_score`, `severity`, and `class` as dataset annotations, not authoritative ratings or ground truth about exploitability.
139
+ - Forward-dated CVE rows were filtered from this build, but confirm publication dates before making temporal evaluation claims.
140
+ - The dataset contains dual-use cybersecurity information and should be used for defensive, educational, or research purposes with appropriate safeguards.
141
+
142
+ ## Sources and processing
143
+
144
+ Raw merged input: 100,789 records. After the enhancement pipeline (near-duplicate capping, forward-CVE filtering, label backfill, prompt diversification, length isolation, and gap-fill), **60,517** records remain across the three splits, with 257 over-length rows held out. See `manifest.json` for the complete per-split counts and processing report.
145
+
146
+ ## License
147
+
148
+ This dataset is distributed under the Apache License 2.0. See [`LICENSE`](LICENSE) for the full text.
banner.png ADDED

Git LFS Details

  • SHA256: d7441052ce3978f19236673410b1ddcf86e4e6c538da7b0a0c9000164c93ae2b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.35 MB
manifest.json ADDED
@@ -0,0 +1,301 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Enhanced security SFT (issues 1-6 fixed)",
3
+ "seed": 240517,
4
+ "ratios": {
5
+ "train": 0.9,
6
+ "valid": 0.05,
7
+ "test": 0.05
8
+ },
9
+ "fixes": {
10
+ "input": 100789,
11
+ "after_exact_dedup": 100789,
12
+ "cwe_map_size": 183,
13
+ "dropped_future": 3899,
14
+ "class_backfilled": 58524,
15
+ "sysprompt_rotated": 42997,
16
+ "overflow_isolated": 257,
17
+ "near_dup_templates_capped": 36137,
18
+ "after_all_fixes": 60496
19
+ },
20
+ "classes": [
21
+ "API Breaches & Bug Bounties",
22
+ "API Insecurities (OWASP API Top 10)",
23
+ "API Security Testing",
24
+ "API Security Testing Prep",
25
+ "API hacking toolkit setup",
26
+ "API path discovery concepts",
27
+ "API testing",
28
+ "API testing checklist: authz, mass assignment, injection",
29
+ "API testing checklist: endpoints and auth",
30
+ "API testing checklist: rate limits and evasion",
31
+ "API testing checklist: reconnaissance",
32
+ "Access Control",
33
+ "Additional lab targets and platforms",
34
+ "Android Application Security",
35
+ "Application Server",
36
+ "Attack Surface Mapping",
37
+ "Attacking Application Architecture",
38
+ "Automating Customized Attacks",
39
+ "Back-End Components",
40
+ "Billion laughs and quadratic blowup",
41
+ "Browser Security",
42
+ "Browser-Side Scripts",
43
+ "Browser/Web Security",
44
+ "Bug Bounty Basics",
45
+ "Bug Bounty Methodology",
46
+ "Bug Bounty Program Selection",
47
+ "Burp Intruder attack types",
48
+ "Burp Suite modules overview",
49
+ "Burp extensions for API testing",
50
+ "Business Logic & Broken Access Control",
51
+ "CMS/WordPress",
52
+ "CSS Security",
53
+ "CSV Injection",
54
+ "CVE Exploits",
55
+ "Case study: WordPress XML-RPC blowup",
56
+ "Client-Side Controls",
57
+ "Client-Side Vulnerabilities Interview",
58
+ "Crafting API requests in Postman",
59
+ "Cross-Site Request Forgery (CSRF)",
60
+ "Cross-Site Scripting (XSS)",
61
+ "DNS Rebinding",
62
+ "Denial of Service",
63
+ "Dependency Confusion",
64
+ "Domain-Wise AppSec Interview",
65
+ "Don\u2019t Be an Accessory",
66
+ "Encoding Transformations",
67
+ "Essential skills",
68
+ "Fuzzing & Automated Discovery",
69
+ "Fuzzing APIs with Wfuzz",
70
+ "Google Web Toolkit",
71
+ "HTML Security",
72
+ "HTTP Fundamentals",
73
+ "HTTP Host header attacks",
74
+ "HTTP Parameter Pollution",
75
+ "Headless Browser",
76
+ "Host Header Injection",
77
+ "Injection",
78
+ "Insecure Direct Object Reference (IDOR)",
79
+ "Insecure Source Code Management",
80
+ "Installing Docker for a lab",
81
+ "Integrating Postman with Burp Suite",
82
+ "JavaScript & Web Security Basics",
83
+ "JavaScript Security Fundamentals",
84
+ "Lab architecture best practices",
85
+ "Lab: discovering APIs on a local network",
86
+ "Learning Resources",
87
+ "Metasploit for Web",
88
+ "Methodology",
89
+ "Methodology and Resources",
90
+ "Native/Binary in Web Context",
91
+ "Open Redirect",
92
+ "Postman environments and collections",
93
+ "Prompt Injection",
94
+ "Proxy configuration for API testing",
95
+ "Reconnaissance",
96
+ "Reconnaissance with DevTools",
97
+ "Remote Code Execution (RCE)",
98
+ "Report Writing",
99
+ "Reporting",
100
+ "SQL Injection",
101
+ "Secure Coding",
102
+ "Security Tools",
103
+ "Server Side Include Injection",
104
+ "Server-Side Request Forgery (SSRF)",
105
+ "Server-Side Vulnerabilities Interview",
106
+ "Source Code Review",
107
+ "Subdomain Takeover",
108
+ "Summing Up",
109
+ "Supplemental API testing tools",
110
+ "Tabnabbing",
111
+ "Taint Analysis",
112
+ "Third-Party Code",
113
+ "Tooling",
114
+ "Tooling and Environment Setup",
115
+ "URL/HTTP",
116
+ "Variant Analysis",
117
+ "Vulnerability Report Writing",
118
+ "Vulnerability Research Intro",
119
+ "Vulnerable API lab targets",
120
+ "Vulnerable lab safety",
121
+ "Web API Anatomy",
122
+ "Web Application (In)security",
123
+ "Web Application Fundamentals",
124
+ "Web Cache Deception",
125
+ "Web Fundamentals",
126
+ "Web Hacking Intro",
127
+ "Web Security Interview",
128
+ "Web Servers",
129
+ "Web3/Smart Contract Web Angle",
130
+ "XML Attacks",
131
+ "XML fundamentals",
132
+ "XPATH Injection",
133
+ "XSS",
134
+ "access_control",
135
+ "attack_surface",
136
+ "auth",
137
+ "authentication",
138
+ "automation",
139
+ "bash_fundamentals",
140
+ "box",
141
+ "business_logic",
142
+ "c2_rat",
143
+ "c_language",
144
+ "cache_poisoning",
145
+ "case_studies",
146
+ "checklist",
147
+ "clickjacking",
148
+ "cmdi",
149
+ "code_audit",
150
+ "codeinj",
151
+ "cors",
152
+ "crypto",
153
+ "crypto_weak",
154
+ "csrf",
155
+ "database_mining",
156
+ "deser",
157
+ "design_review",
158
+ "dns",
159
+ "dns_server",
160
+ "exploit_dev",
161
+ "firewalls",
162
+ "forensics",
163
+ "format_string",
164
+ "go_fundamentals",
165
+ "go_plugins",
166
+ "graphql",
167
+ "graphql_basics",
168
+ "graphql_dos",
169
+ "hardening",
170
+ "http_client",
171
+ "http_server",
172
+ "info_disclosure",
173
+ "information_disclosure",
174
+ "input_validation",
175
+ "insecure_design",
176
+ "invalid_report",
177
+ "kernel",
178
+ "lab_setup",
179
+ "ldapi",
180
+ "long-term methodology",
181
+ "lua_plugins",
182
+ "memory_safety",
183
+ "metasploit_rpc",
184
+ "methodology",
185
+ "mindset",
186
+ "misc",
187
+ "misconfig",
188
+ "mitigation",
189
+ "network_app_protocols",
190
+ "network_protocols",
191
+ "note taking",
192
+ "note-taking / wordlists",
193
+ "note-taking / workflow",
194
+ "oauth",
195
+ "operational_review",
196
+ "packet_capture",
197
+ "parameter discovery",
198
+ "parameter testing / automation",
199
+ "parsing",
200
+ "pathtraver",
201
+ "post_exploitation",
202
+ "program selection",
203
+ "proto_pollution",
204
+ "pwn",
205
+ "race",
206
+ "recon",
207
+ "recon / content discovery",
208
+ "recon / dorking",
209
+ "recon_tooling",
210
+ "redirect",
211
+ "reporting",
212
+ "request_forgery",
213
+ "resource",
214
+ "resources",
215
+ "rev",
216
+ "reverse_engineering",
217
+ "scanning",
218
+ "secrets",
219
+ "smuggling",
220
+ "source review / JS analysis",
221
+ "sqli",
222
+ "ssrf",
223
+ "ssti",
224
+ "strings_metacharacters",
225
+ "supply_chain",
226
+ "tcp_proxy",
227
+ "tcp_scanning",
228
+ "threat_modeling",
229
+ "tls_transport",
230
+ "tooling",
231
+ "type_conversion",
232
+ "unknown",
233
+ "upload",
234
+ "vulnerability_fundamentals",
235
+ "web",
236
+ "web_applications",
237
+ "web_technologies",
238
+ "xss",
239
+ "xxe"
240
+ ],
241
+ "splits": {
242
+ "train": {
243
+ "records": 54484,
244
+ "sources": {
245
+ "qwen_cve": 27665,
246
+ "NVD CVE 2.0 annual feed": 19304,
247
+ "web_offensive_elite_v2_sft": 5140,
248
+ "h1": 2093,
249
+ "portswigger_labs_sft": 249,
250
+ "Official CVE Program record (CVEProject/cvelistV5)": 16
251
+ },
252
+ "labeled": 51877
253
+ },
254
+ "valid": {
255
+ "records": 3017,
256
+ "sources": {
257
+ "qwen_cve": 1614,
258
+ "NVD CVE 2.0 annual feed": 996,
259
+ "web_offensive_elite_v2_sft": 264,
260
+ "h1": 129,
261
+ "portswigger_labs_sft": 12
262
+ },
263
+ "labeled": 2893
264
+ },
265
+ "test": {
266
+ "records": 3016,
267
+ "sources": {
268
+ "qwen_cve": 1677,
269
+ "NVD CVE 2.0 annual feed": 928,
270
+ "web_offensive_elite_v2_sft": 269,
271
+ "h1": 128,
272
+ "portswigger_labs_sft": 12
273
+ },
274
+ "labeled": 2892
275
+ }
276
+ },
277
+ "gapfill_merged": {
278
+ "records": 21,
279
+ "shapes": {
280
+ "A_reasoning": 15,
281
+ "B_tool_trajectory": 6
282
+ },
283
+ "gaps_filled": {
284
+ "think_traces": 10,
285
+ "tool_trajectories": 6,
286
+ "negatives": 5
287
+ },
288
+ "source": "gapfill_synthetic (gen_gapfill.py)",
289
+ "distribution": {
290
+ "train": 17,
291
+ "valid": 2,
292
+ "test": 2
293
+ }
294
+ },
295
+ "coverage_after_gapfill": {
296
+ "think_total": 21,
297
+ "tool_total": 48,
298
+ "negative_total": 93,
299
+ "note": "quality seed covering all 3 shapes in train+valid+test; scale via /pentesterflow-dataset for volume"
300
+ }
301
+ }
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:d6971b0d5eb9d17a69314ad4c3040441da0dff10104406f26d402cda66f5269c
3
+ size 109410121
valid.jsonl ADDED
The diff for this file is too large to render. See raw diff