KaliBench: A Fine-Grained Benchmark for Cybersecurity Tool Use on Kali Linux with Runtime-Free Verifiable Rewards
cs.CL, cs.AI, cs.CR
Submitted: 2026-10-01
Updated: 2026-10-01
Comments: Accepted at NeurIPS 2026 Evaluations and Datasets Track. Project page: https://risys-lab.github.io/KaliBench/ | Github: https://github.com/RISys-Lab/KaliBench
Code: https://github.com/RISys-Lab/KaliBench
Project page: https://risys-lab.github.io/KaliBench
License: http://creativecommons.org/licenses/by/4.0/
The gist: LLMs are increasingly applied to cybersecurity workflows, where they are expected to translate analysts' intent into tool invocations.
Terminology
Abstract
LLMs are increasingly applied to cybersecurity workflows, where they are expected to translate analysts' intent into tool invocations. However, existing evaluations focus on knowledge-based assessments or end-to-end agentic tasks, and do not directly measure LLMs' ability to generate executable commands for real-world cybersecurity tools. This gap is critical because cybersecurity operations rely on strict command-line interfaces (CLIs), where minor syntax errors, incorrect flag--value bindings, or argument misordering can invalidate execution. We introduce KaliBench, a fine-grained benchmark and dataset for natural-language--to--CLI translation on Kali Linux, comprising 8,504 query--command pairs spanning 1,642 tools across 23 capability dimensions and 5 security phases. KaliBench is constructed via a manuscript-grounded pipeline with deterministic canonicalization and alias-aware evaluation, enabling precise and reproducible assessment of tool selection and argument construction. To ensure both semantic correctness and practical executability, we develop a multi-stage verification pipeline that combines LLM-based validation, sandboxed terminal execution, and human-in-the-loop refinement. Building on these fine-grained, deterministic signals, KaliBench further enables runtime-free verifiable rewards for training. Across three evaluation modes and 24 configurations of general-purpose and security-focused open-weight models, no open-weight model exceeds 42% exact-command accuracy in the unrestricted setting, highlighting the difficulty of accurate CLI-based cybersecurity tool use without explicit tool hints. We further show that supervised fine-tuning and reinforcement learning with verifiable rewards derived from KaliBench significantly improve an 8B model and achieve performance comparable to a 685B MoE model.
Sources
- Qwen3-Coder-Next Technical Report
- DeepSeek-V3.2: Pushing the Frontier of Open Large Language Models
- GLM-5: from Vibe Coding to Agentic Engineering
- The Llama 3 Herd of Models
- LoRA: Low-Rank Adaptation of Large Language Models
- SecBench: A Comprehensive Multi-Dimensional Benchmarking Dataset for LLMs in Cybersecurity
- gpt-oss-120b & gpt-oss-20b Model Card
- Qwen2.5 Technical Report
- DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
- Gemma 3 Technical Report
- Llama-3.1-FoundationAI-SecurityLLM-8B-Instruct Technical Report
- Qwen3 Technical Report
- Llama-3.1-FoundationAI-SecurityLLM-Reasoning-8B Technical Report
- CS-Eval: A Comprehensive Large Language Model Benchmark for CyberSecurity
- DefenderBench: A Toolkit for Evaluating Language Agents in Cybersecurity Environments
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering