How I Write an IP Abuse Report: From RDAP Lookup to Abuse Desk
Start With the Network, Not the Logo
An abuse report has one primary recipient: the network that can map an address to a customer. A platform vendor can disable an account; a national CERT can sometimes coordinate; a hosting provider can identify who was using the address at a given time. Only the last one can usually answer the question that matters.
RDAP is the authoritative starting point. It is the JSON successor to WHOIS, and it returns the network registration, the organization and the abuse contacts. The query is a plain HTTPS GET; no API key is required. The generic entry point follows the address to the responsible regional registry:
curl -sL "https://rdap.org/ip/<address>" > rdap.json
-L matters. rdap.db.ripe.net is authoritative for the RIPE NCC service region, not for APNIC, ARIN or LACNIC. The generic endpoint redirects to the correct registry; without -L, a non-RIPE address can return a redirect body instead of a registration.
The fields I read first:
handle network handle
startAddress first address in the block
endAddress last address in the block
name network name
country registration country
entities[] contacts, each with a roles array
roles "abuse", "administrative", "technical"
vcardArray contact details, including email
The abuse entity is not always the hosting provider’s main support address. It can be a dedicated abuse desk, a reseller, or an upstream transit provider. The autnum lookup gives the ASN holder and its own abuse contact:
curl -sL "https://rdap.org/autnum/<asn>" > asn.json
Not every /ip/ response includes the originating ASN. If it is absent, a route lookup is needed before autnum: RIPEstat, Team Cymru or a BGP looking glass can map the prefix to its origin. Treating the network name as the ASN is a shortcut that produces the wrong contact.
A four-line extraction for the abuse email:
jq -r '.entities[]?
| select(.roles[]? == "abuse")
| .vcardArray[1][]?
| select(.[0] == "email") | .[3]' rdap.json
Two checks prevent a wasted report:
- The registration country is not the customer’s country. A block registered in one country can be used by a customer in another. The address allocation record is still held by the provider.
- The ASN holder is not always the retail host. A reseller or VPN can announce the address under an upstream ASN. The report asks the recipient to identify the underlying customer rather than assume the ASN holder is the end user.
Build the Evidence Before the Email
The report needs a small, reproducible evidence set. The exact fields depend on the service, but the minimum is five:
| Field | Example shape |
|---|---|
| Network and ASN | address block plus origin ASN |
| Abuse contact | the abuse role from RDAP or the ASN record |
| UTC window | 2026-01-15T08:00:00Z to 2026-01-15T09:00:00Z |
| Request evidence | count, method, path, status, User-Agent |
| Effect | write operations, records changed, amount charged |
The example dates are placeholders, not a real case. The UTC window must be the event window, not the time the report is written.
Before any log from the infrastructure I manage leaves the network, I strip it:
- remove API keys, session tokens, passwords and cookies;
- replace account identifiers with a stable label;
- keep the exact timestamps and request paths that prove the event;
- include the alert or provider notice as a PDF;
- include a CSV of requests when the count is more than a handful;
- include an invoice only when money actually moved, and label it as a payment event.
The hosting provider does not need any key fragment to trace an IP assignment. Even a prefix and the last four characters stay out of the email, the attachment and the case note. The account owner already knows which key was affected.
The reply address should be a dedicated security or operations mailbox. A personal phone number belongs in the message only if the provider asks for it; many abuse systems forward the body to the reported customer, and the report should not hand over the reporter’s contact details by default.
The Email That Gets a Case Number
The subject carries the identifiers the abuse desk will search for:
Abuse report — <address> (<ASN>): unauthorized access on <date>
The body is a one-screen template:
1. Network: <prefix> / <ASN>, source <RDAP URL>.
2. Window: <start>Z to <end>Z (UTC).
3. Evidence: <N> requests, <methods>; first/last timestamp; attached CSV.
4. Effect: <writes / records / amount>.
5. Request: preserve connection logs for the window plus 24 hours on each
side, identify the customer assigned the address, and reply with a case
number. Suspend only if the acceptable-use policy was violated.
6. No credential value is included in this message or its attachments.
The request list matters more than the narrative. An abuse desk cannot act on “suspicious activity”; it can act on a timestamp, a path and a status. The same report should ask for logs covering the window plus 24 hours on each side, because the provider’s retention may be shorter than the investigation.
A restrained closing keeps the report inside its evidence boundary:
This report does not ask the provider to determine who is legally responsible.
It asks the provider to confirm which customer was assigned the address at the
times above and to preserve the connection records for that window.
That wording avoids two common failures: claiming an identity the evidence cannot prove, and asking a hosting provider to run an investigation it has no authority to run.
Escalate Only After the First Hop
The provider is the first hop, not the whole path. The other recipients have different powers:
- The service vendor can revoke a key, disable an account or reverse a charge. It cannot identify the person behind an IP.
- The national CERT can sometimes help coordinate across jurisdictions, depending on its mandate and the countries involved. It usually wants the same evidence pack, not a fresh narrative.
- Law enforcement is appropriate when there is a measurable loss, a credible threat or a legal requirement. The provider’s case number helps.
- A payment provider is a separate financial track when money moved. It needs the invoice, transaction date and amount; it is not the abuse recipient for the IP.
Sending the same report to every party at once creates four mail threads and no owner. In practice, I contact the hosting provider first and notify the service vendor in parallel; I escalate to a CERT or law enforcement only when those two cannot stop the abuse or resolve the loss. A payment dispute, if needed, runs on its own track with its own evidence.
One Clean Follow-Up
A provider reply can take days. The follow-up is one message after 72 hours, quoting the case number and adding only new facts. It should not re-send the full evidence pack or ask the same question in different words.
Whenever I send a report, I archive five items locally:
- the RDAP JSON and the date it was fetched;
- the exact attachment hashes;
- the recipient addresses and the message ID;
- the case number and the reply date;
- the rotation status of every credential in scope.
The local record is what makes the report reproducible. RDAP data changes when a block is reassigned; the saved JSON proves what the lookup returned on the day of the report.
The Minimum Pack
A complete report has five fields — network and ASN, abuse contact, UTC window, request evidence and effect — and three attachments at most: the provider alert, the redacted request CSV and the billing evidence when a charge exists. The first follow-up is at 72 hours, with the case number and new facts only.
The report is not a demand for attribution. It is a request for the one thing the network can verify: which customer held the address during the window. That is also the boundary that keeps the evidence credible.
Looking for high-impact engineering work or custom systems?
From front-end web apps down to edge proxies and container automation. Open to serious freelance client projects and senior engineering roles.