
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
verify-before-pay
Advanced tools
Verify an x402 counterparty's settlement-grounded reputation before your agent pays it. Drop-in for any x402 client's paymentRequirementsSelector. By Crest / AgentRank.
Before your AI agent releases funds over x402, check the counterparty against AgentRank's
settlement-grounded verdict. Drop it into any x402 client's paymentRequirementsSelector so
verification runs after the payee is known but before the payment is signed.
The payer-side complement to require-rank (which
is the provider side: a service gating its caller).
A counterfeit agent can fake fluency, a badge, even an on-chain-looking reference. It cannot fake having actually been paid. The verdict here is recomputed from real settled USDC, weighted by payer standing. In a sealed, preregistered experiment, a fake-verifiable counterfeit beat an honest agent 99% of the time without verification; performing the check flipped it, and it held 94% even against an actively lying counterparty. Surface heuristics collapse under mimicry; only verification recovers the truth.
import { wrapFetchWithPayment } from "x402-fetch";
import { verifyingSelector } from "verify-before-pay";
// default-on: every payment verifies its counterparty first
const fetchWithPay = wrapFetchWithPayment(
fetch, wallet, maxValue,
verifyingSelector({ minScore: 1, onFail: "warn" }) // surface by default; flip to "block" to refuse
);
Or check directly:
import { verifyCounterparty } from "verify-before-pay";
const v = await verifyCounterparty("0xPAYEE..."); // { verified, score, usd, payers, verdict }
| option | default | meaning |
|---|---|---|
minScore | 0 | require at least this AgentRank score (0–1000) to pass |
requireVerified | false | require settlement-verified, not just scored |
onFail | "warn" | "warn" (surface + proceed) · "block" (throw) · "allow" (silent) |
failClosed | false | on a lookup error, refuse instead of failing open |
onCheck(results) | — | callback with every verdict, for logging/telemetry |
apiBase | https://api.agentrank.info | verdict source |
Defaults are non-breaking: it always checks and surfaces, never blocks, so installing it can't
break a flow. Turn on minScore / requireVerified / onFail:"block" to make it a hard gate.
On a verification outage it fails open by default (a verifier outage must not halt your agent).
MIT · by Crest Deployment Systems · https://agentrank.info
See example.mjs — a drop-in payIfTrusted() that classifies the payTo (service / buyer / rail / treasury / dust) and refuses anything that is not a real service, using the free /full counterparty endpoint.
node example.mjs blockrun.ai # service -> would pay
node example.mjs 0x1111... # dust -> would refuse
FAQs
Verify an x402 counterparty's settlement-grounded reputation before your agent pays it. Drop-in for any x402 client's paymentRequirementsSelector. By Crest / AgentRank.
The npm package verify-before-pay receives a total of 7 weekly downloads. As such, verify-before-pay popularity was classified as not popular.
We found that verify-before-pay demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.