scanned 75 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
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",()
HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
bin/runtime/srt/sandbox-runtime.mjsView on unpkg · L47 85`)}r.clear();for(let a of f)r.add(a)},kY);M0.unref();let u0=(f)=>{if(!X.readinessProbes)K5({config:$,readiness:f,signal:_.signal,idle:()=>E()===0,permissions:J.roots[0].permissions,onReady:(a)=>{O(a,[]).then(n)}})},I0=B?U.final.then(async(f)=>{if(_.signal.aborted)return;n(await O(f,[]));let a=$9.filter((N0)=>f[N0]===!0);process.stderr.write(`Reason worker: deferred lanes decided (${a.length?`ready: ${a.join(", ")}`:"none ready"}).
86`),u0(f)},()=>{}):Promise.resolve();if(!B)u0(q);T?.then(async(f)=>{L=f;for(;;){let a=F,N0=await O(a.worker.readiness??{},a.worker.probing??[]);if(_.signal.aborted)return;if(F!==a)continue;n(N0);return}});let c0=B&&F.worker.probing?.includes("pty.start")?U.pty.then(async(f)=>{let a=()=>F.worker.probing?.includes("pty.start")===!0;if(_.signal.aborted||!a())return;let N0=await O({...F.worker.readiness,"pty.start":f},(F.worker.probing??[]).filter((i)=>i!=="pty.start"));if(_.signal.aborted||!a())return;n(N0)},()=>{}):Promise.resolve(),P$=()=>({version:1,instanceId:Q,deviceId:J.deviceId,phase:I,drai ...
89`)}}):void 0),Y0=(f)=>{if(f==="stop")L$();if(f==="reload_roots"){let a=o($);if(!a||a.deviceId!==J.deviceId)throw Error("worker_identity_changed");J.roots=a.roots;let N0=pJ(J.roots,PJ());if(N0)z.root_paths=N0;else delete z.root_paths;x?.check()}if(f==="drain"||f==="resume"){if(j||Date.parse(Y)<=Date.now())throw Error("worker_stopping_or_expired");V={...V,drained:f==="drain"},R0($,V)}return P$()};X.prestartedControl?.handle(Y0);let E$=X.prestartedControl?await X.prestartedControl.closed:await W2($,Q,Y0),B$,x$=!1,f0=()=>{let f=Date.parse(Y)-Date.now();if(f>0){B$=setTimeout(f0,Math.min(f,214748364 ...
90`)}}),S.arm(),setTimeout(vJ,0);else if(!v.handsPrespawn&&S)S.close(),S=null}if(v.type==="heartbeat"){if(x&&!j&&Date.now()>=G3)G3=Date.now()+K3,x.check().then((s0)=>{B3=s0?0:B3+1,G3=Date.now()+(s0?K3:Math.min(K3,F4*2**Math.min(B3-1,10)))});if(C=v.serverTime,P=v.drain,F1(),!j&&I$)m?.(v.latestCliVersions?.[I$]);if(!j)I="running";if(!j&&!h&&P$().executionEligible){if(h=!0,X.onStartup?.("ready"),(X.platform??process.platform)==="darwin")setTimeout(()=>{try{j9({skipWhenSettled:!0})}catch{}},0)}}if(v.type==="reconnecting"&&!j)I="reconnecting";if(v.type==="stopped")D=0;X.onEvent?.(v)})}),await x?.sett ...
91`)});else if(j&&!x$)await s9({state:J,client:f});if(s$)await kJ().catch(()=>{return})}catch(f){if(!(f instanceof T0&&f.status===401))throw f;if(R0($,{...V,revoked:!0}),f.code==="device_revoked")X.onDeviceRevoked?.();throw Error("worker_revoked")}finally{if(clearTimeout(B$),clearInterval(M0),k)clearTimeout(k);if(T1)process.removeListener("SIGTERM",V$),process.removeListener("SIGINT",L$);X.signal?.removeEventListener("abort",V$),_.abort(),S?.close(),await x?.settled().catch(()=>{return}),await W?.broker.close().catch(()=>{return}),await E$()}}function xJ($=process.env){if($.REASON_RELAY_CUSTOM_D ...
92`;if(Buffer.byteLength(Z)>65536)throw Error("worker_ssh_frame_too_large");let Q;try{await new Promise((X,Y)=>{Q=this.clock.after(J,()=>Y(Error("worker_ssh_write_timeout"))),this.output.write(Z,(V)=>V?Y(Error("worker_ssh_connection_failed")):X())})}finally{Q?.()}}async receive($=30000,J){if(J?.aborted)throw Error("worker_ssh_cancelled");if(this.queue.length)return this.queue.shift();if(this.failure)throw this.failure;if(this.waiter)throw Error("worker_ssh_concurrent_read");let Z,Q;try{return await new Promise((X,Y)=>{this.waiter={resolve:X,reject:Y},Q=()=>{this.waiter=void 0,Y(Error("worker_ssh ...
103exec "$a" worker __ssh-bootstrap`;return`exec /usr/bin/env -i PATH=/usr/bin:/bin:/usr/sbin:/sbin /bin/sh -c ${A9(J)}`}function $6($,J){if(!/^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$/.test($.alias)||!R9($.sshConfig))throw Error("worker_ssh_invalid_target");return["-T","-a","-F",$.sshConfig,"-o","BatchMode=yes","-o","StrictHostKeyChecking=yes","-o","UpdateHostKeys=no","-o","ForwardAgent=no","-o","ClearAllForwardings=yes","-o","PermitLocalCommand=no","-o","GSSAPIDelegateCredentials=no","-o","SessionType=default","-o","StdinNull=no","-o","ForkAfterAuthentication=no","-o","ControlMaster=no","-o","ControlP ...
107`),await Z}finally{clearTimeout(Q),Y.stop(!0),process.stdin.removeListener("end",X),process.stdin.pause()}}import{closeSync as zV,createReadStream as AV,fstatSync as RV,readFileSync as CV}from"fs";var H6="/run/sc/instance-generation";var WV=/^[1-9][0-9]{0,15}\n?$/;function OV($){return typeof $==="number"&&Number.isSafeInteger($)&&$>0}function q6($){if(typeof $!=="string"||!WV.test($))return null;let J=Number($.trim());return OV(J)?J:null}var M6=3,PV=600000,IV=65536,EV=500;function L6($){if($.length!==3||$[0]!=="standby"||$[1]!=="--handoff-fd"||$[2]!==String(M6))throw Error("worker_standby_inv ...
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 ...
HighEval
Package source references dynamic code evaluation.
bin/vm-hands/vm-hands-entry-lite-zjfr0zh8.jsView on unpkg · L1 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 ...
2import{Aa as iJ0}from"./vm-hands-entry-lite-9w5vs9zv.js";import{Fk as NV0,Gk as rn,Hk as EJ,Jk as an,Kk as X0}from"./vm-hands-entry-lite-2t0vcvd8.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(`
MediumDynamic Require
Package source references dynamic require/import behavior.
bin/vm-hands/index-7f2kwwen.jsView on unpkg · L2