vscode-extension-builder-lawvable
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill implements a template for AI agent integration that is vulnerable to indirect prompt injection due to its ingestion of untrusted external data and powerful file-system capabilities.
- Ingestion points: The
FileBridgeclass inassets/file-bridge/src/fileBridge.tswatches and reads JSON command files from the.vscode/ai-bridge/commands/directory, which is intended to be written to by external AI agents. - Boundary markers: The mechanism uses JSON as a structural boundary but lacks semantic boundary markers or instructions to prevent the agent from executing malicious commands delivered through this channel.
- Capability inventory: The extension template in
assets/file-bridge/src/extension.tsprovides handlers forreadFile(allowing file content extraction),writeFile(allowing file creation/modification), andexecuteCommand(restricted via whitelist). - Sanitization: The
readFileandwriteFilehandlers in the template implementation (assets/file-bridge/src/extension.ts) fail to sanitize or validate theparams.filePathinput, allowing potential access to any file the VS Code process can reach. This implementation is less secure than the best-practice examples documented inreferences/ai-integration.md.
Audit Metadata