Scan your whole stack
Are you using @atbash/sdk?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.17.0
@atbash/sdk was last scanned on 27 Nov 2026 at version 0.17.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
TypeScript SDK for Atbash — the safety layer that evaluates AI agent actions against operator-defined policies before execution.
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.
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.
judgeAction() performs a two-step flow:
Two ways to create an agent:
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.
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.
~/.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..env files containing the key.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 onverdict.allowis the canonical permission the SDK computes from every signal in the response;verdictis 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 onverdictre-derives a denial the organisation chose not to make.
Shadow and Monitor mode. On a judge host whose replies are signature-checked,
auditToolCallasks the judge for its true verdict and the organisation's mode, and applies the mode itself. Under a signedshadow,monitororoffmode, a BLOCK or HOLD still runs (allow: true,verdict: "ALLOW") anddecision.wouldVerdictsays 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 signedoffmode, and the call runs (allow: true); the same logged answer from a plan that only logs, or for a deactivated agent, is still refused byrequireEnforcement. SetenforceLocally: trueto 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.getJudgmentStatusapplies the mode the same way, so a shadow call polled later reports itswouldVerdictwhileallowstays true.judgeActiondoes not opt in and returns what the server sends. To poll a HOLD, callgetJudgmentStatus(decision.judgmentId || decision.toolCallId)(or the same fields of ajudgeActionresult): on the on-chain judge path the verdict is recorded under its own id.
Verdict record.
decision.recordsays what the judge stated about recording the verdict:onChain,status(itson_chain_status, such aspending),boundToCall(the reply names this call's ids),signatureChecked(a judge key verified the reply) andjudgeStatus(shadow_recordedfor a shadow ack, which has no verdict yet). A host that must not run an unrecorded action gates onverdictRecorded: a signed reply about this call that stateson_chainand carries a verdict, so a shadow ack or a logged-only answer is never one.undefinedmeans unknown: treat it as not recorded. It is informational;allowremains 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.
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.
| Method | Use case |
|---|---|
judgeAction(action, context, opts?) |
Sign locally + request a verdict from the judge API |
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 |
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 } |
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
config.jsonEach 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().
fromConfig picks the first of these that is set:
agentKey option (hex private key in code).keyPath option. A path that does not exist throws; the SDK never falls through to another key when you named one.ATBASH_AGENT_KEY environment variable.~/.config/atbash/guard-client-key.~/.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.
orgName doesorgName 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" },
});
Both fromConfig and the constructor validate the endpoint before any request. validateJudgeEndpoint(...) exposes the same check.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.