Loading npm security reports…
@reason-machines/cli-linux-arm64@0.2.349: Credential exfiltration | LPM Firewall
Blocked & quarantined
The Reason service receives access tokens for third-party accounts, exposing those accounts to use through the service.
AI Security Reviewscanned 6d ago · by lpm-firewall-ai Source shows default-on collection and forwarding of saved third-party access tokens to the publisher's service without a recipient-specific consent gate. This is concrete credential disclosure, so the package should be blocked.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
Starting a connected worker with local-login mode enabled, including when the setting is absent and defaults on.
Impact
The Reason service receives access tokens for third-party accounts, exposing those accounts to use through the service.
Mechanism
The worker reads saved provider credentials, selects current access tokens, and submits them in the local-subscription request to the Reason service.
Attack narrative
When a connected worker starts, its default-on local-login feature reads saved credentials for third-party coding services and sends current access tokens to the Reason API. The CLI help discloses this behavior and offers an off switch, but the transfer path does not require recipient-specific affirmative consent before sending saved tokens.
AI rationale
Source shows default-on collection and forwarding of saved third-party access tokens to the publisher's service without a recipient-specific consent gate. This is concrete credential disclosure, so the package should be blocked.
Evidence
bin/vm-hands/vm-hands-entry-lite-svs618mf.js bin/vm-hands/vm-hands-entry-lite-1xjtcxpn.js bin/vm-hands/vm-hands-entry-lite-36xzwsxn.js .lpm-inspection-3sISfx/0-316b5fe99f98.txt ~/.claude/.credentials.json ~/.codex/auth.json ~/.grok/auth.json ~/.local/share/opencode/auth.json ~/.pi/agent/auth.json
Network endpoints1
api.reasonmachines.ai /app/local-runtime/local-subscription
Decision evidencepublic snapshot AI called this Malicious at 96.0% confidence as Malware with low false-positive risk.
Evidence for block
The local-login helper reads saved Claude credentials and other provider authentication files from the user's home directory. When local-login mode is enabled, the worker passes collected access tokens to its subscription operation. If local-login mode is unset, the code defaults it to enabled, and the worker calls the handover helper when that mode is active. The subscription operation sends its request body to the Reason local-runtime endpoint on the configured production API origin. The bundled CLI help says local logins are on by default and that Reason receives each login's current access token. Evidence against
The package manifest has no npm lifecycle hook; the token transfer is activated at runtime when the connected worker starts. Behavioral surface
Source ChildProcess Crypto DynamicRequire EnvironmentVars Eval Filesystem Network Shell WebSocket
Supply chain
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-t1h1wd8g.js
High Child Process bin/runtime/srt/sandbox-runtime.mjs
High Shell
High Eval bin/vm-hands/index-t1h1wd8g.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-t1h1wd8g.js
High External Ai Agent Control Surface Mutation bin/vm-hands/index-t1h1wd8g.js
High Cross File Remote Execution Context bin/vm-hands/vm-hands-executor-6q1n7hpe.js
High Semantic Analysis Limited bin/vm-hands/index-t1h1wd8g.js
High Known Malware Source Similarity
Affected versions and remediation This report applies to @reason-machines/cli-linux-arm64@0.2.349 .
See all versions of @reason-machines/cli-linux-arm64 for other recorded verdicts.
Avoid installing @reason-machines/cli-linux-arm64@0.2.349. 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-17 07:26:25.406Z (UTC) .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced .
HighEntropyStrings Minified PossibleObfuscation UrlStrings
scanned 61 file(s), 5.38 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, 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, 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, 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 1 // @bun
L2: import{Q as iJ0}from"./vm-hands-entry-lite-1jhry648.js";import{Ai as X0,vi as NV0,wi as rn,xi as EJ,zi as an}from"./vm-hands-entry-lite-mhsv58hw.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-t1h1wd8g.js View on unpkg · L1 271 `).map((J)=>J+`
L272: `);if(Y)X.pop();else X.push(X.pop().slice(0,-1));return X}function is(Q){let Y=[],X,J;for(let G=0;G<Q.length;G++){if(X=Q[G],X.added)J=1;else if(X.removed)J=-1;else J=0;Y.push([J,X....
L273: `)}var V$=(Q)=>(Y,X,J,G)=>{let Z=J?Object.assign(J,{async:!1}):{async:!1},$=Y._zod.run({value:X,issues:[]},Z);if($ instanceof Promise)throw new AJ;if($.issues.length){let W=new(G?....
High Eval
Package source references dynamic code evaluation.
bin/vm-hands/index-t1h1wd8g.js View on unpkg · L271 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-t1h1wd8g.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-t1h1wd8g.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-t1h1wd8g.js View on unpkg • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/index-t1h1wd8g.js
matchedIdentity = npm:[redacted]:0.2.347
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-t1h1wd8g.js View on unpkg bin/vm-hands/vm-hands-entry-lite-f66d7y5a.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-5cyt4sas.js
matchedIdentity = npm:[redacted]:0.2.347
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-f66d7y5a.js View on unpkg 305 }
L306: `.trim();import{Buffer as X9}from"buffer";import{randomUUID as z1}from"crypto";class tQ extends Error{code;constructor($){super($==="hands_repl_private_profile_attribute_denied"?"P...
L307: `):W;J({status:F.statusCode??502,headers:z,body:Buffer.concat(B)})})}),G=setTimeout(()=>V.destroy(Error("hands_browser_fetch_timeout")),X7);V.once("close",()=>clearTimeout(G)),V.on...
Medium Dynamic Require
Package source references dynamic require/import behavior.
bin/vm-hands/vm-hands-entry-lite-f66d7y5a.js View on unpkg · L305 bin/vm-hands/vm-hands-executor-6q1n7hpe.js View file 1 Cross-file remote execution chain: bin/vm-hands/vm-hands-executor-6q1n7hpe.js spawns bin/vm-hands/vm-hands-entry-lite-2xh7sjs0.js; helper contains network access plus dynamic code execution.
L1: // @bun
L2: import{a as Mq}from"./vm-hands-entry-lite-q756n4nh.js";import{Gb as Fq,Ia as Lq,Kb as Tq,ab as Uq}from"./vm-hands-entry-lite-f66d7y5a.js";import"./vm-hands-entry-lite-wmxksawm.js";...
L3: `).filter(Boolean);B=Z.length;let Y=Q.map((L)=>{try{return Number(JSON.parse(L).elapsed_ms)||0}catch{return 0}});if(Y.length)X("vm_hands.srt_server_starts",{count:Y.length,elapsed_...
L4: `).filter(Boolean).slice(0,1000);if(!Y.length)return null;let L={},F=0;for(let M of Y)try{let R=JSON.parse(M),K=typeof R.code==="string"&&/^[a-z_]{1,40}$/.test(R.code)?R.code:"othe...
L5: `).find((V)=>V.startsWith("0:
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-6q1n7hpe.js View on unpkg · L1 • path = bin/ara
kind = native_binary
sizeBytes = 102869136
magicHex = [redacted]
Medium Ships Native Binary
Package ships native binary artifacts.
bin/ara View on unpkg • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/ask-relay-r3kbaq9w.js
matchedIdentity = npm:[redacted]:0.2.347
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-qr4gmz44.js View on unpkg bin/vm-hands/vm-hands-entry-lite-449p9dx7.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-8ybyzy59.js
matchedIdentity = npm:[redacted]:0.2.347
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-449p9dx7.js View on unpkg bin/vm-hands/vm-hands-entry-lite-svs618mf.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-d6389xx2.js
matchedIdentity = npm:[redacted]:0.2.347
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-svs618mf.js View on unpkg bin/vm-hands/vm-hands-entry-lite-z0wwfy97.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-atjh22sc.js
matchedIdentity = npm:[redacted]:0.2.347
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-z0wwfy97.js View on unpkg • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/status-t0aqrwcp.js
matchedIdentity = npm:[redacted]:0.2.347
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/status-xs5bh7hf.js View on unpkg bin/vm-hands/vm-hands-entry-lite-1xjtcxpn.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-1xjtcxpn.js
matchedIdentity = npm:[redacted]:0.2.347
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-1xjtcxpn.js View on unpkg bin/vm-hands/vm-hands-entry-lite-7ba3nhgv.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-7ba3nhgv.js
matchedIdentity = npm:[redacted]:0.2.347
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-7ba3nhgv.js View on unpkg bin/vm-hands/vm-hands-entry-lite-k2cvr710.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-k2cvr710.js
matchedIdentity = npm:[redacted]:0.2.347
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-k2cvr710.js View on unpkg bin/vm-hands/vm-hands-entry-lite-qwb91tgj.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-aexevj7j.js
matchedIdentity = npm:[redacted]:0.2.347
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-qwb91tgj.js View on unpkg bin/vm-hands/vm-hands-entry-lite-wgjqxtxj.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-f6kc5g59.js
matchedIdentity = npm:[redacted]:0.2.347
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-wgjqxtxj.js View on unpkg bin/vm-hands/ask-relay-qr4gmz44.js
High Known Malware Source Similarity bin/vm-hands/index-t1h1wd8g.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-449p9dx7.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-svs618mf.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-z0wwfy97.js
High Known Malware Source Similarity bin/vm-hands/status-xs5bh7hf.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-1xjtcxpn.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-7ba3nhgv.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-f66d7y5a.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-k2cvr710.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-qwb91tgj.js
High Known Malware Source Similarity bin/vm-hands/vm-hands-entry-lite-wgjqxtxj.js
Medium Dynamic Require bin/vm-hands/vm-hands-entry-lite-f66d7y5a.js
Medium Ships Native Binary bin/ara
Medium Structural Risk Force Deep Review
Install lifecycle No scripts declared.
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 1 // @bun
L2: import{Q as iJ0}from"./vm-hands-entry-lite-1jhry648.js";import{Ai as X0,vi as NV0,wi as rn,xi as EJ,zi as an}from"./vm-hands-entry-lite-mhsv58hw.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-t1h1wd8g.js View on unpkg · L1 271 `).map((J)=>J+`
L272: `);if(Y)X.pop();else X.push(X.pop().slice(0,-1));return X}function is(Q){let Y=[],X,J;for(let G=0;G<Q.length;G++){if(X=Q[G],X.added)J=1;else if(X.removed)J=-1;else J=0;Y.push([J,X....
L273: `)}var V$=(Q)=>(Y,X,J,G)=>{let Z=J?Object.assign(J,{async:!1}):{async:!1},$=Y._zod.run({value:X,issues:[]},Z);if($ instanceof Promise)throw new AJ;if($.issues.length){let W=new(G?....
High Eval
Package source references dynamic code evaluation.
bin/vm-hands/index-t1h1wd8g.js View on unpkg · L271 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...
bin/vm-hands/vm-hands-entry-lite-f66d7y5a.js View file Lines 285-325 javascript
285 // parse top-level await or return. Those programs retain the prior async
286 // block behavior; a syntax failure occurs before any user code executes.
287 if ( ! statementList || ! (error instanceof SyntaxError )) throw error;
bin/vm-hands/vm-hands-executor-6q1n7hpe.js View file Lines 1-11 javascript
2 import {a as Mq} from "./vm-hands-entry-lite-q756n4nh.js" ; import {Gb as Fq,Ia as Lq,Kb as Tq,ab as Uq} from "./vm-hands-entry-lite-f66d7y5a.js" ; import "./vm-hands-entry-lite-wmxksawm.js" ; import
• path = bin/ara
kind = native_binary
sizeBytes = 102869136
magicHex = [redacted]
Medium Ships Native Binary
Package ships native binary artifacts.
bin/ara View on unpkg • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/ask-relay-r3kbaq9w.js
matchedIdentity = npm:[redacted]:0.2.347
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-qr4gmz44.js View on unpkg bin/vm-hands/vm-hands-entry-lite-449p9dx7.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-8ybyzy59.js
matchedIdentity = npm:[redacted]:0.2.347
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-449p9dx7.js View on unpkg bin/vm-hands/vm-hands-entry-lite-svs618mf.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-d6389xx2.js
matchedIdentity = npm:[redacted]:0.2.347
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-svs618mf.js View on unpkg bin/vm-hands/vm-hands-entry-lite-z0wwfy97.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-atjh22sc.js
matchedIdentity = npm:[redacted]:0.2.347
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-z0wwfy97.js View on unpkg • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/status-t0aqrwcp.js
matchedIdentity = npm:[redacted]:0.2.347
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/status-xs5bh7hf.js View on unpkg bin/vm-hands/vm-hands-entry-lite-1xjtcxpn.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-1xjtcxpn.js
matchedIdentity = npm:[redacted]:0.2.347
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-1xjtcxpn.js View on unpkg bin/vm-hands/vm-hands-entry-lite-7ba3nhgv.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-7ba3nhgv.js
matchedIdentity = npm:[redacted]:0.2.347
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-7ba3nhgv.js View on unpkg bin/vm-hands/vm-hands-entry-lite-k2cvr710.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-k2cvr710.js
matchedIdentity = npm:[redacted]:0.2.347
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-k2cvr710.js View on unpkg bin/vm-hands/vm-hands-entry-lite-qwb91tgj.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-aexevj7j.js
matchedIdentity = npm:[redacted]:0.2.347
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-qwb91tgj.js View on unpkg bin/vm-hands/vm-hands-entry-lite-wgjqxtxj.js View file • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-f6kc5g59.js
matchedIdentity = npm:[redacted]:0.2.347
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-wgjqxtxj.js View on unpkg High Obfuscated Payload Loader
Source contains an obfuscated payload loader that reconstructs and executes hidden code.
bin/vm-hands/index-t1h1wd8g.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-t1h1wd8g.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-t1h1wd8g.js View on unpkg • matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/index-t1h1wd8g.js
matchedIdentity = npm:[redacted]:0.2.347
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-t1h1wd8g.js View on unpkg
new
Function
(
'"use strict"; return (async () => {'
+
code
+
"
\n
})();"
);
289 value = await program ();
291 const output = render (value);
292 return logs. length === 0 ? output : value === undefined ? logs. join ( " \n " ) : logs. join ( " \n " ) + " \n " + output;
294 function install ( name , value ) { Object. defineProperty (globalThis, name, { value, configurable: false , enumerable: false , writable: false }); }
295 install ( "browser" , browser); install ( "context" , context); install ( "page" , page);
296 install ( "state" , state); install ( "browserState" , state);
297 install ( "a11y" , a11y); install ( "view" , view); install ( "routeFulfill" , routeFulfill); install ( "console" , replConsole);
298 install ( "__araHandsRepl" , Object. freeze ({ version, evaluate }));
300 `.trim(),iQ=String.raw`
302 const bridge = globalThis.__araHandsRepl;
303 if ( ! bridge || typeof bridge.evaluate !== "function" ) throw new Error ( "Reason Hands browser bridge is not installed" );
304 return await bridge. evaluate ( typeof input === "string" ? input : input && input.code);
306 `.trim();import{Buffer as X9}from"buffer";import{randomUUID as z1}from"crypto";class tQ extends Error{code;constructor($){super($==="hands_repl_private_profile_attribute_denied"?"Private browser attribute read denied.":$);this.code=$;this.name="HandsReplBrowserDispatcherError"}}var eQ=new Set(["__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","__proto__","constructor","prototype"]),aQ=/^hands_[A-Za-z0-9_-]{8,128}$/,K1=2048,$Z=32,QZ=1e4,V1=new Set(["href","src","alt","title","role","aria-label","aria-expanded","aria-checked","aria-selected","aria-disabled","placeholder ...
307 ` ): W ; J ({status: F .statusCode ?? 502 ,headers:z,body:Buffer. concat ( B )})})}), G = setTimeout (() => V . destroy ( Error ( "hands_browser_fetch_timeout" )), X7 ); V . once ( "close" ,() => clearTimeout ( G )), V . on ( "error" , Y ), V . end ($. postDataBuffer () ??void 0 )})} async function G7 ( $ , Q , Z = () => {}, X = { lookup :( J ) => p1 ( J ,{all: ! 0 }),fetch: Y7 }){ let J =new WeakSet, Y =new WeakMap, K = ( V ) => { let G = Y . get ( V ); if ( G ) return G ; let F = ( async () => { if ( ! $.newCDPSession) return ; let B =await $. newCDPSession ( V ), H =new Map; B . on ( "Network.loadingFinished" ,({ requestId : z }) => H . delete (z)), B . on ( "Network.loadingFailed" ,({ requestId : z }) => H . delete (z)), B . on ( "Fetch.requestPaused" ...
Medium Dynamic Require
Package source references dynamic require/import behavior.
bin/vm-hands/vm-hands-entry-lite-f66d7y5a.js View on unpkg · L305 308 `)}function X8($){try{d1($)}catch{}}async function AZ($){if($.managedBrowser&&$.driverModuleDirectory!==void 0)throw Error("hands_browser_ambiguous_driver_configuration");let Q=$.launch||$.targetContext?null:$.managedBrowser?await n8($.managedBrowser,{executablePath:$.browserExecutablePath}):await G9({executablePath:$.browserExecutablePath,driverModuleDirectory:$.driverModuleDirectory});if(Q?.status==="unavailable")throw Error(` hands_browser_${Q.reason} `);let Z=Q?.status==="resolved"?Q.executablePath:$.browserExecutablePath;if(!Z||!R9(Z))throw Error("hands_browser_unavailable");let X=$.launch? ...
309 Viewing ${ B0 } (${ j0 . sourceWidth }x${ j0 . sourceHeight } source, sent at ${ j0 . width }x${ j0 . height }, ${ Math . round ( r0 . length / 1024 ) }KB).` } if ( U0 > 640 ) U0 = Math. round ( U0 * 0.75 );else W0 = Math. max ( 30 , W0 - 15 )}throw Error ( `view(): could not reduce the image under ${ Math . round ( qZ / 1024 ) }KB` )}finally{await y0.close().catch(()=>{ return })}},m = XZ ({browser:$.targetContext?. browser () ?? N ,context: M ,page:k,a11y:f,view:_, readWorkspaceFile :( b ) => TZ ($.workspaceRoot,b),privateProfile:$.privateProfile,beforeNavigation:$.beforeNavigation,recording:$.recording,screenshotExport:$.screenshotExport, actionRecorder :() => { let b = J ,h = Y ;retur ...
310 ${h} `}catch{return` ${l}
311 Screen capture unavailable. `}}return l})(),m,c=new Promise((l,o)=>{m=setTimeout(()=>o(Error("REPL evaluation timed out after 105 seconds")),e1)});try{return await Promise.race([_,c])}catch(l){if(l instanceof Error&&l.message.includes("timed out"))_.catch(()=>{return}),await w.resetEvaluator(M).catch(()=>{return});throw l}finally{if(m)clearTimeout(m)}},T=Promise.resolve(),S=new Set,g=new Set;X8($.socketPath);let E=u0.createServer((N)=>{S.add(N),N.once("close",()=>{S.delete(N),g.delete(N)}),N.setEncoding("utf8");let M="",D=!1;N.on("data",(w)=>{if(D)return;if(M+=w,M.length>t1){D=!0,K9(N,{ok:!1,er ...
312 ` ); if (k ===- 1 ) return ; D =! 0 ; let f = M . slice ( 0 ,k); if ($.onControl) try { let _ = JSON . parse (f); if ( typeof _.action === "string" && _.action !== "evaluate" )g. add ( N )} catch {} T = T . then ( async () => { if ( N .destroyed) return ; J = [], Y = {}; try { let _ = JSON . parse (f); if (_.action === "probe" ){ let b =await R (); await P ( "undefined" ,b.evaluator.runId), K9 ( N ,{ok: ! 0 ,output: "ARA_HANDS_REPL_READY" }); return } if ( typeof _.action === "string" && _.action !== "evaluate" && $.onControl){ K9 ( N ,{ok: ! 0 ,output: await $. onControl (_.action,_)}); return } if (_.action !== "evaluate" ||typeof _.code !== "string" ) throw Error ( "Invalid REPL request" ); let m = _.code,c =typeof _.runId === ...
313 `}catch{return!1}}var W7=/^( \/ .+)-sidechat-([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/;function IZ($){let Q=W7.exec($.replace(/ \/ +$/,""));return Q?` ${ Q [ 1 ]} / repo `:null}import{randomUUID as V6}from"crypto";import{spawn as F6,spawnSync as H6}from"child_process";import{chmodSync as b9,closeSync as U6,constants as H$,fchmodSync as W6,fstatSync as B6,openSync as L6,copyFileSync as N6,existsSync as W$,lstatSync as t,statSync as k9,mkdtempSync as M6,mkdirSync as N9,realpathSync as n,renameSync as U8,rmSync as j6,writeFileSync as W8}from"fs";import{homedir as C6,tmpdir as V4}from"o ...
314 const { writeSync } = require("node:fs");
315 const { createRequire } = require("node:module");
316 const { join } = require("node:path");
317 const { createInterface } = require("node:readline");
318 const { formatWithOptions, inspect } = require("node:util");
319 const vm = require("node:vm");
321 const timeoutMs = ${ K$ };
322 const maxLogChars = 524288;
323 let activeOutput = [];
324 let activeOutputChars = 0;
325 function appendOutput(value) {
Long lines were clipped for display.
• matchType = normalized_sha256
matchedPackage = @reason-machines/cli-linux-arm64@0.2.347
matchedPath = bin/vm-hands/vm-hands-entry-lite-5cyt4sas.js
matchedIdentity = npm:[redacted]:0.2.347
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-f66d7y5a.js View on unpkg "./vm-hands-entry-lite-k2cvr710.js"
;
import
"./vm-hands-entry-lite-k469tezz.js"
;
import
"./vm-hands-entry-lite-36xzwsxn.js"
;
import
"./vm-hands-entry-lite-pa111vpq.js"
;
import
"./vm-hands-entry-lite-h1642n10.js"
;
import
"./vm-hands-entry-lite-kt418g2w.js"
;
import
"./vm-hands-entry-lite-knfh7w3j.js"
;
import
"./vm-hands-entry-lite-1xjtcxpn.js"
;
import
"./vm-hands-entry-lite-9dx3at21.js"
;
import
"./vm-hands-entry-lite-289bc9v7.js"
;
...
3 `).filter(Boolean);B=Z.length;let Y=Q.map((L)=>{try{return Number(JSON.parse(L).elapsed_ms)||0}catch{return 0}});if(Y.length)X("vm_hands.srt_server_starts",{count:Y.length,elapsed_ms:Y.slice(0,8)})}catch{}},D=null,H=!1,O=q.srtCgroup??"/sys/fs/cgroup/reason-srt",C=()=>{D??=Gq()},b=0,h=()=>{try{let Z=A(Vq,"utf8"),Q=Z.slice(b>Z.length?0:b);b=Z.length;let Y=Q.split(`
4 `).filter(Boolean).slice(0,1000);if(!Y.length)return null;let L={},F=0;for(let M of Y)try{let R=JSON.parse(M),K=typeof R.code==="string"&&/^[a-z_]{1,40}$/.test(R.code)?R.code:"other";if(L[K]=(L[K]??0)+1,typeof R.elapsed_ms==="number")F=Math.max(F,R.elapsed_ms)}catch{L.unparsed=(L.unparsed??0)+1}return X("vm_hands.srt_fallbacks",{count:Y.length,codes:L,max_elapsed_ms:F}),{count:Y.length,codes:L,max_elapsed_ms:F}}catch{return null}},f=!1,m=(Z,Q,Y)=>{if(f)throw Error("vm_hands_pool_held");return Nq(Z,Q,Y)},d=(Z)=>(Q,Y,L)=>Iq("/bin/sh",["-c",` echo $$ > ${ Rq ( U ( Z , "cgroup.procs" ))} || exit 125 ; exec ...
5 `).find((V)=>V.startsWith("0::"))??"").slice(3,80)}catch{}return{pid:j,comm:I,cgroup:N}})}),new T("vm_hands_kill_unverified",` ${ K . length } process (es) the run started survived it `);D=null}if(H=!1,M)q.onSrtReset?.();if(R.length)throw X("vm_hands.kill_survivors",{pids:R.slice(0,16)}),new T("vm_hands_kill_unverified",` ${ R . length } payload - uid process (es) outside the payload cgroup `);W.clear();for(let K of Qq())try{r(U(z,_,K))}catch{}}finally{f=!1,Y()}if(x)setTimeout(()=>{if(!G.size)x.arm()},100).unref?.()},async killProbe(){let Z=Date.now()+qq;if(l(U(u,"cgroup.events"))){await p(u,Z,"probe");try{r( ...
6 ` ). find (( G ) => G . startsWith ( "0::" ))?. slice ( 3 ) === z} catch { return! 1 }} function v ( q , z , J = "/proc" ){ try { let G = A ( U ( J , String (q), "cgroup" ), "utf8" ). split ( `
7 ` ). find (( W ) => W . startsWith ( "0::" ))?. slice ( 3 ) ?? "" ; return G === z || G . startsWith ( `${ z }/` )} catch { return! 1 }} var Eq = 100 ; function Gq (){ try { return Math. floor ( Number ( A ( "/proc/uptime" , "utf8" ). split ( " " )[ 0 ]) * Eq)} catch { return 0 }} async function p ( q , z , J ){ try { E ( U (q, "cgroup.freeze" ), "1" )} catch ( X ){ throw new T ( "vm_hands_kill_unverified" , `${ J } cgroup.freeze: ${ X instanceof Error ? X . message : String ( X ) }` )} while ( ! / ^ populated 0 $ / m . test ( A ( U (q, "cgroup.events" ), "utf8" ))){ if (Date. now () > z) throw new T ( "vm_hands_kill_unverified" , `${ J } cgroup still populated (left frozen)` ); for ( let X of Dq (q)){ if ( ! fq ( X ,q)) continue ; try {process.ki ...
8 `).find((W)=>W.startsWith("0::"))??""}catch{return!1}let G=X.slice(3);return G===J||G.startsWith(` ${ J } / `)}function Dq(q){let z=[],J=(X)=>{try{for(let W of A(U(X,"cgroup.procs"),"utf8").split(`
9 `))if(/^ \d +$/.test(W))z.push(Number(W))}catch{}let G=[];try{G=s(X,{withFileTypes:!0}).filter((W)=>W.isDirectory()).map((W)=>W.name)}catch{}for(let W of G)J(U(X,W))};return J(q),z}function Xq(q,z="/proc"){let J=[];for(let X of s(z)){if(!/^ \d +$/.test(X))continue;let G;try{G=A(U(z,X,"stat"),"utf8")}catch{continue}let W=G.slice(G.lastIndexOf(")")+2).split(" "),B=Number(W[1]),P=Number(W[6]),D=Number(W[19]);if(!((P&2097152)!==0||B===2||X==="2")&&W[0]!=="Z"&&D>=q)J.push(Number(X))}return J}function Zq(q,z="/proc"){let J=[];for(let X of s(z)){if(!/^ \d +$/.test(X))continue;let G;try{G=A(U(z,X,"status"), ...
10 ` ). find (( W ) => W . startsWith ( "0::" )) ?? "" } catch {t. delete (q); return } if ( G . slice ( 3 ) === J ){t. delete (q); return } setTimeout ( X , 1 )}; X ()} function nq ( q ){ let z = {person:q.personCgroup ?? U ( "/sys/fs/cgroup" ,y,_),model:q.payloadCgroup ?? U (wq,_)}, J = q.entry ?? process.argv[ 1 ] ?? "" , X = {}, G = ( B ) => B . startsWith ( "model:" ) && q.bindCgroup ? q. bindCgroup ( B . slice ( 6 )) : z[ B . startsWith ( "model" ) ? "model" : "person" ], W = ( B ) => { let P = B . startsWith ( "model" ) ? "model" : "person" , D =new Map, H = String (q.payloadUid), O = String (q.payloadGid), C = Bun. spawn ([ "/bin/sh" , "-c" , `echo $$ > ${ Rq ( U ( G ( B ), "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-6q1n7hpe.js View on unpkg · L1 Long lines were clipped for display.