/security-agent-skills:auditing-editor-extension-workspace-trustfrom security-agent-skills
Audits editor/IDE extensions for actions that auto-execute on untrusted workspace contents before trust is granted. Covers tasks, preLaunchTasks, commands, tool paths from workspace settings, language server binaries, and webview CSP issues.
Ships in security-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An editor extension turns dangerous the moment merely opening a cloned repository makes it run code the
repository controls. The threat is not a user choosing to run something; it is a drive-by, a hostile
.vscode/tasks.json, a settings.json that names the compiler binary, an activation event that fires on
folder open and shells out before the user has trusted anything. You audit it by resolving, per risky
action, whether a workspace-trust gate or an explicit user gesture stands between the untrusted repo and
the execution sink. The discipline is separating an action that genuinely fires on open from one that
needs a deliberate click, and a value read from workspace settings from one read from user or global
settings a repo cannot set.
Audit only extensions you own or are authorized to assess, and open a crafted hostile workspace only on a machine and account in scope, an auto-executed task runs real code on your host. Adjudicate on the manifest and the handler. If you can't name the authorization, stop.
Resolve the trust capability and activation events first. Read the manifest for the untrusted-workspace capability (does it declare it unsupported, limited, or fully supported) and for the activation events. An event like folder-open, a startup-finished event, or a workspace-contains glob makes the extension activate on any repo; a narrow language or command event does not. The gate and the activation trigger decide whether a sink is drive-by reachable, so settle both before flagging.
Check auto-run tasks and debug launches. Look for the extension running a task, a command, or a debug preLaunchTask on activation or on open, before or without a trust gate. A task defined in the workspace that fires automatically is repo-controlled code executing on open.
Check tool and command paths read from workspace settings. Look for a compiler, linter, formatter,
or runner path, or a command template, read from workspace-scoped settings and then executed. A repo
that ships a settings.json naming the binary chooses what runs; the same value read from user or
global settings is not repo-controlled.
Check the workspace-trust bypass. Look for a risky operation that still runs when the workspace is untrusted or in restricted mode, or that trusts a repo-supplied directive the core mis-validates. An extension that declares trust support but performs the dangerous action anyway defeats the gate.
Check language-server execution and webviews. Look for a language server that loads or executes a workspace-declared binary or plugin on open, for repo-controlled data (env, args, cwd) reaching a shell or task-execution call, and for an extension webview with scripting enabled that renders repo-controlled content without a content-security policy or message-origin validation.
Confirm and record. Confirm by opening a crafted hostile workspace and showing the extension executes repo-controlled code, or resolves and runs a repo-specified binary, with no trust gate and no explicit user action. Kill the lead if the extension declares the untrusted-workspace capability unsupported (or gates the risky feature when limited) so it refuses to run untrusted, if the action requires an explicit user gesture (a palette command, a button) rather than firing on open, if the tool path or command is read only from user or global settings a repo cannot set, if the activation event is narrow and its body does no execution, if the webview uses a strict content-security policy and validates message origins, or if the repo value is used only as display or config data and never reaches an execution sink. Record the extension, the trigger, and the sink the repo reaches.
Confirm. An extension activates on folder open and, on activation, reads a
runnercommand from the workspace settings and executes it to index the project. A cloned repository ships asettings.jsonsettingrunnerto an attacker command. Opening the repo runs it, with no trust prompt and no user action. Confirmed repo-controlled command execution on open with no trust gate,highrising tocritical, remediation = gate the feature behind workspace trust, read the runner from user or global settings only, and require an explicit gesture to execute.Kill. The same extension declares the untrusted-workspace capability unsupported, so on an untrusted folder it activates in restricted mode and does not run the indexer until the user trusts the workspace. Opening a hostile repo executes nothing. Killed,
kill_reason= "the extension declares untrusted workspaces unsupported and withholds the execution path until the user grants trust; no drive-by sink."
You need the manifest (activation events and the untrusted-workspace capability), the activation handler, every place a task, command, or debug launch can auto-run, every tool or command path and the settings scope it is read from, the language-server tool resolution, and any webview and its content-security policy. For each risky action, decide whether a trust gate or an explicit gesture stands between the untrusted repo and the sink. Reading the manifest tells you what activates on open; reading the handler tells you what the repo can make it run.
auditing-browser-extension-trust - the sibling client-surface audit for a browser extension, where the
untrusted source is a web page or another extension rather than a cloned repository.auditing-electron-ipc-trust - the desktop-app sibling, where untrusted renderer content rather than a
workspace reaches a native capability across the preload bridge.vetting-skills-before-install - audits the skill or MCP artifact you install into an agent; this skill
audits an editor extension's handling of an untrusted workspace it opens, a different source and sink.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skills194 skills in this plugin
/adjudicating-dependency-cve-reachabilityDecide whether a CVE in a dependency actually exposes your application before you scramble to patch: is the vulnerable function on a real call path from your code, do the trigger preconditions hold, and can an attacker control the input that reaches it. Use when an advisory, SCA scan, or dependency bot flags a CVE and you must separate a genuine exposure from unreachable noise, or justify why you are or are not affected. Covers pinning the vulnerable symbol, call-path reachability, precondition checks, and taint from your entry points./adjudicating-taint-pathsDecide whether a whitebox lead is a real bug by tracing taint from an untrusted source to a dangerous sink and confirming every hop against live source. Use after a scanner, a candidate list, or your own reading surfaces a "this looks dangerous" sink (SQL exec, system/exec, file open, deserialize, template render, redirect target, memcpy) and you must decide whether attacker- controlled input actually reaches it - or kill the lead with evidence. Covers forward and reverse taint, witness paths, sanitizer analysis, and the evidence rules that separate a finding from a false positive.Other plugins' skills for the same job