VS Code + Claude Code Security Audit
by Keane
This skill finds those settings and helps you fix them safely.
$20
VS Code + Claude Code Security Audit
Example session with this skill installed
Audit my VS Code and Claude Code setup for security problems and tell me what to fix.
- Read your context and instructions
- Compiled the vs code
Summary
Scanned VS Code and Cursor user settings, ~/.claude/settings.json, and the VS Code binary fuses.
2 high, 3 warning, 2 info. 4 findings can be fixed automatically.
(Example output; your findings depend on your setup.)
Findings
| Severity | Finding | Where | Fixable |
|---|---|---|---|
| High | Workspace Trust is disabled: every cloned repo can run tasks and debug configs | VS Code settings.json | Yes |
| High | permissions.defaultMode is bypassPermissions: Claude runs commands with no prompt | ~/.claude/settings.json | Yes |
| Warning | task.allowAutomaticTasks is on: runOn: folderOpen tasks run on open | Cursor settings.json | Yes |
| Warning | Allow rule Bash(*) pre-approves any shell command | ~/.claude/settings.json | Proposed replacements |
| Warning | claudeCode.environmentVariables contains OPENAI_API_KEY (value not shown) in plaintext settings | VS Code settings.json | Manual |
| Info | Electron fuse RunAsNode is on (required by VS Code) | VS Code binary | Report-only |
| Info | git config core.longpaths is unset | Windows | Command |
Proposed fixes (need your OK)
security.workspace.trust.enabled:false→true(restart VS Code afterwards)permissions.defaultMode:"bypassPermissions"→"default"task.allowAutomaticTasks:"on"→"off"- Replace
Bash(*)withBash(npm test:*),Bash(npm run build:*),Bash(git status),Bash(git diff:*)(based on what you actually run)
Move OPENAI_API_KEY to your OS credential store or shell profile; I won't touch the value.
Next steps
Reply
apply 1-4 and I'll edit only those keys, keep your comments and formatting, and re-run the scan to show the before/after counts.
Connects securely to your tools. The creator never sees your data.
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
- 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~. - Plain-language report grouped by severity (high / warning / info), with what each finding means and which ones are fixable.
- 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 inclaudeCode.environmentVariables(names only),NODE_OPTIONS, process wrapper. - Claude Code settings (
~/.claude/settings.json, local and project files):bypassPermissions,skipDangerousModePermissionPrompt, broadBash/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_NODEset system-wide. - Windows: long-path support and
git core.longpaths. - Optional
--project <dir>to check a repository's.vscodeand.claudesettings.
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 18+. Cannot fix Electron fuses or environment variables automatically. Does not audit remote/container settings.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 16 days ago
- Software
Node.js
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.