intent-refresh

Pass

Audited by Gen Agent Trust Hub on Nov 22, 2026

Risk Level: SAFEDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted operator prompts from session logs (ingested from ~/.claude/projects, ~/.codex/sessions, etc., as identified in 02-attribute.py and 07-collect.py). It implements multiple mitigations: explicit instructions to models to treat input as data rather than instructions, "BEGIN/END DATA" fencing during prompt interpolation in 11-summarize.py, and an inert() function in 12-render.py that escapes Markdown comment markers to prevent injected text from disrupting the generated documentation's structure.
  • [DATA_EXFILTRATION]: Redacted session data is sent to external LLM providers (DeepSeek, GLM via OpenCode). To protect sensitive information, the skill performs thorough redaction using a comprehensive set of regex patterns in lib/common.py and 07-collect.py covering API keys, tokens, JWTs, and private keys before any data is written to the corpus or transmitted over the network.
  • [COMMAND_EXECUTION]: Pipeline scripts use subprocess to call system tools (git, cass, sqlite3, opencode). The command arguments are strictly controlled, and the refresh-step.py wrapper validates project slugs and filenames against restrictive regex patterns before execution.
  • [SAFE]: Path traversal is prevented using a confined() helper in lib/common.py which ensures all file writes are restricted to the ~/.intent-archaeology or LIVING_DOCUMENTS project directories.
  • [SAFE]: LLM calls are conducted through free-lane.sh, which enforces strict isolation by configuring the opencode runner to deny the model's ability to edit files, fetch web content, or access the host shell.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 22, 2026, 04:55 PM