KaliBench: A Fine-Grained Benchmark for Cybersecurity Tool Use on Kali Linux with Runtime-Free Verifiable Rewards

Hugging Face Daily Papers Papers

Summary

KaliBench 介绍了一个针对 Kali Linux 的细粒度基准与数据集,涵盖 8,504 个自然语言到 CLI 命令的配对,用于评估 LLM 生成可执行网络安全工具命令的能力,并通过无运行时的可验证奖励支持模型训练。

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.
Original Article
View Cached Full Text

Cached at: 10/02/26, 08:27 AM

Paper page - KaliBench: A Fine-Grained Benchmark for Cybersecurity Tool Use on Kali Linux with Runtime-Free Verifiable Rewards

Source: https://huggingface.co/papers/2610.02206

Abstract

LLMsareincreasinglyappliedtocybersecurityworkflows,wheretheyareexpectedtotranslateanalysts’intentintotoolinvocations.However,existingevaluationsfocusonknowledge-basedassessmentsorend-to-endagentictasks,anddonotdirectlymeasureLLMs’abilitytogenerateexecutablecommandsforreal-worldcybersecuritytools.Thisgapiscriticalbecausecybersecurityoperationsrelyonstrictcommand-lineinterfaces(CLIs),whereminorsyntaxerrors,incorrectflag--valuebindings,orargumentmisorderingcaninvalidateexecution.WeintroduceKaliBench,afine-grainedbenchmarkanddatasetfornatural-language--to--CLItranslationonKaliLinux,comprising8,504query--commandpairsspanning1,642toolsacross23capabilitydimensionsand5securityphases.KaliBenchisconstructedviaamanuscript-groundedpipelinewithdeterministiccanonicalizationandalias-awareevaluation,enablingpreciseandreproducibleassessmentoftoolselectionandargumentconstruction.Toensurebothsemanticcorrectnessandpracticalexecutability,wedevelopamulti-stageverificationpipelinethatcombinesLLM-basedvalidation,sandboxedterminalexecution,andhuman-in-the-looprefinement.Buildingonthesefine-grained,deterministicsignals,KaliBenchfurtherenablesruntime-freeverifiablerewardsfortraining.Acrossthreeevaluationmodesand24configurationsofgeneral-purposeandsecurity-focusedopen-weightmodels,noopen-weightmodelexceeds42%exact-commandaccuracyintheunrestrictedsetting,highlightingthedifficultyofaccurateCLI-basedcybersecuritytoolusewithoutexplicittoolhints.Wefurthershowthatsupervisedfine-tuningandreinforcementlearningwithverifiablerewardsderivedfromKaliBenchsignificantlyimprovean8Bmodelandachieveperformancecomparabletoa685BMoEmodel.

View arXiv pageView PDFProject pageGitHub4Add to collection

Similar Articles

)

TLDR AI

Vercel releases DeepsecBench, a benchmark for evaluating AI models' ability to find cybersecurity vulnerabilities in application code, with findings that open-weight models are becoming more cost-effective for security scanning.

I made my own cybersecurity benchmark and ran Qwen3.8 27B, here's how a local model actually does at hacking

Reddit r/LocalLLaMA

A community member built RangeBench, an MIT-licensed cybersecurity benchmark where models get a shell in an isolated Docker box to capture flags across pwn, web, crypto, rev, forensics, and multi-stage ranges. Local Qwen3.8 27B scored 28.1% first-try and 0% on pwn, while cheap API models like MiMo 2.6 Flash and GPT-6 Luna reached 73.7% and 90.9%, highlighting the real-world risk of increasingly capable hacking models.

ProgramBench (5 minute read)

TLDR AI

ProgramBench is a new benchmark that evaluates AI agents' ability to reconstruct complete software projects from compiled binaries and documentation without access to source code or decompilation tools.

@seclink: It seems we can create benchmarks for more languages. Overnight, everyone is rushing to evaluate the cybersecurity capabilities of large language models, to see if this is real emergence or just hype. Next, we need to continue adding high-quality samples for next.js, rust, golang, c/c++, python...

X AI KOLs Timeline

This article discusses creating benchmarks for more programming languages to evaluate the cybersecurity capabilities of large language models, and announces the release of JSEF v1.3.0, a Java security teaching framework and benchmark for measuring the vulnerability detection capabilities of SAST tools and LLMs.

RedBench: A Universal Dataset for Comprehensive Red Teaming of Large Language Models

arXiv cs.CL

RedBench introduces a universal dataset aggregating 37 benchmark datasets with 29,362 samples across 22 risk categories and 19 domains to enable standardized and comprehensive red teaming evaluation of large language models. The work addresses inconsistencies in existing red teaming datasets and provides baselines, evaluation code, and open-source resources for assessing LLM robustness against adversarial prompts.