cbp-guard

v0.1.3
io.github.teddYTIgers/certbeforepay Checked 14 hours ago Published 5 days ago

Check an x402 payTo for scam/phishing and address-poisoning lookalikes before paying.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

wallet_check

Check a destination wallet (x402 payTo) with CertBeforePay before paying: clear, caution (incl. address-poisoning lookalike) or block. Paid: $0.01 in USDC on Base via x402 from your key. Not an OFAC/sanctions screen.

ParameterTypeDescription
address *stringDestination 0x wallet (the payTo you are about to pay)
chainstringCAIP-2 chain id; default eip155:8453 (Base)
known_recipientsarrayOptional: up to 50 0x addresses you expect to pay; a lookalike of one returns caution
resourcestringOptional resource URL or domain context

gate

Scan a skill, skills, an MCP server config or content with CertBeforePay POST /v1/gate. Paid: $0.02 in USDC on Base via x402 from your key.

ParameterTypeDescription
contentstringFree-form content to scan
mcpAn MCP server config
skillOne skill (string or object)
skillsarraySeveral skills

peer_challenge

Verify another agent's CertBeforePay certificate before you trust or pay it, with POST /v1/peer/challenge. Returns decision ACCEPT only if the certificate is signed by CertBeforePay, not expired and not revoked, its score is at least min_score and its tier meets require_tier; otherwise REJECT. A valid certificate whose subject is on the scam list is normally refused with 403 scam_wallet_blocked, and never gets ACCEPT. Also returns valid, reason, the peer's subject, tier, score, grade, expires and serial, and the policy applied. Paid: $0.01 in USDC on Base via x402 from your key.

ParameterTypeDescription
certificate *objectThe peer's CertBeforePay certificate: the signed JSON object (payload, signature, ...) returned as certificate by POST /v1/self-check or POST /v1/cert/issue
min_scoreintegerOptional minimum certificate score, 0-100; default 60. A lower score returns REJECT
require_tierstringOptional minimum tier: provisional, attested or endorsed (lowest to highest). A lower tier returns REJECT; any other value always returns REJECT