What IOC extraction and defanging do in SOC triage
An indicator of compromise (IOC) is an observable that suggests malicious activity: an IP address a host beaconed to, the domain behind a credential phishing page, the hash of a dropped file. During triage these values are scattered through email headers, proxy logs, EDR telemetry and vendor reports. IOC extraction pulls them out of that unstructured text and sorts them by type so that each one can be searched, enriched or blocked.
Defanging is the step that follows. It rewrites network indicators so that software no longer recognizes them as links while a person can still read them. Doing both by hand is slow and easy to get wrong. One missed character can leave a live phishing link in a ticket, and one dropped digit can send a hunt after the wrong address.
What this tool extracts
| Type | How it is matched |
|---|---|
| IPv4 | Four octets from 0 to 255, with optional filtering of private and reserved ranges |
| Domains | Hosts from URLs and emails, plus bare names checked against the IANA TLD list |
| URLs | HTTP, HTTPS, FTP and FTPS, including URLs nested inside redirect parameters |
| Emails | Senders, recipients, reply-to addresses and addresses inside URL parameters |
| Hashes | Hex strings of exactly 32 (MD5), 40 (SHA-1) or 64 (SHA-256) characters |
| CVEs | CVE-, a four-digit year, and a sequence number of four or more digits |
Standard defanging conventions
No single standard governs defanging, but a small set of substitutions is understood across the industry. Use the same ones consistently so that teammates and scripts can reverse them.
| Element | Live | Defanged |
|---|---|---|
| Scheme | https:// | hxxps:// |
| Dot | login.example.com | login[.]example[.]com |
| Scheme separator | :// | [:]// (optional) |
| At sign | user@example.com | user[@]example[.]com |
| IPv4 | 203.0.113.45 | 203[.]0[.]113[.]45 |
This tool brackets every dot in a URL, including those in the path and query. Redirect links often carry a second address in a parameter, and bracketing only the first hostname would leave that one live. Hashes and CVE IDs are never changed because nothing treats them as links.
Why analysts keep clickable links out of tickets
- Accidental clicks. Tickets are read by people outside the SOC, such as help desk staff, managers and the affected user. Any of them may follow a link that looks like part of the case.
- Automatic previews. Chat and collaboration platforms may fetch a URL to build a preview. The request comes from a server you do not control and can alert the attacker.
- One-time links. Phishing kits often tie a URL to one victim and disable it after the first visit. An unplanned request can destroy the evidence.
- Mail filtering. A report with live malicious URLs may be quarantined or rewritten before it reaches the person who needs it.
Step-by-step workflows
Triage a reported phishing email
- Open the message source, copy the full headers and body, and paste them into the input.
- Keep Exclude private and reserved IPs on to hide internal mail relays.
-
Check the Domains tab against the sender. A
Reply-Todomain that differs from theFromdomain deserves attention. - Review the URLs tab for destinations that were nested inside a link rewriter or redirector.
- Remove your own domains and the recipient's address, which will also be listed.
- Leave the mode on Defang, choose Copy All, and paste into the ticket.
For example, this line from a message body:
Confirm at https://login.example.org/verify?u=j.doe@example.com today. becomes this in the Full text tab:
Confirm at hxxps://login[.]example[.]org/verify?u=j[.]doe[@]example[.]com today. Turn a threat report into a hunt list
- Paste the report text. Indicators that are already defanged are recognized.
- Switch the mode to Refang so the values match what your logs contain.
- Remove references to vendors, news sites and other benign domains the author cited.
- Choose Export CSV for a lookup table or Export JSON for a script.
- Validate each value before you block it. Attackers use shared hosting and legitimate services.
Summarize noisy firewall logs
- Paste the exported rows with Deduplicate on to get the set of unique addresses.
- Turn it off to list every occurrence and judge volume from the count badge.
- Turn off the private filter when you are investigating lateral movement and internal hosts matter.
Common false positives and how to handle them
Pattern matching finds text that has the shape of an indicator. It cannot tell you that the value is malicious, or even that it is what it appears to be. Expect to review these cases:
- Private and reserved addresses.
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16and127.0.0.0/8are not useful outside your network and are filtered by default, along with link-local and carrier-grade NAT ranges. The filter applies to the IPv4 list. A URL that uses a private address is still listed under URLs. - Version numbers. A build such as
4.18.2.1is also a valid IPv4 address. The tool skips values that directly follow words like "version" or a browser name in a user agent, but a version in a bare table column looks identical to an address. - Filenames. Extensions such as
.zip,.shand.pyare also top-level domains. A file with several dots, such asreport.final.zip, can still be listed as a domain. - Message-IDs. A
Message-IDheader has the same form as an email address, so it may appear under Emails. - Look-alike hashes. A UUID without hyphens is 32 hex characters, the same as MD5, and a Git commit is 40, the same as SHA-1. Use the surrounding text to decide.
- Your own infrastructure. Mail gateways, recipients and security vendors appear in almost every email. Adding them to a blocklist can cause an outage, so review the list before you act on it.
The tool does not currently extract IPv6 addresses, file paths, registry keys or cryptocurrency wallets. Check for those separately if your case depends on them.
Does defanging make a malicious URL safe?
No. Defanging only prevents accidental clicks, automatic link previews and similar handling. The destination is still malicious, and anyone can restore the link. Open suspicious URLs only in an isolated analysis environment, and treat the defanged value as sensitive if it contains a victim identifier or token.