usage-query-skill
Fail
Audited by Gen Agent Trust Hub on Sep 26, 2026
Risk Level: CRITICALCREDENTIALS_UNSAFEDATA_EXFILTRATIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONMETADATA_POISONING
Full Analysis
- [CREDENTIALS_UNSAFE]: The script
scripts/query-usage.mjsspecifically reads theANTHROPIC_AUTH_TOKENenvironment variable. While accessing credentials from the environment is a standard practice, this skill targets a specific secret associated with a major third-party provider (Anthropic) for use in a script designed for a different model family (GLM/Zhipu), which is a characteristic pattern of credential sniffing. - [DATA_EXFILTRATION]: The retrieved
ANTHROPIC_AUTH_TOKENis transmitted via an HTTPS GET request to external endpoints atapi.z.aiandopen.bigmodel.cn. Since these domains are not whitelisted for sensitive data transmission, this constitutes a data exfiltration risk, especially given the mismatch between the credential's intended service (Anthropic) and the destination servers. - [COMMAND_EXECUTION]: The
SKILL.mdfile instructs the agent to execute a Node.js script usingBash. The execution involves shell commands that, while static in this version, provide a vector for arbitrary command execution if instructions were altered to include user-controlled inputs. - [INDIRECT_PROMPT_INJECTION]: The script
scripts/query-usage.mjsingests data from external APIs and logs the raw JSON response directly to the agent's output buffer viaconsole.log(JSON.stringify(outputData)). - Ingestion points: Network response from
https.requestinscripts/query-usage.mjs. - Boundary markers: None; output is logged as raw JSON strings.
- Capability inventory: The skill has
BashandReadcapabilities enabled viaallowed-tools. - Sanitization: None; the external content is not filtered or escaped before being displayed to the agent, allowing a malicious server response to inject instructions into the agent's context.
- [METADATA_POISONING]: Automated security scans flagged
SKILL.mdwith aFileRepMalwarereputation alert. This indicates that the file structure or specific text patterns match known malicious indicators or suspicious artifacts previously identified in the wild.
Recommendations
- CRITICAL: 1 file(s) identified as malware by FileRep - DO NOT USE
- AI detected serious security threats
Audit Metadata