Researchers introduce KaliBench, a benchmark measuring how accurately language models translate natural-language requests into executable commands for Kali Linux security tools. Its results reveal a substantial gap: in the unrestricted setting, none of the evaluated open-weight models scored above 42% exact-command accuracy.
The benchmark contains 8,504 query-command pairs covering 1,642 tools, 23 capability dimensions and five phases of security work. It assesses both whether a model selects the right tool and whether it constructs that tool’s arguments correctly. These details matter because even small mistakes in syntax, flags or argument order can prevent a command from running.
For reproducible evaluation, KaliBench uses deterministic command canonicalization and alias-aware scoring. Its dataset was also checked through a multi-stage process involving language-model validation, execution in a sandboxed terminal and human refinement. The resulting fine-grained signals can support training rewards that are verifiable without executing commands at training time.
Across three evaluation modes and 24 configurations, supervised fine-tuning and reinforcement learning with these rewards substantially improved an 8-billion-parameter model. The authors report that its resulting performance was comparable to that of a 685-billion-parameter mixture-of-experts model. The paper provides further detail on the benchmark, verification process and evaluations: KaliBench on arXiv.