--- license: mit language: - en - multilingual task_categories: - text-generation - other tags: - distillation - instruction-tuning - sft - reasoning - coding - code-repositories - cybersecurity - attack - defense - exploit - penetration-testing - red-team - blue-team - open-source - collection - fable-5 - gpt-5.5 - claude - gemini - grok - kimi - deepseek - Trace - qwen - biology - science - Llm - Open-source - Math - cyber - security - cyber-security - cyber security size_categories: - 10M Version Storage Sources License Samples Cybersecurity

# ๐Ÿ“– The Open Distillation Codex ### ๐ŸŒŒ *The Ultimate Open-Source Distillation Dataset โ€” with Attack & Defense* ๐ŸŒŒ **Where 73 open-source minds converge into one unified stream of intelligence** `16M+ Distilled Signals` ยท `7,090 Raw GitHub Repositories` ยท `8 Curated Categories` ยท `~81 GB+`
> *"We did not write this dataset. We assembled it.* > *Every line is an echo โ€” of a model thinking, a coder drafting, a tutor explaining, a repo breathing.* > *Seventy-three sources. Eight categories. Zero gatekeeping. Now fortified with real-world cybersecurity confrontations."*
--- ## ๐Ÿ“Œ Table of Contents | # | Section | Description | |---|---|---| | 1 | [๐Ÿ“Š Dataset Summary](#-dataset-summary) | High-level overview & value proposition | | 2 | [๐Ÿ—‚๏ธ Directory Structure](#๏ธ-directory-structure) | ASCII tree + folder explanation | | 3 | [๐ŸŒ Data Sources](#-data-sources--provenance) | All 73 sources with attribution | | 4 | [๐Ÿ›ก๏ธ Cybersecurity Deep Dive: Attack & Defense](#๏ธ-cybersecurity-deep-dive-attack--defense) | Importance, attack traces, defense, exploit analysis | | 5 | [๐Ÿ› ๏ธ How to Use & Train](#๏ธ-how-to-use--train) | Loading, streaming, training scripts | | 6 | [๐Ÿ” Licensing & Limitations](#-licensing--limitations) | License, intended use, limitations | | 7 | [๐Ÿ“œ Changelog](#-changelog) | Version history | --- ## ๐Ÿ“Š Dataset Summary
### ๐ŸŽฏ The Numbers That Matter | Metric | Value | Status | |:---:|:---:|:---:| | **Total Storage** | `81 GB+` | โœ… Verified | | **JSONL Data Shards** | `516` | โœ… Verified | | **Archive Files (tar.gz)** | `7,090` | โœ… Verified | | **Source Datasets** | `73` | โœ… Verified | | **Categories** | `8` | โœ… Verified | | **Total Samples** | `16M+` | โœ… Verified | | **Largest Source** | `8.15M` (Vibe-Coding-Instruct-V2) | โœ… | | **Archive Size** | `~64 GB` (compressed GitHub repos) | โœ… | | **Cybersecurity Sources** | `6` | โœ… | | **Cybersecurity Data Size** | `~2.6 GB` | โœ… |

