legal-harness-init
Pass
Audited by Gen Agent Trust Hub on Nov 30, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes shell scripts (
detect.sh,write.sh,record-init-env.sh, etc.) that execute system utilities such asawk,sed, andgrepto perform environment detection and file management. - [DATA_EXFILTRATION]: The skill accesses local configuration and history data to log the AI environment. Specifically,
scripts/session-model.pyreads metadata from local AI agent session history files (e.g., in~/.claude/or~/.codex/) to extract model names and directory contexts. Additionally,scripts/record-init-env.shreads the values of model-related environment variables likeANTHROPIC_MODELto record the initialization environment. - [DYNAMIC_EXECUTION]:
scripts/test-audit.pyexecutes the skill's own scripts viasubprocess.run()within a temporary directory to perform internal regression testing. - [INDIRECT_PROMPT_INJECTION]: The skill manages an attack surface for indirect prompt injection as it generates instruction files used by other agent sessions. Evidence chain: (1) Ingestion points: User input for module content and session metadata from harness history files. (2) Boundary markers: Generated content is enclosed in managed markers (e.g.,
<!-- legal-harness-init:m1-role:start -->). (3) Capability inventory:scripts/write.shandscripts/record-init-env.shperform local file writes to persistent configuration files. (4) Sanitization:scripts/validate-content.shimplements regex-based sanitization to block the inclusion of credentials and sensitive legal information.
Audit Metadata