Skip to main content
SkillTotal

Is agent-device safe?

Partially analyzed - Swift and C/C++ code not checked for shell, network or file access; 41 code files not read (41 minified)
Notable — review in context (a capability is not a malicious indicator):
  • Node.js shell/command execution
  • Node.js filesystem write/delete
  • Node.js network egress

What to do: The Swift and C/C++ code was not checked for shell, network or file access, so this result is incomplete. Review that code before installing.

agent-device is an npm package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. Its Swift and C/C++ code was not checked for shell, network or file access, so this result is partial. It can: filesystem write, install time execution, mcp tools detected, network egress and shell execution — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).

agent-device 0.21.41

npm package · npm:agent-device
LOW
0
/ 100 risk score
Snapshot · scanned Nov 21, 2026 · agent-device@0.21.41 · engine 1.8.0 / ruleset 107

Get notified when this component changes

Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.

Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of agent-device's authors. Report a false positive.

Capabilities — what this component can do (not a risk score):
filesystem writeinstall time executionmcp tools detectednetwork egressshell execution

Behavioral traits

How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.

Tool surface
Tool Usage
Execution authority
Tool Access Control / Direct Tool Access
Filesystem reach
Tool Execution Context
Network egress
Interaction & Communication / Direct Communication
Supply-chain provenance risk
General Protections / Supply Chain

Findings (5)

CapabilityNode.js shell/command executionnot scored · severity highST-SHELL-NODE

The component can run operating-system commands or spawn processes.

const { spawnSync } = require('node:child_process');
const result = spawnSync(realXcrun, args, { stdio: 'inherit' });

Why it matters: Powerful and often legitimate — confirm the commands aren't built from untrusted input.

Fix: Confirm the command and its arguments are fully controlled and not derived from untrusted input; prefer execFile with an argument array.

CapabilityNode.js filesystem write/deletenot scored · severity mediumST-FS-NODE-WRITE

The component writes or deletes files on disk.

