# Saylor Innovations DeFi Hacks & Exploits Database

> Saylor Innovations DeFi Hacks & Exploits Database is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-16).

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

## Facts

- Endpoint: GET https://saylorinnovations.com/api/defi/hacks?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-defi-hacks-exploits-database-c52c9028
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o5hFTtfQvOjN5e5yw8VaI

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability saylor-innovations-defi-hacks-exploits-database-c52c9028
```

Example prompt: Pull me the 20 most recent DeFi hacks on Ethereum from the DefiLlama database, including how much was lost and what technique was used.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Crypto hacks and exploits - DefiLlama database of 1,300 incidents with amount lost, chain, technique, classification and totals by year, filterable by chain

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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",
      "POST",
      "PUT",
      "PATCH",
      "DELETE",
      "HEAD"
     ],
     "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"
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-defi-hacks-exploits-database-c52c9028/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
