| name | collecting-indicators-of-compromise |
| description | Use when systematically collects, categorizes, and distributes indicators of compromise (IOCs) during and after security incidents to enable detection, blocking, and threat intelligence sharing. Covers network, host, email, and behavioral indicators using STIX/TAXII formats and threat intelligence platforms. Activates for requests involving IOC collection, indicator extraction, threat indicator sharing, compromise indicators, STIX export, or IOC enrichment. |
| domain | cybersecurity |
| tags | ["IOC-collection","threat-indicators","STIX-TAXII","MISP","threat-intelligence-sharing"] |
| subdomain | incident-response |
| mitre_attack | ["T1071","T1059","T1547","T1053"] |
| version | 1.0.0 |
| author | oyi77 |
| license | Apache-2.0 |
| nist_csf | ["RS.MA-01","RS.MA-02","RS.AN-03","RC.RP-01"] |
Collecting Indicators Of Compromise
Overview
Cybersecurity skill for collecting indicators of compromise. Follows industry best practices and security standards.
When to Use
Trigger phrases:
-
"collecting indicators of compromise"
-
"Systematically collects, categorizes, and distributes indicators of compromise ("
-
During active incident response to identify and block adversary infrastructure
-
Post-incident to document all observed adversary artifacts for future detection
-
When sharing threat intelligence with ISACs, sector partners, or law enforcement
-
When building detection rules in SIEM, EDR, or network security tools
-
When enriching IOCs with threat intelligence context for risk scoring
Do not use for behavioral TTP analysis without accompanying technical indicators; use MITRE ATT&CK mapping for behavioral characterization.
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
- Access to incident evidence sources: SIEM logs, EDR telemetry, memory dumps, disk images, network captures
- Threat intelligence platform (MISP, OpenCTI, ThreatConnect) for IOC management and sharing
- IOC enrichment tools: VirusTotal, OTX (AlienVault Open Threat Exchange), Shodan, DomainTools
- STIX 2.1 knowledge for structured IOC representation
- Sharing agreements with relevant ISACs (FS-ISAC, H-ISAC, IT-ISAC) or sector partners
Workflow
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) -> :
{k: re.findall(v, text) k, v IOC_PATTERNS.items()}