Auditing Developer Tools Like Bito for Local Shell Command Execution

Auditing Developer Tools Like Bito for Local Shell Command Execution

pr0h0••22 min read•hacking
AI Usage (79%)
On this page

The Bito Command-Execution Report Puts Developer-Tool Permissions Under Review

950,000 Installs Is a Population, Not a Blast Radius

Akamai published research on a Bito flaw that reportedly "exposes 950K installs to command execution." That headline — a publisher, a product name, and one number — is the entire confirmed payload I have. No CVE, no version range, no fix, no mechanism.

So this post does two things: it separates what the report actually establishes from what gets repeated about it, and it gives you a repeatable audit for developer tools that spawn local processes — extension inventory, trust boundaries, process permissions, credential exposure, and update verification — that works on Bito or any other AI coding assistant.

The install number is the first thing to get straight, because it is the kind of figure that gets repeated until it sounds like an impact statement:

  • 950,000 installs is a population, not a blast radius. It estimates how many environments have the extension present. It is not a count of vulnerable hosts, reachable hosts, or compromised hosts.
  • Installation ≠ exposure. A vulnerable code path that only fires when a user runs a specific command in a specific context has a much smaller reachable population than the install count suggests.
  • Extension installs double-count. Developer machines, CI images, remote dev hosts, and devcontainers often share the same marketplace identity. Nobody has published a deduplicated host count, and I have not seen one.

The useful thing the report does is point at a category: an AI coding assistant with a local execution path, sitting inside an IDE that already holds your source code, your SSH agent, and your cloud credentials.

Reachable Command Execution Beats Install Count

My position: the install count is the least interesting number in the report, and shell-free process APIs are the least interesting mitigation.

The questions that actually determine risk are:

  1. Who chooses the executable — the tool author, or content the tool processes?
  2. Who chooses the arguments?
  3. What identity, working directory, and environment does the spawned process inherit?
  4. What credentials are reachable from that identity without any further escalation?

An extension with 2,000 installs that reads attacker-influenced project files and shells out as your user is worse than an extension with 2 million installs that only runs a fixed binary with a fixed argument vector. Popularity tracks distribution. It does not track privilege.

I did not test Bito. Everything below that is Bito-specific is a hypothesis labeled as such, and everything demonstrated was run against a local fixture that has nothing to do with Bito's code.

What the Available Source Actually Confirms About the Bito Flaw

Confirmed Facts Versus Open Questions

Here is the honest split.

Supplied by the source: Akamai published research (per the headline); the subject is Bito; the claimed technical issue is "command execution"; the claimed footprint is 950,000 installs.

Not supplied, and therefore not knowable from what I have: affected Bito versions, whether a fix exists, which component executes commands (extension, CLI, local helper service, backend), whether a shell is involved, whether attacker input arrives via workspace files, prompts, MCP/tool responses, or a remote API response, whether the attacker needs any local access, and what user interaction is required.

Also missing: any CVE identifier, CVSS score, vendor response, or disclosure timeline.

That gap matters because "command execution" is used loosely. It can mean a designed feature that runs a command on request, or it can mean an unauthenticated remote party reaching a shell. Those are different severity classes, and the headline does not distinguish them.

The 2026-12-04 Timestamp Is a Feed Time, Not a Disclosure Date

The source carries a timestamp of 2026-12-04T02:32:01Z. That is a feed publication time. It is not a discovery date, not a coordinated-disclosure date, and not a patch date. I am treating it only as "when this item appeared in the feed," because feed timestamps routinely differ from the original publication and say nothing about when the vendor was notified.

If you are writing an internal advisory off this, use your own date of assessment and say so explicitly.

Audit Evidence Table: Questions That Still Need Primary Sources

This is the table I would actually put in an audit record. Rows are empty on purpose — they need primary sources.

QuestionStatus from supplied sourcePrimary source needed
Which Bito component executes commands?UnknownAkamai technical write-up
Affected version rangeUnknownVendor advisory or changelog
Fixed versionUnknownVendor advisory or release notes
Attacker-controlled input pathUnknownAkamai write-up, PoC description
Local access required?UnknownAkamai write-up
User interaction required?UnknownAkamai write-up
CVE / tracking IDUnknownNVD or GitHub Advisory Database
Vendor acknowledgementUnknownBito security page or advisory
⚠️

