Performing Indicator Lifecycle Management
Overview
Indicator lifecycle management tracks IOCs from initial discovery through validation, enrichment, deployment, monitoring, and eventual retirement. This skill covers implementing systematic processes for IOC quality assessment, aging policies, confidence scoring decay, false positive tracking, hit-rate monitoring, and automated expiration to maintain a high-quality, actionable indicator database that minimizes analyst fatigue and maximizes detection efficacy.
When to Use
- When conducting security assessments that involve performing indicator lifecycle management
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Prerequisites
- Python 3.9+ with
pymisp, requests, stix2 libraries
- MISP or OpenCTI instance for indicator storage
- SIEM with IOC watchlist capabilities (Splunk, Elastic)
- Understanding of IOC types, confidence scoring, and TLP classifications
Key Concepts
Indicator Lifecycle Phases
- Discovery: IOC first identified from threat intelligence, malware analysis, or incident response
- Validation: IOC verified against enrichment sources (VirusTotal, Shodan)
- Enrichment: Additional context added (WHOIS, passive DNS, threat actor attribution)
- Deployment: IOC pushed to detection systems (SIEM, IDS, firewall)
- Monitoring: Track hit rates, false positive rates, detection efficacy
- Review: Periodic assessment of IOC relevance and accuracy
- Retirement: IOC expired or removed based on aging policy
Confidence Decay
Indicator confidence decreases over time as adversaries rotate infrastructure. A time-based decay function reduces confidence scores automatically, ensuring old indicators do not generate excessive alerts. Typical half-life: IP addresses (30 days), domains (90 days), file hashes (365 days).
Quality Metrics
- Hit Rate: Percentage of deployed IOCs generating true positive alerts
- False Positive Rate: Percentage of IOC alerts that are benign
- Coverage: Percentage of known threat techniques with IOC coverage
- Freshness: Average age of active indicators in the database
Workflow
Step 1: Implement IOC Lifecycle State Machine
from datetime import datetime, timedelta
from enum import Enum
class IOCState(Enum):
DISCOVERED = "discovered"
VALIDATED = "validated"
ENRICHED = "enriched"
DEPLOYED = "deployed"
MONITORING = "monitoring"
UNDER_REVIEW = "under_review"
RETIRED = "retired"
class IOCLifecycle:
def __init__(self, ioc_type, value, source, initial_confidence=50):
self.ioc_type = ioc_type
self.value = value
self.source = source
self.confidence = initial_confidence
self.state = IOCState.DISCOVERED
self.created = datetime.utcnow()
self.last_updated = datetime.utcnow()
self.last_seen = None
self.hit_count = 0
self.false_positive_count = 0
self.history = [{"state": "discovered", "timestamp": self.created.isoformat()}]
def transition(self, new_state: IOCState, reason=""):
self.state = new_state
self.last_updated = datetime.utcnow()
self.history.append({
"state": new_state.value,
"timestamp": self.last_updated.isoformat(),
"reason": reason,
})
def apply_decay(self):
"""Apply confidence decay based on IOC type half-life."""
half_lives = {"ip": 30, "domain": 90, "hash": 365, "url": 60}
half_life = half_lives.get(self.ioc_type, 90)
age_days = (datetime.utcnow() - self.created).days
decay_factor = 0.5 ** (age_days / half_life)
self.confidence = max(0, int(self.confidence * decay_factor))
def record_hit(self, is_true_positive=True):
self.hit_count += 1
self.last_seen = datetime.utcnow()
if not is_true_positive:
self.false_positive_count += 1
if self.false_positive_count > 3:
self.transition(IOCState.UNDER_REVIEW, "Excessive false positives")
def should_retire(self):
max_ages = {"ip": 90, "domain": 180, "hash": 730, "url": 120}
max_age = max_ages.get(self.ioc_type, 180)
age_days = (datetime.utcnow() - self.created).days
return age_days > max_age and self.hit_count == 0
Validation Criteria
- IOC lifecycle state machine transitions correctly between phases
- Confidence decay reduces scores based on IOC type half-life
- Hit rate and false positive tracking functional
- Aging policy automatically flags indicators for review/retirement
- Quality metrics dashboard shows IOC database health
References
Source: mukul975/Anthropic-Cybersecurity-Skills → skills/performing-indicator-lifecycle-management/SKILL.md
1---
2name: performing-indicator-lifecycle-management
3description: "Indicator lifecycle management tracks IOCs from initial discovery through validation, enrichment, deployment, monitoring, and eventual retirement. This skill covers implementing systematic processes f"
4category: devops-and-infra
5source_repo: mukul975/Anthropic-Cybersecurity-Skills
6source_path: "skills/performing-indicator-lifecycle-management/SKILL.md"
7source_url: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/HEAD/skills/performing-indicator-lifecycle-management/SKILL.md
8metadata:
9 source: https://skillmd.com/skills/thedixitjain/performing-indicator-lifecycle-management
10---
11
12# Performing Indicator Lifecycle Management
13
14## Overview
15
16Indicator lifecycle management tracks IOCs from initial discovery through validation, enrichment, deployment, monitoring, and eventual retirement. This skill covers implementing systematic processes for IOC quality assessment, aging policies, confidence scoring decay, false positive tracking, hit-rate monitoring, and automated expiration to maintain a high-quality, actionable indicator database that minimizes analyst fatigue and maximizes detection efficacy.
17
18
19## When to Use
20
21- When conducting security assessments that involve performing indicator lifecycle management
22- When following incident response procedures for related security events
23- When performing scheduled security testing or auditing activities
24- When validating security controls through hands-on testing
25
26## Prerequisites
27
28- Python 3.9+ with `pymisp`, `requests`, `stix2` libraries
29- MISP or OpenCTI instance for indicator storage
30- SIEM with IOC watchlist capabilities (Splunk, Elastic)
31- Understanding of IOC types, confidence scoring, and TLP classifications
32
33## Key Concepts
34
35### Indicator Lifecycle Phases
361. **Discovery**: IOC first identified from threat intelligence, malware analysis, or incident response
372. **Validation**: IOC verified against enrichment sources (VirusTotal, Shodan)
383. **Enrichment**: Additional context added (WHOIS, passive DNS, threat actor attribution)
394. **Deployment**: IOC pushed to detection systems (SIEM, IDS, firewall)
405. **Monitoring**: Track hit rates, false positive rates, detection efficacy
416. **Review**: Periodic assessment of IOC relevance and accuracy
427. **Retirement**: IOC expired or removed based on aging policy
43
44### Confidence Decay
45Indicator confidence decreases over time as adversaries rotate infrastructure. A time-based decay function reduces confidence scores automatically, ensuring old indicators do not generate excessive alerts. Typical half-life: IP addresses (30 days), domains (90 days), file hashes (365 days).
46
47### Quality Metrics
48- **Hit Rate**: Percentage of deployed IOCs generating true positive alerts
49- **False Positive Rate**: Percentage of IOC alerts that are benign
50- **Coverage**: Percentage of known threat techniques with IOC coverage
51- **Freshness**: Average age of active indicators in the database
52
53## Workflow
54
55### Step 1: Implement IOC Lifecycle State Machine
56
57```python
58from datetime import datetime, timedelta
59from enum import Enum
60
61class IOCState(Enum):
62 DISCOVERED = "discovered"
63 VALIDATED = "validated"
64 ENRICHED = "enriched"
65 DEPLOYED = "deployed"
66 MONITORING = "monitoring"
67 UNDER_REVIEW = "under_review"
68 RETIRED = "retired"
69
70class IOCLifecycle:
71 def __init__(self, ioc_type, value, source, initial_confidence=50):
72 self.ioc_type = ioc_type
73 self.value = value
74 self.source = source
75 self.confidence = initial_confidence
76 self.state = IOCState.DISCOVERED
77 self.created = datetime.utcnow()
78 self.last_updated = datetime.utcnow()
79 self.last_seen = None
80 self.hit_count = 0
81 self.false_positive_count = 0
82 self.history = [{"state": "discovered", "timestamp": self.created.isoformat()}]
83
84 def transition(self, new_state: IOCState, reason=""):
85 self.state = new_state
86 self.last_updated = datetime.utcnow()
87 self.history.append({
88 "state": new_state.value,
89 "timestamp": self.last_updated.isoformat(),
90 "reason": reason,
91 })
92
93 def apply_decay(self):
94 """Apply confidence decay based on IOC type half-life."""
95 half_lives = {"ip": 30, "domain": 90, "hash": 365, "url": 60}
96 half_life = half_lives.get(self.ioc_type, 90)
97 age_days = (datetime.utcnow() - self.created).days
98 decay_factor = 0.5 ** (age_days / half_life)
99 self.confidence = max(0, int(self.confidence * decay_factor))
100
101 def record_hit(self, is_true_positive=True):
102 self.hit_count += 1
103 self.last_seen = datetime.utcnow()
104 if not is_true_positive:
105 self.false_positive_count += 1
106 if self.false_positive_count > 3:
107 self.transition(IOCState.UNDER_REVIEW, "Excessive false positives")
108
109 def should_retire(self):
110 max_ages = {"ip": 90, "domain": 180, "hash": 730, "url": 120}
111 max_age = max_ages.get(self.ioc_type, 180)
112 age_days = (datetime.utcnow() - self.created).days
113 return age_days > max_age and self.hit_count == 0
114```
115
116## Validation Criteria
117
118- IOC lifecycle state machine transitions correctly between phases
119- Confidence decay reduces scores based on IOC type half-life
120- Hit rate and false positive tracking functional
121- Aging policy automatically flags indicators for review/retirement
122- Quality metrics dashboard shows IOC database health
123
124## References
125
126- [MISP Indicator Lifecycle](https://www.misp-project.org/)
127- [STIX Indicator Valid From/Until](https://docs.oasis-open.org/cti/stix/v2.1/stix-v2.1.html)
128- [IOC Quality Framework](https://www.first.org/)
129
130---
131
132**Source:** [`mukul975/Anthropic-Cybersecurity-Skills`](https://github.com/mukul975/Anthropic-Cybersecurity-Skills) → `skills/performing-indicator-lifecycle-management/SKILL.md`