{"uid":"cap_Z-CctVijbzVM8VnOSiK4g","slug":"brainiac-validator-withdrawal-credential-audit-a046395f","name":"BRAINIAC Validator Withdrawal Credential Audit","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/staking-security/validator-withdrawal-credential-audit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"policy":{"type":"object","properties":{"operators":{"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,79}$"},"maxItems":32},"ownership":{"enum":["require_listed","informational"],"type":"string"},"duplicateDestinations":{"enum":["allow","prohibit"],"type":"string"}},"additionalProperties":false},"network":{"type":"string","maxLength":80,"minLength":1},"expected":{"type":"array","items":{"type":"object","required":["pubkey","credentialType"],"properties":{"pubkey":{"type":"string","pattern":"^0x[0-9a-fA-F]{96}$"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"credentialType":{"enum":["bls","execution","compounding"],"type":"string"}},"additionalProperties":false},"maxItems":128,"minItems":1},"ownership":{"type":"array","items":{"type":"object","required":["address","operator"],"properties":{"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"operator":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,79}$"},"beneficiary":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,79}$"}},"additionalProperties":false},"maxItems":64},"validators":{"type":"array","items":{"type":"object","required":["pubkey","withdrawalCredentials"],"properties":{"pubkey":{"type":"string","pattern":"^0x[0-9a-fA-F]{96}$"},"withdrawalCredentials":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$"}},"additionalProperties":false},"maxItems":128,"minItems":1}}},"responseSchema":{"type":"json","example":{"findings":[{"code":"unexpected_destination","detail":"The execution address in the supplied credential is not the expected withdrawal address. This does not show who controls either address, and it was not read from a beacon node.","pubkey":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","severity":"critical"},{"code":"duplicate_destination","detail":"policy.duplicateDestinations is prohibit, and this execution address is the withdrawal destination for more than one supplied validator.","severity":"high"},{"code":"validator_missing","detail":"This public key is in the expected list and is not in the supplied validator records.","pubkey":"0xcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc","severity":"medium"},{"code":"not_on_chain","detail":"These credentials were supplied in the request. They were not read from a beacon node, and a match does not show that the caller controls an address.","severity":"low"}],"risk_level":"critical","limitations":["Withdrawal credentials are the bytes in the request. They were not read from a beacon node.","A matching address is not proof that the caller controls that address.","Ownership is taken only from the supplied mapping. Address format is not treated as ownership.","Decoded types are 0x00 BLS, 0x01 execution, and 0x02 compounding. Other prefixes are unrecognized.","An execution address is the last 20 bytes of an 0x01 or 0x02 credential only when the 11-byte padding is zero.","An 0x00 credential does not contain an execution address. The other 31 bytes are a hash fragment.","Duplicate destinations are reported only when policy.duplicateDestinations is prohibit.","network is a label. It was not compared with a beacon chain."],"audit_status":"mismatched","missing_validators":[{"detail":"This public key is in the expected list and is not in the supplied validator records.","pubkey":"0xcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"}],"duplicate_destinations":[{"detail":"policy.duplicateDestinations is prohibit, and this execution address is the withdrawal destination for more than one supplied validator.","address":"0x1111111111111111111111111111111111111111","pubkeys":["0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"]}],"credential_type_summary":[{"type":"execution","count":2}],"unexpected_destinations":[{"detail":"The execution address in the supplied credential is not the expected withdrawal address. This does not show who controls either address, and it was not read from a beacon node.","pubkey":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","address":"0x1111111111111111111111111111111111111111","credential_type":"execution","expected_address":"0x2222222222222222222222222222222222222222"}],"withdrawal_destinations":[{"detail":"The 0x01 credential has zero padding. The last 20 bytes are the execution withdrawal address in the supplied credential. This was not read from a beacon node.","pubkey":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","address":"0x1111111111111111111111111111111111111111","operator":"treasury","beneficiary":"ops","credential_type":"execution","matches_expected":false},{"detail":"The 0x01 credential has zero padding. The last 20 bytes are the execution withdrawal address in the supplied credential. This was not read from a beacon node.","pubkey":"0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb","address":"0x1111111111111111111111111111111111111111","operator":"treasury","beneficiary":"ops","credential_type":"execution","matches_expected":true}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_n8nhtbTfimMlVcPCKNcNF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Audits Ethereum validator withdrawal credentials against expected addresses and policies, flagging mismatches, duplicates, and missing validators.","exampleAgentPrompt":"Audit these 3 validators for me — pubkeys 0xaaa...bbb, 0xccc...ddd, 0xeee...fff with withdrawal credentials 0x010000...addr1, 0x010000...addr2, 0x010000...addr3 — and check that each one has an execution-type credential pointing to my expected address 0x1234...abcd; flag any mismatches as critical and prohibit duplicate destinations.","exampleUseCases":[{"title":"Pre-activation withdrawal credential check","prompt":"Before we activate these 10 new validators, audit their withdrawal credentials against our expected execution address 0xDEAD...BEEF — all should be execution type, no duplicates allowed, and flag anything critical immediately."},{"title":"Staking operator compliance audit","prompt":"Run a withdrawal credential audit for our validator set assigned to operator 'acme-staking', check that all 32 validators have compounding credentials pointing to our listed addresses, and use the require_listed ownership policy so unlisted addresses get flagged."},{"title":"Post-migration credential verification","prompt":"We just migrated our validators from BLS to execution credentials — can you audit all 50 validators and confirm none still have BLS-type credentials and that every withdrawal address matches our expected list? Flag any mismatches or missing validators."}],"resultDescription":"Returns a JSON object with a risk_level (e.g. critical/high/medium/low), audit_status (e.g. mismatched/ok), an array of findings each with a code, severity, pubkey reference, and explanatory detail, a list of missing_validators, and a limitations array clarifying what the audit did and did not verify (e.g. credentials were not read from a beacon node).","failureModes":["Invalid pubkey format (must be 0x-prefixed 96 hex chars) returns schema validation error","Withdrawal credentials not matching expected 0x64 hex pattern causes rejection","Empty expected array or validators array (minItems:1 required) causes 400 error","More than 128 validators or expected entries (maxItems exceeded) causes rejection","Unrecognized credential prefix (not 0x00, 0x01, or 0x02) reported as unrecognized in findings","Ownership address not in supplied mapping is not treated as owned — may produce informational or critical findings depending on policy","Payment failure via x402/USDC on Base causes 402 response with no audit result"],"whenToPreferThis":"Use this endpoint when you need a fast, policy-driven audit of validator withdrawal credentials purely from supplied data — without querying a live beacon node. Ideal for pre-activation checks, compliance reporting, or batch credential verification where you already have the withdrawal credential bytes and want to compare against an expected set with configurable ownership and duplicate-destination policies. Not suitable when you need on-chain beacon state verification or proof of address control.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-13T18:44:40.649Z","isFirstParty":false,"canonicalSlug":"brainiac-validator-withdrawal-credential-audit-a046395f"}