scanned 76 file(s), 5.53 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(B)??B;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(WH(W))}function D7($){return Buffer.from([5,$,0,1,0,0,0,0,0,0])}function GH($){return new Promise((J)=>{let X=Buffer.alloc(0),Q=(W)=>{$.off("data",G),clearTimeout(Y),J(W)...
...
L60: mux backend dial failed (${q})
L61: `)}),M.on("error",()=>O.destroy()),M.once("close",()=>O.destroy()),O.once("close",()=>M.destroy()),M.pipe(O),O.pipe(M)}let U=UH((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`)}n.clear();for(let a of w)n.add(a)},fY);H0.unref();let u0=(w)=>{if(!X.readinessProbes)K5({config:$,readiness:w,signal:_.signal,idle:()=>E()===0,permissions:J.roots[0].permissions,onReady:(a)=>{O(a,[]).then(i)}})},E0=B?U.final.then(async(w)=>{if(_.signal.aborted)return;i(await O(w,[]));let a=Q9.filter((q0)=>w[q0]===!0);process.stderr.write(`Reason worker: deferred lanes decided (${a.length?`ready: ${a.join(", ")}`:"none ready"}).
86`),u0(w)},()=>{}):Promise.resolve();if(!B)u0(q);T?.then(async(w)=>{L=w;for(;;){let a=F,q0=await O(a.worker.readiness??{},a.worker.probing??[]);if(_.signal.aborted)return;if(F!==a)continue;i(q0);return}});let s0=B&&F.worker.probing?.includes("pty.start")?U.pty.then(async(w)=>{let a=()=>F.worker.probing?.includes("pty.start")===!0;if(_.signal.aborted||!a())return;let q0=await O({...F.worker.readiness,"pty.start":w},(F.worker.probing??[]).filter((j0)=>j0!=="pty.start"));if(_.signal.aborted||!a())return;i(q0)},()=>{}):Promise.resolve(),S$=()=>({version:1,instanceId:Q,deviceId:J.deviceId,phase:I,dr ...
89`)}}):void 0),D1=(w)=>{if(w==="stop")F$();if(w==="reload_roots"){let a=t($);if(!a||a.deviceId!==J.deviceId)throw Error("worker_identity_changed");J.roots=a.roots;let q0=pJ(J.roots,CJ());if(q0)z.root_paths=q0;else delete z.root_paths;x?.check()}if(w==="drain"||w==="resume"){if(j||Date.parse(Y)<=Date.now())throw Error("worker_stopping_or_expired");V={...V,drained:w==="drain"},P0($,V)}return S$()};X.prestartedControl?.handle(D1);let r$=X.prestartedControl?await X.prestartedControl.closed:await A2($,Q,D1),m,J0=!1,_$=()=>{let w=Date.parse(Y)-Date.now();if(w>0){m=setTimeout(_$,Math.min(w,2147483647) ...
90`)}}),S.arm(),setTimeout(vJ,0);else if(!v.handsPrespawn&&S)S.close(),S=null}if(v.type==="heartbeat"){if(x&&!j&&Date.now()>=U3)U3=Date.now()+H3,x.check().then((i0)=>{N3=i0?0:N3+1,U3=Date.now()+(i0?H3:Math.min(H3,F4*2**Math.min(N3-1,10)))});if(P=v.serverTime,C=v.drain,w$(),!j&&b$)d0?.(v.latestCliVersions?.[b$]);if(!j)I="running";if(!j&&!f&&S$().executionEligible){if(f=!0,X.onStartup?.("ready"),(X.platform??process.platform)==="darwin")setTimeout(()=>{try{O9({skipWhenSettled:!0})}catch{}},0)}}if(v.type==="reconnecting"&&!j)I="reconnecting";if(v.type==="stopped")D=0;X.onEvent?.(v)})}),await x?.set ...
91`)});else if(j&&!J0)await A0({state:J,client:w});if(n$)await kJ().catch(()=>{return})}catch(w){if(!(w instanceof L0&&w.status===401))throw w;if(P0($,{...V,revoked:!0}),w.code==="device_revoked")X.onDeviceRevoked?.();throw Error("worker_revoked")}finally{if(clearTimeout(m),clearInterval(H0),h)clearTimeout(h);if(N$)process.removeListener("SIGTERM",K$),process.removeListener("SIGINT",F$);X.signal?.removeEventListener("abort",K$),_.abort(),S?.close(),await x?.settled().catch(()=>{return}),await W?.broker.close().catch(()=>{return}),await r$()}}function xJ($=process.env){if($.REASON_RELAY_CUSTOM_DO ...
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 ${C9(J)}`}function $6($,J){if(!/^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$/.test($.alias)||!I9($.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 RV,createReadStream as PV,fstatSync as CV,readFileSync as IV}from"fs";var H6="/run/sc/instance-generation";var zV=/^[1-9][0-9]{0,15}\n?$/;function AV($){return typeof $==="number"&&Number.isSafeInteger($)&&$>0}function q6($){if(typeof $!=="string"||!zV.test($))return null;let J=Number($.trim());return AV(J)?J:null}var M6=3,EV=600000,xV=65536,SV=500;function L6($){if($.length!==3||$[0]!=="standby"||$[1]!=="--handoff-fd"||$[2]!==String(M6))throw Error("worker_standby_inv ...
2import{Aa as iJ0}from"./vm-hands-entry-lite-z9y1sb0f.js";import{Nk as NV0,Ok as rn,Pk as EJ,Rk as an,Sk as X0}from"./vm-hands-entry-lite-4yw8vx5h.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-58750fwy.jsView on unpkg · L2