newapi
Fail
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: HIGHCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
exec-tokenaction implemented inscripts/exec-token.jsallows the AI agent to execute arbitrary shell commands through the use ofexecSyncwith the{ shell: true }option. This capability permits the execution of any system command provided as an argument, which could be abused to perform unauthorized actions on the host system.\n- [INDIRECT_PROMPT_INJECTION]: The skill instructions indocs/help.mddirect the agent to fetch and process content from external URLs (https://apifox.newapi.ai/llms.txtandhttps://www.newapi.ai/llms.txt) to answer user queries.\n - Ingestion points: The agent fetches untrusted data from the specified remote
llms.txtendpoints indocs/help.md.\n - Boundary markers: There are no explicit boundary markers or instructions to ignore instructions embedded within the fetched content.\n
- Capability inventory: The skill has high-privilege capabilities including shell command execution (
scripts/exec-token.js) and file modification (scripts/inject-key.js).\n - Sanitization: The skill lacks mechanisms to sanitize or filter potential prompt injection attacks contained within the remote documentation.\n- [DATA_EXFILTRATION]: The skill relies on
scripts/sanitize.jsto redact sensitive API keys (sk-tokens) and secrets from output before it is returned to the agent. This regex-based approach is inherently brittle and may be bypassed by variations in character encoding, unusual formatting, or multi-line configurations, potentially leading to the exposure of sensitive credentials to the AI context or logs.\n- [DYNAMIC_EXECUTION]: Thescripts/exec-token.jsscript dynamically constructs shell commands at runtime by substituting placeholders with API keys fetched from a remote server, then executes the resulting string in a system shell.
Recommendations
- AI detected serious security threats
Audit Metadata