concept-guardrails
Pass
Audited by Gen Agent Trust Hub on Sep 23, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill implements a runtime context injection mechanism using Claude Code hooks (PreToolUse and PostToolUse). The scripts
runtime/scripts/drift-context.shandruntime/scripts/post-check.shperform upward directory traversal to find specification files (CONCEPT.md, PIPELINE.md, SYNCS.md). The content of these files is extracted and injected into the agent's session asadditionalContext. This creates an attack surface where malicious instructions embedded in a project's specification files could influence or override the agent's behavior during code edits. - Ingestion points: Specification files (
CONCEPT.md,PIPELINE.md,SYNCS.md) are read by the hook scripts when the agent edits files in the project. - Boundary markers: The scripts use delimiters such as
[filename ## section]andDeclared boundaries:to separate injected content from the rest of the prompt. - Capability inventory: The skill possesses file system traversal and read capabilities, and triggers on file write/edit operations to perform its checks.
- Sanitization: The scripts use
sedto extract specific sections but do not perform sanitization or escaping of the text content within those sections before injection into the context. - [COMMAND_EXECUTION]: The skill relies on several bash scripts (
session-start.sh,drift-context.sh,post-check.sh) to perform its primary functions. These scripts are executed via Claude Code's hook system and utilize standard system utilities such asfind,grep,sed,awk, andjqfor file system scanning and text processing.
Audit Metadata