Add normalized offensive-security chat dataset (114,407 records; train/val parquet + card)
Browse filesFiles changed (6)
123---license: apache-2.0---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153---license: otherlanguage:- entask_categories:- text-generationtags:- security- offensive-security- red-team- pentesting- cybersecurity- chatpretty_name: Attacker (Offensive-Security Chat Dataset)size_categories:- 100K<n<1Mconfigs:- config_name: defaultdata_files:- split: trainpath: data/train-*.parquet- split: valpath: data/val-*.parquet---# Attacker — Offensive-Security Chat DatasetA chat-format (ShareGPT/ChatML-style) supervised fine-tuning dataset of **114,407**offensive-security conversations, curated to focus on *attack-side* procedures andknowledge (exploitation, vulnerability research, post-exploitation, red-teammethodology, recon, C2, malware/threat analysis, cryptanalysis, tooling).> ⚠️ **Intended use / safety.** This dataset contains offensive-security content and> is released **for authorized security research, red-team training, and defensive> model evaluation only**. Use it exclusively in contexts where you have explicit> authorization (e.g. your own labs, sanctioned pentest/CTF engagements, security> research). Do **not** use it to attack systems you do not own or lack written> permission to test. The authors and uploader accept no liability for misuse.> Category labels are dictionary-based heuristics, **not** ground truth — spot-check> before training.## SchemaEach record is one conversation with a uniform schema:| field | type | description ||---|---|---|| `id` | string | stable unique id (e.g. `atk-0000001`) || `category` | string | attack category (see table below) || `tier` | string | `core` (attack *procedures*) or `adjacent` (attack *knowledge*) || `source` | string | originating source file || `messages` | list\<{`role`, `content`}\> | chat turns; `role` ∈ {`system`, `user`, `assistant`}, lowercased || `meta` | struct | `{attack_score: float, defense_score: float, turns_dropped: int}` |Every conversation opens with a `system` turn framing an *offensive security assistantfor authorized pentesting*, followed by one or more `user`/`assistant` turns(multi-turn conversations are included).### Load```pythonfrom datasets import load_datasetds = load_dataset("daipham31/attacker") # DatasetDict: train, val# filter to the pure attack-procedure tier:core = ds["train"].filter(lambda r: r["tier"] == "core")```## Splits| split | records ||---|---|| `train` | 113,267 || `val` | 1,140 || **total** | **114,407** |The `tier` column (`core` / `adjacent`) is available as a filter within each split.## Counts### By tier| tier | records | meaning ||---|---|---|| `core` | 59,998 | attack procedures || `adjacent` | 54,409 | attack knowledge |### By category| category | tier | records | description ||---|---|---|---|| `vuln_research` | adjacent | 50,182 | CVE research, exploitability, vulnerability analysis || `exploitation` | core | 47,043 | exploitation, PoC, payloads || `post_exploitation` | core | 4,589 | privesc, lateral movement, credentials, persistence, evasion || `malware_threat` | adjacent | 4,227 | malware / RaaS / threat-actor technique analysis || `redteam` | core | 3,098 | red-team / pentest methodology || `recon` | core | 2,416 | reconnaissance, scanning, enumeration || `c2` | core | 1,204 | command & control, tunneling, botnets || `cryptanalysis` | core | 1,108 | crypto attacks: side-channel, timing, DPA || `tooling` | core | 540 | offensive tooling (Metasploit, Impacket, Cobalt Strike, …) |### By source (top)| source file | records ||---|---|| `cybersec_master.jsonl` | 83,717 || `220426-CyberSec-Dataset_escaped.jsonl` | 18,857 || `Cybersecurity-ShareGPT.jsonl` | 11,065 || `mitre-attack-instruction-dataset.json` | 291 || `malware-instruction-dataset.json` | 199 || *(30 further small sources)* | 278 |## Token estimate≈ **73.0M tokens** (292.2M characters across all message content; char/4 heuristic),consistent with the build pipeline's estimate. Median / p90 record length ≈2,070 / 5,362 characters.## ProvenanceFiltered and standardized from an initial pool of **1,981,019** input records by an`attack_pipeline.py` build step, which kept **114,407** attack-focused records andexcluded **1,497,640** defense/non-attack records (plus 6,593 lead-defense recordsremoved in post-filtering). Notable processing:- **Attack-focus filter.** Defense-leaning records (threat hunting, detection rules,incident response, hardening, remediation, compliance/reporting) were excluded.`Detection` / `Prevention` / `Mitigation` / `Remediation` / `Hardening` sectionswere cut from the assistant answers of mixed records; purely-defensive turns weredropped from multi-turn conversations (`meta.turns_dropped` records how many).- **De-duplication.** Exact prompt-hash duplicates and repetitive templates weremerged (capped at 300 records per template; 362,379 duplicate/template recordscollapsed). Double-escaped `*_escaped.jsonl` sources were unescaped.- **Reference dumps removed.** MITRE ATT&CK / NVD reference tables (not Q&A pairs)and non-security coding/math (`code_train*`) were excluded.### Standardization (this release)- Unified every record onto the schema above; preserved all original fields(scores kept under `meta`).- Verified message `role` values are lowercase and in {`system`, `user`, `assistant`}.- Checked for exact `id` collisions across the input files: **0 found**; all 114,407records are unique and retained (no content filtering, redaction, or down-sampling).- Exported as zstd-compressed sharded Parquet with `train` / `val` splits.## Limitations- `CyberSec-Dataset_escaped.jsonl` is a subset of `220426-CyberSec-Dataset_escaped.jsonl`;overlap was merged by prompt hash.- The Exploit-DB branch of `cybersec_master` had faulty metadata (always `aix/dos`)and templated junk answers; those junk turns were dropped.- Category labels are heuristic (dictionary-based), **not** ground truth.- Offensive-security content only — do not use for anything but authorized research.
123version https://git-lfs.github.com/spec/v1oid sha256:3405d8c126caf8a5fd86041528dfd7df092585b288f93b58b7453af2231cfbfcsize 30170036123version https://git-lfs.github.com/spec/v1oid sha256:4a4f74f10a730c638a1badbc1fcacd1c4a3e377780775a11a475fda995dd20ddsize 29010108123version https://git-lfs.github.com/spec/v1oid sha256:e4fe610c81b496c181e82a86517759635fca59ce126648165253273f742be9b1size 16730613123version https://git-lfs.github.com/spec/v1oid sha256:db5a09e9625404c123d29741986622258c7a77331d6e83bb6825f1a3a45c08a4size 17266821123version https://git-lfs.github.com/spec/v1oid sha256:130e44a51318f926bf195412932f95cc6e5786089d1afa847748318748e014eesize 1006769README.md+151-1
data/train-00000-of-00004.parquetAdded+3
data/train-00001-of-00004.parquetAdded+3
data/train-00002-of-00004.parquetAdded+3
data/train-00003-of-00004.parquetAdded+3
data/val-00000-of-00001.parquetAdded+3