Expert · Threat intelligence and frameworks · topic 36 of 43 · 35 min
Threat intelligence and indicators of compromise
Explanation
Why intelligence
You cannot defend against everything equally. Threat intelligence tells you who is likely to attack organisations like yours, how they usually do it, and what traces they leave. Raw data (a list of IP addresses) is not intelligence until someone checks it, adds context and links it to a decision.
Four levels
| Type | Audience | Example | Lifespan |
|---|---|---|---|
| Strategic | Board, senior management | "Ransomware gangs are targeting Indian healthcare this year" | Months to years |
| Operational | SOC and IR leads | "Group X is running a campaign using fake GST notices against finance teams" | Weeks |
| Tactical | Detection engineers, analysts | "They use Office macros to start PowerShell, then scheduled tasks for persistence" (TTPs) | Months |
| Technical | Tools and analysts | IP 198.51.100.77, domain gst-notice-update.example, SHA-256 of the dropper | Hours to days |
TTPs means tactics, techniques and procedures: how an attacker behaves. You will map TTPs with MITRE ATT&CK in the next lesson.
The intelligence lifecycle
- Direction: what do we need to know? (for example "which groups target banks in India?")
- Collection: gather from sources.
- Processing: clean, de-duplicate, translate, normalise.
- Analysis: judge reliability and relevance; turn data into conclusions.
- Dissemination: give the right output to the right people (a short brief for managers, a block list for the firewall).
- Feedback: was it useful? Adjust the next cycle.
Indicators of compromise (IOCs)
An indicator of compromise is an observable trace that suggests a system has been attacked: a known malicious IP address, domain, URL, file hash, email sender, file name or registry key. SOCs load IOCs into the SIEM, EDR and firewalls to search past logs and block future activity. An indicator of attack (IOA) describes suspicious behaviour as it happens, such as "Office spawning PowerShell", instead of a fixed value.
The Pyramid of Pain
David Bianco's Pyramid of Pain ranks indicators by how much it hurts the attacker when you detect them. From bottom (easy for them to change) to top (hard):
- Hash values: change one byte, new hash.
- IP addresses: easy to change.
- Domain names: cheap to register new ones.
- Network and host artifacts: patterns like a specific user-agent or registry key.
- Tools: they must find or build new tools.
- TTPs: they must change how they work. Detecting behaviour hurts most.
Sources
- National CERTs: CERT-In advisories and vulnerability notes for India; CISA in the US, including its Known Exploited Vulnerabilities (KEV) catalog.
- Vendor and researcher reports, which often include IOC lists and ATT&CK mappings.
- Sharing communities and ISACs (information sharing and analysis centres) for sectors like finance.
- Open platforms such as MISP (open-source threat sharing software).
- Your own incidents: the most relevant intelligence of all.
Intelligence is shared using standards such as STIX (a format for describing threat information) and TAXII (a protocol for exchanging it). The Traffic Light Protocol (TLP 2.0) marks how widely you may share: TLP:RED (named recipients only), TLP:AMBER and TLP:AMBER+STRICT (limited sharing), TLP:GREEN (community), TLP:CLEAR (public).
Defanging
When analysts write IOCs in reports, emails and tickets, they defang them so nobody clicks by accident and tools do not auto-link them: http becomes hxxp and dots become [.].
url = "http://gst-notice-update.example/login"
print(url.replace("http", "hxxp", 1).replace(".", "[.]"))Common mistakes
- Blocking IOC lists blindly: shared hosting and cloud IPs may also serve legitimate sites. Check before blocking widely.
- Never expiring old IOCs; IPs get reassigned to innocent users.
- Collecting feeds nobody reads. Start with direction: what do we need to know?
- Breaking TLP marking by forwarding a TLP:AMBER report to a public group.
Need help?
Stuck on a word or an idea? Search this course, or every course, and jump straight to the explanation or a worked question.
Try:
Watch the lesson
Threat intelligence and indicators of compromise · 1/7
Threat intelligence is analysed information about attackers that supports decisions.
Prefer a video by a teacher? Find free videos on “threat intelligence explained IOC pyramid of pain TLP” on YouTube ↗
In real life: A CERT-In advisory becomes a hunt
CERT-In publishes an advisory about a phishing campaign using fake income tax refund emails, with sender domains, URLs and attachment hashes. An analyst at a Kolkata bank loads the IOCs into the SIEM, searches the last 30 days of email and proxy logs, and finds two employees who received the email and one who clicked. The URL is blocked, the clicker's password is reset, and a short TLP:GREEN note is shared with the bank's sector group.
Practice (0/3 done)
Which indicator is easiest for an attacker to change?
Write defang(ioc) that replaces "http" at the start with "hxxp" (so https becomes hxxps) and every "." with "[.]". Write refang(text) that reverses both changes.
IOC matching. Write match_iocs(log_lines, iocs) that returns a sorted list of (line_number, ioc) tuples (line numbers start at 1) for every IOC that appears in a log line. Compare in lower case. iocs is a set of strings (IPs, domains, hashes).
Quick quiz
Read more (free)
Related help
Before this, learn
This topic builds on these. If something here feels new, open them first.
Related topics
- MITRE ATT&CK: tactics and techniquesThreat intelligence and frameworks · same module
- The Lockheed Martin Cyber Kill ChainThreat intelligence and frameworks · same module
- Using frameworks in detection and threat huntingThreat intelligence and frameworks · same module
- Passive reconnaissance (OSINT)Ethical Hacking and Penetration Testing (legal labs) · Methodology and reconnaissance
- Hashing: fingerprints for dataSystems and cryptography
- Threats, vulnerabilities and riskSecurity basics
Questions people ask about this
Open a question to see the answer and why. The first ones are this topic's own quiz, so try the quiz above before you peek.
Which type of intelligence is a board-level report on ransomware trends?
Answer: Strategic
Strategic intelligence supports long-term, high-level decisions.
What is at the top of the Pyramid of Pain?
Answer: TTPs
Detecting behaviour forces attackers to change how they work.
A report is marked TLP:AMBER. Can you post it on a public forum?
Answer: No, sharing is limited
AMBER means limited sharing on a need-to-know basis.
What does "hxxp://evil[.]example" show?
Answer: A defanged URL, written so nobody clicks it
Defanging makes IOCs safe to share in text.
What is STIX?
Answer: A standard format for describing threat intelligence
STIX describes threat information; TAXII transports it.
What is a "procedure" in ATT&CK?Related
Answer: How a specific group or malware actually carried out a technique
Procedures are the concrete, observed implementations.
Threat hunting differs from alert triage because it…Related
Answer: Proactively looks for attackers that rules have missed
Hunting is proactive and hypothesis-driven.
What is a weakness of hash-based detection?Related
Answer: Any small change to the file gives a new hash
Hashes match exact files only.
The best defence against OSINT is to…Related
Answer: Reduce what sensitive information is public and train staff
You cannot stop people reading public data; publish less of it.
Pass the quiz (60% or more) or mark this topic as done when you are ready.
Your progress is saved on this device only.
Next steps
- 3 more topics in “Threat intelligence and frameworks” before its exam: MITRE ATT&CK: tactics and techniques, The Lockheed Martin Cyber Kill Chain, Using frameworks in detection and threat hunting.
- Module 9 exam: Threat intelligence and frameworks · 12 questions · 20 min, without help. 4 topics of this module still to finish first.
- Then the next module, Careers and certifications. 43 topics left in the course before the final exam.