TL;DR
KnowHow bridges the massive semantic gap between high-level Cyber Threat Intelligence (CTI) reports written in natural language and low-level system logs. By introducing a novel intermediate representation called General Indicators of Compromise (gIoC), it automatically maps system events to attack techniques, reducing false positives by up to 90% while providing highly interpretable, human-readable alert reports.
What Problem Does This Paper Address?
Detecting Advanced Persistent Threat (APT) attacks is notoriously difficult because attackers operate stealthily, blending in with normal system activities over long periods. Security analysts rely on provenance analysis (tracking system event graphs) to spot anomalies, but traditional data-driven approaches suffer from high false-positive rates and lack context, leaving analysts fatigued.
On the other hand, Cyber Threat Intelligence (CTI) reports contain rich descriptions of attack behaviors, but using them automatically is blocked by a severe semantic gap. CTI reports are written in natural language (e.g., "malware scans the browser's login directory"), whereas system logs only see low-level identifiers (e.g., read /home/user/.config/firefox/profiles.ini). Existing solutions either rely on brittle, easily bypassed static Indicators of Compromise (IoCs like specific file hashes or IPs) or require human experts to manually write complex detection rules.
Methods
The authors present KnowHow, an online provenance analysis framework that automates the application of high-level CTI knowledge using a multi-stage pipeline:
- General Indicators of Compromise (gIoC): Instead of static IoCs, KnowHow extracts Subject-Verb-Object (SVO) triplets from CTI reports to capture the behavioral essence of an attack (e.g.,
(malware, scan, browser directory)). - Event Semantic Lifting: To match system logs with natural language gIoCs, KnowHow "lifts" low-level system identifiers into descriptive text. For instance, a file path containing "firefox" is translated to "browser login data," and system commands like
cpare expanded to "copy." - Fuzzy Matching via Embeddings: Lifted events and gIoCs are converted into numerical vectors using FastText. This allows the system to perform efficient, semantic-aware fuzzy matching, recognizing that words like "read" and "scan" share behavioral meanings.
- Relaxed APT Lifecycle Reasoning: To filter out benign actions that happen to look like attack steps, KnowHow maps events to a relaxed temporal model of an attack lifecycle. It ensures that critical phases (like Initial Compromise) logically precede others, pruning chronologically inconsistent false positives.
- LLM-Powered Report Generation: Finally, an LLM uses evidence-constrained prompting to translate the validated alert graph into a structured, human-readable incident report complete with high-level context and actionable mitigation steps.
Datasets
The framework was evaluated across several diverse environments:
- Public Benchmarks: THEIA and TRACE from the DARPA Transparent Computing Engagement #3 dataset, as well as the simulated In-lab Arena dataset.
- NewlySim: A newly simulated dataset created by the authors to test robustness against completely unseen attacks, utilizing post-2023 vulnerabilities (CVE-2023-22809 and CVE-2024-28085) not present in their pre-2022 CTI database.
- Open-World Dataset: A real-world deployment across more than 180 production endpoints (running Linux, Windows, and openEuler) within Huawei's cloud infrastructure during an internal red-team penetration test.
Key Insights and Ideas
- Behavior Over Instances: Traditional security relies on exact matches (like an IP address or file hash). KnowHow shifts the paradigm to behavioral matching via SVO triplets. An attacker can rename a file or change an IP, but the underlying action (e.g., "dumping process memory") will still trigger a match.
- Bridging the Gap by Lifting Logs: Instead of trying to make a language model understand raw regex or hex logs, translating the logs into natural language ("lifting") allows standard, lightweight NLP embedding models (FastText) to handle the heavy lifting efficiently in real time.
- The Power of "Relaxed" Logic: Strict lifecycle models fail in the real world because attackers don't follow a perfect linear script. By enforcing only the absolute logical anchors (e.g., you must compromise the system before you maintain persistence), KnowHow remains robust against real-world variations while successfully filtering out random benign anomalies.
Key Results
- 100% Detection: KnowHow successfully identified all 16 APT campaigns across all evaluated datasets.
- Massive False Positive Reduction: At the node level, KnowHow reduced false positives by 81% compared to NODLINK and 90% compared to KAIROS.
- Unseen Attack Robustness: In the NewlySim dataset, it successfully detected undocumented exploits by matching the behavioral patterns of privilege escalation.
- Production-Ready Efficiency: Thanks to a two-stage query acceleration method using Mean-Shift clustering, KnowHow maintains a high processing throughput, making it fully capable of real-time online deployment in enterprise networks.
Limitations and Future Work
- Entirely Novel Behaviors: If an attacker invents a completely unprecedented technique where every single step shares zero behavioral similarity with anything documented in the MITRE ATT&CK framework or historical CTI reports, KnowHow will miss it.
- Graph Completeness Delay: Like many provenance-based systems, accurate reasoning requires a reasonably complete attack graph, which can introduce slight detection delays during the very early stages of an intrusion.
- CTI Scope: The evaluation relied on a finite set of CTI reports; expanding the knowledge base to automatically ingest and parse live threat feeds continuously remains an area for future engineering work.
Summary updated