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

@bevorai/sdk

Latest version: v0.2.3-rc2

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: petesim1
16 Versions
2.2K Downloads

Scan summary

@bevorai/sdk was last scanned on 30 Nov 2026 at version 0.2.3-rc2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 16 versions; the latest 4 were published within 7 days (24–30 Nov 2026).
  • Findings: No rules fired in version 0.2.3-rc2.
  • Downloads: 2,219 downloads.

Versions

16 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.3-rc2 LATEST 30 Nov 2026 No rules fired
0.2.3-rc1 29 Nov 2026 No rules fired
0.2.2 25 Nov 2026 No rules fired
0.2.2-rc3 24 Nov 2026 Not shown
0.2.2-rc2 20 Nov 2026 Not shown

No rules fired in 0.2.3-rc2

Findings

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

README

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

@bevorai/sdk

TypeScript SDK for the Bevor API: smart contract security analysis for Solidity.

Research preview. The API and this SDK may change between minor versions until 1.0.

Install

npm install @bevorai/sdk
# or
pnpm add @bevorai/sdk

Requires Node 22+ (or any runtime with fetch and AbortSignal.any). The package is ESM.

Quickstart

Create an API key in the Bevor dashboard, then:

import { readFile } from "node:fs/promises";
import { BevorClient } from "@bevorai/sdk";

const client = new BevorClient({ apiKey: "bvr_..." });

const code = await client.codes.createPaste({
    content: await readFile("Vault.sol", "utf8"),
});

const created = await client.analyses.createRoot({ code_id: code.id });
if (!created.is_created) {
    // this code already has analyses in the project; reuse one, or pass on_collision: "force"
    console.log(created.candidates.map((c) => c.analysis_meta.id));
    process.exit(0);
}
const { analysis } = created;

const run = await client.analyses.run(analysis.id, undefined, {
    withStreaming: true,
});
for await (const event of run.streamCompletion()) {
    console.log(event.type, event.payload.status);
}

const findings = await client.analyses.listFindings(analysis.id);
for (const finding of findings.results) {
    console.log(finding.level, finding.name);
}

Usage

Every method takes optional per-call RequestOptions as its last argument: headers, an abort signal and a timeout in ms. Client-wide defaultHeaders, timeout (default 120 s) and a custom fetch are set on the constructor.

Responses are the API's JSON, typed. Timestamps are ISO 8601 strings.

Bound resources

with(id) returns the same methods without the id argument:

const analysis = client.analyses.with(analysisId);
await analysis.listFindings({ version_id: versionId });

const graph = client.codes.with(codeId).graph;
const entrypoints = await graph.listNodes({ is_entrypoint: true });
Pagination

List endpoints return one page. Pass withPagination: true to accumulate pages:

const findings = await client.findings.list(
    { level: "critical" },
    { withPagination: true },
);
while (findings.hasMore) await findings.fetchNext();
console.log(findings.results.length);
Streaming

analyses.run, codes.uploadFolderZip, codes.createPublicRepo and codes.createConnectedRepo accept withStreaming: true and return an EventResource. Its streamCompletion() yields progress events until processing finishes. Status events (analysis.pipeline, code.status) refresh .data; the others (analysis.run, code.step) are progress only. Each event's type is its SSE event name, so unions narrow with a switch.

Chat replies stream with chats.stream:

const token = await client.chats.sessionToken(chatId);
for await (const message of client.chats.stream(chatId, token, {
    message: "Is deposit reentrant?",
})) {
    if (message.event_type === "text")
        process.stdout.write(message.content ?? "");
}
Uploading a folder
import { fingerprintSource } from "@bevorai/sdk";
import { directoryFiles } from "@bevorai/sdk/helpers";

const { zip, nFiles, versionFingerprint } = await fingerprintSource(
    await directoryFiles("./contracts"),
    "contracts",
);
if (nFiles === 0) throw new Error("no UTF-8 source files found after filters");

const signingKey = await client.codes.generateSigningKey();
const upload = await client.codes.uploadFolderZip(signingKey, zip, {
    withStreaming: true,
});
for await (const event of upload.streamCompletion()) {
    if (event.type === "code.step") console.log(event.payload.step);
}

The zip and fingerprint follow the same file rules as the API, so versionFingerprint matches the code version's version_fingerprint.

Graph

Graph loads a code version's nodes, edges and files for local traversal:

import { Graph } from "@bevorai/sdk";

const graph = new Graph(client, codeId);
await graph.build();

const chain = graph.getCallChain(entrypointId);
console.log(chain.toText());

const source = await graph.reconstructChunk(entrypointId, {
    withDocstring: true,
});
Errors

Error responses with a known code throw a typed subclass of BevorError (NotFoundError, InvalidStateError, RateLimitError, ...) carrying code, statusCode and message. Any other non-2xx response throws BevorError with the status and raw body.

import { NotFoundError } from "@bevorai/sdk/errors";

try {
  await client.findings.get(findingId);
} catch (error) {
  if (error instanceof NotFoundError) return null;
  throw error;
}
SARIF
import { bevorToSarif, sarifToBevor } from "@bevorai/sdk/helpers";

const sarif = await bevorToSarif(graph, analysis, findings.results);

// results whose location matches no node, or several, are skipped with a reason
const { findings, skipped } = await sarifToBevor(graph, sarifLog);
await client.analyses.addFindings(analysisId, findings);

Documentation

Full API reference and guides: https://bevor.io/docs

License

MIT

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

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