Analyzing Indicators Of Compromise
Overview
Cybersecurity skill for analyzing indicators of compromise. Follows industry best practices and security standards.
When to Use
Trigger phrases:
- "analyzing indicators of compromise"
- "A phishing email or alert generates IOCs (URLs, IP addresses, file hashes) requi"
- "Automated feeds deliver bulk IOCs that need confidence scoring before ingestion"
- "An incident investigation requires contextual enrichment of observed network art"
Use this skill when:
- A phishing email or alert generates IOCs (URLs, IP addresses, file hashes) requiring rapid triage
- Automated feeds deliver bulk IOCs that need confidence scoring before ingestion into blocking controls
- An incident investigation requires contextual enrichment of observed network artifacts
Do not use this skill in isolation for high-stakes blocking decisions — always combine automated enrichment with analyst judgment, especially for shared infrastructure (CDNs, cloud providers).
When NOT to Use
- When you lack proper authorization for testing
- For production systems without change management
- When the task requires legal or compliance expertise beyond technical scope
Prerequisites
- VirusTotal API key (free or Enterprise) for multi-AV and sandbox lookup
- AbuseIPDB API key for IP reputation checks
- MISP instance or TIP for cross-referencing against known campaigns
- Python with
requests and vt-py libraries, or SOAR platform with pre-built connectors
Workflow
# Example: IOC detection
import re
IOC_PATTERNS = {
"ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
"domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
"hash_md5": r"\b[a-f0-9]{32}\b",
"hash_sha256": r"\b[a-f0-9]{64}\b",
}
def extract_iocs(text: str) -> dict:
return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
- Scope the Analysis — Define what indicators of compromise artifacts or data sources to examine and the investigation timeline.
- Preserve Evidence — Create forensic copies of relevant data. Maintain chain of custody documentation.
- Extract Key Indicators — Parse and extract relevant indicators of compromise data points from collected artifacts.
- Correlate Findings — Cross-reference extracted data with other sources (threat intel, logs, timelines).
- Build Timeline — Construct a chronological sequence of events related to indicators of compromise.
- Document Analysis — Write findings report with evidence, conclusions, and recommendations.
Tools
- Forensic Toolkit — Evidence collection and analysis
- Timeline Tools — Chronological event reconstruction
- Log Analysis Platform — Centralized log parsing and search
Process
- Scope — Define research questions, identify data sources, set time boundaries
- Gather — Collect data from primary sources, APIs, and public records
- Synthesize — Analyze findings, identify patterns, produce actionable report
Verification
Anti-Rationalization Table
| Rationalization |
Reality |
| "We are too small to be targeted" |
Automated attacks target everyone. Size does not matter. |
| "Security slows us down" |
A breach slows you down 100x more. Build security in from the start. |
| "We will fix it after launch" |
Vulnerabilities in production are exploited within hours. Fix before deploy. |
1---2name: analyzing-indicators-of-compromise3description: 'Use when analyzes indicators of compromise (IOCs) including IP addresses,4 domains, file hashes, URLs, and email artifacts to determine maliciousness confidence,5 campaign attribution, and blocking priority. Use when triaging IOCs from phishing6 emails, security alerts, or external threat feeds; enriching raw IOCs with multi-source7 intelligence; or making block/monitor/whitelist decisions. Activates for requests8 involving VirusTotal, AbuseIPDB, MalwareBazaar, MISP, or IOC enrichment pipelines.910 '11domain: cybersecurity12tags:13- IOC14- VirusTotal15- AbuseIPDB16- MalwareBazaar17- MISP18- threat-intelligence19- STIX20- NIST-CSF21subdomain: threat-intelligence22version: 1.0.023author: oyi7724license: Apache-2.025atlas_techniques:26- AML.T005227nist_csf:28- ID.RA-0129- ID.RA-0530- DE.CM-0131- DE.AE-0232category: cybersecurity33metadata:34 source: https://skillmd.com/skills/oyi77/analyzing-indicators-of-compromise35---3637# Analyzing Indicators Of Compromise3839## Overview4041Cybersecurity skill for analyzing indicators of compromise. Follows industry best practices and security standards.4243## When to Use4445**Trigger phrases:**46- "analyzing indicators of compromise"47- "A phishing email or alert generates IOCs (URLs, IP addresses, file hashes) requi"48- "Automated feeds deliver bulk IOCs that need confidence scoring before ingestion"49- "An incident investigation requires contextual enrichment of observed network art"505152Use this skill when:53- A phishing email or alert generates IOCs (URLs, IP addresses, file hashes) requiring rapid triage54- Automated feeds deliver bulk IOCs that need confidence scoring before ingestion into blocking controls55- An incident investigation requires contextual enrichment of observed network artifacts5657**Do not use** this skill in isolation for high-stakes blocking decisions — always combine automated enrichment with analyst judgment, especially for shared infrastructure (CDNs, cloud providers).585960## When NOT to Use6162- When you lack proper authorization for testing63- For production systems without change management64- When the task requires legal or compliance expertise beyond technical scope656667## Prerequisites6869- VirusTotal API key (free or Enterprise) for multi-AV and sandbox lookup70- AbuseIPDB API key for IP reputation checks71- MISP instance or TIP for cross-referencing against known campaigns72- Python with `requests` and `vt-py` libraries, or SOAR platform with pre-built connectors7374## Workflow7576```python77# Example: IOC detection78import re7980IOC_PATTERNS = {81 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",82 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",83 "hash_md5": r"\b[a-f0-9]{32}\b",84 "hash_sha256": r"\b[a-f0-9]{64}\b",85}8687def extract_iocs(text: str) -> dict:88 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}89```90911. **Scope the Analysis** — Define what indicators of compromise artifacts or data sources to examine and the investigation timeline.922. **Preserve Evidence** — Create forensic copies of relevant data. Maintain chain of custody documentation.933. **Extract Key Indicators** — Parse and extract relevant indicators of compromise data points from collected artifacts.944. **Correlate Findings** — Cross-reference extracted data with other sources (threat intel, logs, timelines).955. **Build Timeline** — Construct a chronological sequence of events related to indicators of compromise.966. **Document Analysis** — Write findings report with evidence, conclusions, and recommendations.9798## Tools99100- **Forensic Toolkit** — Evidence collection and analysis101- **Timeline Tools** — Chronological event reconstruction102- **Log Analysis Platform** — Centralized log parsing and search103104105## Process1061071. **Scope** — Define research questions, identify data sources, set time boundaries1081. **Gather** — Collect data from primary sources, APIs, and public records1091. **Synthesize** — Analyze findings, identify patterns, produce actionable report110111## Verification112113- [ ] All indicators of compromise procedures executed completely and documented114- [ ] Findings validated against multiple data sources115- [ ] False positives identified and filtered116- [ ] Results documented with evidence and timestamps117- [ ] Recommendations provided with risk-based prioritization118119## Anti-Rationalization Table120121| Rationalization | Reality |122|---|---|123| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |124| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |125| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |