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

@atbash/sdk

Latest version: v0.17.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: amanuelmr, bewuketu_lake, celse13, ketiyoh, tewuhbo, tsiontesfaye
47 Versions
5.1K Downloads

Scan summary

@atbash/sdk was last scanned on 27 Nov 2026 at version 0.17.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 47 versions; the latest 2 were published within 2 days (26 and 27 Nov 2026).
  • Findings: No rules fired in version 0.17.0.
  • Downloads: 5,087 downloads.

Versions

47 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.17.0 LATEST 27 Nov 2026 No rules fired
0.27.0-dev.0 26 Nov 2026 No rules fired
0.26.0-dev.0 20 Nov 2026 No rules fired
0.25.0-dev.0 20 Nov 2026 Not shown
0.16.0 20 Nov 2026 Not shown

No rules fired in 0.17.0

Findings

Findings for v0.17.0. 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.17.0; other versions have their own rules, not their own score.

README

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

@atbash/sdk

TypeScript SDK for Atbash — the safety layer that evaluates AI agent actions against operator-defined policies before execution.

Installation

npm install @atbash/sdk

Requires Node.js 18+. Server-side only — private keys are used for local signing and must never be exposed to browsers.

Quickstart

import { Atbash } from "@atbash/sdk";

// 1. Construct with your agent's private key.
//    The SDK validates the key and derives the matching public key.
const atbash = new Atbash(process.env.ATBASH_AGENT_KEY!, {
  orgName: "my_org",
});

// 2. Submit an action for judgment, before executing it.
//    The SDK signs the transaction locally and sends it to the judge API.
//    The private key stays on your machine — never sent over HTTP.
const result = await atbash.judgeAction(
  "Transfer $50,000 to external wallet 0xabc",
  "Outbound AML check — new recipient, over threshold",
);

// 3. Act on the decision. `allow` is the gate; `verdict` says why.
if (result.allow) {
  // Proceed with the action
} else if (result.verdict === "HOLD") {
  // Held — operator must approve in the dashboard
  console.log("Held for review:", result.toolCallId);
} else {
  // Refused — agent is jailed in Enforcement tier
  throw new Error(`Blocked: ${result.reason}`);
}

Before this works, the agent must be onboarded at atbash.ai — assigned to an org, with a policy pack attached, and the org on an active subscription plan.

How it works

judgeAction() performs a two-step flow:

  1. Sign locally — signs the request using the agent's private key. The key never leaves your machine.
  2. Request verdict — sends the signed request and agent pubkey to the Atbash judge API. The server broadcasts it to the Chromia blockchain and returns a verdict.

Don't have an agent yet?

Two ways to create an agent:

  1. Dashboard (recommended) — create an agent at atbash.ai/risk-engine/agents. The dashboard generates the keypair, assigns the agent to your org, and lets you attach a policy pack — all in one step.

  2. Programmatic — generate a keypair locally, then onboard it via the dashboard:

    import { generateKeypair } from "@atbash/sdk";
    const { priv_key, pub_key } = generateKeypair();
    console.log("Save this private key somewhere safe:", priv_key);

    Paste the public key into the Onboard agent form on the dashboard, assign it to an org, and attach a policy pack before calling judgeAction.

Secret storage

  • Keep the private key in the key file (~/.config/atbash/guard-client-key, or a file named by keyPath), in ATBASH_AGENT_KEY, or in a secret manager — never hardcode it. See Which key signs.
  • Never commit .env files containing the key.
  • If a key leaks, stop using it and create a new agent in the dashboard.

Verdicts

Every judgeAction call returns one of three verdicts:

Verdict Meaning What your code should do
ALLOW Action is within policy Proceed with execution
HOLD Requires operator review Pause — poll getJudgmentStatus until resolved
BLOCK Violates a red line Abort — agent is jailed in Enforcement tier when Auto-block is on

A BLOCK result also carries agentJailed: true when the agent was jailed, false when only the action was blocked (Auto-block off), and absent when the judge did not say.

