canonical: https://jentic.com/apis/abusech/abusech

# abuse.ch URLhaus API

Jentic publishes the only available OpenAPI specification for abuse.ch URLhaus API, keeping it validated and agent-ready. URLhaus is abuse.ch's project for sharing malicious URLs used for malware distribution. The API exposes two operations: a POST endpoint for submitting newly observed malware URLs with tags and threat metadata, and a recent-CSV export endpoint for downloading the database. Authentication is via an Auth-Key tied to a free abuse.ch account, and the dataset is widely used as a threat-intel feed by SOCs, mail filters, and DNS sinkholing services.

## For AI agents

Submit newly observed malware URLs and download URLhaus's recent malicious-URL database via two abuse.ch endpoints authenticated by an Auth-Key.

## Scope

Does not handle malware sample retrieval, payload analysis, or sandbox detonation - use for malicious-URL submission and feed download only.

## Capabilities

- Submit a malware-distribution URL to URLhaus with threat tags and reporter metadata
- Download the recent URLhaus CSV dump for offline IOC matching
- Feed URLhaus URLs into a SIEM or DNS sinkhole for blocking
- Tag submissions with malware family (emotet, qakbot, dridex) for categorisation
- Build a daily threat-feed pipeline by polling the recent-CSV export

## Use cases

### Automated malware-URL submission

When a SOC team identifies a fresh malware-distribution URL during incident response, an automation submits it to URLhaus via POST /api/ with tags and a threat label. This contributes to the community feed and gets the URL into downstream blocklists faster than a manual web-form submission.

Example prompt: POST /api/ with url=<malicious-url>, threat=malware_download, tags=emotet to share the new IOC with URLhaus

### Daily IOC import for SIEM

A scheduled job pulls the recent-CSV export at `/api/v2/files/exports/{authKey}/recent.csv` and imports the rows into a SIEM as URL IOCs. Because URLhaus refreshes the recent feed continuously, hourly polling gives near-real-time coverage of newly seen malware URLs.

Example prompt: GET `/api/v2/files/exports/{authKey}/recent.csv` every hour, diff against the last import, and push new URLs to the SIEM as URL IOCs

### DNS-level blocking

Pull the URLhaus recent CSV, extract hostnames, and load them into an internal DNS sinkhole or PiHole-style filter. Provides community-driven coverage of malware command-and-control domains alongside vendor feeds.

Example prompt: GET `/api/v2/files/exports/{authKey}/recent.csv`, extract host column, and append to the DNS sinkhole zone file

### AI agent IOC submission via Jentic

An agent that has just confirmed a URL hosts a malware payload uses Jentic to submit the URL to URLhaus, with tags drawn from its triage notes. The Auth-Key is held by Jentic, so the agent never sees the raw credential.

Example prompt: POST /api/ with url, threat=malware_download, and tags from the agent's triage findings

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/api/` | Submit a malware-distribution URL with tags and threat metadata |
| GET | `/api/v2/files/exports/{authKey}/recent.csv` | Download the recent malware-URL database dump |

## Key resources

- **URL submissions** — Submit newly observed malware URLs via POST /api/ with tags and threat labels
- **Recent export** — Download the recent malicious-URL database as CSV via `/api/v2/files/exports/{authKey}/recent.csv`

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 66 / 100
- **Maturity:** AI-Aware
- **Dimensions:**
  - Foundational Compliance: 74 / 100
  - Developer Experience & Jentic Compatibility: 63 / 100
  - AI-Readiness & Agent Experience: 53 / 100
  - Agent Usability: 94 / 100
  - Security: 50 / 100
  - AI Discoverability: 100 / 100
- **View full report:** https://jentic.com/apis/abusech/abusech/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the abuse.ch URLhaus API by hand means posting form-encoded queries with the Auth-Key header for submissions and threading the same key into the export path for feed downloads. Through Jentic you install once, import the URLhaus API from the API Directory, store the Auth-Key once, and your agent calls it.
- **Permission scoping:** URLhaus routes submissions through one POST endpoint whose action travels in the request body, so limit the agent to the operations it needs, such as submitting a malicious URL or downloading the recent feed. You choose the operations it may call, so submission is not included unless you add it.
- **Credential handling:** Your abuse.ch Auth-Key is stored once, encrypted, by your own Jentic One instance and injected at execution time, as a header for the submission endpoint and as a path segment for the CSV export. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'submit malicious url' or 'download urlhaus feed', and Jentic returns the matching URLhaus operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **MalwareBazaar** — abuse.ch repository for malware sample lookup, retrieval, and submission
- **AbuseIPDB** — Community database of IPs reported for abuse and malicious activity
- **Shodan** — Search engine for internet-exposed services and infrastructure

## FAQ

### Why is there no official OpenAPI spec for abuse.ch URLhaus API?

abuse.ch documents URLhaus in HTML at urlhaus.abuse.ch/api/ but does not publish a structured OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call abuse.ch URLhaus API via structured tooling. It is validated against the live API and kept up to date. Get started with Jentic One, the self-hosted execution layer.

### What authentication does the abuse.ch URLhaus API use?

An Auth-Key tied to a free abuse.ch account. POST /api/ accepts the key as a header, and the recent-CSV export carries the Auth-Key as a path segment. Through Jentic the Auth-Key is held encrypted in the vault and injected at execution.

### Can I download the URLhaus database?

Yes. GET `/api/v2/files/exports/{authKey}/recent.csv` returns a CSV of recently submitted malware URLs. URLhaus also offers full-database exports via the website; for production blocklists, poll the recent feed hourly to stay current.

### What are the rate limits for the abuse.ch URLhaus API?

abuse.ch applies fair-use limits per Auth-Key, typically a few hundred submissions and a few thousand reads per day. Heavy users should batch submissions and cache recent-CSV pulls; refer to your abuse.ch dashboard for current quotas.

### How do I submit a malicious URL through Jentic?

Search Jentic for 'submit malicious url to urlhaus', load POST /api/ on urlhaus.abuse.ch, then execute with url, threat, and tags. Install with pip install jentic and use await client.search, load, execute.

### Is the URLhaus API free?

Yes. Free abuse.ch accounts can submit URLs and download the recent feed for non-commercial use. Heavy automated consumers should attribute abuse.ch and respect the fair-use policy.

### Can I limit what my agent is allowed to do with the abuse.ch URLhaus API?

Yes. Because you run Jentic One yourself, your own rules decide which URLhaus operations the agent may call and which credentials it may use. URLhaus exposes two operations, submitting a malicious URL via POST /api/ and downloading the recent-CSV feed via GET `/api/v2/files/exports/{authKey}/recent.csv`, and you choose which of these the agent is allowed to reach. If you only grant the recent-CSV download, the agent can pull the feed but cannot submit URLs on your behalf.
