Principle:7onez Cti expert Static IOC Extraction
| Knowledge Sources | |
|---|---|
| Domains | OSINT, Binary_Analysis, Malware_Analysis |
| Last Updated | 2026-10-28 14:00 GMT |
Overview
Method for extracting indicators of compromise from binary artifacts through multi-layer static analysis: file-type detection, archive unpacking, string-sweep IOC scanning, manifest parsing, and packer/obfuscation triage.
Description
Static IOC Extraction solves the problem of blind binary analysis: a binary artifact (APK, PE, ELF, Mach-O, ZIP) contains embedded indicators — backend hosts, C2 endpoints, crypto wallets, Firebase projects, signing certificates — but they are not visible without structured extraction. The principle defines a multi-layer extraction pipeline:
1. Acquisition and triage: download (or read local file), compute hashes (MD5/SHA-1/SHA-256), detect file type via magic bytes.
2. Archive unpacking (ZIP/APK/JAR): unzip, parse the Android manifest (package name, permissions, signing certs), identify files of interest (google-services.json → Firebase projects, embedded configs).
3. String-sweep IOC scanning: regex-sweep decoded strings for URLs, hosts, IPs, emails, Telegram/WhatsApp handles, crypto wallets (BTC/ETH/TRON), JWTs, S3 buckets, Firebase, Google API keys. Bare host tokens are strictly validated (reverse-DNS package names, class names, resource filenames are false positives).
4. Packer/obfuscation triage: detect UPX, high-entropy body, Mach-O encryption segments. An additive, fully-guarded process — any failure returns what was gathered so the rest of the analysis is unaffected.
5. REA deep-static layer (optional): deeper extraction whose indicators are fact-only (never become KB edges) — they reach trackers only through specific REA labels.
Usage
Use this principle when designing binary analysis tools where:
- Multiple file types (APK, PE, ELF, Mach-O, ZIP) must be handled by one pipeline.
- String-sweep false positives (reverse-DNS package names, class names) must be filtered.
- Packer/obfuscation triage must not block the rest of the analysis (additive, guarded).
- Extracted indicators must be ranked as pivots with confidence levels and copy-paste queries.
Theoretical Basis
The principle is a multi-layer extraction with false-positive filtering. Each layer extracts independently and results are merged. The string-sweep layer is the noisiest — bare host-shaped tokens are heavily polluted by reverse-DNS package names (com.evil.app), class names, permission constants, and resource filenames. The filter distinguishes hosts parsed from a real http(s):// URL (trusted) from bare host tokens (strict validation).
# Abstract algorithm (NOT real implementation)
def analyze_binary(raw_bytes):
kind, ftype = detect_type(raw_bytes)
hashes = compute_hashes(raw_bytes)
if kind in ("apk", "jar", "zip"):
artifacts = unzip_and_parse(raw_bytes) # manifest, certs, firebase
else:
artifacts = extract_metadata(raw_bytes) # PE sections, Mach-O teams
iocs = scan_iocs(strings_of(raw_bytes)) # filtered string sweep
protection = detect_protection(raw_bytes) # UPX, entropy, encryption
return shape_as_webpivot(artifacts, iocs, protection)
The additive guard pattern: each layer is wrapped in a try/except that returns whatever was gathered so far. A failure in packer detection does not prevent IOC extraction — the rest of the analysis proceeds with partial results.
Related Pages
Implemented By
- Implementation:7onez_Cti_expert_Analyze_Artifact_Analyze
- Implementation:7onez_Cti_expert_Binary_Auto_Analyze_Target