vscode-extension-builder-lawvable
Pass
Audited by Gen Agent Trust Hub on May 16, 2026
Risk Level: SAFEPROMPT_INJECTIONDATA_EXFILTRATIONCOMMAND_EXECUTION
Full Analysis
- [PROMPT_INJECTION]: The
file-bridgetemplate implements an Indirect Prompt Injection surface designed for external agent control. - Ingestion points: The extension monitors the
.vscode/ai-bridge/commands/directory for JSON files containing action requests (implemented inassets/file-bridge/src/fileBridge.ts). - Boundary markers: The template code does not implement specific delimiters or instructions to ignore embedded prompts within the ingested JSON data.
- Capability inventory: The extension registers handlers for reading files, writing files, and executing a whitelisted set of VS Code commands (defined in
assets/file-bridge/src/extension.ts). - Sanitization: The template code in
assets/file-bridge/src/extension.tslacks path validation, although the reference documentation (references/ai-integration.md) provides examples of how to implement such sanitization. - [DATA_EXFILTRATION]: The
readFilehandler provided in thefile-bridgetemplate (assets/file-bridge/src/extension.ts) allows reading from arbitrary file paths usingvscode.workspace.fs.readFilewithout verifying if the path is within the workspace boundaries, potentially exposing sensitive system files. - [COMMAND_EXECUTION]: The
writeFilehandler in thefile-bridgetemplate (assets/file-bridge/src/extension.ts) enables writing to arbitrary file paths on the system, which could be exploited to overwrite configuration files or other sensitive data.
Audit Metadata