1. The Pyramid of Pain in Threat Intelligence
In defensive operations, not all Indicators of Compromise (IoCs) provide equal value. David Bianco's Pyramid of Pain ranks threat indicators by the amount of difficulty and cost inflicted on an adversary when detected and denied:
/ / TTPs (Tactics, Techniques, & Procedures)
/ Tough (e.g. Pass-the-Hash, Process Injection)
/-------- / Tools (e.g. Mimikatz, Cobalt Strike, Metasploit)
/ Annoying /-------------- / Network Artifacts (e.g. URI patterns, C2 protocols)
/ Simple /-------------------- / Domain Names (e.g. malicious-c2-node.com)
/ Simple /-------------------------- / IP Addresses (e.g. 198.51.100.24)
/ Easy /-------------------------------- / Hash Values (e.g. SHA-256 / MD5 checksums)
/ Trivial +--------------------------------------+- Hash Values (Trivial): Changing a single byte in a compiled payload generates a completely new SHA-256 hash. Blocking hashes costs attackers seconds.
- IP Addresses & Domains (Easy to Simple): Attackers acquire dynamic Cloud VPS instances and domain names automatically using Domain Generation Algorithms (DGA).
- TTPs (Tough): When security engineers detect and block an adversary's fundamental tradecraft (e.g., memory injection mechanisms or kerberoasting), the adversary must redesign their entire exploitation capability from scratch!
2. Standardizing Intelligence: STIX 2.1 & TAXII
To share threat intelligence across international organizations without manual parsing, the OASIS consortium established standardized specifications:
- STIX (Structured Threat Information Expression): A graph-based JSON data model that defines cyber threat objects (SDOs) and their relationships:
indicator: Observable artifact (e.g., regex pattern, file hash).malware: Specific malicious software program.threat-actor: The adversary group responsible (e.g., APT29).relationship: Connects objects (e.g., "threat-actor uses malware").
Canonical STIX 2.1 JSON Object:
{
"type": "bundle",
"id": "bundle--1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"objects": [
{
"type": "indicator",
"spec_version": "2.1",
"id": "indicator--8e2e2d2b-17d4-4cbf-938f-98ee46b3cd3f",
"created": "2026-10-16T12:00:00.000Z",
"modified": "2026-10-16T12:00:00.000Z",
"name": "C2 Reverse Shell Indicator",
"pattern": "[network-traffic:dst_port = 4444 AND network-traffic:protocols[*] = 'tcp']",
"pattern_type": "stix",
"valid_from": "2026-10-16T12:00:00Z"
}
]
}- TAXII (Trusted Automated eXchange of Intelligence Information): An application protocol that exchanges STIX intelligence over HTTPS. It defines Collections (shared repositories) and Channels (publish-subscribe feeds).
3. Deploying Wazuh HIDS & OpenSearch for Threat Hunting
Wazuh is an enterprise open-source security monitoring platform providing host-based detection:
Endpoints (Linux / Windows / K8s) Wazuh Central Manager
+------------------------------+ +------------------------------+
| Wazuh Agent | | Wazuh Analysis Engine |
| - File Integrity Monitoring | Logs | - Rule Evaluation (Decoders) |
| (FIM: Detects modified |------>| - Anomaly Detection |
| /etc/passwd, kernel dlls) | (TLS) | - Vulnerability Database Map |
| - Syscheck & Auditd Logs | +--------------+---------------+
| - Rootkit Detection (syscheck) | |
+------------------------------+ | Stores & v
| Indexes [ OpenSearch / SIEM ]
+--------> (Alerts, Dashboards,
Threat Hunting)Practical File Integrity Monitoring (FIM) Rule:
When an unauthorized user modifies a system binary (/bin/bash or /etc/shadow), the Wazuh agent computes real-time cryptographic hashes and dispatches a Level 12 critical alert to the SIEM within 200 milliseconds.