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 as awk, sed, and grep to 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.py reads 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.sh reads the values of model-related environment variables like ANTHROPIC_MODEL to record the initialization environment.
  • [DYNAMIC_EXECUTION]: scripts/test-audit.py executes the skill's own scripts via subprocess.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.sh and scripts/record-init-env.sh perform local file writes to persistent configuration files. (4) Sanitization: scripts/validate-content.sh implements regex-based sanitization to block the inclusion of credentials and sensitive legal information.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 30, 2026, 06:36 PM