Turn a list of IOCs into STIX 2.1, MISP JSON, CSV, Suricata rules or a YARA skeleton.
URL Defanger & IOC Extractor
Use URL Defanger & IOC Extractor
What it does
Defang URLs, IP addresses and email addresses so they can be shared without accidental clicks, refang them, or extract the http(s) and ftp links, IPv4 addresses and emails from a block of text in the IOC Extractor tab.
It runs entirely in your browser: nothing you enter is uploaded.
How to use URL Defanger & IOC Extractor
- Choose the tab. Use Defang & Refang for single items you already have. Use IOC Extractor to pull items out of a longer text such as an e-mail, a chat or a log.
- Paste the input. In Defang & Refang, paste URLs, IP addresses or e-mail addresses, one per line. In IOC Extractor, paste the whole text.
- Defang or refang. Press Defang to make the text unclickable, or Refang to turn a defanged item back into a normal one. Copy takes the output.
- Extract and review. In IOC Extractor press Extract & Defang IOCs. URLs, IP addresses and e-mails appear in three groups, each item defanged and ticked; untick false matches.
- Copy or pass on. Copy Selected IOCs copies the ticked items, one per line. Send to… passes the Defang & Refang output to IOC Converter, Blocklist Converter or Abuse Report Generator.
Example
Three IOCs, one per line
https://login.example.com/verify?id=42
203.0.113.7
support@example.nethxxps://login[.]example[.]com/verify?id=42
203[.]0[.]113[.]7
support[at]example[.]netDefang returns hxxps://login[.]example[.]com/verify?id=42, 203[.]0[.]113[.]7 and support[at]example[.]net on separate lines; Refang turns them back.
What it checks
| Signal | What it means |
|---|---|
| hxxp://, hxxps://, fxp:// | The scheme is replaced so that chat apps and mail clients do not turn the text into a live link. |
| [.] for every dot | Dots in the host, the path and file names all change, so login.php becomes login[.]php. Refang restores them. |
| [at] for every @ | Applies to e-mail addresses and to any @ inside a URL. Refang accepts [at] and (at). |
| Other defang styles | Refang also accepts [@], (at), (.), {.}, [dot], (dot) and [:], so text defanged by other tools converts back in one step. |
| Defanging twice | Parts that are already defanged stay as they are, so defanging twice changes nothing. |
| Extracted URLs (n) | Text starting with http://, https:// or ftp://, up to a space, bracket or quote. A full stop or comma at the end of a sentence stays attached, so check the end of each URL. |
| Extracted IP Addresses (n) | Any four groups of 1 to 3 digits. Version numbers and values above 255 also match, and an IP inside a URL is listed again here. |
| Extracted Emails (n) | Addresses ending in a dot and at least two letters. Each group lists every item only once. |
| No IOCs (URLs, IPs, or Emails) found in the text. | Nothing matched. Bare domains such as example.org and links that are already defanged are not extracted. |
More examples
Login page on a bare IP
http://198.51.100.23/admin/login.phphxxp://198[.]51[.]100[.]23/admin/login[.]php
Refang two styles
hxxps://wallet-verify[.]example/claim support(at)example(.)orghttps://wallet-verify.example/claim support@example.org
Extract from a parcel SMS
Your parcel is on hold. Pay the fee at https://parcel-fee.example/pay?ref=88. Questions: help@parcel-fee.example. Server 203.0.113.45, see example.org/track, build 10.2.3.4.URLs (1): hxxps://parcel-fee[.]example/pay?ref=88[.] with the full stop attached. IP Addresses (2): 203[.]0[.]113[.]45 and 10[.]2[.]3[.]4. Emails (1): help[at]parcel-fee[.]example. example.org/track is not found.
FAQ
What exactly does Defang change?
http://, https:// and ftp:// become hxxp://, hxxps:// and fxp://, every dot becomes [.] and every @ becomes [at], including dots in paths and file names; parts that are already defanged stay as they are, so defanging twice changes nothing. Refang reverses this and also accepts [@], (at), (.), {.}, [dot], (dot) and [:].
What does the IOC Extractor find, and what does it miss?
Links that start with http://, https:// or ftp://, IPv4-looking numbers and email addresses. Bare domains without a scheme and already defanged links are not extracted, the IP pattern also matches version strings like 1.2.3.4, and trailing punctuation can stick to a URL, so review the list before copying.
Is my text sent anywhere?
No. Defanging, refanging and extraction are text replacements in your browser; nothing is uploaded and no link is opened.
Does a defanged link become safe to open?
No. Defanging only changes how the text looks. Once refanged, the link leads to the same page, so open it only in an isolated browser or a scanner.
When should I refang before sending?
Defang text that people will read, in chats, tickets or posts. Refang it when you paste into a form, a scanner or a blocklist that expects normal URLs.
Does it handle IPv6 addresses?
Only partly. The extractor looks for IPv4 addresses only. Defang changes an IPv6 address only inside a URL, where the scheme becomes hxxp or hxxps; the colons stay as they are.
Why do other PhishDestroy tools defang differently?
Tools such as Archive Link Builder replace only dots between letters or digits and write @ as [@]. This tool replaces every dot and writes [at]. Refang accepts both forms, so links from either tool convert back.