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

spr-sdk

Latest version: v0.3.2

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: luca-network
14 Versions
1.0K Downloads

Scan summary

spr-sdk was last scanned on 29 Nov 2026 at version 0.3.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 14 versions; the latest 3 were published on 29 Nov 2026.
  • Findings: No rules fired in version 0.3.2.
  • Downloads: 1,049 downloads.

Versions

14 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.2 LATEST 29 Nov 2026 No rules fired
0.3.1 29 Nov 2026 No rules fired
0.3.0 29 Nov 2026 No rules fired
0.2.0 3 Nov 2026 Not shown
0.1.9 2 Nov 2026 Not shown

No rules fired in 0.3.2

Findings

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

README

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

SPR SDK for Python

SPR, the Sealed Payment Record, in Python: seal your AI agents' payments on your own machine with your company's own key, and check any SPR record or package without Luca. Apache-2.0. Needs cryptography.

from spr import SprBook

book = SprBook(dir="books", agent_id="agt_research", entity="Example Co")

# Before paying: declare, and sign the nonce as the payment's nonce where the rail lets you (x402, EIP-3009).
intent = book.declare(purpose="Market data for the pricing model", max_amount_minor=20000, currency="USDC")
nonce = book.nonce_for(intent["intent_id"])
if book.check_payment(10000, "USDC", nonce=nonce)["decision"] != "approve":
    raise SystemExit("declined")

# After paying: seal it.
record = book.seal(rail="x402", source_id=tx_hash, amount_minor=10000, currency="USDC", nonce=nonce)

The folder, files and records are the same as the JavaScript SDK's, so either language opens the other's book.

The book runs on your machine and makes no call to Luca. It checks each payment against the agent's declared intent: the cap, the expiry, whether the intent was withdrawn, the payee the intent named (payee_id), and whether the same invoice (invoice_ref) was paid already. An optional mandate.json in the folder adds one limit across all the agent's intents, the payees it may pay (payees) and a window for repeats (duplicate_window, such as P1D); keep it where the agent can't write; whoever keeps the folder writes it, so results report it as authority: "self-declared". Spending authority granted by someone else needs that party's own record, such as a mandate approved in Luca's hosted service.

A merchant records each payment it receives with direction="inflow", and can add the buyer's own sealed intent with the buyer's public key (buyer_intent=, buyer_key=), how the buyer authenticated (buyer_authentication=), and the order and processor references (order_id=, processor_transaction_id=). book.export_dispute_pack(record_id, folder, delivery=...) writes one payment's evidence for a dispute response, with a plain-words summary.txt; check it with python -m spr <folder> --key <merchant key> --buyer-key <buyer key>.

Times need their offset; a time without one is refused. Different facts for a payment already sealed return conflict and seal nothing, unless you pass correction={"reason": ...}.

Export the book for an auditor or a counterparty (never share the folder itself, which holds the private key), and check it, or run the test vectors that come with the package:

out = book.export_package("books-export")   # out["verified"] is True: the export checked itself
python -m spr books-export --key company-public-key.pem   # every seal, file hash and intent link, and whose package it is
python -m spr --vectors           # this package against the format's test vectors

The checker also works out each consent rule from the sealed facts (proposed in RFC 0002) and lists each payment that breaks one, and each payment made with no intent; the last line always counts them. A book may truthfully record a payment made outside its intent, so the exit code stays 0 unless you add --consent, which makes it 3 when a rule is broken.

When a month is closed, book.close_period("2026-10-01", "2026-10-31") seals a statement of its records (their count, Merkle root and totals), naming the statement before it, and book.export_period("2026-10-01", "2026-10-31", "books-2026-10") exports the period with it (proposed in RFC 0003; pass reason= to restate a closed period). The names are provisional until the RFC is decided.

book.rotate_key(reason=...) replaces the key: the old key seals a handover to the new one in keys.jsonl, and records sealed before stay checkable. Several processes can use one book: each write takes book.lock for a moment, so nothing is lost.

Send the book to Luca's hosted service (optional), which checks every seal, then classifies each payment and posts it to your ERP:

book.register_with_luca("acme-us", url="https://sandbox.luca.network", api_key=FINANCE_KEY)   # once, by finance
book.send_to_luca(url="https://sandbox.luca.network", api_key=LUCA_API_KEY)                    # sending it again changes nothing

url and api_key default to LUCA_URL and LUCA_API_KEY. The address must be https, and a redirect is refused; LUCA_ALLOW_INSECURE_LOCAL=1 allows plain HTTP to your own computer, for development. A book folder inside OneDrive, Dropbox, iCloud or Google Drive is refused unless you pass allow_synced_folder=True. Only the package's files are sent, never the private key. A book over one import's limits (4,000 records or 8 MB) goes in parts, each of which checks on its own.

Tests: python -m unittest discover -s tests, from this folder.

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).

  • pypi-releases spr-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

Vulnerability Insights

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

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

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?

Frame 2085668439 (1)
Group 1261154229