Gate on allow, not on verdict. allow is the canonical permission the SDK computes from every signal in the response; verdict is one of those signals, and reads as the reason. The two differ when an organisation does not enforce an agent's verdicts — Shadow Mode on an agent, or org-wide Monitor mode — where the action is judged and recorded on chain but deliberately not applied. Branching on verdict re-derives a denial the organisation chose not to make.

Shadow and Monitor mode. On a judge host whose replies are signature-checked, auditToolCall asks the judge for its true verdict and the organisation's mode, and applies the mode itself. Under a signed shadow, monitor or off mode, a BLOCK or HOLD still runs (allow: true, verdict: "ALLOW") and decision.wouldVerdict says what would have happened; it is also logged as a warning. A missing, unsigned or unknown mode enforces. While protection is Off or paused, the judge only logs the call (no verdict) under a signed off mode, and the call runs (allow: true); the same logged answer from a plan that only logs, or for a deactivated agent, is still refused by requireEnforcement. Set enforceLocally: true to enforce every verdict whatever the mode; the SDK then asks the judge to judge every call before answering, and refuses a reply that does not confirm it, so against a judge without client enforcement every call is refused. getJudgmentStatus applies the mode the same way, so a shadow call polled later reports its wouldVerdict while allow stays true. judgeAction does not opt in and returns what the server sends. To poll a HOLD, call getJudgmentStatus(decision.judgmentId || decision.toolCallId) (or the same fields of a judgeAction result): on the on-chain judge path the verdict is recorded under its own id.

