Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@sistemo/sdk

Latest version: v0.2.8

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: sistemo0
0 Stars
0 Forks
15 Versions
2.0K Downloads
Python Repo language

Scan summary

@sistemo/sdk was last scanned on 1 Dec 2026 at version 0.2.8. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 15 versions; the latest 4 were published within 4 days (28 Nov – 1 Dec 2026).
  • Findings: No rules fired in version 0.2.8.
  • Downloads: 2,000 downloads.

Versions

15 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.8 LATEST 1 Dec 2026 No rules fired
0.2.7 30 Nov 2026 No rules fired
0.2.6 29 Nov 2026 No rules fired
0.2.5 28 Nov 2026 Not shown
0.2.4 23 Nov 2026 Not shown

No rules fired in 0.2.8

Findings

Findings for v0.2.8. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.8; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@sistemo/sdk (JavaScript / TypeScript)

Run AI agents and untrusted code in real isolated Firecracker microVMs

npm install @sistemo/sdk

Requires Node 18+ (uses the global fetch). Zero runtime dependencies.

Quickstart (< 10 lines)

First, get an API key from the dashboard (Dashboard → API Keys) and export it:

export SISTEMO_API_KEY=sk_live_xxxxxxxx

Then save this as hello.mjs — it is a source file, not something to paste at a shell prompt. The .mjs extension matters: the snippet uses import and top-level await, so a plain .js file needs "type": "module" in your package.json.

// hello.mjs
import { Sandbox } from "@sistemo/sdk";

const sb = await Sandbox.create();                  // reads SISTEMO_API_KEY
const res = await sb.run("node -e 'console.log(2 + 2)'");
console.log(res.stdout, res.exitCode);              // "4\n" 0
await sb.close();

Then run it:

node hello.mjs

Configuration

