Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 5 min read

Screen a counterparty wallet before your agent pays it

Screen a counterparty wallet before your agent pays it If an agent can send USDC, the dangerous step is not building the transfer. It is paying an address you have not screened. A counterpart in a chat, a payout in a t

Screen a counterparty wallet before your agent pays it

If an agent can send USDC, the dangerous step is not building the transfer. It is paying an address you have not screened. A counterpart in a chat, a payout in a tool result, or a β€œtreasury” pasted into a prompt should be checked before the agent broadcasts. On Base that can be one pay-per-call request: $0.05 USDC, no API key, and a local MCP client that signs the 402 on the buyer’s machine.

Disclosure: I work on BRAINIAC.software. There is no free trial and I am not claiming customers. Discovery and the local client download are free; a successful HTTP 2xx that returns real data costs the listed USDC price. Prices and field names below are from the live catalog, OpenAPI, and an unpaid 402 I ran on 23 November 2026. If a price has moved, the 402 is the source of truth.

This article is about one route: POST /api/v1/wallet-intelligence/security/address. It does not replace a human review, and it does not claim to catch every malicious address. Cursor and Claude Desktop still cannot sign a 402 against a remote /mcp URL; the local payer is in Give a desktop agent a local x402 wallet.

What this route is

Docs: wallet-intelligence/security-address. Catalog title: β€œCheck address security.” Description: check a wallet address for malicious activity indicators using GoPlus Labs threat intelligence on Base Mainnet.

Live price: $0.05 USDC on Base (eip155:8453). OpenAPI x-payment-info.amount is "0.05". Scope: Base Mainnet only, chain ID 8453. This is not a balance snapshot and not an approvals scan; those are separate operations in the same group.

The live OpenAPI required field is walletAddress, not address. Optional: cursor. The published example body is:

{ "walletAddress": "0x21c3de23d98caddc406e3d31b25e807addf33633" }

A body that sends address instead of walletAddress does not match the schema. Have the agent describe wallet-intelligence.security-address before call.

Inspect the 402 without paying

This unpaid POST returns HTTP 402 and does not move USDC. Use a fresh 64-character hex Idempotency-Key.

curl -i -X POST https://www.brainiac.software/api/v1/wallet-intelligence/security/address \
  -H 'Content-Type: application/json' \
  -H "Idempotency-Key: $(openssl rand -hex 32)" \
  -d '{"walletAddress":"0x21c3de23d98caddc406e3d31b25e807addf33633"}'

On 23 November 2026 that response was x402 version 2, scheme exact, network eip155:8453, amount "50000" ($0.05 USDC, 6 decimals), asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, payTo 0x6428665E83F503904571104311bB78CBb29b975c, facilitator https://api.cdp.coinbase.com/platform/v2/x402.

Field names an agent should branch on

The JSON below is the published example from the docs and the 402's Bazaar output schema, not a paid body from this article. The example uses a placeholder address:

{
  "status": "partial",
  "data": {
    "result_id": "a1b2c3d4e5f60718293a4b5c6d7e8f90",
    "received_at": "2026-11-12T12:00:00.000Z",
    "retrievedAt": "2026-10-29T12:00:00.000Z",
    "walletAddress": "0x1234567890123456789012345678901234567890",
    "security": {
      "code": 1,
      "message": "OK",
      "result": {
        "address": "0x1234567890123456789012345678901234567890",
        "risk_level": "low",
        "malicious": false,
        "phishing": false
      }
    }
  },
  "nextCursor": "eyJ2IjoxLCJyb3V0ZSI6InBhcnRpYWwtcmVzdW1lLi4u",
  "progress": { "processed": 0, "total": null, "unit": "items", "scannedRange": null },
  "sources": [
    {
      "source": "GoPlus Labs API",
      "url": "https://api.gopluslabs.io/api/v1/address_security/8453",
      "retrievedAt": "2026-10-29T12:00:00.000Z"
    }
  ],
  "missing_items": [
    {
      "check": "phishing_list_timeout",
      "reason": "timeout",
      "detail": "GoPlus phishing list timed out. Address risk fields below still stand."
    }
  ],
  "limitations": [
    "Security checks are based on GoPlus Labs threat intelligence.",
    "Not all malicious or suspicious activity may be detected."
  ]
}

Gate on data.security.result: address, risk_level, malicious, and phishing. The wrapper adds security.code and security.message (the example uses 1 / OK). Compare data.walletAddress and security.result.address to the payee you intended.

Also read the envelope, not only malicious: false. status complete or partial with real data is the charged success path. partial can include nextCursor; resume with the same walletAddress plus cursor, or stop and treat the result as incomplete. missing_items[] (check, reason, detail) means a check did not finish β€” in the example, the GoPlus phishing list timed out while other address-risk fields still stand. That is not the same as a finished phishing: false. limitations[] states that not all malicious or suspicious activity may be detected. A risk_level of low in the example is not a guarantee, and I am not claiming that value for any live wallet here. Keep sources[] (GoPlus Labs on chain 8453 in the example) with whatever you show a user.

Do not invent extra GoPlus flags that are not in this route’s published schema. Token-approval risk is a different call (POST /api/v1/wallet-intelligence/security/approvals, $0.05). A combined report is …/security/risk-report at $0.10. This article does not cover them.

Where this sits in an agent loop

Install the local stdio client from the skill and verify mcp-client.mjs.sha256. Keep BRAINIAC_PRIVATE_KEY, BRAINIAC_MAX_USD_PER_CALL, and BRAINIAC_DAILY_MAX_USD only in the host environment. For this $0.05 route the per-call cap must be at least 0.05 (the skill’s example cap is 0.05). Do not paste a private key into a chat or into this article.

  1. The agent is about to transfer, tip, refund, or otherwise pay walletAddress on Base. Halt the send.
  2. Free: describe with id wallet-intelligence.security-address. Confirm the required field is walletAddress.
  3. Paid: call with { "id": "wallet-intelligence.security-address", "params": { "walletAddress": "<checksummed address>" } }. The client pin-checks payTo, USDC, eip155:8453, and the Coinbase CDP facilitator, then signs only if $0.05 is within the caps.
  4. If status is partial and nextCursor is present, resume or stop. If missing_items is non-empty, do not treat the counterpart as cleared β€” especially if the missing check is the phishing list.
  5. Policy: block or escalate if malicious or phishing is true, if risk_level is outside your allow-list, if the returned address does not match the intended payee, or if missing checks leave the result incomplete. malicious: false and phishing: false are GoPlus indicators, not a payment authorization from us.
  6. Only then construct and send the transfer β€” or do not.

Settlement is only after HTTP 2xx with real data (complete or partial). HTTP 4xx/5xx, failed, and empty payloads are not charged. Payment and pins: how-it-works.

Outputs are lookups for a person or a policy to review, not legal advice and not an official determination. This route screens a Base address against GoPlus threat intelligence; that is the whole job.

If you already wrap payouts in a local MCP client, I would like to hear whether phishing: true is an automatic block, and what you do when missing_items reports a timeout.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.