Prompt injection, system prompt leakage, and agent tool hijacking: a breakdown and hands-on test of the ZeroLeaks red-team scanner
「提示词注入+系统提示词泄露+Agent工具劫持:ZeroLeaks红队扫描器拆解实测」
The author tested the red-team scanner ZeroLeaks with a local mock service, verifying that it can identify system prompt leakage, does not produce false positives, and gives an inconclusive result when a scan cannot finish, rather than misjudging it as safe. ZeroLeaks divides tests into two categories, extraction and injection; on the local machine it returned 342 extraction probes covering 15 attack categories, and 78 injection probes divided into six behavioral categories. The tool consists of six roles: strategist, attacker, evaluator, mutator, inspector, and orchestrator. In the results, overallVulnerability includes an inconclusive level, and exit codes of 0, 1, and 2 distinguish safe, findings present, and inconclusive, making it easy to integrate into CI. The author notes that its scope covers only the model plus system prompt; it does not run tools or touch application code or memory. Its license is FSL-1.1-Apache-2.0, making it source-available rather than open source.