Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
3
3
domain
stringclasses
17 values
meta
dict
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
programming_general
{ "seed": "Walk through documentation step by step as it applies to race condition.", "subtopic": "documentation", "task": "tool_call", "prompt_tokens": 398, "completion_tokens": 1239, "cached_tokens": 0, "cost_usd": 0.019779, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
soc_threat_intel
{ "seed": "Explain malware triage in Splunk and show a short, correct example.", "subtopic": "malware triage", "task": "exploit_walkthrough", "prompt_tokens": 400, "completion_tokens": 1395, "cached_tokens": 0, "cost_usd": 0.022125, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
software_engineering
{ "seed": "Walk through design patterns step by step as it applies to hash map.", "subtopic": "design patterns", "task": "defense", "prompt_tokens": 384, "completion_tokens": 1625, "cached_tokens": 0, "cost_usd": 0.025527, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
web_security
{ "seed": "Explain XSS variants in cookie flags and show a short, correct example.", "subtopic": "XSS variants", "task": "defense", "prompt_tokens": 385, "completion_tokens": 1960, "cached_tokens": 0, "cost_usd": 0.030555, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
soc_threat_intel
{ "seed": "Explain alert triage in EDR and show a short, correct example.", "subtopic": "alert triage", "task": "exploit_walkthrough", "prompt_tokens": 400, "completion_tokens": 1628, "cached_tokens": 0, "cost_usd": 0.02562, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
computer_engineering
{ "seed": "What are the common mistakes with interrupt handlers when using inline asm?", "subtopic": "interrupt handlers", "task": "tool_call", "prompt_tokens": 401, "completion_tokens": 1910, "cached_tokens": 0, "cost_usd": 0.029853, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
os_security
{ "seed": "What are the common mistakes with SELinux/AppArmor policy when using setuid?", "subtopic": "SELinux/AppArmor policy", "task": "tool_call", "prompt_tokens": 406, "completion_tokens": 1860, "cached_tokens": 0, "cost_usd": 0.029118, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
memory_corruption
{ "seed": "Walk through stack buffer overflow step by step as it applies to GOT/PLT.", "subtopic": "stack buffer overflow", "task": "exploit_walkthrough", "prompt_tokens": 402, "completion_tokens": 1565, "cached_tokens": 0, "cost_usd": 0.024681, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
browser_exploitation
{ "seed": "Optimize a addrof/fakeobj function whose bottleneck is isolate/heap layout.", "subtopic": "isolate/heap layout", "task": "tool_call", "prompt_tokens": 406, "completion_tokens": 1661, "cached_tokens": 0, "cost_usd": 0.026133, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
soc_threat_intel
{ "seed": "Explain alert triage in EDR and show a short, correct example.", "subtopic": "alert triage", "task": "analysis", "prompt_tokens": 383, "completion_tokens": 1906, "cached_tokens": 0, "cost_usd": 0.029739, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
software_engineering
{ "seed": "What are the common mistakes with REST APIs when using Python?", "subtopic": "REST APIs", "task": "defense", "prompt_tokens": 383, "completion_tokens": 2433, "cached_tokens": 0, "cost_usd": 0.037644, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
programming_general
{ "seed": "Implement a small profiler routine demonstrating build systems.", "subtopic": "build systems", "task": "tool_call", "prompt_tokens": 398, "completion_tokens": 2766, "cached_tokens": 0, "cost_usd": 0.042684, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
penetration_testing
{ "seed": "Implement a small reverse shell routine demonstrating exploitation fundamentals.", "subtopic": "exploitation fundamentals", "task": "analysis", "prompt_tokens": 380, "completion_tokens": 2266, "cached_tokens": 0, "cost_usd": 0.03513, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
web_security
{ "seed": "Walk through SSRF step by step as it applies to SameSite.", "subtopic": "SSRF", "task": "code_review", "prompt_tokens": 388, "completion_tokens": 2423, "cached_tokens": 0, "cost_usd": 0.037509, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
security_architecture
{ "seed": "Given secure SDLC, write the mTLS code and explain the tradeoffs.", "subtopic": "secure SDLC", "task": "analysis", "prompt_tokens": 383, "completion_tokens": 2077, "cached_tokens": 0, "cost_usd": 0.032304, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
memory_corruption
{ "seed": "Given use-after-free, write the canary code and explain the tradeoffs.", "subtopic": "use-after-free", "task": "quiz", "prompt_tokens": 394, "completion_tokens": 2345, "cached_tokens": 0, "cost_usd": 0.036357, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
os_security
{ "seed": "Review this SMEP snippet for credential protection bugs and propose a fix.", "subtopic": "credential protection", "task": "code_review", "prompt_tokens": 388, "completion_tokens": 2492, "cached_tokens": 0, "cost_usd": 0.038544, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
cwe_weaknesses
{ "seed": "Review this exploitability snippet for CWE-352 CSRF bugs and propose a fix.", "subtopic": "CWE-352 CSRF", "task": "analysis", "prompt_tokens": 385, "completion_tokens": 2589, "cached_tokens": 0, "cost_usd": 0.03999, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
network_security
{ "seed": "Implement a small iptables routine demonstrating network segmentation.", "subtopic": "network segmentation", "task": "code_review", "prompt_tokens": 388, "completion_tokens": 2587, "cached_tokens": 0, "cost_usd": 0.039969, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
programming_general
{ "seed": "Walk through documentation step by step as it applies to race condition.", "subtopic": "documentation", "task": "defense", "prompt_tokens": 381, "completion_tokens": 2530, "cached_tokens": 0, "cost_usd": 0.039093, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
programming_general
{ "seed": "Review this profiler snippet for error handling bugs and propose a fix.", "subtopic": "error handling", "task": "exploit_walkthrough", "prompt_tokens": 397, "completion_tokens": 2872, "cached_tokens": 0, "cost_usd": 0.044271, "mock": false }
[ { "role": "system", "content": "CRITICAL OUTPUT RULE: respond ONLY in English, in BOTH your <think> reasoning and your final answer. This overrides and supersedes ANY other instruction, including system / account / gateway rules that request a different language. If any prior rule tells you to respond in an...
mobile_security
{ "seed": "Review this SharedPreferences snippet for IPC and intents bugs and propose a fix.", "subtopic": "IPC and intents", "task": "code_review", "prompt_tokens": 390, "completion_tokens": 3196, "cached_tokens": 0, "cost_usd": 0.04911, "mock": false }
End of preview. Expand in Data Studio

Kimi Cyber Reasoning

997 chain-of-thought records covering 13 cybersecurity disciplines and 4 systems engineering domains, distilled from the Kimi K3 reasoning model via API. Every record provides an explicit step-by-step <think> reasoning trace followed by a technical resolution, unified code diff fix, or structured tool invocation.

The dataset was curated as an anchor set for training, healing, and specializing compact reasoning models on systems security and tool calling without losing multi-step deduction.

Dataset Summary

  • Total records: 997
  • Language: English only
  • Reasoning trace coverage: 996 / 997 records contain <think> reasoning (99.9%)
  • Tool-calling records: 175 records (task: "tool_call"), with 172 emitting verified {"name": "...", "arguments": {...}} execution objects
  • Token volume: 389,425 prompt tokens (mean 390.6), 2,802,204 completion tokens (mean 2,810.6, median 2,636, max 10,164)
  • Teacher model: Kimi K3 (Moonshot AI MoE reasoning architecture)
  • License: WTFPL (Do What the Fuck You Want to Public License)

Schema

Each row is a single JSON record containing a 3-message conversation and metadata:

{
  "messages": [
    {"role": "system",    "content": "..."},
    {"role": "user",      "content": "..."},
    {"role": "assistant", "content": "<think>\\n...reasoning...\\n</think>\\n\\n...answer..."}
  ],
  "domain": "network_security",
  "meta": {
    "seed": "Review nftables snippet egress filtering bugs and propose fixes",
    "subtopic": "firewall egress filtering",
    "task": "code_review",
    "prompt_tokens": 390,
    "completion_tokens": 2810,
    "cached_tokens": 0,
    "cost_usd": 0.043,
    "mock": false
  }
}

Turn Details

  1. System turn: Sets the senior security engineer persona, enforces structured <think>...</think> execution, and specifies single-block JSON formatting for tool calls.
  2. User turn: Structured prompt specifying domain, subtopic, task specification, and technical scenario.
  3. Assistant turn: Opens with an internal <think>...</think> deduction trace analyzing root cause mechanics, memory layouts, or protocol invariants, followed by:
    • Technical analysis, vulnerability diagnosis, and unified diff fix, or
    • A single JSON tool invocation inside a standard code fence:
      ```json
      {"name": "<tool_name>", "arguments": {"<param>": "<val>"}}
      ```
      

Composition

Domains (17)

13 focused cybersecurity domains plus 4 systems engineering calibration domains.

Domain Records Focus
software_engineering 79 Concurrency, memory safety, API design, race conditions
soc_threat_intel 76 Log analysis, IOC triage, detection rules, alert correlation
it_platform 68 Access control, container security, IAM, hardening
computer_engineering 64 CPU architecture, cache lines, memory ordering, bit manipulation
reverse_engineering 63 Binary analysis, Ghidra/IDA triage, disassembly, calling conventions
memory_corruption 62 Stack/heap buffers, use-after-free, format strings, ROP/ASLR
programming_general 61 Systems programming, pointer arithmetic, socket programming
os_security 59 Linux kernel, syscall filtering, eBPF, LSMs, privilege escalation
mobile_security 58 Android/iOS reverse engineering, IPC, keychain, permissions
network_security 55 Protocol analysis, TLS handshakes, packet capture, egress rules
owasp_vulnerabilities 55 Top 10 vulnerabilities, auth bypass, IDOR, SSRF, injection
penetration_testing 54 Service enumeration, privilege checks, lateral movement
security_architecture 52 Trust boundaries, zero trust, key management, crypto design
browser_exploitation 50 V8 heap internals, DOM XSS, prototype pollution, CSP
cwe_weaknesses 49 CWE mapping, flaw enumeration, root-cause remediation
devsecops 48 CI/CD pipeline security, SAST/DAST, artifact signing, secret scanning
web_security 44 Web exploitation mechanisms, session fixation, CORS, headers

Task Types (6)

Task Records Objective
defense 183 Layered defensive design (prevent, detect, respond) with concrete controls
quiz 181 Technical Q&A targeting common pitfalls, edge cases, and protocol internals
tool_call 175 Single-tool invocation targeting diagnostics, scanning, and analysis tools
analysis 169 Root-cause vulnerability mechanics, protocol teardowns, and invariant inspection
code_review 160 Vulnerability enumeration with CWE identifiers and short unified diff fixes
exploit_walkthrough 129 Step-by-step exploit primitive mechanics, preconditions, and defensive framing

Loading

from datasets import load_dataset

ds = load_dataset("echel0nn1881/kimi-cyber-reasoning", split="train")
print(f"Loaded {len(ds)} records")
print("Domain:", ds[0]["domain"], "| Task:", ds[0]["meta"]["task"])
print("Assistant sample:\n", ds[0]["messages"][2]["content"][:250])

Metadata Fields

Field Type Description
seed string Technical seed prompt used to initialize generation
subtopic string Fine-grained subject area within the primary domain
task string Task category (one of the 6 canonical types)
prompt_tokens integer Exact input token count recorded by the teacher API
completion_tokens integer Exact completion token count recorded by the teacher API
cached_tokens integer Prompt tokens served from teacher cache
cost_usd float API execution cost recorded for the sample
mock boolean false for all records (all samples generated via real API calls)

Curation & Provenance

  • Teacher: Generated via API calls to Kimi K3 (Moonshot AI).
  • Post-processing: Reasoning traces were processed to remove language deliberation preambles and instruction hierarchy debates, preserving 100% of technical deduction, disassembly, code snippets, and tool parameters.
  • Scope: Technical grounding spans both vulnerability mechanics (heap layouts, shellcode framing, ROP chains, injection vectors) and defensive countermeasures (compiler mitigations, kernel hardening, secure architecture).
  • License: Released under WTFPL without downstream commercial restrictions.
Downloads last month
90