{"uid":"cap_o5hFTtfQvOjN5e5yw8VaI","slug":"saylor-innovations-defi-hacks-exploits-database-c52c9028","name":"Saylor Innovations DeFi Hacks & Exploits Database","description":"Crypto hacks and exploits - DefiLlama database of 1,300 incidents with amount lost, chain, technique, classification and totals by year, filterable by chain","url":"https://saylorinnovations.com/api/defi/hacks?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"year":{"type":"string","description":"optional four-digit year"},"chain":{"type":"string","description":"optional chain, e.g. ethereum, solana, bsc, arbitrum"},"limit":{"type":"string","description":"optional 1-50, default 10"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["hacks","incidents"],"properties":{"hacks":{"type":"number"},"source":{"type":["string","null"],"description":"Data source the values come from"},"by_year":{"type":"array","items":{"type":"object"},"description":"By year"},"filters":{"description":"Filters applied to this query"},"incidents":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","description":"Date (YYYY-MM-DD)"},"name":{"type":"string","description":"Name"},"bridge":{},"chains":{"type":"array","items":{"type":"string"},"description":"Chains covered"},"source":{"description":"Data source the values come from"},"target":{"description":"Target value or target date"},"lost_usd":{"type":["number","null"],"description":"Lost, in US dollars"},"technique":{"type":["string","null"]},"returned_usd":{"description":"Returned, in US dollars"},"classification":{"type":["string","null"],"description":"Classification assigned by the source"}}}},"sorted_by":{"type":["string","null"],"description":"Sorted by"},"checked_at":{"type":["string","null"],"description":"Time the check was run (UTC)"},"bridge_hacks":{"type":"number","description":"Bridge hacks"},"returned_usd":{"type":["number","null"],"description":"Returned, in US dollars"},"total_lost_usd":{"type":"number","description":"Total lost usd"},"by_classification":{"type":"array","items":{"type":"object"},"description":"By classification"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RWxMEqvnn8yLvr9mlB1JW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a filterable database of ~1,300 DeFi hacks and exploits with amount lost, chain, technique, classification, and year-over-year totals sourced from DefiLlama","exampleAgentPrompt":"Pull me the 20 most recent DeFi hacks on Ethereum from the DefiLlama database, including how much was lost and what technique was used.","exampleUseCases":[{"title":"Annual DeFi exploit loss summary","prompt":"Give me a breakdown of all DeFi hacks that happened in 2023, including total USD lost and how that compares year by year."},{"title":"Chain-specific security audit research","prompt":"Show me the top 10 DeFi exploits on Solana — I want to see the date, technique, classification, and how much was lost in each incident."},{"title":"Bridge hack exposure analysis","prompt":"How many bridge hacks have there been across all chains, and how much total USD was lost versus returned? Pull from the DeFi hacks database."}],"resultDescription":"Returns a JSON object containing a list of hack incidents (each with date, protocol name, chains affected, USD lost, USD returned, technique, and classification), aggregate totals (total USD lost, total USD returned, bridge hack count), year-by-year breakdown, applied filters, data source attribution, and the timestamp of the data check.","failureModes":["Invalid year format (non-four-digit string) may return no results or an error","Unknown chain name may return empty incident list","Limit outside 1-50 range may be clamped or rejected","Service may return stale data if DefiLlama upstream is unavailable","Payment failure (x402) results in 402 response before data is returned"],"whenToPreferThis":"Choose this endpoint when you need structured, filterable data on historical DeFi security incidents including loss amounts, attack techniques, and chain breakdowns. It is backed by DefiLlama's curated dataset of ~1,300 incidents, making it more comprehensive than ad-hoc web searches. Prefer it over general web search when you need machine-readable, aggregated hack data with year and chain filters for analysis or reporting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:43:02.656Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-defi-hacks-exploits-database-c52c9028"}