Do not fill those rows from memory or from a secondhand news summary. If your remediation plan says "upgrade to X.Y.Z," that number must come from the vendor or a CVE record, not from a blog post that cited another blog post.

Map the Trust Boundary From Developer Content to Local Shell Execution

Candidate Entry Points Into Local Command Execution

Without the Akamai write-up, the honest way to work is to enumerate the plausible entry points and then check each one against your own installation. These are hypotheses:

StageCandidate artifactWhy it can carry attacker influence
Workspace content.vscode/tasks.json, .vscode/settings.json, repo scriptsWritten by whoever opened the PR; survives clone
Instruction contextSelected code, open file, pasted error textThe model treats it as data, but the tool may treat it as an instruction
Tool/model responseMCP server replies, HTTP API responses, fetched docsRemote text the assistant is designed to trust
Persistent configUser settings.json, tool-specific config dirAttacker state that outlives the session
Generated command"Run this" suggestion from the assistantNatural-language to command-line translation
Executionchild_process call in extension codeThe boundary where text becomes a process

The audit question at each row is the same: is the value that reaches process creation derived from the row above it, and is that row attacker-reachable?

Intended Execution vs. Command Injection vs. Local Access

Three distinctions that get collapsed in headlines:

Intended execution. The product runs commands by design — "run the test suite," "format this file." The risk is scope, not existence: does the product let a remote party choose which command?

Command injection. A value that should be an argument becomes syntax. mytool --target=<userinput> where userinput contains ; curl … is injection. mytool --target with a separate argv entry containing ; curl … is not — it is a literal string the tool will probably reject.

Local access prerequisite. If the attacker already has code execution in your workspace, an extension RCE adds little. The genuinely interesting cases are remote-influenced input — a PR from an outside contributor, a poisoned MCP server, a malicious dependency's README — reaching local execution with your credentials.

exec, execFile, and spawn: What Actually Differs

APIShell by defaultArgument modelWho picks the executable
execYes (/bin/sh or cmd.exe)One string, parsed by the shellThe shell, via PATH
execFileNoArray, passed as argvNode, via PATH (or an absolute path)
spawnNoArray, passed as argvNode, via PATH (or an absolute path)
Any of the above with { shell: true }Yescommand and args joined with spaces, then parsedThe shell

Two things that surprise people:

  • execFile(..., { shell: true }) is not shell-free. Node joins the command and args into a single string and hands it to the shell. Node's own documentation warns against passing unsanitized input when shell is enabled.
  • On Windows, .bat and .cmd targets cannot be launched directly by execFile, so implementations that need them end up routing through cmd.exe — which reintroduces shell parsing. That is a real source of "we removed the shell" claims that do not hold.

Avoiding a shell removes metacharacter injection. It does not remove:

  • Argument injection. An attacker-controlled string that starts with - or -- becomes a flag. Real tools have --output=, --config=, --upload-pack=, --exec-path.
  • Executable selection. execFile("prettier", …) resolves through PATH. If a workspace-local node_modules/.bin or an inherited PATH entry shadows it, you run a different binary.
  • Working-directory attacks. execFile("./tool", …) with cwd set to an attacker-influenced repo runs the repo's tool.
  • Environment attacks. NODE_OPTIONS, LD_PRELOAD, PYTHONPATH, GIT_SSH_COMMAND inherited from the parent can change what a fixed executable does.
  • Script-content attacks. execFile("node", ["script.js"]) where script.js is attacker-writable is full code execution with extra steps.

Inventory Installed Developer Tools Before Testing Them

Set Up a Throwaway Audit Environment

I do not test execution paths on a machine that holds production credentials. The setup I use:

  • a fresh VM or a dedicated OS user, not my primary account
  • a scratch workspace containing only fixture files
  • no cloud profiles, no SSH agent forwarding, no browser session
  • network egress limited to what the test needs
  • a snapshot or container I can throw away
💪

The point of the disposable environment is not paranoia about the specific report. It is that you will get an unexpected result at some point, and you want the recovery step to be "delete the VM," not "rotate everything."

List Installed Extensions and Versions

