Quick answer
Indicators of compromise (IOCs) are pieces of evidence that a system may have been breached, such as a malicious IP address, domain, file hash or unusual account activity. Security teams match them against logs to find attackers. They are useful for known threats but easy for attackers to change, so they work best alongside detection of attacker behavior.
On this page
When a new attack campaign is reported, the first question every security team asks is "were we hit?". Indicators of compromise are how that question gets answered.
How It Works
IOCs are shared by vendors, governments and researchers after an attack is analyzed. Teams load them into their SIEM, EDR, firewall or threat intelligence platform, search historical logs for matches, and alert on future sightings.
| Type | Example | How long it stays useful |
|---|---|---|
| File hash | The SHA-256 of a malicious file | Short: one changed byte creates a new hash |
| IP address | A command and control server | Short: attackers rotate infrastructure |
| Domain or URL | A phishing or malware download domain | Short to medium |
| Email artifacts | Sender address, subject line, attachment name | Short |
| Host artifacts | Registry keys, scheduled tasks, services, file paths | Medium |
| Account activity | Logins from unusual countries, new mailbox rules | Medium |
| Tools and behavior | Use of specific attack tools or techniques | Long: hardest for attackers to change |
Why It Matters
IOCs give a fast, concrete answer after a public incident, and they are essential during incident response for scoping which systems were touched. Their weakness is that attackers change them easily, and targeted attacks often use infrastructure never seen before. Organizations that rely only on IOC feeds detect yesterday's attacks.
How to Test for It
- Check that IOC feeds actually reach your SIEM, EDR and firewalls, and that matches raise alerts.
- Confirm logs are retained long enough to search back when a new advisory is published.
- Run a retro-hunt exercise: take a recent public advisory and search your environment for its IOCs end to end, timing each step.
- Test behavior-based detection with realistic techniques, since attackers in a targeted intrusion will not reuse public IOCs.
How to Reduce the Risk
Automate IOC ingestion from reputable sources, keep searchable logs for at least 90 days, and build a routine for retro-hunting when major advisories land. Invest equally in behavior-based detection: the techniques attackers use are far harder for them to change than their infrastructure. Our threat intelligence and IOC feeds service supports both.
Regulatory and Framework Context
For US organizations, CISA publishes IOCs in its advisories and shares them through Automated Indicator Sharing (AIS), and sector ISACs share them among members. Fast scoping with IOCs also supports incident reporting obligations such as the SEC's four-business-day disclosure rule for material incidents.
Latest intel on this topic
- High volume phishing campaign uses Microsoft 365 outage lures to target multiple industry sectorsMicrosoft Security Blog · November 17, 2026
- Google says Russian-speaking hackers ran the first fully automated AI cyberattackCyberScoop · November 16, 2026
- Amazon Uncovers AI Agent Campaign Targeting LiteLLM, Dify, and Other Apps for API KeysThe Hacker News · November 16, 2026
- Threat actors use agentic AI tooling to find and abuse exposed secretsMicrosoft Security Blog · November 5, 2026
- Email threat landscape: Q3 2026 trends and insightsMicrosoft Security Blog · November 5, 2026
Updated hourly from the daily briefing.
Common questions
What is the difference between an IOC and an IOA?
An indicator of compromise (IOC) is evidence of something that has already happened, such as a known malicious file. An indicator of attack (IOA) describes attacker behavior, such as credential dumping or a burst of logins across many hosts, and can catch new attacks that use unknown files and infrastructure.
Where do IOCs come from?
Vendor and government advisories, threat intelligence feeds, incident reports and information sharing groups. In the US, CISA shares IOCs in its advisories and through Automated Indicator Sharing.
What is the Pyramid of Pain?
A model showing that some indicators cost attackers more to change than others. File hashes and IP addresses are trivial to change; tools and tactics, techniques and procedures are hard to change, so detecting those hurts attackers most.
What should we do if we find an IOC in our logs?
Treat it as a possible incident: preserve evidence, scope which systems and accounts are involved, contain them, and engage incident response support if needed. Do not simply block the indicator and move on.
Change log
- November 14, 2026First published.