ctx-core
Pass
Audited by Gen Agent Trust Hub on Nov 24, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The shell wrappers
scripts/ctx-hook.shandscripts/ctx-s1-hook.shdynamically execute Python code. Specifically,ctx-s1-hook.shuses a Python loader that compiles and executes the localctx_s1_hook.pyscript viaexec(). This logic is employed as a fail-open mechanism to ensure the agent's turn is not blocked if the hook script is missing or unreadable. - [COMMAND_EXECUTION]: The skill executes various system commands through subprocesses to perform its coordination and auditing tasks. This includes using
gitfor repository discovery and branch identification inscripts/ctx.py, the GitHubghCLI to retrieve pull request data inscripts/ctx_s2.py, and the AI agent's ownclaudeCLI to list active sessions during health checks inscripts/ctx_compare.py. - [EXTERNAL_DOWNLOADS]: The skill fetches pull request metadata from GitHub's official CLI as part of the context indexing process performed in
scripts/ctx_s2.py. - [INDIRECT_PROMPT_INJECTION]: The skill processes data from session transcripts and repository files to inject context into the agent's prompts, creating a surface for indirect prompt injection. It mitigates this risk by using explicit boundary markers (
[ctx claims]), flattening identifiers to single lines to prevent instruction breakout, and employing aguard_okfilter designed to drop strings containing credential-shaped tokens or long alphanumeric sequences.
Audit Metadata