Verdict record. decision.record says what the judge stated about recording the verdict: onChain, status (its on_chain_status, such as pending), boundToCall (the reply names this call's ids), signatureChecked (a judge key verified the reply) and judgeStatus (shadow_recorded for a shadow ack, which has no verdict yet). A host that must not run an unrecorded action gates on verdictRecorded: a signed reply about this call that states on_chain and carries a verdict, so a shadow ack or a logged-only answer is never one. undefined means unknown: treat it as not recorded. It is informational; allow remains the gate.

NB: If your org has no active subscription, the judge returns "No verdict" — actions are logged on-chain for the audit trail but not evaluated by an AI provider. Assign a plan at atbash.ai/risk-engine/settings for active verdicts.

API

The Atbash class is the main entry point. Construct it once with your agent's private key and (optionally) a default orgName, then call methods on it.

Operations
Method Use case
judgeAction(action, context, opts?) Sign locally + request a verdict from the judge API
Queries

Read-only methods that read from the Chromia blockchain and dashboard.

Method Use case
checkAgentExists(pubkey?) Check if an agent is onboarded before signing
getJudgmentStatus(judgmentId, pubkey) Poll whether a held action has been approved or rejected
getToolCalls(maxCount) List recent tool calls across all agents
getOrgToolCalls(orgName, maxCount) List tool calls for a specific org
getAgentToolCalls(pubkey, maxCount) List tool calls for a specific agent
getToolCallCount() Total number of tool calls on-chain
getToolCallFull(toolCallId) Full details of a single tool call
getOrgTierInfo(orgName) Check an org's tier and whether verdicts are enabled
getAgentDetail(pubkey, options?) Get agent metadata (org, status, creation date)
getAgentPolicy(pubkey, options?) Check the agent's jail status; the policy text is served to the org owner only
getPendingHeldActions(orgName, maxCount) List actions waiting for operator approval
getHeldActionReviews(orgName, maxCount) List completed operator reviews
getSafetyStats() Chain-wide safety statistics
Agent identity

Standalone helpers for keypair handling.

Function Use case
generateKeypair() Generate a fresh secp256k1 keypair
derivePublicKey(privkey) Derive the public key from a private key
isValidPrivateKey(hex) Validate a private-key string
loadAgent(privkey) Validate the key + return { pubkey, privkey }

Configuration resolution

new Atbash(privkey, options) takes everything explicitly. Atbash.fromConfig(options) fills in what you did not pass from the environment and then from ~/.config/atbash/config.json, and finds the signing key for you.

import { Atbash } from "@atbash/sdk";
const atbash = Atbash.fromConfig();   // key file + env + config.json
Settings: option, then env, then config.json

Each setting is read from the first place that has it: the fromConfig option, then the environment variable, then the key in config.json.

judge is taken whole. Pass it complete, or leave it out and use the environment or config.json: a judge with only an endpoint ignores ATBASH_JUDGE_VERIFY_PUBKEY, so a self-hosted host then fails the allowlist.

fromConfig option Env var config.json key Notes
judge.endpoint ATBASH_ENDPOINT judgeEndpoint Must pass the endpoint rules below.
judge.verifyPubKey ATBASH_JUDGE_VERIFY_PUBKEY judgeVerifyPubKey 66-hex response-signing key of a self-hosted judge. Set through the environment or config.json without an endpoint, it throws; passed in judge without an endpoint, the default endpoint is used.
network ATBASH_DEFAULT_CHAIN_NETWORK defaultChainNetwork Only "private" is accepted; anything else throws. A client that names no chain is pinned to it, even for an org the dashboard places on another chain.
debug ATBASH_DEBUG debug 1, true or yes turns diagnostics on.
orgName ATBASH_ORG_NAME orgName fromConfig reads the option only. The env var and file key are read by resolve("orgName"), which the CLI and plugins use.

agentKey is not in this table on purpose: the signing key is never read from config.json (next section).

Helpers: saveUserConfig(config), loadUserConfig(), resolve(key, flagValue?), getConfigPath().

Which key signs

fromConfig picks the first of these that is set:

  1. agentKey option (hex private key in code).
  2. keyPath option. A path that does not exist throws; the SDK never falls through to another key when you named one.
  3. ATBASH_AGENT_KEY environment variable.
  4. ~/.config/atbash/guard-client-key.
  5. ~/.config/atbash/atbash-client-key.

If none exists fromConfig throws atbash key file not found. Looked for: <both default paths>. The bare constructor never reads a key file.

An agentKey inside config.json is ignored. A settings file is writable by anything on the machine and is shared by every Atbash integration, so it is not allowed to choose who you sign as. When you pass a logger, fromConfig warns:

[atbash] "agentKey" in config.json is ignored — settings do not choose the signing key. It holds <pubkey>; this client signs as the key file or ATBASH_AGENT_KEY instead. ...

and when no key file exists at all, the "not found" error names the pubkey stranded in config.json so you know where it went.

A key file is either key=value lines or JSON. Both fields must be present; the public key is re-derived from the private key, and a 0x prefix is accepted.

privkey=<64 hex>
pubkey=<66 hex>
{ "privKey": "<64 hex>", "pubKey": "<66 hex>" }

For adapters and CI, keep the key in a file and point at it with keyPath (or let the default path be found). Passing the key on a command line puts it in shell history and process listings.

What orgName does

orgName tells the SDK which chain to sign the call for: the org's network is looked up once through the dashboard, cached per client, and every judge and log call is signed for that chain. The SDK does not check that the name matches the org the agent was registered under; which org's policy judges the action is decided by the agent's registration, not by this string. On a deployment with a single chain a missing or different orgName therefore does not change the verdict. Org-scoped reads such as getOrgTierInfo(orgName) send the name as given; the dashboard answers an agent-authenticated call for the agent's own org, whatever name was passed.

Agent policy and detail reads can take the org, or an explicit chain:

await atbash.getAgentPolicy(atbash.pubkey, { orgName: "acme" });
await atbash.getAgentDetail(atbash.pubkey, {
  chainOpts: { network: "private" },
});
Judge endpoint rules

Both fromConfig and the constructor validate the endpoint before any request. validateJudgeEndpoint(...) exposes the same check.

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 @atbash/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

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229