agent-practice-audit
Pass
Audited by Gen Agent Trust Hub on Nov 2, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [DATA_EXFILTRATION]: The skill scans highly sensitive local files and directories as its primary auditing function.
- It accesses session transcript logs in paths like
~/.claude*,~/.codex*, and~/.grok*to analyze conversation history. - It inspects security-critical paths such as
~/.ssh,~/.aws, and.envfiles to check for protective deny rules. - It reads configuration settings from
settings.json,config.toml, and crontab entries. - Mitigation: The skill implementation in
extract.pyandconfig_scan.pyredacts prompt text and credentials, hashes project identities, and only exposes aggregated metrics to the agent context. Output is constrained to a local directory verified to be outside any git repositories bysafe_output.py. - [COMMAND_EXECUTION]: The skill uses multiple internal and external command execution paths.
run_audit.pyorchestrates the audit process by invoking sibling Python scripts viasubprocess.run.consensus.pyexecutes model CLI binaries (claude,codex,grok,gemini) to perform multi-model verification of extracted practices.- Mitigation: Command execution for model verification includes isolation flags (e.g.,
--sandbox read-only,--setting-sources local) where supported to prevent sub-processes from accessing user configuration or MCP servers. - [EXTERNAL_DOWNLOADS]: The skill fetches documentation from a hardcoded allowlist of official vendor domains, including
anthropic.com,openai.com,google.dev,cursor.com, andx.ai, to refresh its practice list. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from two main vectors which could theoretically influence the auditing agent's behavior.
- Ingestion Points: Conversation logs (
sessions.jsonl) and external web documentation pages. - Boundary Markers: The model verification prompt (
verify-prompt.md) uses<<<CANDIDATESand<<<SOURCEdelimiters to isolate instructions from data. - Capability Inventory: Shell command execution via
subprocessand dynamic loading usingimportlib. - Sanitization: Log data is heavily distilled into metrics before reaching the agent. External verification results are validated against a strict JSON schema and verified across multiple independent model calls.
- [DYNAMIC_EXECUTION]: The skill performs dynamic module loading in
run_audit.pyusingimportlib.utilto access functionality fromextract.py. It also dynamically constructs CLI commands for model verifiers based on the available flags in the installed versions of those tools.
Audit Metadata