ctx
Fail
Audited by Gen Agent Trust Hub on Mar 31, 2026
Risk Level: HIGHCREDENTIALS_UNSAFECOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [CREDENTIALS_UNSAFE]: The skill maintains a highly sensitive configuration file at
~/.config/ctx/credentials.yamlcontaining Cloudflare API tokens, AI service keys, and site-specific cookies. Furthermore, thectx readcommand allows reading any local file viafile://or direct paths, which could be used to expose system secrets like SSH keys or.envfiles. - [COMMAND_EXECUTION]: The feedback mechanism described in
references/feedback.mduses theghCLI with complex shell heredocs. This pattern is vulnerable to command injection if malicious content from external documentation or error logs is interpolated into the command body by the agent. - [DATA_EXFILTRATION]: The integration of a 'file feedback' workflow using
gh issue createto a remote repository (ethan-huo/ctx) provides an easy path for data exfiltration. An agent could be manipulated via indirect prompt injection to include the contents of thecredentials.yamlfile or other sensitive local data in a GitHub issue. - [PROMPT_INJECTION]: The skill's core workflow involves processing untrusted content from the web (
ctx read,ctx crawl,ctx json). This creates a significant surface for indirect prompt injection attacks where a website can host instructions that the agent might follow, leading to unauthorized tool use or data disclosure. - [REMOTE_CODE_EXECUTION]: The
addScriptTagfeature inctx readandctx scrapeallows the injection and execution of arbitrary JavaScript within the browser rendering context. This dynamic execution capability could be exploited to perform actions in the context of the rendered site or to influence the content extraction process maliciously. - [EXTERNAL_DOWNLOADS]: The skill facilitates downloads and network requests to Cloudflare, GitHub, and arbitrary URLs. While necessary for its function, this behavior increases the risk when combined with the data processing capabilities mentioned above.
Recommendations
- AI detected serious security threats
Audit Metadata