skill-refactor
Pass
Audited by Gen Agent Trust Hub on Apr 12, 2026
Risk Level: SAFEDATA_EXFILTRATIONPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DATA_EXFILTRATION]: The skill accesses sensitive session logs and history files located in
~/.codex/sessions,~/.claude/projects, and~/.kimi/sessions. While this is necessary for its auditing purpose, these files often contain sensitive user data and credentials. The skill includes regex-based redaction to mitigate exposure risk. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection as it ingests untrusted data from session logs and external tool outputs.
- Ingestion points: Reads content from
~/.codex/sessions,~/.agents/otel-collector/data/processed/stats.json, and project-localSKILL.mdfiles. - Boundary markers: Does not utilize explicit delimiters or isolation markers when presenting log snippets to the agent.
- Capability inventory: Capable of writing patches to files in
~/dev/agent-skillsand executing validation scripts likequick_validate.pyandskill_gate.py. - Sanitization: Implements regex-based redaction for emails, tokens, and common secret patterns (e.g.,
sk-,Bearer). - [COMMAND_EXECUTION]: The skill executes several local commands and scripts, including
scan_codex_sessions.py,quick_validate.py,skill_gate.py, and CLI tools such asclaude auth status,rg, andfd. These operations are performed within the local environment for status checking and validation tasks.
Audit Metadata