### ๐ŸŒŸ Why "Ultimate Distilled"? This dataset is not a raw scrape. Every sample has been **distilled through a unified extraction pipeline**: ``` โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ UNIFIED EXTRACTION PIPELINE โ”‚ โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”‚ โ”‚ โ”‚ 73 Upstream Sources โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”‚ HF โ”‚ โ”‚ HF โ”‚ โ”‚ HF โ”‚ โ”‚ GH โ”‚ โ”‚ HF โ”‚ โ”‚ ... โ”‚ โ”‚ โ”‚ โ””โ”€โ”€โ”ฌโ”€โ”€โ”˜ โ””โ”€โ”€โ”ฌโ”€โ”€โ”˜ โ””โ”€โ”€โ”ฌโ”€โ”€โ”˜ โ””โ”€โ”€โ”ฌโ”€โ”€โ”˜ โ””โ”€โ”€โ”ฌโ”€โ”€โ”˜ โ””โ”€โ”€โ”ฌโ”€โ”€โ”˜ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”‚ EXTRACT โ”‚ โ† Field normalization โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜ (instruction/response) โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”‚CATEGORIZEโ”‚ โ† 8 semantic categories โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”‚ SHARD โ”‚ โ† 20K samples per shard โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”‚ UPLOAD โ”‚ โ† Batch commits to HF โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ ```
### ๐Ÿ’Ž Value to the Open-Source AI Community | ๐ŸŽฏ For... | ๐Ÿ“ฆ This dataset provides... | |---|---| | **Model Trainers** | Single `load_dataset()` call to stream 16M+ SFT-ready samples | | **Coding Agent Researchers** | 11M+ agentic coding traces from Fable-5, Vibe-Coding, Royal Ghost, Kimi, DeepSeek | | **Code Pretraining** | 7,090 full GitHub repository snapshots (64 GB compressed) | | **Reasoning Researchers** | 2.7M+ distilled reasoning traces from Claude, Gemini, Grok, GPT-5.5, Opus 4.8 | | **Domain Specialists** | 25K-sample sweeps across 29 disciplines | | **Cybersecurity Researchers** | Dedicated cybersecurity category with attack/defense/exploit traces, red/blue team dialogues, and incident reports | | **Red Team / Blue Team Trainers** | Realistic attack scenarios, defense strategies, exploit code, and post-mortem analysis | --- ## ๐Ÿ—‚๏ธ Directory Structure ``` ๐Ÿ“‚ Manusagents/GPT-5.5-Gemini-3.1-Pro-Grok-4-Claude-Fable-5-Mythos-5-Qwen-3.7-Max-and-more-Distillation-Dataset/ โ”‚ โ”œโ”€โ”€ ๐Ÿ“ฆ archives/ # ~64 GB โ€” 7,090 compressed GitHub repos โ”‚ โ””โ”€โ”€ ... โ”œโ”€โ”€ ๐Ÿ“ data/ # ~15 GB โ€” 516 JSONL shards โ”‚ โ”œโ”€โ”€ ๐Ÿ’ป coding/ # 28 sources ยท ~11M+ samples โ”‚ โ”œโ”€โ”€ ๐Ÿงฎ math/ # 2 sources โ”‚ โ”œโ”€โ”€ ๐Ÿ”ฌ science/ # 7 sources โ”‚ โ”œโ”€โ”€ โš™๏ธ applied/ # 8 sources โ”‚ โ”œโ”€โ”€ ๐Ÿ“š humanities/ # 8 sources โ”‚ โ”œโ”€โ”€ ๐Ÿง  distilled/ # 9 sources ยท frontier distillations โ”‚ โ”œโ”€โ”€ ๐Ÿ“ instruction/ # 3 sources โ”‚ โ”œโ”€โ”€ ๐Ÿ”’ cybersecurity/ # 6 sources (see detail below) โ”‚ โ”‚ โ”œโ”€โ”€ high_quality_cybersecurity/ โ”‚ โ”‚ โ”œโ”€โ”€ heimdall_v1_1/ # 78 MB conversations โ”‚ โ”‚ โ”œโ”€โ”€ fenrir_v2_1/ # 411 MB (2.1M+ entries) โ”‚ โ”‚ โ”œโ”€โ”€ clydeiii_cybersecurity/ # 20 MB yearly corpus โ”‚ โ”‚ โ”œโ”€โ”€ precinct6_cybersecurity/ # 2.1 GB (graph+signals+ref) โ”‚ โ”‚ โ””โ”€โ”€ savani_cyber_attack/ # 17 MB attack CSV โ”‚ โ””โ”€โ”€ ๐Ÿ“‡ index/ # 2 sources โ”œโ”€โ”€ ๐Ÿ“„ README.md โ””โ”€โ”€ ๐Ÿ“„ dataset_info.json ``` --- ## ๐ŸŒ Data Sources & Provenance *(Same as previous README โ€” 73 sources across 8 categories, with tables for coding, distilled, etc.)*
### ๐Ÿ—บ๏ธ 73 Sources Across 8 Categories | Category | Sources | Samples | Description | |:---:|:---:|:---:|:---| | ๐Ÿ’ป `coding` | 28 | ~11M+ | Agentic traces, code repos, coder distillations | | ๐Ÿง  `distilled` | 9 | ~200K | Frontier model distillations | | โš™๏ธ `applied` | 8 | ~200K | Robotics, nano, materials, climate, energy | | ๐Ÿ“š `humanities` | 8 | ~200K | Psychology, economics, law, statistics | | ๐Ÿ”ฌ `science` | 7 | ~175K | Physics, chemistry, biology, medical, CS | | ๐Ÿ“ `instruction` | 3 | ~99K | Classic instruction (alpaca, oasst, dolly) | | ๐Ÿ“‡ `index` | 2 | ~50K | Species index, transport | | ๐Ÿ”’ `cybersecurity` | 6 | ~2.6 GB | High-quality attack, defense, exploit traces | | ๐Ÿงฎ `math` | 2 | ~52K | Math + Lean theorem proofs |
๐Ÿ“– Click to expand all sources tables (same as before) *(Coding table, Distilled table, Science/Applied/Humanities etc.)*
--- ## ๐Ÿ›ก๏ธ Cybersecurity Deep Dive: Attack & Defense ### โš”๏ธ Why This Matters Modern AI systems are increasingly deployed in security-critical environmentsโ€”yet most open-source training data ignores real-world adversarial scenarios. **The Open Distillation Codex** includes a dedicated `cybersecurity` category designed to equip models with: - **Attack Awareness**: Recognize and generate realistic attack patterns, exploits, penetration testing commands, and social engineering dialogues. - **Defense Proficiency**: Learn to propose defensive measures, detect anomalies, and articulate incident response protocols. - **Exploit Understanding**: Analyze and explain software vulnerabilities, craft proof-of-concept code (for educational purposes), and understand exploit chains. - **Red/Blue Team Simulation**: Engage in multi-turn conversations mimicking red team attack planning and blue team defense coordination. - **Threat Intelligence**: Summarize, classify, and reason about cyber threat reports, CVEs, and IOCs (Indicators of Compromise). This makes the dataset a powerful foundation for building **cybersecurity-aware LLMs**, **security co-pilots**, and **automated vulnerability assessment tools**. ### ๐Ÿ“Š Whatโ€™s Inside the Cybersecurity Category? | Source | Description | Data Format | Key Themes | |:---|:---|:---|:---| | `high_quality_cybersecurity` | Manually curated high-quality instructionโ€“response pairs covering attack techniques, defense, and policy | JSONL (shards) | MITRE ATT&CK, OWASP, incident response | | `heimdall_v1_1` | ~78 MB of security conversations, including red/blue team dialogues and threat analysis | JSONL | Multi-turn chat, tool usage | | `fenrir_v2_1` | 411 MB, 2.1M+ entries โ€” massive corpus of cybersecurity Q&A, exploit descriptions, and code snippets | JSONL | Exploit code, CVEs, vulnerability research | | `clydeiii_cybersecurity` | 20 MB yearly security corpus, aggregated from public reports and advisories | JSONL | Year-in-review, trends, threat landscape | | `precinct6_cybersecurity` | 2.1 GB graph-based dataset with network signals, attack graphs, and reference materials | JSONL (graph+signals+ref) | Network attacks, lateral movement, detection | | `savani_cyber_attack` | 17 MB CSV of labeled cyber attack incidents with detailed features | CSV | Attack classification, feature analysis | ### ๐Ÿงช Attack & Exploit Examples Here are a few representative samples (sanitized) from the dataset: **Example 1 โ€“ SQL Injection Exploit** ```json { "source": "fenrir_v2_1", "instruction": "Explain how an attacker could exploit a vulnerable login form using SQL injection. Provide a sample malicious input.", "response": "An attacker could bypass authentication by injecting SQL logic. For a query like:\n`SELECT * FROM users WHERE username='$user' AND password='$pass'`,\nthe attacker might enter `admin' --` as the username and anything as password. The resulting query becomes:\n`SELECT * FROM users WHERE username='admin' --' AND password='...'`\nThe `--` comments out the password check, granting access as admin. More advanced attacks use UNION to extract data." } ``` **Example 2 โ€“ Red Team Command Sequence** ```json { "source": "heimdall_v1_1", "instruction": "As a red team operator, list the steps you would take after gaining initial access to a Windows machine using a phishing payload.", "response": "1. Establish persistence: `schtasks /create /tn \"Updater\" /tr \"C:\\malware.exe\" /sc hourly`\n2. Enumerate local users: `net user /domain`\n3. Dump credentials: `mimikatz sekurlsa::logonpasswords`\n4. Lateral movement: use PsExec to move to file server.\n5. Exfiltrate data: compress sensitive files and upload via DNS tunneling.\nAlways maintain C2 communication over HTTPS to blend in." } ``` **Example 3 โ€“ Defense Playbook (Blue Team)** ```json { "source": "high_quality_cybersecurity", "instruction": "An IDS alert flags unusual outbound DNS traffic from a workstation. What's the immediate response?", "response": "1. Isolate the workstation from the network (VLAN change or port shutdown).\n2. Capture volatile memory and network logs for forensics.\n3. Check DNS queries: if long, random-looking subdomains, suspect DNS tunneling.\n4. Scan for malware with updated signatures.\n5. Review firewall logs for similar traffic from other hosts.\n6. If confirmed, initiate incident response playbook for data exfiltration." } ``` ### ๐ŸŽ“ How to Train a Cybersecurity-Focused LLM ```python from datasets import load_dataset REPO = "Manusagents/GPT-5.5-Gemini-3.1-Pro-Grok-4-Claude-Fable-5-Mythos-5-Qwen-3.7-Max-and-more-Distillation-Dataset" # Load only cybersecurity category cyber_ds = load_dataset(REPO, split="train", data_files="data/cybersecurity/**/*.jsonl", streaming=True) # Or load specific sources fenrir = load_dataset(REPO, split="train", data_files="data/cybersecurity/fenrir_v2_1/*.jsonl") # Format for SFT def format_security_sample(example): return { "text": f"### Security Task:\n{example['instruction']}\n\n### Expert Response:\n{example['response']}" } cyber_ds = cyber_ds.map(format_security_sample) # Now train with your favourite framework (transformers, axolotl, etc.) ``` **Curriculum Idea**: 1. Start with `high_quality_cybersecurity` and `heimdall_v1_1` for foundational attack/defense conversations. 2. Introduce `fenrir_v2_1` for exploit code and vulnerability deep dives. 3. Use `precinct6_cybersecurity` for network-level attack graph understanding. ### ๐Ÿ›ก๏ธ Ethical & Responsible Use - **For Defensive Purposes Only**: This data is intended to strengthen AI for defense, threat detection, and security education. Do not use it to generate active attack code without proper authorization. - **No Zero-Day Exploits**: The dataset contains only already-public vulnerabilities and techniques. It does not include zero-day or weaponized exploits. - **Responsible Disclosure**: If you fine-tune a model with this data, we recommend adding a safety preamble warning that generated security content must be used legally and ethically. - **Dual-Use Awareness**: While we believe open access improves collective security, we acknowledge the dual-use nature. Users are expected to follow applicable laws and guidelines. > โš ๏ธ **Disclaimer**: This dataset includes descriptions of attack techniques for educational purposes. The maintainers are not responsible for misuse. ### ๐Ÿ“ˆ Future Additions - Integration with CTF (Capture The Flag) challenge walkthroughs. - More blue team procedures and SOAR playbooks. - Anonymized real-world incident response logs (with permission). --- ## ๐Ÿ› ๏ธ How to Use & Train *(Same as before but with the cybersecurity section incorporated. Keep the loading examples, streaming, SFT script, curriculum learning, schema reference, etc.)* ```python # Example: Train a cybersecurity model using LoRA from transformers import AutoModelForCausalLM, AutoTokenizer, TrainingArguments, Trainer from peft import LoraConfig, get_peft_model, TaskType from datasets import load_dataset # ... same as before but using the cybersecurity dataset split ... ``` *(Full script provided in previous version; it remains unchanged. Ensure REPO variable points correctly.)* --- ## ๐Ÿ” Licensing & Limitations *(Same as before, with MIT license, upstream license table, intended uses, not recommended uses, limitations, citation. Ensure citation is updated to v8.1 with 73 sources.)* **Updated Citation**: ```bibtex @misc{open_distillation_codex_2026, title = {The Open Distillation Codex: 16M+ samples + 7090 code repositories from 73 sources with Cybersecurity Attack & Defense}, author = {Manusagents}, year = {2026}, url = {https://huggingface.co/datasets/Manusagents/GPT-5.5-Gemini-3.1-Pro-Grok-4-Claude-Fable-5-Mythos-5-Qwen-3.7-Max-and-more-Distillation-Dataset}, note = {v8.1 - 516 shards + 7090 archives, 73 sources, 8 categories, 81.2 GB} } ``` --- ## ๐Ÿ“œ Changelog | Version | Date | Key Changes | |---|---|---| | `v1.0`โ€“`v5.0` | 2026-07-01 to 05 | Progressive builds: 117K โ†’ 20.7M samples | | `v6.0` | 2026-07-06 | Category restructuring: `data///shard-*.jsonl` | | `v7.0` | 2026-07-06 | Training scripts + full processing started | | `v8.0 FINAL` | 2026-07-06 | **ALL sources FULLY processed โ€” no skipping. Verified 79.13 GB.** | | `v8.1` | 2026-07-08 | **Added 5 external cybersecurity datasets to `data/cybersecurity/`: heimdall_v1_1, fenrir_v2_1, clydeiii_cybersecurity, precinct6_cybersecurity, savani_cyber_attack. Total now ~81.2 GB, 73 sources. Enhanced README with cybersecurity deep dive and attack/defense examples.** | ---

### ๐ŸŒŸ The Open Distillation Codex ๐ŸŒŸ **73 sources** ยท **8 categories** ยท **7,090 repositories** ยท **516 shards** ยท **81.2 GB**
*Built one archive at a time. No skipping. All sources fully processed. Released under MIT.*
--- > *"Two layers. Eight categories. Seventy-three sources. One codex. Now armed with cybersecurity attack and defense."*
Streaming No Skip JSONL HF Cyber

**โ€” The Open Distillation Codex โ€”**