# VS Code + Claude Code Security Audit

> Scans VS Code, Cursor, Windsurf and Claude Code for risky security settings (Workspace Trust off, auto-run tasks, bypassPermissions, Bash(*), plaintext secrets, NODE_OPTIONS injection, Electron fuses) and fixes them only with your approval.

VS Code + Claude Code Security Audit is a paid AI agent skill on Agensi by Keane, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $20 (one-time purchase)
- Creator: [Keane](https://www.agensi.io/creators/keane)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-19
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/vs-code-claude-code-security-audit
- Tags: security, ai-agents, code-review, vscode, devops

## About this skill

### What it does

AI coding agents run inside your editor with your permissions. One wrong setting (Workspace Trust off, auto-approved terminal tools, `bypassPermissions`, an API key pasted into `settings.json`) lets a cloned repo or a prompt injection run code on your machine. This skill finds those settings and helps you fix them safely.

### How it works

1. **Read-only scan** with a bundled zero-dependency Node.js script (`scripts/audit.mjs`). No network, no installs. It never prints secret values and shows home paths as `~`.
2. **Plain-language report** grouped by severity (high / warning / info), with what each finding means and which ones are fixable.
3. **Fix with consent**: the agent lists exactly which keys change from what to what, edits only those keys (keeping comments and formatting), then re-runs the scan to show before/after counts.

### What it checks

- **Editor settings** for VS Code, Insiders, Cursor, VSCodium and Windsurf: Workspace Trust, untrusted files, automatic tasks, `chat.tools.global.autoApprove`, protocol-handler prompts, proxy SSL, extension signature verification, update settings.
- **Claude Code extension**: `allowDangerouslySkipPermissions`, `initialPermissionMode`, secret-looking names in `claudeCode.environmentVariables` (names only), `NODE_OPTIONS`, process wrapper.
- **Claude Code settings** (`~/.claude/settings.json`, local and project files): `bypassPermissions`, `skipDangerousModePermissionPrompt`, broad `Bash` / `Bash(*)` allow rules (with narrow replacements proposed).
- **Electron fuses** of the editor binary (RunAsNode, NODE_OPTIONS, inspect args, ASAR integrity, cookie encryption): report-only, with mitigations.
- **Persistent environment**: `NODE_OPTIONS` / `ELECTRON_RUN_AS_NODE` set system-wide.
- **Windows**: long-path support and `git core.longpaths`.
- Optional `--project <dir>` to check a repository's `.vscode` and `.claude` settings.

### Safety

- Never changes anything without asking; global commands and registry changes are given to you to run.
- Never reads out or moves secret values.
- Never patches signed editor binaries.

Requires Node.js 18+. Works on Windows, macOS and Linux. Source and the companion VS Code extension: https://github.com/Keanw234412/vssession

## Requires

- Node.js

## Known limitations

Requires Node.js 18+. Cannot fix Electron fuses or environment variables automatically. Does not audit remote/container settings.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the VS Code + Claude Code Security Audit skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Which editors and AI tools are compatible with this security audit?

The skill audits the 'big three' of modern AI development: VS Code, Cursor, and the Claude Code CLI. It scans both global user preferences and project-level configuration files to ensure your entire coding environment is hardened.

### Why should I use this skill instead of just asking Claude to check my settings?

Unlike a chatbot, this skill uses a logic-based scanner to identify specific JSON paths and Electron fuses that general LLMs often overlook. It also processes your sensitive configuration files locally, preventing your secrets or private paths from being sent to an external AI model during the audit.

### Will this skill automatically change my VS Code or Claude Code settings without my permission?

No. The skill follows a 'consent-first' workflow, meaning it only flags vulnerabilities and provides a report first. It will only modify settings files or permission manifests after you explicitly approve the suggested remediations.

### How does this help specifically with Claude Code tool permissions?

The skill identifies risky permissions, such as bypassed bash prompts or broad file-system access, and helps you reset them to a 'least-privilege' state. This ensures that AI agents can't execute dangerous commands or exfiltrate data without your knowledge.

### What exactly is included in the purchase and are there future updates?

You receive the standalone Node.js scanner, the integration manifest for your agentic workflow, and a guide for manual mitigations (such as registry changes) that cannot be automated. The purchase includes updates for new security benchmarks as VS Code and Claude Code evolve.

### Are there any environments where this audit might not work?

While the skill is highly effective at the user and project levels, it cannot modify signed binaries or override settings enforced by your company's IT Organization Policies. It also does not currently scan remote SSH or WSL-specific settings.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