import{v as e}from"./sdk-contracts.js";import{St as t}from"./sdk-io.js";import"./diagnostics.js";import{f as n,p as r,u as i}from"./daemon-http.js";import{c as a}from"./transport.js";import o from"node:fs";import s from"node:path";import{Tr …
import{a as e,r as t,t as n}from"./rolldown-runtime.js";import{t as r}from"./yauzl.js";import{a as i,c as a,f as o,l as s,n as c,o as l,r as u,s as d,t as f,u as p,v as m}from"./log-stream.js";import{g as h,n as ee,r as te,u as ne,v as g}fr …
import{r as e}from"./rolldown-runtime.js";import{C as t,v as n}from"./sdk-contracts.js";import r from"node:fs";import i from"node:path";import{Readable as a}from"node:stream";import{pipeline as o}from"node:stream/promises";var s=e({download …
import{n as e}from"./device2.js";import{i as t,o as n,t as r}from"./destination-tunnel-dialer.js";import i from"node:fs";import a from"node:path";import*as o from"zlib";var s=class{constructor(e=t){if(this.bodyLimit=e,this.pending=new Map,! …
import{_ as e,l as t}from"./host2.js";import{S as n}from"./runner-cache-metadata.js";import{D as r,S as i,c as a,v as o}from"./runner-lease.js";import s from"node:fs";import c from"node:path";const l=864e5,u=/^cache-[0-9a-f]{16}$/;function …
import{t as e}from"./runner-cache-metadata.js";import{isPathInsideDirectory as t}from"./runner-artifact-manifest.js";import n from"node:fs";import r from"node:path";async function i(e,t,n){if(!a(e,n))return[];let r=o(e,t);return r?await c(e …
import{v as e}from"./sdk-contracts.js";import t from"node:fs";import n from"node:os";import r from"node:path";import i from"node:net";async function a(){return await new Promise((t,n)=>{let r=i.createServer();r.listen(0,`127.0.0.1`,()=>{let …

Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.

Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.

Capabilitynpm prepare-time hooknot scored · severity mediumST-INSTALL-NPM-PREPARE

package.json has a 'prepare' script (runs on git/local installs and before publishing).

"prepack": "npm_config_dry_run=false pnpm release:prepare",

Why it matters: Usually a build step, but confirm it doesn't fetch or run remote code.

Fix: Usually a legitimate build step; confirm it only builds and does not fetch or execute remote code.

CapabilityNode.js network egressnot scored · severity mediumST-NET-NODE

The component makes outbound network requests.

import{S as e,v as t}from"./sdk-contracts.js";import{I as n,O as r,R as i,_ as a,at as o,ct as s,g as c,q as l}from"./sdk-io.js";import{h as u}from"./file.js";import{t as d}from"./base-url.js";import{t as f}from"./bundle-url.js";import"./co …
import{h as e}from"../sdk-io.js";import{t}from"../base-url.js";import{a as n,c as r,d as i,i as a,l as o,n as s,o as c,p as l,r as u,s as d,u as f}from"../client-companion-tunnel-contract.js";import p from"node:fs";import{setTimeout as m}fr …
const http = require('node:http');
const req = http.request(parsed, {
import{r as e}from"./rolldown-runtime.js";import{C as t,v as n}from"./sdk-contracts.js";import r from"node:fs";import i from"node:path";import{Readable as a}from"node:stream";import{pipeline as o}from"node:stream/promises";var s=e({download …
import{r as e}from"./rolldown-runtime.js";import{C as t,v as n}from"./sdk-contracts.js";import"./tool-provider-facade.js";import{t as r}from"./limrun-download-file.js";import{randomUUID as i}from"node:crypto";import{promises as a}from"node: …
</dict><key>__xctestrun_metadata__</key><dict><key>FormatVersion</key><integer>1</integer></dict></dict></plist>`;await y.writeFile(x.join(e,`Runner.xctestrun`),a,{mode:384})}async function M(e,t,n,r,i){let a=[],o=async t=>{for(let n of awa …
import{B as e,v as t}from"./sdk-contracts.js";import{S as n,a as r,c as i,d as a,h as o,i as s,l as c,m as l,n as u,o as d,r as f,s as ee,t as te,u as p,x as m,y as ne}from"./daemon-http.js";import{p as h}from"./transport.js";import{r as g} …
import{v as e}from"./sdk-contracts.js";import{n as t}from"./metro-session-hints.js";import{createHash as n}from"node:crypto";import{parseArgs as r}from"node:util";const i={0:`unknown`,1:`class`,5:`function`,6:`forwardRef`,8:`memo`,15:`funct …
import{v as e}from"./sdk-contracts.js";import{n as t,r as n}from"./install-source-network-transport.js";import{t as r}from"./undici.js";import i from"node:net";var a=r();const o=8388608,s=3e4;async function c(t,n){try{return{response:await …
import{r as e}from"./rolldown-runtime.js";import{A as t,C as n,F as r,O as i,v as a}from"./sdk-contracts.js";import{T as o}from"./sdk-device.js";import{n as s}from"./entities.js";import{t as c}from"./parser.js";import{N as l,P as u,i as d,o …
import{at as e}from"./sdk-io.js";import{n as t}from"./version.js";import"./command.js";import n from"node:fs";import r from"node:path";import{fileURLToPath as i}from"node:url";const a=`agent-device`,o=`--agent-device-run-update-check`;funct …

Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.

Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.

CapabilityMCP tool surface detectednot scored · severity lowST-MCP-DETECTED

An MCP tool surface (manifest or tool definitions) was found.

Why it matters: Just context — review which tools it offers and their permissions.

Fix: Review the declared MCP tools and their permissions.

How attackers abuse these capabilities

Interactive labs on the attack class behind the rules above. They show the technique, not anything found in agent-device.

Maintain agent-device?

Check the next package before your agent installs it

The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.

Check your own component

Run the same evidence-backed scan on any MCP server, agent skill, or package.

Scan your own component

How we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →