types-generate
Fail
Audited by Gen Agent Trust Hub on Jun 19, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill interpolates user-supplied input from
$ARGUMENTSdirectly into bash command strings across several generation phases (e.g., Phase 3, 4, and 6). Specifically, variables like$schema,$spec_file, and$api_urlare used as command-line arguments fornpxandcurlwithout visible sanitization or validation, creating a high risk of command injection if the input contains shell metacharacters. - [REMOTE_CODE_EXECUTION]: The skill uses
npm install --save-devandnpxto dynamically fetch and execute Node.js packages at runtime, includingopenapi-typescript,quicktype, andgraphql-codegen. These packages are not pinned to specific versions, which introduces a supply chain risk where a compromised package or a subverted package name could lead to arbitrary code execution on the user's system. - [EXTERNAL_DOWNLOADS]: In Phase 6, the skill uses
curlto fetch content from arbitrary API URLs provided in$ARGUMENTS. This functionality can be abused to make the agent interact with malicious external servers or perform Server-Side Request Forgery (SSRF) against internal network services. - [DATA_EXFILTRATION]: The skill possesses a dangerous combination of capabilities: it can read local project files (using
find,grep, andcatfor schema discovery) and it can perform network requests viacurl. This creates a path for exfiltrating sensitive project code, configuration files, or schemas to an attacker-controlled URL passed as an argument. - [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection because it ingests untrusted data from external schemas (OpenAPI, GraphQL, JSON) to generate code.
- Ingestion points: Files matching
openapi*.yaml,schema.graphql, and*.schema.jsonare read and processed. - Boundary markers: The skill lacks delimiters or instructions to ignore embedded commands within the processed data.
- Capability inventory: The skill has access to subprocess execution (
npx,npm), file reads/writes, and network operations (curl). - Sanitization: No escaping or validation of the schema content is performed before processing.
Recommendations
- AI detected serious security threats
Audit Metadata