An IOC, or indicator of compromise, is a technical artifact or observable that suggests an attack is underway or a compromise may have already occurred. Common examples are a malicious file hash, an IP address or domain used for command and control, a suspicious URL, and an unexpected registry key or scheduled task.
Key takeaways
- An IOC is observable evidence of an attack, such as a file hash, malicious IP, domain, URL or registry key.
- IOCs are shared as threat intelligence in formats such as STIX, and loaded into SIEM and EDR tools for detection.
- IOCs age quickly because attackers change them cheaply, so combine them with behavior-based detection of TTPs.
When a security team investigates a breach, one of the first questions is simple: has this attacker been in our network too? The answer comes from indicators of compromise — the technical traces an attack leaves behind, packaged so other teams can search for the same traces in their own systems.
What is an IOC?
An IOC is a technical artifact or observable that suggests an attack is imminent, is currently underway, or that a compromise may have already occurred.
That is the definition in the NIST CSRC glossary, adapted from NIST SP 800-61 and SP 800-150. In plain terms, an IOC is evidence: a known malicious file hash, an IP address, a domain, a URL, a file path or a registry key that has been seen in an attack.
IOCs are the most concrete layer of threat intelligence. They answer one question — "have we seen this exact thing?" — and they can be searched for automatically across logs, endpoints and network traffic.
What are examples of IOCs?
Common IOCs include file hashes, malicious IP addresses and domains, suspicious URLs, file names and paths, registry keys, and email addresses used in phishing.
| IOC type | Example | What it shows |
|---|---|---|
| File hash | SHA-256 hash of a malware sample | This exact file was seen in an attack |
| IP address | Command-and-control server IP | Systems talking to attacker infrastructure |
| Domain | Malicious domain used by malware | DNS lookups to attacker infrastructure |
| URL | Phishing or payload download link | Users or systems reaching a malicious page |
| File path | Unexpected executable in a temp folder | Malware dropped on a host |
| Registry key | Run key added for persistence | Malware set to restart at login |
| Email address | Sender used in a phishing wave | Messages from a known attacker |
A single IOC rarely proves a compromise on its own. A hash match is strong evidence, while an IP address may be shared or reassigned, so teams check context: when it was seen, on which host, and what else happened around it. You can look up a suspicious domain yourself with our free DNS lookup.
What are the main types of IOCs?
IOCs are usually grouped into atomic, computed and behavioral indicators, which differ in how specific they are and how easily an attacker can change them.
- Atomic indicators: a single data point, such as an IP address, domain or email address. Easy to share and search for, but easy for an attacker to change.
- Computed indicators: derived from data, such as a file hash or a YARA rule. More specific than an atomic indicator, but still tied to one file or sample.
- Behavioral indicators: a combination of events, such as a process launching an unusual child process at an odd hour. Harder to evade, and closer to a TTP.
The pyramid of pain, a concept from threat intelligence, ranks indicators by how much pain changing them causes the attacker. Changing an IP is cheap; changing a technique or tool is expensive. That is why mature teams move up the pyramid over time.
How do IOCs work in practice?
IOCs are discovered during an investigation, assessed for reliability, shared with other defenders, loaded into detection tools, and retired when they age out.
Discovery happens during incident response, malware analysis or threat hunting. An analyst finds a suspicious hash, domain or registry key and records where and when it was seen.
Assessment is the step most teams skip. A good IOC carries context: the campaign it belongs to, the confidence level, the first and last seen dates, and the traffic-light handling marking that says how far it may be shared.
Deployment means loading the IOC into a SIEM, EDR, firewall or email gateway as a detection or block rule, and searching historical logs for earlier matches. That retrospective hunt is often how teams discover an intrusion started weeks earlier.
What is the difference between an IOC, an IOA and a TTP?
An IOC is a thing left behind, an IOA is an action the attacker is performing, and a TTP is the attacker's consistent way of working.
| IOC | IOA | TTP | |
|---|---|---|---|
| Question | Which traces are there? | What is happening now? | How does this attacker operate? |
| Example | Hash of a malware file | Attempted privilege escalation | Credential dumping, then lateral movement |
| Durability | Days to weeks | Months | Months to years |
| Shared as | STIX Indicator, MISP event | Detection rule, Sigma rule | MITRE ATT&CK technique ID |
MITRE ATT&CK catalogues TTPs as tactics, techniques and procedures, and is the standard language for describing attacker behavior. See the MITRE ATT&CK enterprise matrix for the technique list. IOCs and TTPs work together: an IOC tells you this campaign touched you, while the TTP tells you what the attacker will try next. For a related attack pattern, see our guide on how to prevent credential stuffing.
How are IOCs shared?
IOCs are shared as structured threat intelligence, most commonly in STIX format over TAXII, or through platforms such as MISP, so machines can consume them automatically.
NIST SP 800-150 lists IOCs among the cyber threat information organizations share, and describes the formats and handling rules for doing so responsibly. STIX 2.1, the current standard, expresses an Indicator object with a pattern, a pattern type and a valid-from date.
Sharing also needs trust rules. The Traffic Light Protocol (TLP) marks how far an IOC may be passed on, from RED (named recipients only) to CLEAR (may be shared freely). Commercial feeds, government advisories such as CISA alerts, sector ISACs and open communities all use these conventions.
How should a small team use IOCs?
Start with trusted feeds, load them into the tools you already have, hunt historical logs for matches, and review and expire old indicators regularly.
- Pick reliable sources: your vendor, CISA advisories, your sector ISAC, and one reputable open feed. Avoid random lists with no source or date.
- Load them where they can act: EDR and antivirus for hashes, DNS and firewall for domains and IPs, email gateway for sender addresses.
- Hunt backwards: search the last 90 days of logs for each new IOC, not just new traffic.
- Triage every hit: confirm the context before blocking, since a shared IP or a reused domain can cause false positives.
- Expire old IOCs: set a review date when you add them, and remove or revalidate them when it passes.
Small teams often get more value from a handful of high-confidence IOCs tied to a real incident than from a feed of millions of low-confidence indicators that nobody triages.
What are the limits of IOCs?
IOCs age quickly, can cause false positives, and cannot catch a novel attack that reuses no known artifact.
- They age fast: an attacker can change a hash, IP or domain cheaply, so an IOC from last year may be useless today.
- They can be wrong: IP addresses are reassigned and domains change hands, so blocking without context can break legitimate services.
- They are reactive: an IOC only exists after someone has already seen the attack, so it cannot detect a brand-new campaign.
- They lack context alone: a hash with no campaign, date or confidence is hard to act on safely.
The fix is to pair IOCs with behavior-based detection: MITRE ATT&CK techniques, detection rules for suspicious process behavior, and baselines of normal activity so anomalies stand out.
How do you find IOCs during an incident?
Start with the affected host: running processes, scheduled tasks, registry Run keys, recent files, browser history and network connections, then compare what you find against known-good baselines.
Common places to look are persistence mechanisms such as Run keys and scheduled tasks, unusual outbound connections to new IPs or domains, newly created accounts, and mail-forwarding rules added to a mailbox. Our small business cybersecurity checklist includes the logging and backups that make this kind of investigation possible.
Document every IOC you confirm, with its source, first-seen date and confidence, before you share it. A well-documented IOC helps the next team that receives it, and a bare hash with no context usually gets ignored.
The bottom line
An IOC is a fingerprint, not a full investigation. It tells you an attack left a trace, and it lets you search for that same trace everywhere else — quickly, automatically, and at scale.
Use IOCs for what they are good at: fast detection and scoping of known attacks. Then go further, and detect the behavior behind them. Check a suspicious hash or domain with the free hash generator and DNS tools to start your own triage.
Frequently asked questions
What does IOC stand for in cybersecurity?
IOC stands for indicator of compromise. It is a technical artifact or observable, such as a malicious file hash or IP address, that suggests a system has been attacked or compromised.
What is an example of an IOC?
A common example is the SHA-256 hash of a known malware file, or an IP address and domain that malware contacts for command and control. Other examples are a malicious URL, a suspicious file path, or a registry key created by an intruder.
What is the difference between an IOC and an IOA?
An IOC is a fixed artifact left by an attack, such as a hash or IP address. An IOA, or indicator of attack, is a behavior, such as attempted privilege escalation. IOCs say what was seen, IOAs say what the attacker is doing.
What is the difference between an IOC and a TTP?
An IOC is a point-in-time artifact that an attacker can change cheaply. A TTP, or tactic, technique and procedure, describes how the attacker operates, as catalogued in MITRE ATT&CK, and tends to last longer as a detection.
How long does an IOC stay useful?
Not long, in many cases. An attacker can change a file hash by recompiling malware, or move to a new IP address or domain, in minutes. That is why IOCs need expiry dates and regular review, and why behavior-based detection matters.
Where do SOC teams get IOCs from?
From their own incident investigations and malware analysis, from threat intelligence feeds, from vendors, from government advisories such as CISA, and from sharing communities using formats such as STIX and platforms such as MISP.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the NIST CSRC glossary definition, NIST SP 800-150 on threat information sharing, and MITRE ATT&CK.
How we write and fact-check →