registry  /  @shogo-ai/worker  /  1.13.10

@shogo-ai/worker@1.13.10

⚠ Under review

Shogo Cloud Agent Worker — run Shogo agents on your own machine (laptop, devbox, CI).

Static Scan Results

scanned 5h ago · by rust-scanner

Static analysis flagged 15 finding(s) at 93.0% confidence. This version is warn-only unless an AI or security-team review confirms malicious behavior.

Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source

Decision evidence

public snapshot
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsFilesystemNetworkShell
Supply chain
HighEntropyStringsMinifiedUrlStrings
ManifestNo manifest risk signals triggered.
scanned 32 file(s), 351 KB of source, external domains: 127.0.0.1, api.github.com, bun.sh, github.com, shogo.ai, studio.shogo.ai

Source & flagged code

7 flagged · loading source
bin/shogo.mjsView file
15import { dirname, join } from 'node:path'; L16: import { spawn } from 'node:child_process'; L17:
High
Child Process

Package source references child process execution.

bin/shogo.mjsView on unpkg · L15
28} else if (existsSync(distEntry)) { L29: await import(distEntry); L30: } else if (existsSync(srcEntry)) {
Medium
Dynamic Require

Package source references dynamic require/import behavior.

bin/shogo.mjsView on unpkg · L28
src/lib/resource-limits.tsView file
225* runtime is spawned `detached`), summed across the group. L226: * - Windows: a PowerShell pass that sums WorkingSet64 of `pid` and all of its L227: * descendants (walking Win32_Process.ParentProcessId).
High
Shell

Package source references shell execution.

src/lib/resource-limits.tsView on unpkg · L225
dist/cli.mjsView file
matchType = previous_version_dangerous_delta matchedPackage = @shogo-ai/worker@1.12.6 matchedIdentity = npm:QHNob2dvLWFpL3dvcmtlcg:1.12.6 similarity = 0.867 summary = stored previous version shares package body but lacks this dangerous source file
Critical
Previous Version Dangerous Delta

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

dist/cli.mjsView on unpkg
1import{createRequire as U$}from"node:module";var w$=Object.defineProperty;var L$=($)=>$;function C$($,X){this[$]=L$.bind(null,X)}var A$=($,X)=>{for(var Y in X)w$($,Y,{get:X[Y],enum... L2: Shogo Worker — Preflight
High
Same File Env Network Execution

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

dist/cli.mjsView on unpkg · L1
1import{createRequire as U$}from"node:module";var w$=Object.defineProperty;var L$=($)=>$;function C$($,X){this[$]=L$.bind(null,X)}var A$=($,X)=>{for(var Y in X)w$($,Y,{get:X[Y],enum... L2: Shogo Worker — Preflight
High
Command Output Exfiltration

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

dist/cli.mjsView on unpkg · L1
1import{createRequire as U$}from"node:module";var w$=Object.defineProperty;var L$=($)=>$;function C$($,X){this[$]=L$.bind(null,X)}var A$=($,X)=>{for(var Y in X)w$($,Y,{get:X[Y],enum... L2: Shogo Worker — Preflight ... L13: `))if(k)this.log.log(`${W} ${k}`)}),H.stderr?.on("data",(O)=>{$.lastStdoutAt=Date.now();for(let k of O.toString().trimEnd().split(` L14: `))if(k)this.log.error(`${W} ${k}`)});try{return await this.waitForHealth($,U6),$.status="running",$.lastUsedAt=Date.now(),this.armIdleTimer($),this.armGraceTimer($),$}catch(O){$.s... L15: Shogo Worker — Starting`)),console.log(w.dim(" name ")+X.name),console.log(w.dim(" worker-dir ")+X.workerDir),console.log(w.dim(" cloud ")+X.cloudUrl),console.log(... L16: Received ${O} — shutting down...`));try{q.stop()}catch{}try{await Q.stopAll()}catch(k){console.warn(w.yellow(`stopAll: ${k?.message??k}`))}process.exit(0)};process.once("SIGINT",()... L17: Shogo Worker — Started`)),console.log(w.dim(" pid: ")+V),console.log(w.dim(" name: ")+$.name),console.log(w.dim(" logs: ")+"~/.shogo/logs/worker.log"),console.log(w.dim(" stop... L18: expected: ${H}
High
Sandbox Evasion Gated Capability

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

dist/cli.mjsView on unpkg · L1

Findings

1 Critical5 High4 Medium5 Low
CriticalPrevious Version Dangerous Deltadist/cli.mjs
HighChild Processbin/shogo.mjs
HighShellsrc/lib/resource-limits.ts
HighSame File Env Network Executiondist/cli.mjs
HighCommand Output Exfiltrationdist/cli.mjs
HighSandbox Evasion Gated Capabilitydist/cli.mjs
MediumDynamic Requirebin/shogo.mjs
MediumNetwork
MediumEnvironment Vars
MediumStructural Risk Force Deep Review
LowNon Install Lifecycle Scripts
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings