Skip to content
Visual explainer 2h 30m to learn 4 steps

Threat intelligence & IOCs

Use indicators of compromise and threat reports to hunt and enrich alerts.

By Invicly Tech, , in Cyber Security Fundamentals. About 10 minutes to read.

Topic 32 of 49

In short

Threat intelligence turns data about adversaries into action. Indicators of compromise like IPs and hashes are easy to use but easy for attackers to change; behaviours and TTPs are harder to change, which the Pyramid of Pain captures.

Explained simply

Threat intelligence is useful knowledge about attackers: who they are, what they want, how they operate and what traces they leave. Raw data like a list of bad IP addresses is not yet intelligence. It becomes intelligence when someone adds context and it helps you make a decision.

An indicator of compromise (IOC) is a clue that shows a system may be attacked, such as a file hash, an IP address, a domain name or a strange file path. IOCs are quick to search for, but attackers can change them easily. A new server gives a new IP in minutes.

TTPs (tactics, techniques and procedures) describe how attackers behave, for example stealing passwords from memory or using scheduled tasks to stay on a machine. Behaviour is much harder for attackers to change, so detections built on behaviour keep working longer.

In a SOC, intel is used every day. When an alert fires, analysts enrich it: they look up the IP or hash to see if others have reported it. When a government agency publishes an advisory, analysts search their logs for its indicators and check their detections against its techniques.

Press Play on a diagram to walk through it one step at a time.

LayersPyramid of Pain
  1. 1
    TTPs

    Hardest for attacker to change.

  2. 2
    Tools

    Painful to swap.

  3. 3
    Network/host artefacts

    Some effort.

  4. 4
    Domains

    Annoying.

  5. 5
    IPs and hashes

    Trivial to change.

CompareIOCs versus TTPs
IOCs
  • Hashes, IPs, domains, URLs
  • Easy to search and block
  • Easy for attackers to change
  • Expire quickly
  • Great for retro hunts
TTPs
  • Behaviour like LSASS dumping
  • Need good logs and tuning
  • Hard for attackers to change
  • Stay useful for years
  • Great for durable detections

In depth

Four kinds of intelligence, four audiences

Strategic intelligence is for leaders: trends and risks, such as ransomware groups targeting hospitals this year. It informs budget and priorities. Operational intelligence describes specific campaigns: who is behind them, what they target and when. Tactical intelligence describes TTPs, which detection engineers and threat hunters use. Technical intelligence is the machine-readable layer: IOCs such as hashes, IPs, domains and URLs that go straight into blocklists and SIEM lookups.

Good intel work follows a lifecycle: direction (what questions do we need answered?), collection, processing, analysis, dissemination to the right people, and feedback. Without direction, teams drown in feeds full of indicators that do not match their environment.

When sharing intel, teams use the Traffic Light Protocol (TLP 2.0): TLP:RED (named recipients only), TLP:AMBER and TLP:AMBER+STRICT (your organisation, and its clients for AMBER), TLP:GREEN (your community) and TLP:CLEAR (public).

CycleThe intelligence lifecycle
  1. 1
    Direction

    Decide which questions matter

  2. 2
    Collection

    Feeds, reports, own telemetry

  3. 3
    Processing

    Normalise and remove duplicates

  4. 4
    Analysis

    Add context, judge relevance

  5. 5
    Dissemination

    Right format for each audience

  6. 6
    Feedback

    Was it useful? Adjust

  7. Back to step 1

The Pyramid of Pain in practice

David Bianco described the Pyramid of Pain in 2013. From the bottom: hash values, IP addresses, domain names, network and host artefacts, tools, and TTPs at the top. The higher you detect, the more it costs the attacker to avoid you.

A hash changes if one byte of the file changes, so a hash blocklist catches only that exact file. IPs change when the attacker rents a new server, and many are shared, for example CDN or cloud addresses, so blocking them can hurt legitimate traffic. Domains cost a little money and time to replace. Artefacts such as a specific user agent string, named pipe or registry path take some rework. Tools take real development effort to replace. TTPs require the attacker to learn new ways of working.

IOCs are still worth using: they are cheap, precise and great for quick retro hunts after an advisory. Just do not build your whole defence on them.

Enriching an IP or hash the right way

Enrichment answers: is this indicator known, how bad is it, and is it relevant to us? For an IP, check reputation (AbuseIPDB, VirusTotal), ownership and network (whois or RDAP), whether it is internet background noise (GreyNoise tells you if an IP scans the whole internet), and passive DNS (which domains pointed to it over time). For a hash, check VirusTotal for detections, first-seen date and behaviour reports, and MalwareBazaar for the malware family.

Always read results critically. An IP flagged once two years ago may now belong to someone else. A cloud or CDN IP may host thousands of unrelated sites. A hash with zero detections might be new malware, not a safe file.

Look up by hash, IP or domain rather than uploading files. Searching a hash reveals nothing, while uploading a sample makes it available to other users and can tip off an attacker who watches for their file.

FlowEnriching an alert IP
  1. 1
    Extract IOC

    IP from the alert

  2. 2
    Reputation

    AbuseIPDB, VirusTotal

  3. 3
    Context

    Owner, ASN, GreyNoise, passive DNS

  4. 4
    Internal check

    Which other hosts talked to it?

  5. 5
    Verdict

    Record evidence and confidence