inventory-extensions.sh
code --list-extensions --show-versions | sort
ls -d ~/.vscode/extensions/*/ 2>/dev/null | head -50

Output shape (example only — publisher names, versions, and counts here are invented; do not read them as findings):

[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

The identifier format is <publisher>.<extension>@<version>. Confirm the identifier for any specific tool from its marketplace listing rather than from a blog post — including this one. Marketplace identifiers get renamed, and a grep against a guessed publisher string produces a false negative that looks like a clean result.

Don't Forget the Remote and CLI Surfaces

An AI assistant usually has more than one surface. Inventory all of them, then test only the ones you can attribute to a specific product:

  • The desktop extension in ~/.vscode/extensions (macOS/Linux) or %USERPROFILE%\.vscode\extensions (Windows).
  • The remote extension host. When you use Remote-SSH or a devcontainer, extensions of type workspace run on the remote host in ~/.vscode-server/extensions. That host is often a shared build machine with different credentials than your laptop.
  • CLI helpers on PATH — a bito-style binary is a separate attack surface with its own argument parsing.
  • A local helper service. Some assistants run a background process that the extension talks to over localhost. That process is not in the extension folder and will not show up in --list-extensions.
  • Duplicate installations across profiles. VS Code profiles and portable copies each carry their own extension directory.

Find the running extension host rather than assuming it:

find-extension-host.sh
ps -eo pid,ppid,user,etime,args --sort=pid | grep -i "[e]xtensionHost"
code --status 2>/dev/null | head -40

Minimal Inventory Record Format

FieldWhat to recordHow to get it
Tool identity<publisher>.<extension>code --list-extensions --show-versions
VersionFull semver stringSame command
Install locationAbsolute path to the versioned folderls -d ~/.vscode/extensions/* / ~/.vscode-server/extensions/*
Execution hostLocal workstation / SSH remote / devcontainercode --status, ps
Update channelMarketplace, sideloaded VSIX, org-managedIDE settings, MDM policy, VSIX provenance
Evidence sourceThe exact command and its outputPaste the transcript into the record

The "execution host" field is the one people skip and the one that changes the risk calculation most.

Reproduce the Shell Boundary With a Harmless Node.js Lab

A Minimal Fixture That Shows the Difference

This fixture is about the Node.js API contract. It says nothing about Bito's implementation.

// shell-boundary-lab.js



const execAsync = promisify(exec);
const execFileAsync = promisify(execFile);

const show = (label, stdout) => console.log(label.padEnd(24) + " => " + JSON.stringify(stdout));

const run = async (label, fn) => {
  try {
    show(label, await fn());
  } catch (err) {
    console.log(label.padEnd(24) + " => ERROR " + (err.code ?? err.message));
  }
};

const spawnCollect = (cmd, args) =>
  new Promise((resolve, reject) => {
    const child = spawn(cmd, args, { shell: false });
    let out = "";
    child.stdout.on("data", (d) => (out += d));
    child.on("error", reject);
    child.on("close", () => resolve(out));
  });

const payload = "hello; echo world";

await run("exec(shell)", () => execAsync("echo " + payload).then((r) => r.stdout));
await run("execFile(no shell)", () => execFileAsync("echo", [payload]).then((r) => r.stdout));
await run("execFile(shell:true)", () =>
  execFileAsync("echo", [payload], { shell: true }).then((r) => r.stdout)
);
await run("spawn(no shell)", () => spawnCollect("echo", [payload]));

Marker Output, Not Secrets

Run it:

node shell-boundary-lab.js

Trimmed transcript from Node 22 on Linux with bash as the default shell:

exec(shell)              => "hello\nworld\n"
execFile(no shell)       => "hello; echo world\n"
execFile(shell:true)     => "hello\nworld\n"
spawn(no shell)          => "hello; echo world\n"

Read the difference carefully. exec produced two commands. execFile and spawn produced one argument that happened to contain a semicolon. The { shell: true } variant put you straight back in the first case while looking like the second API.

Assumptions, and What I'm Not Claiming

Assumptions for everything above and below: Linux, bash 5.x, Node 22, /usr/bin/printf and /usr/bin/echo present. On macOS the same results hold with the system printf; on Windows with cmd.exe the metacharacters differ (&, |, ^) but the structural result is identical — a shell is a shell.

The one claim I am not making is that any of this resembles Bito's code. Node's behavior is documented and stable; the tool's implementation is unknown to me.

Cases Worth Putting in the Harness

// boundary-cases.js


const execFileAsync = promisify(execFile);

const cases = ["a b", 'a"b', "a;b", "--help", "marker-$((1+1))"];
for (const c of cases) {
  const { stdout } = await execFileAsync("printf", "[%s]\n", c);
  console.log(JSON.stringify(c).padEnd(20) + " => " + JSON.stringify(stdout));
}

Output:

"a b"                => "[a b]\n"
"a\"b"               => "[a\"b]\n"
"a;b"                => "[a;b]\n"
"--help"             => "[--help]\n"
"marker-$((1+1))"    => "[marker-$((1+1))]\n"

Every case is passed through literally. Now the regression table — what changes under exec:

InputexecFile (no shell)exec on bashWhat it proves
a bone arg [a b]two args [a], [b]Argument boundaries differ
a;bliteral [a;b]runs printf … a then tries to run bMetacharacter injection
marker-$((1+1))literalmarker-2Shell expansion
--helpliteral stringpassed to the command as a flag if the command is exec'd, echo prints the stringArgument injection
./tool with cwd = reporuns the repo's toolsameWorking-directory / executable selection

Two more cases worth writing into the harness:

## Leading-option argument injection: harmless demo against echo
echo --help | head -1

## Executable lookup: which binary would execFile actually hit?
command -v printf

The first prints coreutils' usage text, not the string --help. That is argument injection with no shell in sight. It is harmless against echo; against git it looks like --upload-pack=, and against tar it looks like --checkpoint-action=exec=.

Determine Which Permissions a Launched Process Would Inherit

Read Environment Variable Names, Never Values

Never print process.env. Print the names.

// inherit-lab.js


const execFileAsync = promisify(execFile);

const names = Object.keys(process.env).sort();
console.log("pid/ppid :", process.pid, process.ppid);
console.log("cwd      :", process.cwd());
console.log("uid      :", typeof process.getuid === "function" ? process.getuid() : "n/a");
console.log("env count:", names.length);
console.log("env names:", names.join(" "));

const { stdout } = await execFileAsync(process.execPath, [
  "-e",
  "console.log('child pid/ppid:', process.pid, process.ppid); console.log('child env count:', Object.keys(process.env).length)",
]);
process.stdout.write(stdout);

Illustrative, trimmed, values omitted:

pid/ppid : 48211 48207
cwd      : /home/auditor/scratch/ws
uid      : 1000
env count: 47
env names: AWS_PROFILE CI GIT_ASKPASS HOME LANG NODE_OPTIONS PATH PWD SHELL SSH_AUTH_SOCK ...
child env count: 47

The last line is the important one: the child inherits everything by default. Every one of those names is now available to whatever the extension spawned.

Local, Remote, Container: Where Credentials Actually Live

HostWhere files liveWhere credentials liveInheritance concern
Local workstationLocal diskLocal ~/.aws, ~/.ssh, Keychain/DPAPI, browserFull ambient privilege of your user
Remote-SSH hostRemote diskRemote ~/.ssh, remote cloud instance roleOften more privileged than the laptop; usually shared
DevcontainerContainer FS (bind-mounted repo)Container env; plus forwarded SSH agent, mounted ~/.gitconfigMounts and agent forwarding punch holes in the boundary

The container row is where people get overconfident. A devcontainer that forwards SSH_AUTH_SOCK and bind-mounts ~/.gitconfig still exposes those to anything running inside — including an extension host.

Conditional Impact, Stated as Conditional

If a tool can spawn a process as your user on host X, then that process can, in general, write to any file you can write, read any file you can read, use the network you can reach, and invoke any credential helper configured for you. That is a property of process inheritance, not a finding about Bito.

What would make it a Bito finding: a demonstrated path from attacker-controlled input to that spawn. I have not seen that demonstrated in the material I have.

Audit Credential Exposure Without Collecting Credentials

Presence Checks, Not Values

Record presence and reachability. Never record values.

SourcePresence check (no values)Access model
Env varsenv | cut -d= -f1 | sortInherited by every child
AWS profilestest -f ~/.aws/credentialsReadable file
GCP ADCtest -f ~/.config/gcloud/application_default_credentials.jsonReadable file
Kubernetestest -f ~/.kube/configReadable file
npmtest -f ~/.npmrcReadable file with tokens
GitHub CLItest -f ~/.config/gh/hosts.ymlReadable file with OAuth token
SSH agenttest -n "$SSH_AUTH_SOCK"Brokered — no key file needed
Git credential helpergit config --get credential.helperBrokered — may return secrets on demand
Dockertest -f ~/.docker/config.jsonReadable registry creds

The SSH_AUTH_SOCK row is the one that defeats naive reasoning. There is no key file to protect; the socket is the credential. Any process running as you can ask the agent to sign.

Three Escalation Models

  1. Inherited environment. Scripts with env: {} narrow this. Cheap and effective for AWS_SECRET_ACCESS_KEY-style values.
  2. Readable files. Not helped by an empty environment at all. ~/.aws/credentials is readable by your user regardless.
  3. Brokered access. Agent sockets, credential helpers, cloud instance metadata endpoints. The process holds no secret; it holds the right to ask.

A tool that spawns with env: { PATH } has blocked model 1 and done nothing about models 2 and 3. That is why "we sanitize the environment" is a partial control, not a boundary.

When to Contain, When to Rotate

Evidence availableAction
Extension installed, no advisory mappingInventory only. Do not rotate.
Advisory confirms affected version + your version matchesPatch, isolate, reassess exposure
Advisory + you can demonstrate a reachable input path in your setupContain: isolate host, restrict egress, treat credentials as exposed
Process-level evidence (unexpected child process, unexpected outbound connection, modified files)Rotate credentials, preserve logs, follow incident process

Rotating on install is noise that trains people to ignore alerts. Rotating after you have seen an unexpected child_process spawn or an unexplained outbound request during a test is a different decision entirely — and much easier to justify.

Prioritize Defenses at the Execution Boundary

If You Build the Developer Tool



const SAFE_FLAGS = new Set(["--check", "--version"]);
const TOOL = "/usr/local/bin/mytool";

export function runTool(flag, target, cwd) {
  if (!SAFE_FLAGS.has(flag)) throw new Error("rejected flag: " + flag);
  if (typeof target !== "string" || target.length > 256) throw new Error("rejected target");
  if (target.startsWith("-")) throw new Error("rejected leading-dash target");
  if (!/^[A-Za-z0-9._\/-]+$/.test(target)) throw new Error("rejected target characters");

  return execFile(TOOL, [flag, "--", target], {
    cwd,
    shell: false,
    timeout: 15_000,
    maxBuffer: 1_048_576,
    windowsHide: true,
    env: {
      PATH: "/usr/local/bin:/usr/bin:/bin",
      LANG: "C.UTF-8",
      HOME: process.env.HOME,
    },
  });
}

Notes on why this looks the way it does:

  • Absolute path for TOOL — no PATH resolution to hijack.
  • Allowlist on flags, not a denylist. -- as an end-of-options marker is only honored by tools that implement it, so the leading-dash check is the real control and -- is a bonus.
  • Explicit shell: false even though it is the default, so a future refactor that flips it is a visible diff.
  • cwd passed in, not defaulted to the workspace root.
  • Narrow env. Note that HOME is still there — because the tool probably needs it, and because pretending otherwise would be dishonest about the residual exposure.

If You Run the Developer Tool

In priority order, based on what actually shrinks exposure per unit of effort:

  1. Uninstall what you do not use. Every extension is a package with child_process in scope. This is the highest-value, lowest-cost control.
  2. Reduce ambient credentials on dev machines. Use short-lived cloud credentials, per-project profiles, and hardware-backed SSH keys behind an agent you can lock.
  3. Separate trust levels by OS user or VM. Reviewing a stranger's PR should not happen in the same account that has production deploy rights.
  4. Restrict egress where it is practical. A tool that cannot reach the internet is a much smaller problem. This is hard on a dev laptop and reasonable on a build host.
  5. Pin versions and control the update channel so a marketplace auto-update is a reviewable event, not a background surprise.

Every Control Leaves a Gap

ControlStopsStill leaves
Confirmation dialogFully automatic executionHabituation, misleading dialog text, prompts triggered by content the user did not read
Workspace trustAuto-run on folder openTrust persists across later commits; remote content inside a trusted workspace; trust fatigue
ContainerHost filesystem and host credentialsForwarded SSH agent, bind-mounted ~/.gitconfig, mounted cloud configs, egress
Shell-free APIMetacharacter injectionArgument injection, PATH/cwd/env manipulation, script-content execution
Extension allowlistUnapproved toolsThe one approved tool getting compromised or auto-updated
Version pinningSilent updatesThe pinned version staying vulnerable

No single row is a fix. Rows 1, 2, and 3 reduce reachability; rows 4 and 5 reduce mechanism. You want both kinds.

Verify Updates Against the Running Installation

Get the Version Range From a Primary Source

Before you touch anything, get the range from a primary source: the vendor advisory, the release notes, or a CVE record in the NVD or the GitHub Advisory Database. Not from a news summary, and not from this post — I do not have those numbers.

If no authoritative range exists yet, the correct status in your audit record is "unknown, pending vendor advisory," not "clean."

Verify the Live Process, Not the Folder

Updating the extension does not guarantee the running copy changed. Verify all three layers: on-disk version, reported version, and the process that is actually live.

## 1. On-disk version folder(s)
ls -d ~/.vscode/extensions/*<extension-id>* 2>/dev/null
ls -d ~/.vscode-server/extensions/*<extension-id>* 2>/dev/null

## 2. Version recorded in each folder's package.json
grep -m1 '"version"' ~/.vscode/extensions/*<extension-id>*/package.json 2>/dev/null

