vscode-rest-client-generator
Pass
Audited by Gen Agent Trust Hub on Sep 4, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill includes TypeScript snippets (
scripts/generate-http-files.tsandscripts/http-gen.ts) that utilize the standard Node.jsfsmodule to perform file system operations. Specifically, it usesfs.mkdirSyncandfs.writeFileSyncto create directories and generate.httpfiles based on API route metadata. This functionality is consistent with the skill's primary purpose as a code generator. - [INDIRECT_PROMPT_INJECTION]: The skill describes a workflow that involves scanning application source code to extract API route definitions. This ingestion of external, untrusted data represents a potential attack surface, although the logic provided is strictly template-driven.
- Ingestion points: The
scanRoutesfunction (referenced inscripts/http-gen.ts) is designed to read route definitions from the user's source directory (e.g.,./src). - Boundary markers: The skill does not define explicit boundary markers or instructions to ignore embedded prompts within the source data.
- Capability inventory: The skill possesses file-writing capabilities (
fs.writeFileSync) which are used to output the results of the scanned data. - Sanitization: The generation logic performs basic regex-based parameter conversion (
url.replace) but lacks validation for other metadata fields like route names or descriptions.
Audit Metadata