SISTEMO_API_KEY your key (sk_live_…). Required.
SISTEMO_BASE_URL override the API URL (default https://api.sistemo.io).

Or pass them explicitly: Sandbox.create({ apiKey: "sk_live_…", baseUrl: "https://…" }).

API

const sb = await Sandbox.create({ vcpus: 1, memoryMb: 1024, stack: "base" });
const res = await sb.run("echo hi && uname -a");     // -> { exitCode, stdout, stderr, truncated, requestId, lost, ok } (default 120s, max 24h)
await sb.run("node app.js", 120, { env: { FOO: "bar" }, cwd: "/tmp" });
await sb.close();                                    // destroy

A read API key can list resources but cannot create sandboxes or run code — use a full key with the SDK.

Errors

import {
  APIError,
  AuthError,
  InsufficientBalanceError,
  QuotaExceededError,
  TooManyExecsError,
} from "@sistemo/sdk";

try {
  const sb = await Sandbox.create();
  await sb.run("...");
} catch (e) {
  // Check QuotaExceededError FIRST — it and AuthError both arrive as 403, but
  // they need opposite handling: an auth failure never succeeds on retry, a
  // quota refusal does once you free the resource it names.
  if (e instanceof QuotaExceededError) { console.log(e.detail); }
  else if (e instanceof InsufficientBalanceError) { /* 402 — top up; freeing machines does not help */ }
  else if (e instanceof TooManyExecsError) { /* 409 — this machine already has 16 commands running; wait */ }
  else if (e instanceof AuthError) { /* 401/403 — key invalid or read-only */ }
  else if (e instanceof APIError) { console.log(e.status, e.detail, e.code, e.requestId, e.retryable, e.docUrl); }
}

QuotaExceededError means an account limit was reached; detail names which dimension bound and how much is in use. client.getQuotas() is GET /v1/quotas: tier, quotas (used and limit per dimension), and per_machine. InsufficientBalanceError is HTTP 402 (top up); it is not a quota refusal and not an auth failure.

Every request sends X-Request-Id. Quote e.requestId when you contact support. On 429, the client honours Retry-After (capped at 60 s) from version 0.1.3. e.retryable and e.docUrl come from the API body when it sent them.

Apache-2.0.

List machines and volumes

Lists are keyset-paginated. listVolumes() / listMachines() return { volumes|machines, nextCursor } (null means the last page). Walk every page with iterVolumes() / iterMachines().

import { Client } from "@sistemo/sdk";

const c = new Client();
const page = await c.listVolumes();               // page.volumes[0].id, page.nextCursor
const next = await c.listVolumes({ cursor: page.nextCursor ?? undefined, limit: 50 });
for await (const vol of c.iterVolumes()) {
  console.log(vol.id);
}

Power, wait, snapshots, images

stop() powers the machine off (POST /v1/machines/{id}/stop). boot() powers it back on (POST /v1/machines/{id}/start). boot() is not start(): start(script) runs a command inside the guest.

connect() is one GET and does not wait. wait(timeoutMs) polls GET /v1/machines/{id} until running. timeoutMs is required. A machine that is stopped, stopping, error, destroyed, or destroying fails immediately — waiting will not start it; call boot() for a stopped machine. Past the deadline the error is MachineTimeout. Create already returns a running machine.

import { Client, Sandbox } from "@sistemo/sdk";

const sb = await Sandbox.connect(machineId);
await sb.stop();
await sb.boot();
await sb.wait(30_000);

const snap = await sb.createSnapshot("before");   // POST /v1/machines/{id}/snapshots
const page = await sb.listSnapshots();             // { snapshots, nextCursor }
await sb.restoreSnapshot(snap.id);                 // POST /v1/snapshots/{id}/restore
await sb.deleteSnapshot(snap.id);                  // DELETE /v1/snapshots/{id}

for (const image of await new Client().listImages()) {  // GET /v1/images
  console.log(image.name);                         // pass as stack when creating
}

rootVolumeId is kept on the instance after create and connect. The create response does not include it; the value is the option you passed until a later response names one.

await using calls close() on Node 24 and later. A close error is swallowed, matching Python with, so it cannot mask the error from the block:

{
  await using sb = await Sandbox.create();
  await sb.run("uname -a");
}

On Node 18–22 the method is there (sb[Symbol.asyncDispose]()), but the await using syntax does not parse. Call close() in finally.

Long-running commands

sb.run() starts a guest job and waits for it on your machine (default 120 seconds, maximum 24 hours). Each poll is a short request, so a proxy never holds a connection for the whole command. Pass a longer timeout for installs and builds:

const sb = await Sandbox.create();
try {
  const r = await sb.run("npm ci && npm run build", 3600);
  console.log(r.exitCode);
} finally {
  await sb.close();
}

sb.start() returns the handle without waiting, when you want to stream, cancel, or reconnect:

const sb = await Sandbox.create();
try {
  const job = await sb.start("npm ci && npm run build", 3600);

  for await (const chunk of job.stream()) process.stdout.write(chunk);

  await job.wait();
  console.log(job.state, job.exitCode);
} finally {
  await sb.close();
}

The handle outlives the process that created it. Reconnect with Sandbox.connect(machineId) (one GET; it does not provision a new microVM and it does not wait for running — call sb.wait(timeoutMs) first if the machine may still be starting), then sb.job(execId) or sb.jobs() / sb.iterJobs(). jobs() is a real array plus nextCursor; the guest keeps at most 64, so the default page holds them all.

const sb = await Sandbox.connect(machineId);  // GET /v1/machines/{id}
const job = await sb.job(execId);
await job.wait();
Three things worth knowing

exitCode is null until it is known — and null forever if the job is lost. It is never 0 as a placeholder, because a zero would read as success. Branch on state, or use job.ok.

lost is not failed. failed means the command ran and returned non-zero. lost means the machine could not account for it — neither that it ran nor that it did not. Do not retry blindly and do not assume completion. If the machine stops while run() / wait() is polling, the result is lost: true (not a thrown 409). start() on a machine that is already stopped throws MachineNotRunningError.

A failed start() may still have started something. On ExecStartUnconfirmed the command may be running; the error carries the handle:

let job;
try {
  job = await sb.start("./deploy.sh");
} catch (e) {
  if (!(e instanceof ExecStartUnconfirmed)) throw e;
  job = await sb.job(e.execId);   // find out what actually happened
}
await job.wait();

You mint execId (a UUID is generated if you omit it). Re-sending the same id throws APIError 409 exec_id_in_use and nothing runs — look the first one up with job(). If start throws ExecStartUnconfirmed, poll that id — do not start again.

The 17th concurrent command is TooManyExecsError (too_many_execs): wait for one to finish; a new id does not help. POST /execs is never retried — not on HTTP 5xx/429, and not on a dropped connection. A dropped start is recovered by GET of the minted id (404 is retried for a few seconds — the API can 404 while still accepting the POST). If that GET also fails, ExecStartUnconfirmed carries it.

Locked network and secrets

By default a machine has the open internet. network: "locked" refuses every outbound connection except HTTP and HTTPS (ports 80 and 443) to the hosts in allow. An entry is an exact host (pypi.org) or one leading *. (*.pythonhosted.org, which matches subdomains but not the name itself). A locked machine with an empty allow has no public outbound at all.

const sb = await Sandbox.create({ network: "locked", allow: ["pypi.org", "*.pythonhosted.org"] });
await sb.run("pip install requests");               // allowed
await sb.run("curl -sS https://example.com");       // refused

await sb.setNetwork("locked", ["api.example.com"]); // replaces the WHOLE list
[sb.network, sb.allow];                             // -> ["locked", ["api.example.com"]]

const log = await sb.egress({ action: "blocked", limit: 50 }); // newest first
for (const e of log.activity) console.log(e.at, e.action, e.host);
log.complete; // false when rows may be missing; an empty list means
              // "no outbound calls" only when this is true

A refused plain-HTTP call gets 403 with {"code": "egress_domain_not_allowed"}; a refused HTTPS call has its connection closed. A running machine changes policy in place; a stopped one gets it at its next start.

setNetwork is a full replace, so the SDK retries it on a dropped connection or a 5xx/429. If it still fails, sb.network / sb.allow keep the old policy even though the host may already have the new one — send the same call again; it converges. A machine created from a kept root disk of a locked machine must say network explicitly (network: "locked" or "open") — the API refuses an implicit one.

Secrets are created and rotated in the dashboard; their values are write-only and no API call ever returns one. The SDK binds them by name, and each bound secret reaches the machine's commands as an environment variable of the same name:

const sb = await Sandbox.create({ secrets: ["API_TOKEN"] });
await sb.run('curl -sS -H "Authorization: Bearer $API_TOKEN" https://api.example.com/v1/orders');

await sb.secrets.bind("STRIPE_KEY");      // -> ["API_TOKEN", "STRIPE_KEY"]
await sb.secrets.unbind("API_TOKEN");     // -> ["STRIPE_KEY"]
sb.secrets.names;                         // names only

await new Client().listSecrets();         // name, custody, hosts, bound_machines — never a value

Box or proxy. A box secret's variable holds the value. A proxy secret's variable holds a placeholder (sist_ph_…): the real value is added only on HTTPS to the secret's hosts, in the place it was created for (a bearer token, basic auth, a header or a query parameter), so code on the machine can use it but never read it. A proxy secret needs a locked machine with its hosts in allow. Do not set SSL_CERT_FILE, REQUESTS_CA_BUNDLE, CURL_CA_BUNDLE or NODE_EXTRA_CA_CERTS in a command's env there — the server sets them so HTTPS clients trust the machine's own certificate authority. See Proxy secrets.

⚠ A bound box secret is readable by anything that runs on that machine — keep the machine's code and its network policy as tight as the secret is sensitive. Binding changes the NEXT command; one already running keeps its environment. At most 16 per machine. Passing env with the same name as a bound secret is a 400, never a silent override. Every bind and unbind is in the Activity feed (names only).

Changelog

0.2.8
  • start(..., { execId }) with an id you chose: if the connection drops before the API answers, it now throws ExecStartUnconfirmed carrying that id. It used to look the id up and could return an earlier job that had used the same id, as if it were this command. Poll the id (sb.job(e.execId)) to find out what happened. run() and start() without an id are unchanged: the id they generate cannot belong to anything else, so they still look it up.
  • execId: "" throws InvalidArgumentError instead of being sent.
  • Job.wait and output following time out on a monotonic clock, so a system clock change cannot end or extend a wait.
0.2.7
  • A 409 exec_id_in_use for an id the SDK generated itself (you did not pass one) now returns that command's job instead of raising. A fresh id cannot belong to anyone else, so the 409 means this same start reached the machine twice; the command is running. An id you choose still raises on reuse, as in 0.2.5.
  • Arguments refused before sending (an empty or over-long idempotencyKey, an id of "", . or .., an unknown network) throw InvalidArgumentError, the same name as in Python. It extends SistemoError, so existing catch blocks still see it.
  • Security: console.log(client), console.log(sandbox), util.inspect(…) and JSON.stringify(client) no longer print your API key. It was a TypeScript private field, which is not hidden at runtime; it is now a real private field. Upgrade if you log SDK objects.
  • A 502, 504 or other proxy error (an HTML or empty body, not the API's JSON error) on start() / run() is no longer reported as a failure. The command may have started before the reply was lost, so run() now looks the job up by the id it generated and waits on it, as it does after a dropped connection, and never sends the command again. With an execId you chose, start() throws ExecStartUnconfirmed carrying that id. An error from the API itself (no_host_available, …) is still thrown as before.
  • An id refused before sending ("", ., ..) on start() now throws InvalidArgumentError; it was reported as ExecStartUnconfirmed, "the command may be running", although nothing was sent.
0.2.6
  • A 429 no longer uses up maxRetries. A call that is safe to retry (a create, a GET, a DELETE, a POST with an idempotency key) waits out rate limits after Retry-After for up to rateLimitWaitMs (default 60000), so a burst of creates (say 10 at once against the 1/s machine limit) completes instead of raising after three tries. maxRetries=0 still disables every retry.
  • Security: every id you pass (machine, volume, snapshot, exec) is sent as one URL path segment. Before, an id such as ../machines/<id> or x?y#z was put into the path as it was, and fetch resolves .. — so an id taken from untrusted input could make a call such as deleteVolume() reach a different route with your API key. "", . and .. now throw SistemoError. Upgrade if your code passes ids that come from your own users.
0.2.5
  • start() with an execId that is already in use throws APIError 409 exec_id_in_use. It returned the earlier job instead, so the new command silently never ran.
  • Retries honour Retry-After on a 503 as well as a 429; the API sends it on every retryable 503.
0.2.4
  • Sandbox.close() keeps trying until the machine is deleted — through rate limits (honouring Retry-After), dropped connections and a machine still mid-transition — for up to timeoutMs (default CLOSE_TIMEOUT_MS, 120 s), whatever maxRetries says. A machine already gone counts as closed. Tearing many machines down at once no longer leaves some running and billed.
  • await using that could not delete its machine now reports it (process.emitWarning, or console.warn outside Node) instead of failing silently.
0.2.3

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @sistemo/sdk

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229