Skip to content

A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.

Shell

Preserve case-sensitive IOC paths and filter private IPv6 addresses

Rudy Celekli87dde74733c6
diff --git a/security/security-threat-intelligence-analyst.md b/security/security-threat-intelligence-analyst.md
index 7dc0479c..4922f46a 100644
--- a/security/security-threat-intelligence-analyst.md
+++ b/security/security-threat-intelligence-analyst.md
@@ -463,7 +463,7 @@ class IOCClassifier:
"""Check if an IP is in private/reserved ranges."""
try:
addr = ip_address(value)
- return any(addr in net for net in cls.PRIVATE_RANGES)
+ return addr.is_private or addr.is_loopback or addr.is_link_local
except ValueError:
return False
@@ -493,8 +493,12 @@ class IOCEnrichmentPipeline:
if self.classifier.is_private_ip(raw):
continue
+ value = raw.strip()
+ if ioc_type != IOCType.URL:
+ value = value.lower()
+
ioc = IOC(
- value=raw.strip().lower(),
+ value=value,
ioc_type=ioc_type,
first_seen=now,
last_seen=now,