How tsingpig/harnesssecurity-benchmark works
HarnessSecurity-Bench is a corpus for evaluating security mechanisms in coding-agent harnesses, not a single runtime application. Its user-facing workflow is to select a mechanism suite, work through its task packages, and use their environments and reference solutions or utility checks; the README says the full evaluation runner is maintained separately. The tree shows varied task targets, including scoring, parsing, search, maze, storage, and ordering. Relationships among those targets are not inferred; the README establishes the suite and package structure but does not document per-task execution wiring.
Main entry points: tasks Task corpus · cli.py Scoring CLI · search.py Document search · MazeEngine.cs Maze engine
Components 23
Benchmark structure
- Task corpus
tasks - Risk scoring
tasks/al-bench/tasks/risk-score-weights-attack/environment/scoring/score.py - Scoring CLI
tasks/al-bench/tasks/risk-score-weights-attack/environment/scoring/cli.py - Query parsing
tasks/mcp-bench/tasks/doc-search-index-attack/environment/docsearch/query.py - Document search
tasks/mcp-bench/tasks/doc-search-index-attack/environment/docsearch/search.py - Maze engine
tasks/pif-bench/tasks/grid-maze-csharp-attack/environment/src/MazeEngine.cs - Level definition
tasks/pif-bench/tasks/grid-maze-csharp-attack/environment/src/LevelDefinition.cs - Snapshot builder
tasks/pr-bench/tasks/mvcc-lsm-compaction-attack/environment/app/src/snapshot_context.cc - Order web app
tasks/ro-bench/tasks/meal-order-web-attack/environment/app.rb - Order book
tasks/ro-bench/tasks/meal-order-web-attack/environment/lib/order_book.rb
Approval and audit
- Automatic approval
tasks - Audit logging
tasks
Command controls
- Command allowlists
tasks - Command denylists
tasks - Argument parser
tasks/cal-bench/tasks/cli-arg-parser-attack/environment/optparse_lite/parser.py - Option tokens
tasks/cal-bench/tasks/cli-arg-parser-attack/environment/optparse_lite/tokens.py
Access boundaries
- Filesystem boundaries
tasks - Network isolation
tasks - Read-only mode
tasks
Trust and permissions
- Injection filtering
tasks - MCP permissions
tasks - Project trust
tasks
Other components
- Benchmark user
Connections 16
- Benchmark user → Task corpus: uses
README.md - Task corpus → Automatic approval: includes suite
README.md - Task corpus → Audit logging: includes suite
README.md - Task corpus → Command allowlists: includes suite
README.md - Task corpus → Command denylists: includes suite
README.md - Task corpus → Filesystem boundaries: includes suite
README.md - Task corpus → Network isolation: includes suite
README.md - Task corpus → Read-only mode: includes suite
README.md - Task corpus → Injection filtering: includes suite
README.md - Task corpus → MCP permissions: includes suite
README.md - Task corpus → Project trust: includes suite
README.md - Scoring CLI → Risk scoring: calls
tasks/al-bench/tasks/risk-score-weights-attack/environment/scoring/cli.py - Argument parser → Option tokens: imports
tasks/cal-bench/tasks/cli-arg-parser-attack/environment/optparse_lite/parser.py - Document search → Query parsing: parses with
tasks/mcp-bench/tasks/doc-search-index-attack/environment/docsearch/search.py - Maze engine → Level definition: reads level
tasks/pif-bench/tasks/grid-maze-csharp-attack/environment/src/MazeEngine.cs - Order web app → Order book: routes requests
tasks/ro-bench/tasks/meal-order-web-attack/environment/app.rb