Loading npm security reports…
@reason-machines/cli-linux-arm64-musl@0.2.388: Credential | LPM Firewall
Blocked & quarantined
Saved credentials for third-party services are disclosed to a separate recipient, creating a risk of unauthorized account access.
AI Security Reviewscanned 5d ago · by lpm-firewall-ai Inspected source shows automatic forwarding of saved third-party access tokens to a package-selected vendor API, with local logins enabled by default. This is concrete credential disclosure; the absence of install hooks does not prevent the runtime behavior.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
Starting the runtime with the default local-login setting enabled.
Impact
Saved credentials for third-party services are disclosed to a separate recipient, creating a risk of unauthorized account access.
Mechanism
The runtime reads saved authentication data, extracts access tokens, and submits them through the local-subscription request to the Reason API.
Attack narrative
The runtime reads locally saved third-party agent credentials and periodically sends their access tokens through the local-subscription operation to the Reason API. The local-login setting defaults to enabled, so this forwarding can occur during ordinary runtime use without a separate confirmation for the recipient.
AI rationale
Inspected source shows automatic forwarding of saved third-party access tokens to a package-selected vendor API, with local logins enabled by default. This is concrete credential disclosure; the absence of install hooks does not prevent the runtime behavior.
Evidence
bin/vm-hands/vm-hands-entry-lite-9fc26f9c.js bin/vm-hands/vm-hands-entry-lite-e2mjbqmr.js bin/vm-hands/vm-hands-entry-lite-sv8bb7jq.js bin/vm-hands/vm-hands-entry-lite-v2ptg6br.js
Decision evidencepublic snapshot AI called this Malicious at 96.0% confidence as Malware with low false-positive risk.
Evidence for block
The CLI reads saved Claude, Codex, and other agent authentication data and extracts access tokens. When local logins are enabled, a background loop sends the collected credentials to the local-subscription client. The local-login setting defaults to enabled when unspecified, and the handoff runs automatically in the active runtime. The client posts the credential data to the Reason API's local-subscription endpoint. Evidence against
The package manifest has no lifecycle scripts; the credential transfer is tied to runtime activation. Behavioral surface
Source ChildProcess Crypto DynamicRequire EnvironmentVars Eval Filesystem Network Shell WebSocket
Supply chain HighEntropyStrings Minified PossibleObfuscation UrlStrings
Source & flagged code23 flagged · loading source 60 mux backend dial failed (${H})
L61: `)}),M.on("error",()=>O.destroy()),M.once("close",()=>O.destroy()),O.once("close",()=>M.destroy()),M.pipe(O),O.pipe(M)}let U=$6((M)=>{G.add(M),M.once("close",()=>G.delete(M)),M.on(...
L62: `).filter(Boolean);if(F===1)return[];throw Error(`ripgrep failed with exit code ${F}: ${q}`)}import{join as V0,dirname as T6}from"path";import{fileURLToPath as S6}from"url";import*...
High Child Process
Package source references child process execution.
bin/runtime/srt/sandbox-runtime.mjs View on unpkg · L60 55 \r
L56: `)}}),J.on("request",async(Q,Y)=>{Q.on("error",(G)=>{Z(`Client request error: ${G.message}`,{level:"error"})}),Y.on("error",(G)=>{Z(`Client response error: ${G.message}`,{level:"er...
L57: `)),$.end(eq(W))}function L7($){return Buffer.from([5,$,0,1,0,0,0,0,0,0])}function tq($){return new Promise((J)=>{let X=Buffer.alloc(0),Q=(W)=>{$.off("data",G),clearTimeout(Y),J(W)...
...
L60: mux backend dial failed (${H})
L61: `)}),M.on("error",()=>O.destroy()),M.once("close",()=>O.destroy()),O.once("close",()=>M.destroy()),M.pipe(O),O.pipe(M)}let U=$6((M)=>{G.add(M),M.once("close",()=>G.delete(M)),M.on(...
L62: `).filter(Boolean);if(F===1)return[];throw Error(`ripgrep failed with exit code ${F}: ${q}`)}import{join as V0,dirname as T6}from"path";import{fileURLToPath as S6}from"url";import*
High Same File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
Findings1 Critical 21 High 5 Medium 4 Low
Critical Remote Asset Decode Execute bin/vm-hands/index-cvnymkkb.js
High Child Process bin/runtime/srt/sandbox-runtime.mjs
High Shell
High Eval bin/vm-hands/vm-hands-entry-lite-e05sgnwe.js
High Same File Env Network Execution bin/runtime/srt/sandbox-runtime.mjs
High Command Output Exfiltration bin/runtime/srt/sandbox-runtime.mjs
High Obfuscated Payload Loader bin/vm-hands/index-cvnymkkb.js
High External Ai Agent Control Surface Mutation bin/vm-hands/index-cvnymkkb.js
High Cross File Remote Execution Context bin/vm-hands/vm-hands-executor-j4q5snaz.js
High Semantic Analysis Limited bin/vm-hands/index-cvnymkkb.js
High
Affected versions and remediation This report applies to @reason-machines/cli-linux-arm64-musl@0.2.388 .
See all versions of @reason-machines/cli-linux-arm64-musl for other recorded verdicts.
Avoid installing @reason-machines/cli-linux-arm64-musl@0.2.388. Remove it from direct dependencies and check your lockfile for transitive copies. Choose an independently verified alternative or release. This report does not establish that other versions are safe. If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment. Evidence last updated: 2026-10-18 08:56:59.124Z (UTC) .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced .
NoLicense
scanned 76 file(s), 5.52 MB of source, external domains: 127.0.0.1, api-staging.ara.so, api.ara.so, api.github.com, api.reasonmachines.ai, api.reasonmachines.com, auth.x.ai, bootstrap.invalid, camo.githubusercontent.com, cdn.playwright.dev, chromewebstore.google.com, claude.ai, cursor.com, docs.reasonmachines.com, dotenvx.com, dummy.test, edgeupdates.microsoft.com, example.com, ffmpeg.martin-riedl.de, git-scm.com, github.com, github.com.helper, json-schema.org, mcp.reasonmachines.com, nodejs.org, openbox.org, playwright.bloburl, playwright.dev, playwright.download.prss.microsoft.com, proxy.example.com, raw.githubusercontent.com, reasonmachines.ai, reasonmachines.com, registry.npmjs.org, schemas.microsoft.com, staging-api.reasonmachines.ai, staging-api.reasonmachines.com, staging.reasonmachines.ai, storage.googleapis.com, support.microsoft.com, worker-probe.invalid, www.apple.com, www.w3.org
bin/runtime/srt/sandbox-runtime.mjs
47 \r
L48: Connection blocked by network allowlist`);return}if(W||Y.destroyed){Y.destroy();return}let P=jJ(j)??j;if($.mitmCA&&($.shouldTerminateTLS?.(P,C)??!0)){Y.write(`HTTP/1.1 200 Connecti...
L49: \r
...
L55: \r
L56: `)}}),J.on("request",async(Q,Y)=>{Q.on("error",(G)=>{Z(`Client request error: ${G.message}`,{level:"error"})}),Y.on("error",(G)=>{Z(`Client response error: ${G.message}`,{level:"er...
L57: `)),$.end(eq(W))}function L7($){return Buffer.from([5,$,0,1,0,0,0,0,0,0])}function tq($){return new Promise((J)=>{let X=Buffer.alloc(0),Q=(W)=>{$.off("data",G),clearTimeout(Y),J(W)...
...
L60: mux backend dial failed (${H})
L61: `)}),M.on("error",()=>O.destroy()),M.once("close",()=>O.destroy()),O.once("close",()=>M.destroy()),M.pipe(O),O.pipe(M)}let U=$6((M)=>{G.add(M),M.once("close",()
High Command Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
bin/runtime/srt/sandbox-runtime.mjs View on unpkg · L47 bin/vm-hands/vm-hands-entry-lite-e05sgnwe.js View file 1 // @bun
L2: import{Jk as s}from"./vm-hands-entry-lite-grjkhbf2.js";var mc={};s(mc,{xor:()=>Zl,xid:()=>kl,void:()=>Bl,uuidv7:()=>$l,uuidv6:()=>ul,uuidv4:()=>el,uuid:()=>vl,util:()=>k,url:()=>gl...
L3: `)}var Pr=(n)=>(i,o,v,r)=>{let t=v?{...v,async:!1}:{async:!1},e=i._zod.run({value:o,issues:[]},t);if(e instanceof Promise)throw new C;if(e.issues.length){let u=new(r?.Err??n)(e.iss...
High Eval
Package source references dynamic code evaluation.
bin/vm-hands/vm-hands-entry-lite-e05sgnwe.js View on unpkg · L1 bin/vm-hands/vm-hands-entry-lite-kb981w39.js View file 1 // @bun
L2: import{Hc as n}from"./vm-hands-entry-lite-s7k376cz.js";import{dd as r}from"./vm-hands-entry-lite-g7h6wjqy.js";import{sk as a,tk as s,wk as i}from"./vm-hands-entry-lite-te0p47ak.js"...
L3: `);Y=j}function Vj(j){if(Y)return!1;if(!R){if(_=fj(j??{}),R=!0,_&&!j)Yj()}return _!==null}function vj(){return Vj()?_:null}var k=null,I=0;function x(j,q){if(Y)throw new B("sandbox_...
Medium Dynamic Require
Package source references dynamic require/import behavior.
bin/vm-hands/vm-hands-entry-lite-kb981w39.js View on unpkg · L1 1 // @bun
L2: import{Aa as iJ0}from"./vm-hands-entry-lite-nr1narzb.js";import{Gk as NV0,Hk as rn,Ik as EJ,Kk as an,Lk as X0}from"./vm-hands-entry-lite-grjkhbf2.js";var on={};var $T;var WT=an(()=...
L3: `)!=-1,q=this._styles,O=q.length;while(O--){var E=G[q[O]];if(A=E.open+A.replace(E.closeRe,E.open)+E.close,R)A=A.replace($,function(D){return E.close+D+E.open})}return A}X.setTheme=...
L4: `).join(`
L5: `+N),U.push(z+"m+"+Y.exports.humanize(this.diff)+"\x1B[0m")}else U[0]=$()+M+" "+U[0]}function $(){if(Q.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function W(...
L6: `)}function K(U){if(U)process.env.DEBUG=U;else delete process.env.DEBUG}function H(){return process.env.DEBUG}function B(U){U.inspectOpts={};let M=Object.keys(Q.inspectOpts);for(le...
...
L8: `:`
L9: `,U=B.
Critical Remote Asset Decode Execute
Source fetches a remote non-code asset, decodes its contents, and dynamically executes the decoded payload.
bin/vm-hands/index-cvnymkkb.js View on unpkg · L1 239 `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICO...
L240: GFS4: `),console.error(A)};if(!X[W]){if(U=global[W]||[],B(X,U),X.close=function(A){function R(q,O){return A.call(X,q,function(E){if(!E)z();if(typeof O==="function")O.apply(this,arg...
L241: `:""},this._extScope=S,this._scope=new X.Scope({parent:S}),this._nodes=[new F]}toString(){return this._root.render(this.opts)}name(S){return this._scope.name(S)}scopeName(S){return...
High Obfuscated Payload Loader
Source contains an obfuscated payload loader that reconstructs and executes hidden code.
bin/vm-hands/index-cvnymkkb.js View on unpkg · L239 • Runtime or CLI code links a write operation to an explicit external AI-agent control path:
buffer()),u=await kl(b,v,y.output);console.log(` screenshot saved to ${u}`)}var p50=j0({"packages/playwright-[redacted].ts"(){kx()}});async function n50(){let q=await k7();if(!q.model.attachments.length){console.log(" no attachments");return}console.log(` ${"#".padstart(4)} ${"name".padend(40)} ${"content-type".padend(30)} ${"action".padend(8)}`),console.log(` ${"\u2500".repeat(4)} ${"\u2500".repeat(40)} ${"\u2500".repeat(30)} ${"\u2500".repeat(8)}`);for(let y=0;y<q.model.attachments.length;y++){let x=q.model.attachments[y],j=q.callidtoordinal.get(x.callid);console.log(` ${(y+1+".").padstart(4)} ${x.name.padend(40)} ${x.contenttype.padend(30)} ${(j!==void 0?string(j):x.callid).padend(8)}`)}}asyn
High External Ai Agent Control Surface Mutation
Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.
bin/vm-hands/index-cvnymkkb.js View on unpkg • stage = ast_semantic_analysis; reason = ast_path_work_budget_exceeded; limitedFiles = 3
High Semantic Analysis Limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
bin/vm-hands/index-cvnymkkb.js View on unpkg • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/index-7f2kwwen.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/index-cvnymkkb.js View on unpkg bin/vm-hands/vm-hands-executor-j4q5snaz.js View file 1 Cross-file remote execution chain: bin/vm-hands/vm-hands-executor-j4q5snaz.js spawns bin/vm-hands/vm-hands-entry-lite-e05sgnwe.js; helper contains network access plus dynamic code execution.
L1: // @bun
L2: import{s as wq}from"./vm-hands-entry-lite-3vb4he21.js";import{Mb as Nq,qc as Aq,wb as jq,wc as Rq}from"./vm-hands-entry-lite-yzaz1e8r.js";import"./vm-hands-entry-lite-s7k376cz.js";...
L3: `)){let q=W.split(" ");if(q.length<10||!/^\d+:\d+$/.test(q[2]))continue;$.push({device:q[2],root:Yq(q[3]),mountPoint:Yq(q[4])})}return $}function kq(X,$,W){let q=X.replace(/\/+$/,"...
L4: `).filter(Boolean);Y=Z.length;let K=z.map((U)=>{try{return Number(JSON.parse(U).elapsed_ms)||0}catch{return 0}});if(K.length)q("vm_hands.srt_server_starts",{count:K.length,elapsed_...
L5: `).filter(Boolean).slice(0,10
High Cross File Remote Execution Context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
bin/vm-hands/vm-hands-executor-j4q5snaz.js View on unpkg · L1 • path = bin/ara
kind = native_binary
sizeBytes = 98611064
magicHex = [redacted]
Medium Ships Native Binary
Package ships native binary artifacts.
bin/ara View on unpkg bin/vm-hands/vm-hands-entry-lite-n25efwqt.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-mn64e4pt.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-n25efwqt.js View on unpkg • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/ask-relay-xa9bffq4.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/ask-relay-rpekz0vc.js View on unpkg bin/vm-hands/vm-hands-entry-lite-9fc26f9c.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-j8q0pdsq.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-9fc26f9c.js View on unpkg bin/vm-hands/vm-hands-entry-lite-axe84b1n.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-vj9h1knv.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-axe84b1n.js View on unpkg bin/vm-hands/vm-hands-entry-lite-nf0avf46.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-d00dg3ys.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-nf0avf46.js View on unpkg bin/vm-hands/vm-hands-entry-lite-yzaz1e8r.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-xq8bkqrd.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-yzaz1e8r.js View on unpkg bin/vm-hands/vm-hands-entry-lite-zs3jsffv.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-w7havvz8.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-zs3jsffv.js View on unpkg bin/vm-hands/vm-hands-entry-lite-30rnhzfj.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-f02906k8.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-30rnhzfj.js View on unpkg bin/vm-hands/vm-hands-entry-lite-6tv7j3ej.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-wc6skbhf.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-6tv7j3ej.js View on unpkg bin/vm-hands/vm-hands-entry-lite-e2mjbqmr.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-e2mjbqmr.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-e2mjbqmr.js View on unpkg bin/vm-hands/vm-hands-entry-lite-g7h6wjqy.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-g7h6wjqy.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-g7h6wjqy.js View on unpkg Known Malware Source Similarity
bin/vm-hands/vm-hands-entry-lite-n25efwqt.js
High Known Malware Source Similarity bin/vm-hands/ask-relay-rpekz0vc.js
High Known Malware Source Similarity bin/vm-hands/index-cvnymkkb.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-9fc26f9c.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-axe84b1n.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-nf0avf46.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-yzaz1e8r.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-zs3jsffv.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-30rnhzfj.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-6tv7j3ej.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-e2mjbqmr.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-g7h6wjqy.js
Medium Dynamic Require bin/vm-hands/vm-hands-entry-lite-kb981w39.js
Medium Ships Native Binary bin/ara
Medium Structural Risk Force Deep Review
Behavioral surface ChildProcess Crypto DynamicRequire EnvironmentVars Eval Filesystem Network Shell WebSocket HighEntropyStrings Minified PossibleObfuscation UrlStrings NoLicense
Source & flagged code23 flagged 60 mux backend dial failed (${H})
L61: `)}),M.on("error",()=>O.destroy()),M.once("close",()=>O.destroy()),O.once("close",()=>M.destroy()),M.pipe(O),O.pipe(M)}let U=$6((M)=>{G.add(M),M.once("close",()=>G.delete(M)),M.on(...
L62: `).filter(Boolean);if(F===1)return[];throw Error(`ripgrep failed with exit code ${F}: ${q}`)}import{join as V0,dirname as T6}from"path";import{fileURLToPath as S6}from"url";import*...
High Child Process
Package source references child process execution.
bin/runtime/srt/sandbox-runtime.mjs View on unpkg · L60 55 \r
L56: `)}}),J.on("request",async(Q,Y)=>{Q.on("error",(G)=>{Z(`Client request error: ${G.message}`,{level:"error"})}),Y.on("error",(G)=>{Z(`Client response error: ${G.message}`,{level:"er...
L57: `)),$.end(eq(W))}function L7($){return Buffer.from([5,$,0,1,0,0,0,0,0,0])}function tq($){return new Promise((J)=>{let X=Buffer.alloc(0),Q=(W)=>{$.off("data",G),clearTimeout(Y),J(W)...
...
L60: mux backend dial failed (${H})
L61: `)}),M.on("error",()=>O.destroy()),M.once("close",()=>O.destroy()),O.once("close",()=>M.destroy()),M.pipe(O),O.pipe(M)}let U=$6((M)=>{G.add(M),M.once("close",()=>G.delete(M)),M.on(...
L62: `).filter(Boolean);if(F===1)return[];throw Error(`ripgrep failed with exit code ${F}: ${q}`)}import{join as V0,dirname as T6}from"path";import{fileURLToPath as S6}from"url";import*
High Same File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
bin/runtime/srt/sandbox-runtime.mjs View on unpkg · L55 47 \r
L48: Connection blocked by network allowlist`);return}if(W||Y.destroyed){Y.destroy();return}let P=jJ(j)??j;if($.mitmCA&&($.shouldTerminateTLS?.(P,C)??!0)){Y.write(`HTTP/1.1 200 Connecti...
L49: \r
...
L55: \r
L56: `)}}),J.on("request",async(Q,Y)=>{Q.on("error",(G)=>{Z(`Client request error: ${G.message}`,{level:"error"})}),Y.on("error",(G)=>{Z(`Client response error: ${G.message}`,{level:"er...
L57: `)),$.end(eq(W))}function L7($){return Buffer.from([5,$,0,1,0,0,0,0,0,0])}function tq($){return new Promise((J)=>{let X=Buffer.alloc(0),Q=(W)=>{$.off("data",G),clearTimeout(Y),J(W)...
...
L60: mux backend dial failed (${H})
L61: `)}),M.on("error",()=>O.destroy()),M.once("close",()=>O.destroy()),O.once("close",()=>M.destroy()),M.pipe(O),O.pipe(M)}let U=$6((M)=>{G.add(M),M.once("close",()
High Command Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
bin/runtime/srt/sandbox-runtime.mjs View on unpkg · L47 bin/vm-hands/vm-hands-entry-lite-e05sgnwe.js View file Lines 1-21 javascript
2 import {Jk as s} from "./vm-hands-entry-lite-grjkhbf2.js" ; var mc = {}; s (mc,{ xor :() => Zl, xid :() => kl, void :() => Bl,
bin/vm-hands/vm-hands-entry-lite-kb981w39.js View file Lines 1-8 javascript
2 import {Hc as n} from "./vm-hands-entry-lite-s7k376cz.js" ; import {dd as r} from "./vm-hands-entry-lite-g7h6wjqy.js" ; import {sk as a,tk as s,wk as i} from "./vm-hands-entry-lite-te0p47ak.js"
1 // @bun
L2: import{Aa as iJ0}from"./vm-hands-entry-lite-nr1narzb.js";import{Gk as NV0,Hk as rn,Ik as EJ,Kk as an,Lk as X0}from"./vm-hands-entry-lite-grjkhbf2.js";var on={};var $T;var WT=an(()=...
L3: `)!=-1,q=this._styles,O=q.length;while(O--){var E=G[q[O]];if(A=E.open+A.replace(E.closeRe,E.open)+E.close,R)A=A.replace($,function(D){return E.close+D+E.open})}return A}X.setTheme=...
L4: `).join(`
L5: `+N),U.push(z+"m+"+Y.exports.humanize(this.diff)+"\x1B[0m")}else U[0]=$()+M+" "+U[0]}function $(){if(Q.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function W(...
L6: `)}function K(U){if(U)process.env.DEBUG=U;else delete process.env.DEBUG}function H(){return process.env.DEBUG}function B(U){U.inspectOpts={};let M=Object.keys(Q.inspectOpts);for(le...
...
L8: `:`
L9: `,U=B.
Critical Remote Asset Decode Execute
Source fetches a remote non-code asset, decodes its contents, and dynamically executes the decoded payload.
bin/vm-hands/index-cvnymkkb.js View on unpkg · L1 239 `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICO...
L240: GFS4: `),console.error(A)};if(!X[W]){if(U=global[W]||[],B(X,U),X.close=function(A){function R(q,O){return A.call(X,q,function(E){if(!E)z();if(typeof O==="function")O.apply(this,arg...
L241: `:""},this._extScope=S,this._scope=new X.Scope({parent:S}),this._nodes=[new F]}toString(){return this._root.render(this.opts)}name(S){return this._scope.name(S)}scopeName(S){return...
High Obfuscated Payload Loader
Source contains an obfuscated payload loader that reconstructs and executes hidden code.
bin/vm-hands/index-cvnymkkb.js View on unpkg · L239 bin/vm-hands/vm-hands-executor-j4q5snaz.js View file Lines 1-12 javascript
2 import {s as wq} from "./vm-hands-entry-lite-3vb4he21.js" ; import {Mb as Nq,qc as Aq,wb as jq,wc as Rq} from "./vm-hands-entry-lite-yzaz1e8r.js" ; import "./vm-hands-entry-lite-s7k376cz.js" ; import
• path = bin/ara
kind = native_binary
sizeBytes = 98611064
magicHex = [redacted]
Medium Ships Native Binary
Package ships native binary artifacts.
bin/ara View on unpkg bin/vm-hands/vm-hands-entry-lite-n25efwqt.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-mn64e4pt.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-n25efwqt.js View on unpkg • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/ask-relay-xa9bffq4.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/ask-relay-rpekz0vc.js View on unpkg bin/vm-hands/vm-hands-entry-lite-9fc26f9c.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-j8q0pdsq.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-9fc26f9c.js View on unpkg bin/vm-hands/vm-hands-entry-lite-axe84b1n.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-vj9h1knv.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-axe84b1n.js View on unpkg bin/vm-hands/vm-hands-entry-lite-nf0avf46.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-d00dg3ys.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-nf0avf46.js View on unpkg bin/vm-hands/vm-hands-entry-lite-yzaz1e8r.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-xq8bkqrd.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-yzaz1e8r.js View on unpkg bin/vm-hands/vm-hands-entry-lite-zs3jsffv.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-w7havvz8.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-zs3jsffv.js View on unpkg bin/vm-hands/vm-hands-entry-lite-30rnhzfj.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-f02906k8.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-30rnhzfj.js View on unpkg bin/vm-hands/vm-hands-entry-lite-6tv7j3ej.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-wc6skbhf.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-6tv7j3ej.js View on unpkg bin/vm-hands/vm-hands-entry-lite-e2mjbqmr.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-e2mjbqmr.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-e2mjbqmr.js View on unpkg bin/vm-hands/vm-hands-entry-lite-g7h6wjqy.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/vm-hands-entry-lite-g7h6wjqy.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/vm-hands-entry-lite-g7h6wjqy.js View on unpkg uuidv7
:()
=>
$l,
uuidv6
:()
=>
ul,
uuidv4
:()
=>
el,
uuid
:()
=>
vl,
util
:()
=>
k,
url
:()
=>
gl,
uppercase
:()
=>
Xr,
unknown
:()
=>
mr,
union
:()
=>
gt,
undefined
:()
=>
Tl,
ulid
:()
=>
Ul,
uint64
:()
=>
Ql,
uint32
:()
=>
ql,
tuple
:()
=>
Q$
,
trim
:()
=>
Tr,
treeifyError
:()
=>
Lt,
transform
:()
=>
ct,
toUpperCase
:()
=>
Br,
toLowerCase
:()
=>
Hr,
toJSONSchema
:()
=>
Yi,
templateLiteral
:()
=>
uc,
symbol
:()
=>
Fl,
superRefine
:()
=>
cg,
success
:()
=>
tc,
stringbool
:()
=>
Uc,
stringFormat
:()
=>
Ll,
string
:()
=>
On,
strictObject
:()
=>
Rl,
startsWith
:()
=>
Kr,
slugify
:()
=>
Mr,
size
:()
=>
Dr,setErrorM
...
3 `)}var Pr=(n)=>(i,o,v,r)=>{let t=v?{...v,async:!1}:{async:!1},e=i._zod.run({value:o,issues:[]},t);if(e instanceof Promise)throw new C;if(e.issues.length){let u=new(r?.Err??n)(e.issues.map((g)=>Y(g,t,W())));throw Qn(u,r?.callee),u}return e.value},Fn=Pr(B),Jr=(n)=>async(i,o,v,r)=>{let t=v?{...v,async:!0}:{async:!0},e=i._zod.run({value:o,issues:[]},t);if(e instanceof Promise)e=await e;if(e.issues.length){let u=new(r?.Err??n)(e.issues.map((g)=>Y(g,t,W())));throw Qn(u,r?.callee),u}return e.value},Tn=Jr(B),Lr=(n)=>(i,o,v)=>{let r=v?{...v,async:!1}:{async:!1},t=i._zod.run({value:o,issues:[]},r);if(t ...
High Eval
Package source references dynamic code evaluation.
bin/vm-hands/vm-hands-entry-lite-e05sgnwe.js View on unpkg · L1 4 ` ). filter (( t ) => t),v = Math. min ( ... o. map (( t ) => t. length - t. trimStart (). length )),r = o. map (( t ) => t. slice (v)). map (( t ) => " " . repeat ( this .indent * 2 ) + t); for (let t of r) this .content. push (t)} compile (){let n = Function,i = this ?.args,v = [ ... ( this ?.content ?? [ "" ]). map (( r ) => ` ${ r }` )];return new n ( ... i,v. join ( `
5 ` ))}}var jo = {major: 4 ,minor: 4 ,patch: 3 };var z = l ( "$ZodType" ,( n , i ) => { var o;n ?? (n = {}),n._zod.def = i,n._zod.bag = n._zod.bag || {},n._zod.version = jo; let v = [ ... n._zod.def.checks ?? []]; if (n._zod.traits. has ( "$ZodCheck" ))v. unshift (n); for ( let r of v) for ( let t of r._zod.onattach) t (n); if (v. length === 0 )(o = n._zod).deferred ?? (o.deferred = []),n._zod.deferred?. push (() => {n._zod.run = n._zod.parse}); else { let r = ( e , u , g ) => { let $ = er (e),c; for ( let b of u){ if (b._zod.def.when){ if ( Jt (e)) continue ; if ( ! b._zod.def. when (e)) continue } else if ($) continue ; let S = e.issues. length , D = b._zod. check (e); if ( D instanceof Promise && g?.async ===! 1 ) throw ne ...
6 if (${G}.issues. length ) {
8 payload.issues = payload.issues. concat (${G}.issues. map ( iss => ({
10 path: iss.path ? [${V}, ... iss.path] : [${V}]
15 if (${G}.value === undefined ) {
17 newResult[${V}] = undefined ;
20 newResult[${V}] = ${ G }.value;
Long lines were clipped for display.
;
import
{Fk
as
B}
from
"./vm-hands-entry-lite-fw5ztpwn.js"
;
import
{spawn
as
f,spawnSync
as
v}
from
"child_process"
;
import
{existsSync
as
U,mkdtempSync
as
o,readFileSync
as
t,readdirSync
as
_j,realpathSync
as
Sj,rmSync
as
e,statSync
as
jj}
from
"fs"
;
import
{platform
as
h,tmpdir
as
qj}
from
"os"
;
import
{dirname
as
E,join
as
H,win32
as
T}
from
"path"
;
import
{fileURLToPath
as
Mj,pathToFileURL
as
y}
from
"url"
;
var
kj
=
[
"bwrap"
,
"socat"
,
"rg"
]
...
3 `);Y=j}function Vj(j){if(Y)return!1;if(!R){if(_=fj(j??{}),R=!0,_&&!j)Yj()}return _!==null}function vj(){return Vj()?_:null}var k=null,I=0;function x(j,q){if(Y)throw new B("sandbox_unavailable","Confined execution is unavailable in this worker process.");if(X&&j.sandboxMode&&X!==j.sandboxMode)W();let G=X??j.sandboxMode??vj();if(!G)throw new B("sandbox_unavailable","Confined command execution is unavailable on this operating system.");if(S&&S!==G)W();return S=G,k??=(async()=>{let{SandboxManager:z}=await(j.loadSandboxRuntime??Kj)();return await z.initialize(uj(G,q)),z})().catch((z)=>{if(k=null,q) ...
Medium Dynamic Require
Package source references dynamic require/import behavior.
bin/vm-hands/vm-hands-entry-lite-kb981w39.js View on unpkg · L1 4 ` ); else A ( `initialize_failed: ${ String ( z ) }` ); throw z instanceof B ? z :new B ( "sandbox_unavailable" , "The confined execution sandbox failed to start." )}),k. then (( z ) => { if ( Y ) throw new B ( "sandbox_unavailable" , "Confined execution became unavailable during sandbox initialization." ); return z})} function O (){ if ( I -= 1 , I === 0 ) for ( let j of D . splice ( 0 )) j ()} async function Zj ( j , q =! 0 , G , z ){ let J = z ===void 0 ? 1 / 0 : Date. now () + z; await Bj (); let K = bj (); if (q) await K ; let Q = JSON . stringify (j), V =! 1 , $ = () => { if ( ! V ) return ; V =! 1 ; let Z = ( N . get ( Q ) ?? 1 ) - 1 ; if ( Z > 0 ) N . set ( Q , Z ); else N . delete ( Q )}; try { for (;;){ if ( G ?.aborted) throw new B ( "cancelled" ...
5 `);return q})(),m}function Uj(j,q,G){return new Promise((z)=>{let J=f(j,q,{stdio:["pipe","pipe","ignore"],windowsHide:!0,timeout:120000}),K="";J.stdout?.setEncoding("utf8").on("data",(Q)=>{K+=Q}),J.on("error",()=>z({status:null,stdout:K})),J.on("close",(Q)=>z({status:Q,stdout:K})),J.stdin?.end(G??"")})}function bj(j=C()){return l??=(async()=>{let q=hj();if(q.length===0)return;let G=await Bj(j),z=G?await Uj(j,["acl","stamp","--holder-pid",String(process.ppid),"--sandbox-user-sid",G],JSON.stringify({denyRead:[],denyWrite:q})):null;if(!z||z.status!==0&&z.status!==2)A(` program_folder_deny_failed: ...
6 `)})(),l}var yj=` h = $ (mktemp - d) || exit 125 ; trap 'rm -rf "$h"' EXIT ; mkdir - p "$h/AppData/Roaming" "$h/AppData/Local" ; w = $ (cygpath - w "$h" ); export HOME = "$h" USERPROFILE = "$w" APPDATA = "$w \\ AppData \\ Roaming" LOCALAPPDATA = "$w \\ AppData \\ Local" TEMP = "$w" TMP = "$w" ; `;async function Xj(){let j=k;if(k=null,P=null,!j)return;try{await(await j).reset()}catch{}}async function Yj(j={}){if(Y)return!1;if(j.loadSandboxRuntime)return d(j.loadSandboxRuntime);if(!Vj())return!1;return c??=d(Kj),c}async function d(j){try{let{SandboxManager:q}=await j();if(process.platform==="win32"){if(!U(C()))A("dependencies_mis ...
7 export{oj as xc,C as yc,tj as zc,ej as Ac,jq as Bc,qq as Cc,Vj as Dc,zq as Ec,Cj as Fc,Gq as Gc};
Long lines were clipped for display.
• Runtime or CLI code links a write operation to an explicit external AI-agent control path:
buffer()),u=await kl(b,v,y.output);console.log(` screenshot saved to ${u}`)}var p50=j0({"packages/playwright-[redacted].ts"(){kx()}});async function n50(){let q=await k7();if(!q.model.attachments.length){console.log(" no attachments");return}console.log(` ${"#".padstart(4)} ${"name".padend(40)} ${"content-type".padend(30)} ${"action".padend(8)}`),console.log(` ${"\u2500".repeat(4)} ${"\u2500".repeat(40)} ${"\u2500".repeat(30)} ${"\u2500".repeat(8)}`);for(let y=0;y<q.model.attachments.length;y++){let x=q.model.attachments[y],j=q.callidtoordinal.get(x.callid);console.log(` ${(y+1+".").padstart(4)} ${x.name.padend(40)} ${x.contenttype.padend(30)} ${(j!==void 0?string(j):x.callid).padend(8)}`)}}asyn
High External Ai Agent Control Surface Mutation
Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.
bin/vm-hands/index-cvnymkkb.js View on unpkg • stage = ast_semantic_analysis; reason = ast_path_work_budget_exceeded; limitedFiles = 3
High Semantic Analysis Limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
bin/vm-hands/index-cvnymkkb.js View on unpkg • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64-musl@0.2.387
matchedPath = bin/vm-hands/index-7f2kwwen.js
matchedIdentity = npm:[redacted]:0.2.387
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
bin/vm-hands/index-cvnymkkb.js View on unpkg "./vm-hands-entry-lite-n25efwqt.js"
;
import
"./vm-hands-entry-lite-y55f8dyw.js"
;
import
"./vm-hands-entry-lite-v2ptg6br.js"
;
import
"./vm-hands-entry-lite-jx3w1z5q.js"
;
import
"./vm-hands-entry-lite-fb5dzy9x.js"
;
import
"./vm-hands-entry-lite-2e18tm6w.js"
;
import
"./vm-hands-entry-lite-ammr3xbc.js"
;
import
"./vm-hands-entry-lite-y2s2w174.js"
;
import
"./vm-hands-entry-lite-e2mjbqmr.js"
;
import
"./vm-hands-entry-lite-ma001vzh.js"
;
...
3 `)){let q=W.split(" ");if(q.length<10||!/^ \d +: \d +$/.test(q[2]))continue;$.push({device:q[2],root:Yq(q[3]),mountPoint:Yq(q[4])})}return $}function kq(X,$,W){let q=X.replace(/ \/ +$/,"")||"/",J=(F)=>q==="/"||F===q||F.startsWith(` ${q} / `),G=(F)=>new Map(hq(F).filter((R)=>J(R.mountPoint)).map((R)=>[` ${ R .mountPoint}\x00${ R .device}\x00${ R .root} `,R.mountPoint])),Y=G($),A=G(W),j=(F)=>_q(q,F)||".",f=[...Y].filter(([F])=>!A.has(F)).map(([,F])=>j(F)),O=[...A].filter(([F])=>!Y.has(F)).map(([,F])=>j(F));return{missing:f,extra:O,referenceCount:Y.size,ownCount:A.size}}function Kq(X,$,W,q="/proc"){let J,G,Y=null ...
4 ` ). filter (Boolean); Y = Z . length ; let K = z. map (( U ) => { try { return Number ( JSON . parse ( U ).elapsed_ms) || 0 } catch { return 0 }}); if ( K . length ) q ( "vm_hands.srt_server_starts" ,{count: K . length ,elapsed_ms: K . slice ( 0 , 8 )})} catch {}},j = null ,f =! 1 , O = X .srtCgroup ?? "/sys/fs/cgroup/reason-srt" , F = () => {j ??= Uq ()}, R = 0 , v = () => { try { let Z = I (lq, "utf8" ),z = Z . slice ( R > Z . length ? 0 : R ); R = Z . length ; let K = z. split ( `
5 ` ). filter (Boolean). slice ( 0 , 1000 ); if ( ! K . length ) return null ; let U = {}, T = 0 ; for ( let N of K ) try { let M = JSON . parse ( N ), B =typeof M .code === "string" && / ^ [a-z_] {1,40}$ / . test ( M .code) ? M .code : "other" ; if ( U [ B ] = ( U [ B ] ?? 0 ) + 1 , typeof M .elapsed_ms === "number" ) T = Math. max ( T , M .elapsed_ms)} catch { U .unparsed = ( U .unparsed ?? 0 ) + 1 } return q ( "vm_hands.srt_fallbacks" ,{count: K . length ,codes: U ,max_elapsed_ms: T }),{count: K . length ,codes: U ,max_elapsed_ms: T }} catch { return null }}, P =! 1 , m = ( Z , z , K ) => { if ( P ) throw Error ( "vm_hands_pool_held" ); return vq ( Z ,z, K )}, i = ( Z ) => ( z , K , U ) => gq ( "/bin/sh" ,[ "-c" , `echo $$ > ${ Iq ( L ( Z , "cgroup.procs" )) } || exit 125; exec ...
6 ` ). find (( J ) => J . startsWith ( "0::" ))?. slice ( 3 ) === $}catch{return! 1 }} function b ( X , $ , W = "/proc" ){ try { let J = I ( L ( W , String ( X ), "cgroup" ), "utf8" ). split ( `
7 ` ). find (( G ) => G . startsWith ( "0::" ))?. slice ( 3 ) ?? "" ; return J === $ || J . startsWith ( `${ $ }/` )} catch { return! 1 }}var sq = 100 ; function Uq (){ try { return Math. floor ( Number ( I ( "/proc/uptime" , "utf8" ). split ( " " )[ 0 ]) * sq)} catch { return 0 }} async function a ( X , $ , W ){ try { y ( L ( X , "cgroup.freeze" ), "1" )} catch (q){ throw new D ( "vm_hands_kill_unverified" , `${ W } cgroup.freeze: ${ q instanceof Error ? q . message : String ( q ) }` )} while ( ! / ^ populated 0 $ / m . test ( I ( L ( X , "cgroup.events" ), "utf8" ))){ if (Date. now () > $) throw new D ( "vm_hands_kill_unverified" , `${ W } cgroup still populated (left frozen)` ); for ( let q of Oq ( X )){ if ( ! fq (q, X )) continue ; try {process.ki ...
8 `).find((G)=>G.startsWith("0::"))??""}catch{return!1}let J=q.slice(3);return J===W||J.startsWith(` ${ W } / `)}function Oq(X){let $=[],W=(q)=>{try{for(let G of I(L(q,"cgroup.procs"),"utf8").split(`
9 `))if(/^ \d +$/.test(G))$.push(Number(G))}catch{}let J=[];try{J=s(q,{withFileTypes:!0}).filter((G)=>G.isDirectory()).map((G)=>G.name)}catch{}for(let G of J)W(L(q,G))};return W(X),$}function t(X,$="/proc"){return X.slice(0,16).map((W)=>{let q="?",J="?";try{q=I(L($,String(W),"comm"),"utf8").trim().slice(0,32)}catch{}try{J=(I(L($,String(W),"cgroup"),"utf8").split(`
10 `).find((G)=>G.startsWith("0::"))??"").slice(3,120)}catch{}return{pid:W,comm:q,ppid:Cq(W,$),cgroup:J}})}function Zq(X,$="/proc"){let W=[];for(let q of s($)){if(!/^ \d +$/.test(q))continue;let J;try{J=I(L($,q,"stat"),"utf8")}catch{continue}let G=J.slice(J.lastIndexOf(")")+2).split(" "),Y=Number(G[1]),A=Number(G[6]),j=Number(G[19]);if(!((A&2097152)!==0||Y===2||q==="2")&&G[0]!=="Z"&&j>=X)W.push(Number(q))}return W}function $q(X,$="/proc"){let W=[];for(let q of s($)){if(!/^ \d +$/.test(q))continue;let J;try{J=I(L($,q,"status"),"utf8")}catch{continue}let G=/^Uid: \s +( \d +) \s +( \d +) \s +( \d +) \s +( \d +)/m.exec( ...
11 ` ). find (( G ) => G . startsWith ( "0::" )) ?? "" } catch {d. delete ( X ); return } if ( J . slice ( 3 ) === W ){d. delete ( X ); return } setTimeout (q, 1 )}; q ()} function YX ( X ){ let $ = {person: X .personCgroup ?? L ( "/sys/fs/cgroup" , E , H ),model: X .payloadCgroup ?? L (Pq, H )}, W = X .entry ?? process.argv[ 1 ] ?? "" ,q = {}, J = ( Y ) => Y . startsWith ( "model:" ) && X .bindCgroup ? X . bindCgroup ( Y . slice ( 6 )) : $[ Y . startsWith ( "model" ) ? "model" : "person" ], G = ( Y ) => { let A = Y . startsWith ( "model" ) ? "model" : "person" ,j =new Map,f = String ( X .payloadUid), O = String ( X .payloadGid), F = Bun. spawn ([ "/bin/sh" , "-c" , `echo $$ > ${ Iq ( L ( J ( Y ), "cgroup.procs" )) } || exit 125; exec /usr/bin/setpriv --no-new-privs -- ...
High Cross File Remote Execution Context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
bin/vm-hands/vm-hands-executor-j4q5snaz.js View on unpkg · L1 Long lines were clipped for display.