NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DEFENDCLI: {Command-Line} Driven Attack Provenance Examination

Peilun Wu, Nan Sun, Nour Moustafa, Youyang Qu, Ming DingarXiv 2025 · DOI

Abstract

Modern Endpoint Detection and Response (EDR) systems often struggle with "dependency explosion" and a lack of actionable insights, leading to analyst fatigue. DEFENDCLI introduces a novel framework that shifts the focus of attack investigation from broad system-wide event graphs to granular, command-line-level analysis. By integrating graph refinement techniques with semantic hashing and Retrieval-Augmented Generation (RAG) using Large Language Models (LLMs), DEFENDCLI achieves up to a 2.3× improvement in precision over existing state-of-the-art methods. It successfully identifies stealthy "Living off the Land" (LotL) attacks that frequently bypass major commercial security solutions.

The Challenge of Actionable Security Alerts

Traditional security monitoring relies on attack provenance graphs to map threat progression. However, these graphs often become cluttered with benign background noise, creating massive data structures that are difficult to navigate. A critical issue is the "Black Box" command problem: most EDRs treat process execution as a single event, ignoring the specific command-line arguments where malicious intent is often hidden.

Comparison of original alerts vs. actionable alerts over time, highlighting the significant gap in verifiable malicious behavior.

As shown in the figure above, only a tiny fraction of generated alerts are truly actionable. This imbalance leads to low efficiency in security analysis, as analysts must manually verify hundreds of potentially irrelevant events to find a single true positive.

Methodology: From Graphs to Actionable Evidence

DEFENDCLI addresses these hurdles through a two-phase computational pipeline designed for both precision and explainability.

Phase 1: Attack-Clause Sketch (Graph Refinement)

Instead of traditional nodes that bloat graphs, DEFENDCLI utilizes an isomorphic structure that encapsulates command and network data as attributes within process nodes. It employs Semantic Pruning to eliminate noise and a hybrid scoring system—combining Inverted PageRank and Betweenness Centrality—to pinpoint rare events and critical "bridge" nodes that connect disparate attack phases.

Phase 2: Attack-Evidence Awareness

To detect obfuscated commands, the system uses a SimHash Ensemble to map semantically similar commands to nearby binary signatures. This is paired with a "Police-Witness" voting strategy among unsupervised classifiers to flag anomalies. Finally, to bridge the explainability gap, DEFENDCLI employs RAG-LLM Reporting. Using Llama-2, it generates "Snapshot Alarms"—concise, human-readable summaries that explain the attack's intent and recommend specific remediation steps.

Command-Line Driven Provenance

The core innovation of DEFENDCLI is the realization that the command line is the most traceable artifact of an attack. While attackers can obfuscate scripts, the underlying semantic "fingerprint" remains difficult to hide.

DEFENDCLI correlates memory-injected process chains with suspicious command-line behavior and rare network connections.

By correlating structural changes (like memory injection) with semantic evidence (suspicious command-line arguments), the system provides a much stronger signal for detection than structural analysis alone.

Evaluation and Results

The framework was evaluated using the DARPA Engagement Series (E3) and a 2024-2025 industrial real-time detection dataset featuring Microsoft Azure VM telemetry.

  • Superior Precision: DEFENDCLI improved detection precision by 1.6× on DARPA datasets and 2.3× in industrial testing compared to the previous state-of-the-art (NODLINK).
  • Commercial Benchmark: In head-to-head evaluations, DEFENDCLI detected malicious activities that were bypassed by industry leaders including Microsoft Defender, Symantec EDR, and Kaspersky EDR.
  • Operational Efficiency: The system maintains high performance, processing 5,000 records in 2 to 7 seconds, making it suitable for real-time enterprise deployment.

Conclusion and Future Directions

While DEFENDCLI represents a significant leap forward, challenges remain. The system's sensitivity to different operating environments (e.g., Linux vs. Windows) requires ongoing recalibration. Furthermore, while RAG-LLM reporting significantly aids triage, the potential for LLM hallucinations necessitates a "human-in-the-loop" approach for final verification of technical edge cases. Future work will focus on automating the fine-tuning process for new enterprise environments.

Summary updated

BibTeX
@misc{wu2025defendcli,
  author = {Peilun Wu and Nan Sun and Nour Moustafa and Youyang Qu and Ming Ding},
  title = {{DEFENDCLI: \{Command-Line\} Driven Attack Provenance Examination}},
  year = {2025},
  eprint = {2508.12553},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.12553},
}
Figure