x402-leakguard / tree / src/examples.js ยท raw (this view has old GitHub links rewritten for the mirror; raw is byte-exact)
// Example input/outputs for the Bazaar discovery declaration, OpenAPI and landing page (public test vectors: BIP39 spec mnemonic,
// AWS docs example key; recorded 2026-10-22T19:07:15.559Z by tools/gen-examples.mjs).
export const EXAMPLE_TEXT = "agent log: restored wallet from seed abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about; aws key AKIAIOSFODNN7EXAMPLE; contact ops@example.com";
export const LITE_EXAMPLE = {"verdict":"WALLET_KEY_EXPOSED","safe_to_send":false,"max_severity":"critical","counts":{"bip39_mnemonic":1,"aws_access_key_id":1,"email":1},"findings":[{"type":"bip39_mnemonic","category":"wallet_key","severity":"critical","confidence":0.99,"validator":"bip39 checksum ok (12 words)","start":37,"end":130,"preview":"[REDACTED:bip39_mnemonic]","remediation":"Treat the wallet as compromised: create a new seed offline and move all funds now. Never paste a seed phrase into a chat, prompt or tool."},{"type":"aws_access_key_id","category":"secret","severity":"high","confidence":0.9,"start":140,"end":160,"preview":"[REDACTED:aws_access_key_id]","remediation":"Deactivate and rotate the access key in AWS IAM; check CloudTrail for use."},{"type":"email","category":"pii","severity":"medium","confidence":0.9,"start":170,"end":185,"preview":"o***@example.com","remediation":"Personal data: send only if the recipient needs it (data minimization)."}],"redacted":"agent log: restored wallet from seed [REDACTED:bip39_mnemonic]; aws key [REDACTED:aws_access_key_id]; contact [REDACTED:email]","engine":"leakguard-0.1.0 (leakguard-engine/0.1.0)","confidence":"high","sources_failed":[],"input":{"kind":"text","bytes":185},"checked_at":"2026-10-22T19:07:15.225Z","tier":"lite"};
export const SCAN_EXAMPLE = {"verdict":"WALLET_KEY_EXPOSED","safe_to_send":false,"max_severity":"critical","confidence":"high","counts":{"bip39_mnemonic":1,"aws_access_key_id":1,"email":1},"findings":[{"type":"bip39_mnemonic","category":"wallet_key","severity":"critical","confidence":0.99,"validator":"bip39 checksum ok (12 words)","start":37,"end":130,"preview":"[REDACTED:bip39_mnemonic]","remediation":"Treat the wallet as compromised: create a new seed offline and move all funds now. Never paste a seed phrase into a chat, prompt or tool."},{"type":"aws_access_key_id","category":"secret","severity":"high","confidence":0.9,"start":140,"end":160,"preview":"[REDACTED:aws_access_key_id]","remediation":"Deactivate and rotate the access key in AWS IAM; check CloudTrail for use."},{"type":"email","category":"pii","severity":"medium","confidence":0.9,"start":170,"end":185,"preview":"o***@example.com","remediation":"Personal data: send only if the recipient needs it (data minimization)."}],"redacted":"agent log: restored wallet from seed [REDACTED:bip39_mnemonic]; aws key [REDACTED:aws_access_key_id]; contact [REDACTED:email]","exposure":{"status":"funds_at_risk","addresses":[{"finding":0,"type":"bip39_mnemonic","family":"evm","path":"m/44'/60'/0'/0/0","address":"0x9858EfFD232B4033E47d90003D41EC34EcaEda94","status":"used_empty","balances":{"base":{"native":"0","usdc":"0","tx_count":5313,"funded":false},"ethereum":{"native":"0","usdc":"0","tx_count":1679,"funded":false},"polygon":{"native":"0","usdc":"0","tx_count":13405,"funded":false},"arbitrum":{"native":"0","usdc":"0","tx_count":849,"funded":false}}},{"finding":0,"type":"bip39_mnemonic","family":"evm","path":"m/44'/60'/0'/0/1","address":"0x6Fac4D18c912343BF86fa7049364Dd4E424Ab9C0","status":"used_empty","balances":{"base":{"native":"0","usdc":"0","tx_count":1254,"funded":false},"ethereum":{"native":"0","usdc":"0","tx_count":167,"funded":false},"polygon":{"native":"0","usdc":"0","tx_count":2740,"funded":false},"arbitrum":{"native":"0","usdc":"0","tx_count":457,"funded":false}}},{"finding":0,"type":"bip39_mnemonic","family":"evm","path":"m/44'/60'/0'/0/2","address":"0xb6716976A3ebe8D39aCEB04372f22Ff8e6802D7A","status":"used_empty","balances":{"base":{"native":"0","usdc":"0","tx_count":463,"funded":false},"ethereum":{"native":"0","usdc":"0","tx_count":118,"funded":false},"polygon":{"native":"0","usdc":"0","tx_count":1331,"funded":false},"arbitrum":{"native":"0","usdc":"0","tx_count":359,"funded":false}}},{"finding":0,"type":"bip39_mnemonic","family":"solana","path":"m/44'/501'/0'/0'","address":"HAgk14JpMQLgt6rVgv7cBQFJWFto5Dqxi472uT3DKpqk","status":"funds_at_risk","balances":{"solana":{"native":"2.284709463","usdc":"0","tx_count":null,"funded":true}}},{"finding":0,"type":"bip39_mnemonic","family":"solana","path":"m/44'/501'/0'","address":"GjJyeC1r2RgkuoCWMyPYkCWSGSGLcz266EaAkLA27AhL","status":"funds_at_risk","balances":{"solana":{"native":"0.003412816","usdc":"0","tx_count":null,"funded":true}}}],"not_checked":[],"sources_failed":[],"chains_checked":["base","ethereum","polygon","arbitrum","solana"]},"actions":["URGENT: a leaked key controls a wallet that holds funds right now. Move the funds to a new wallet before anything else.","Treat the wallet as compromised: create a new seed offline and move all funds now. Never paste a seed phrase into a chat, prompt or tool.","Deactivate and rotate the access key in AWS IAM; check CloudTrail for use.","Personal data: send only if the recipient needs it (data minimization).","Send the redacted output instead of the original."],"sources_failed":[],"input":{"kind":"text","bytes":185,"strings_scanned":1},"engine":"leakguard-0.1.0 (leakguard-engine/0.1.0)","checked_at":"2026-10-22T19:07:15.558Z","tier":"scan"};

agentgate-source: code mirror on Cloudflare Pages. All repos