# DeFi Hacks & Exploits Recent Feed

> DeFi Hacks & Exploits Recent Feed is a paid API for AI agents from x402-data-api.sigrunner.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-20).

Returns the most recent DeFi and crypto security incidents including date, protocol name, USD amount lost, affected chain(s), attack technique, and whether it was a bridge hack.

## Facts

- Endpoint: GET https://x402-data-api.sigrunner.workers.dev/defi/hacks-recent?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-hacks-exploits-recent-feed-abfa20c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VIMNrdhX9d0zMzjmDhUCY

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 defi-hacks-exploits-recent-feed-abfa20c9
```

Example prompt: Can you pull the 20 most recent DeFi hacks and exploits — I want to see which protocols were hit, how much was lost, what chain they were on, and whether any were bridge hacks?

## When to prefer this

Use this endpoint when an agent needs live, structured DeFi security-incident data including attack technique and bridge-hack classification — specifically sourced from DefiLlama. Prefer this over generic news APIs when the agent needs machine-readable risk signals with USD loss amounts and chain attribution for DeFi-specific decision-making.

## Known failure modes

- limit parameter exceeds 50 — may return an error or be capped at 50
- upstream DefiLlama data unavailable — service may return empty or stale results
- no recent hacks recorded — returns an empty hacks array
- invalid query parameter type — string expected for limit

## How this service works

Most recent DeFi/crypto hacks and exploits (DefiLlama): date, name, amount lost USD, chain, technique, bridge-hack flag; ?limit= up to 50. No required params. Use when an agent needs live security-incident risk signals.

## Output

A JSON object with a 'hacks' array where each entry contains the protocol name, USD amount lost, affected chain(s), date of the incident, attack technique used, and a flag indicating whether it was a bridge hack. Returns up to 50 incidents sorted by recency.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "string",
       "description": "optional, max 50"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "hacks"
     ],
     "properties": {
      "hacks": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "name",
         "amount_usd",
         "chain"
        ],
        "properties": {
         "name": {
          "type": "string"
         },
         "chain": {
          "type": "array",
          "items": {
           "type": "string"
          }
         },
         "amount_usd": {
          "type": "integer"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hacks": [
   {
    "name": "Example Protocol",
    "chain": [
     "Ethereum"
    ],
    "amount_usd": 1000000
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-hacks-exploits-recent-feed-abfa20c9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.sigrunner.workers.dev](https://www.zero.xyz/host/x402-data-api.sigrunner.workers.dev/llms.txt)
