1. Initial IOCs and surface expansion
After the incident we have: 3 loader hashes (SHA256), 2 C2 IPs, 1 domain. We launched automated enrichment via PassiveTotal API + Censys + VirusTotal v3:
# IOC Enrichment Pipeline
import requests, json
from passive_total import PassiveTotal
pt = PassiveTotal(api_key=os.getenv('PT_KEY'))
# 1. Passive DNS for IP
for ip in initial_ips:
pdns = pt.dns.passive(ip)
for record in pdns['results']:
iocs.add(record['hostname'])
# 2. SSL Cert enrichment
for ip in initial_ips:
certs = pt.ssl.certificate_history(ip)
for c in certs:
# Extract CN, SAN, Issuer, Serial
iocs.update(extract_cert_iocs(c))
# 3. WHOIS + Registrar clustering
for domain in domains:
whois = pt.whois.domain(domain)
cluster_by_registrar(whois)
cluster_by_nameservers(whois)
# 4. VT Behavioral
for hash in hashes:
beh = vt.behaviour(hash)
iocs.update(extract_network_iocs(beh))Result: 200+ IOCs (IPs, domains, hashes, URLs, registrar emails, SSL serial numbers).
2. Infrastructure clustering (Maltego Graph)
We built a relationship graph: IP ↔ Domains ↔ SSL Certificates ↔ WHOIS Registrars ↔ Name Servers. Key clusters:
Cluster A: Historical Lazarus
IPs overlap with Lazarus Group (APT38) infrastructure from 2021-2023 (SWIFT attacks, crypto exchange hacks). Same ASNs (CHOPA, Hostpalace), same registrars (NameCheap, PDR), similar naming patterns (cdn-*, api-*, static-*).
Cluster B: SSL Certificate Reuse
47 certificates — 12 unique serial numbers. The same private key was used on 14 C2 servers over 2 years. Self-signed, 10-year validity, CN=*.example.com — a typical Lazarus pattern.