Skip to content

IOC Extractor

Paste a threat report, phishing email or log excerpt. Indicators are extracted, validated, deduplicated and defanged, ready to export or hunt.

100% Local Browser Execution • Zero Server Uploads • Air-Gap Safe

100% Local Tool Execution • Tool Inputs Never Leave Your Browser RegExp classifier

Indicators appear here, grouped by type.

0 of 0 indicators shown

Extractor regex patterns (JavaScript / PCRE, case-insensitive)

  • URLs 0 found
    \bhttps?:\/\/[^\s"'<>`)\]]+
  • Domains 0 found
    \b(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,24}\b
  • IPv4 0 found
    \b(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\b
  • IPv6 0 found
    (?<![:\w])(?:[0-9a-f]{1,4}:){7}[0-9a-f]{1,4}(?![:\w])|(?<![:\w])(?:[0-9a-f]{1,4}:){1,7}:(?:[0-9a-f]{1,4}(?::[0-9a-f]{1,4}){0,6})?(?![:\w])
  • SHA-256 0 found
    \b[a-f0-9]{64}\b
  • MD5 0 found
    \b[a-f0-9]{32}\b
  • Emails 0 found
    \b[a-z0-9._%+-]+@(?:[a-z0-9-]+\.)+[a-z]{2,24}\b
  • CVEs 0 found
    \bCVE-\d{4}-\d{4,7}\b

CtrlEnter to copy output

Wrong result, broken layout or an idea? Tell us about this tool.

IOC Extractor IOC Extraction and Defanging Pipeline & Security Architecture Banner

Paste a threat report, alert, email or raw log and this IOC extractor pulls out every indicator of compromise: IPv4 and IPv6 addresses, domains, URLs, SHA-256 and MD5 hashes, email addresses and CVE IDs. It handles defanged input such as hxxp://evil[.]com, deduplicates and validates matches, lets you defang or refang the results in one click, and exports CSV or JSON. Reports often contain unpublished intelligence, so extraction runs entirely in your browser.

Indicators of compromise in cybersecurity

Indicators of compromise (IOCs) are forensic artefacts that show a system may have been breached: an IP address that served malware, a domain used for command and control, the hash of a dropper, a phishing sender. In IOC cybersecurity work, analysts share IOCs in reports, STIX bundles and MISP events so other teams can search their logs and block the same infrastructure.

IOCs are reactive and short-lived: attackers change IPs and domains cheaply. Hashes are precise but break with a one-byte change. Treat a match as a lead to investigate, and age out network indicators after a few weeks unless they are re-observed.

How it works: IOC Extractor

IOC Extractor IOC Extraction and Defanging Pipeline & Security Architecture Diagram. Diagram of IOC extraction: raw threat text runs through parallel regex engines for IPv4, IPv6, domains, URLs, SHA-256, MD5, email and CVE, then deduplication and validation, a defang or refang toggle, and CSV or JSON export.
Diagram of IOC extraction: raw threat text runs through parallel regex engines for IPv4, IPv6, domains, URLs, SHA-256, MD5, email and CVE, then deduplication and validation, a defang or refang toggle, and CSV or JSON export.

Indicators of attack versus IOCs

Indicators of attack (IOAs) describe behaviour rather than artefacts: an Office process spawning PowerShell, credential dumping from LSASS, a burst of failed logins followed by a success. IOAs survive infrastructure changes because they target what the attacker must do, not what they used.

A mature IOC security programme uses both: IOCs for fast blocking and retro-hunting, IOAs for detection rules that catch the next campaign. The KQL & SPL Query Builder on this site turns extracted IOCs into hunting queries for Sentinel and Splunk.

How the extraction rules work

Each category uses a tuned regular expression, followed by validation that removes false positives. The IP address regex accepts only octets from 0 to 255, so version numbers like 10.2.300.4 are discarded. Domains must end in a plausible top-level domain, so file names like invoice.pdf and config.json are not reported as hosts. Hash patterns require word boundaries and exact lengths: 32 hex digits for MD5, 64 for SHA-256.

Before matching, the text is refanged internally: [.], (.), [dot], hxxp, [:] and [@] are normalised so defanged reports extract cleanly. Results are deduplicated case-insensitively for domains and hashes.

  • IPv4 regex used: \b(?:(?:25[0-5]|2[0-4]\d|1?\d?\d)\.){3}(?:25[0-5]|2[0-4]\d|1?\d?\d)\b.
  • CVE IDs follow CVE-YYYY-NNNN with four or more digits in the sequence number.
  • Private and reserved IPs are tagged so you can drop internal addresses before sharing.

Defang URLs before you share them

Defanging makes an indicator non-clickable and non-resolvable: https://evil.example/payload becomes hxxps://evil[.]example/payload. Defang every URL, domain and IP before pasting into tickets, chat or email; mail clients and chat apps auto-link and pre-fetch URLs, which can alert the attacker or infect a reader. Refang only inside tools that need the live value, such as a blocklist import.

Exports keep the category of every indicator. CSV output has type,value rows that import cleanly into spreadsheets, firewall object lists and EDR custom-indicator uploads. JSON output groups values by type, which suits scripts, SOAR playbooks and threat-intelligence platforms. Both exports respect the defang toggle, so you can produce a safe copy for a report and a live copy for a blocklist from the same extraction.

IOC types cheat sheet

Indicator types, an example of each, and where to hunt for them.
TypeExampleWhere to search
IPv4185.220.101.5Firewall, proxy, VPN and NetFlow logs
IPv62001:db8::bad:1Firewall and DNS logs
Domainupdate-check[.]exampleDNS, proxy and email logs
URLhxxps://cdn[.]example/a[.]ps1Proxy, EDR and email URL logs
SHA-256e3b0c442…b855 (64 hex)EDR file events, VirusTotal
MD5d41d8cd98f00b204e9800998ecf8427eLegacy AV and EDR
Emailbilling[@]invoice-portal[.]exampleMail gateway and message trace
CVECVE-2024-3400Vulnerability scanner results

Indicator types, an example of each, and where to hunt for them.

Command-line examples

Grep IPv4 addresses from a log

grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" access.log | sort -u

Hash a suspicious file

sha256sum sample.bin   # Windows: Get-FileHash sample.bin -Algorithm SHA256

Check a domain in passive DNS-style lookups

dig +short suspicious.example A && whois suspicious.example | grep -i creat

Frequently asked questions

IOC stands for indicator of compromise: a piece of forensic evidence, such as a malicious IP address, domain, URL or file hash, that suggests a system or network has been breached.

Related Engineering Guides