## 3. Version the CLI reports
code --list-extensions --show-versions | grep -i '<extension-id>'

## 4. Is a stale extension host still alive?
ps -eo pid,etime,args | grep -i "[e]xtensionHost"

Then run Developer: Restart Extension Host (or quit the IDE entirely) and repeat steps 3 and 4. If the old folder is still present and an old host process is still running, you have not verified anything yet.

If There's No Fix, Say So

Keep the transcript. An audit that says "we updated it" is unfalsifiable; one that says "on 2026-12-05 at 14:02 UTC, code --list-extensions --show-versions reported [email protected]; after restart at 14:11 it reported [email protected] and the extension host PID changed from 48207 to 51044" is a record.

If there is no vendor fix, write it down as an accepted risk with an owner and a review date. That is a legitimate outcome. "Mitigated" is not.

Close the Audit With Evidence, Not a Clean Bill of Health

Closing Checklist for a Developer-Tool Audit

#CheckEvidence to keep
1Every AI/dev extension inventoried with ID + versioncode --list-extensions --show-versions output
2Execution host identified per tool (local / remote / container)code --status, ps transcript
3Reachable input paths enumerated and labeled confirmed vs hypothesisEntry-point table
4Node.js process-spawn behavior characterized where source is availableFixture transcripts
5Inherited identity, cwd, and env names capturedinherit-lab.js output
6Credential sources enumerated by presence, no values recordedPresence checks table
7Mitigations assigned to an owner with a due dateControl owner list
8Version change verified at disk, CLI, and live processBefore/after transcript
9Residual risk accepted in writing where no fix existsRisk acceptance record

Three Buckets in the Final Record

The record should physically separate them:

Source-supported. Akamai published research on a Bito command-execution issue; the reported footprint is 950,000 installs; the supplied timestamp is 2026-12-04. Nothing about mechanism, versions, or fixes.

Locally demonstrated. exec routes through a shell and execFile/spawn do not; { shell: true } restores shell parsing for execFile; a spawned child inherits the full parent environment by default; shell-free APIs still permit argument injection, which is trivially reproducible against echo --help.

Untested, Bito-specific. Hypothesis: the affected component spawns a process whose arguments or executable derive from workspace content, prompt content, or a remote response. Hypothesis: a fix exists and maps to a specific version. Hypothesis: the 950,000 figure corresponds to a meaningful number of reachable hosts. Each of these needs the Akamai write-up or a vendor advisory before it belongs anywhere near a remediation plan.

My conclusion, stated as an opinion: the right response to a report like this is not to uninstall the tool in a panic or to shrug at the install count. Stop treating developer tools as content. Treat them as privileged local executors — because that is what the architecture makes them, whether or not this particular flaw turns out to be reachable.

Further Reading and Source Verification

Sources

Share this post

More posts

Loading comments…