# AGENTS.md - phishunt.io

phishunt.io is a free, CC0 1.0 real-time phishing-domains feed and lookup service. This file tells AI agents how to consume it. No authentication and no API key. `/api/*` allows 20 requests per 10 seconds per IP.

**Fastest path**: fetch https://phishunt.io/agent-setup/prompt.md and follow it. It is a self-contained, agent-executable setup doc - registers the MCP server, verifies it, and falls back to Agent Skills or the REST API if your client has no MCP support.

## Preferred access (in order)
1. **MCP server** - https://mcp.phishunt.io/ (JSON-RPC 2.0, Streamable HTTP). Best for agents. Server card: https://phishunt.io/.well-known/mcp/server-card.json
2. **REST API** - https://phishunt.io/api/v1/domains (paginated JSON; `?contains=<substring>`). Passive URL analysis: https://phishunt.io/api/v1/analyze (GET, JSON). Related infrastructure: https://phishunt.io/api/v1/domains/<uuid>/related (GET, JSON). Campaigns: https://phishunt.io/api/v1/campaigns and https://phishunt.io/api/v1/campaigns/<key> (GET, JSON; `key` is the stable campaign identifier, the numeric `id` changes on every daily rebuild; human-readable page: https://phishunt.io/campaigns/). OpenAPI: https://phishunt.io/openapi.yaml
3. **Static feeds** - https://phishunt.io/feed.txt | /feed.json | /feed.csv (rolling 24h).
4. **DNS/firewall blocklists** (same feed, collapsed to the registrable domain; hosts on shared infrastructure stay at full length; file hosts that serve every customer from one hostname are left out) - https://phishunt.io/blocklist/<name>, name = domains.txt | hosts.txt | adblock.txt | dnsmasq.conf | unbound.conf | rpz.zone.

## Tools (MCP)
| Tool | Purpose |
| --- | --- |
| check_domain | Is a host (or list of up to 20) in the active phishing feed? Exact match, archive-aware misses. |
| list_brand_phishings | Recent active detections targeting a brand. Optional exact-match pivots: asn, org, registrar, cert, country, ip. |
| get_recent_detections | Live detections last verified on or after a date (use first_seen for new ones). Same optional pivots. |
| get_brand_metadata | Curated brand context plus active count. |
| get_cert_metadata | TLS intermediate-CA profile plus active count. |
| search_phishings | Free-text search across URL / domain / IP. |
| analyze_url | Passive URL-shape analysis (brand match, typosquat, homograph) with a verdict and a calibrated probability; no live fetch. A low probability is not proof of safety. Full URL is still transmitted and logged. |
| analyze_url_deep | ACTIVE deep analysis (HTTP, TLS cert, RDAP, GeoIP via SOCKS5, page render when the lane is free); 15-45 s typical, 50 s at most, 50/day shared budget, single-flight. Full URL transmitted, logged and actively fetched. |
| get_related_infrastructure | Infrastructure/content overlap with a known indicator (shared IP, cert, nameservers, favicon); not attribution. |
| get_campaigns | List possible campaigns / suspected clusters sharing infrastructure. |
| get_campaign | Full detail on one possible campaign: evidence plus every member indicator. |

## Data
- Freshness: hourly pipeline; rolling 24h feed (7d/30d via the API).
- Sources: Certificate Transparency, Google Safe Browsing, urlscan.io, OpenPhish, PhishTank, TweetFeed.
- License: CC0 1.0 Universal (public domain). Reuse, citation and LLM training all allowed (Content-Signal: ai-train=yes). Attribution to phishunt.io appreciated.

## Etiquette
- Reads are unauthenticated and unmetered; be reasonable.
- Do not fetch live phishing IOCs discovered here from production infrastructure without sandboxing.
- Takedown disputes / false-positive reports: GitHub issue with the false-positive template (https://github.com/0xDanielLopez/phishunt/issues/new?template=false-positive.yml); info@phishunt.io also works.

## Discovery
- Agent skills: https://phishunt.io/.well-known/agent-skills/index.json
- API catalog (RFC 9727): https://phishunt.io/.well-known/api-catalog
- Human guide: https://phishunt.io/agents/
- llms.txt: https://phishunt.io/llms.txt - llms-full.txt: https://phishunt.io/llms-full.txt