Reading a public threat advisory

Agencies like CISA (with partners such as the FBI and NCSC) publish advisories about active threats, including the #StopRansomware series. Most follow a pattern: a summary, technical details of how the actors operate, a table of ATT&CK techniques, IOCs (often also as STIX files you can import), detection ideas, and recommended mitigations.

Read it with three questions. Does this actor target organisations like us? Which of its techniques could we detect today? Which mitigations do we already have? Then act: run a retro hunt for the IOCs over your log retention period, check the listed techniques against your coverage layer, and send leaders a short note on exposure.

IOCs in advisories are often months old by the time they are published, so a hit may point to past activity. Behaviour sections usually give the longer-lasting value.

  • STIX 2.1 is the JSON format for intel; TAXII 2.1 is the protocol to share it
  • MISP and OpenCTI are open-source platforms to store and share intel
  • abuse.ch runs free feeds: URLhaus, MalwareBazaar, ThreatFox

Learn it in 4 short steps

About 40m each. Track them with a timer in your plan.

  1. 1
    Compare IOCs and TTPs~40m
  2. 2
    Explain the Pyramid of Pain~40m
  3. 3
    Enrich an IP or hash with intel~40m
  4. 4
    Read a public threat advisory~40m

Key points

  • IOCs are observable facts like IPs, domains and hashes.
  • TTPs describe behaviour and are harder to change.
  • The Pyramid of Pain ranks indicators by attacker cost.
  • Enrich alerts with intel to speed triage.

Key terms

Tap a card to flip it. 0/4 known

Examples

Enrich an outbound connection alert

An alert says a laptop connected to 203.0.113.50 on port 443. Step 1: look up the IP on AbuseIPDB and VirusTotal: several recent reports of C2 activity. Step 2: whois shows a small hosting provider, not a CDN, so blocking is low risk. Step 3: passive DNS shows a domain registered last week pointing to it. Step 4: search your proxy and firewall logs for other hosts contacting that IP or domain in the last 30 days. Step 5: one more host appears. Verdict: likely true positive, escalate both hosts, block the IP and domain, and record the evidence with timestamps in the ticket.

Retro hunt hashes from an advisory

An advisory lists SHA-256 hashes for a loader. Step 1: put the hashes in a lookup file in your SIEM. Step 2: search process creation events (Sysmon event 1 includes hashes when configured) across your retention period. Step 3: any match is a host to investigate, even if the file was later deleted. Step 4: because hashes are fragile, also check the advisory's techniques, such as rundll32 loading a DLL from a user folder, and search for that behaviour. On a single Linux host, you can do a quick check for one hash with standard tools, shown below.

bash
# advisory_hashes.txt: one SHA-256 per line, lowercase
find /home /tmp -type f -size -50M -print0 \
  | xargs -0 sha256sum 2>/dev/null \
  | grep -F -f advisory_hashes.txt

Quick reference

  • Pyramid of Pain, bottom to top: hashes, IPs, domains, artefacts, tools, TTPs
  • IOC = observable clue; TTP = behaviour; detect TTPs for durable coverage
  • Search hashes, do not upload internal files to public sandboxes
  • GreyNoise tells you if an IP is internet-wide scanning noise
  • TLP 2.0 labels: RED, AMBER+STRICT, AMBER, GREEN, CLEAR
  • STIX 2.1 = intel data format; TAXII 2.1 = sharing protocol
  • After an advisory: retro hunt IOCs, check ATT&CK techniques, brief leaders
  • IOCs age fast; record first-seen and last-seen dates

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1Which indicator is lowest on the Pyramid of Pain (easiest for an attacker to change)?

Question 2

2An alert IP belongs to a large CDN and appears in one old abuse report. What is the best interpretation?

Question 3

3Why look up a hash instead of uploading the file to a public sandbox?

Question 4

4Which audience is strategic threat intelligence written for?

Question 5

5What does TLP:CLEAR mean on a shared report?

0/5 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Classify each as IOC or TTP and place it on the Pyramid of Pain: (a) 45.33.32.156 (b) a SHA-256 hash (c) evil-update[.]com (d) dumping LSASS with a renamed tool (e) a unique user agent string.

  2. Exercise 2medium

    Pick a recent CISA advisory. Write a five-line summary for your manager: who, what they target, top three techniques, whether you are exposed, and one action.

  3. Exercise 3hard

    Write a small script that reads IPs from a file and prints which ones appear in a local blocklist file, with a count of total matches. Then explain two reasons a match may be a false positive.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Where can I get free threat intelligence?
Good free sources include CISA advisories, abuse.ch feeds (URLhaus, MalwareBazaar, ThreatFox), AlienVault OTX, and vendor threat research blogs. Pick a few that match your environment rather than importing everything.
What is the difference between an IOC and an IOA?
An indicator of compromise is evidence that something bad already happened, such as a known malware hash. An indicator of attack describes behaviour in progress, such as a process reading LSASS memory, and is closer to a TTP.
Should I block every IP on a threat feed?
No. Feeds contain old and shared addresses, and blind blocking can break legitimate services. Use feeds to enrich and alert first, and block only high-confidence, recent indicators.

Go deeper

ShareXLinkedInWhatsApp