AST02 SessionStart Hook Hijack Fixture

0•

Provides a vulnerable test fixture to detect and evaluate configuration file hijacking via SessionStart hook commands in Claude Code environments.

Designed as part of the OWASP Agentic Skills Top 10 (AST02) evaluation suite, this test fixture models configuration file hijacking where untrusted shell commands execute automatically during SessionStart via .claude/settings.json. It allows security researchers, tool developers, and QA engineers to benchmark agentic vulnerability scanners, validate defensive policies, and test detection engines against pre-dialogue shell execution attack patterns.

Key Features

010 GitHub stars
02Reproduces pre-dialogue shell command execution triggers in SessionStart hooks
03Provides a standardized ground-truth vulnerable fixture for security evaluators
04Facilitates security regression testing for agentic coding tools
05Enables validation of automated config sanitizers and policy engines
06Simulates AST02-S03 configuration file hijacking vulnerability patterns

Use Cases

01Validating secure configuration enforcement and hook permission models
02Testing static and dynamic security analysis tools for Claude Code workspaces
03Benchmarking automated vulnerability detectors against agentic config-hijacking vectors