
The Atlas IEEE SysCon 2026 research proves that malicious command-line detection can be both highly effective and practical for enterprise SOC deployment. By combining fast whitelist filtering, SLM embeddings, and k-nearest-neighbour similarity detection, we reduced data volume, lowered processing overhead, and achieved strong detection performance without relying on heavyweight de-obfuscation pipelines or expensive AI models. The key enterprise takeaway is clear: AI-driven detection delivers the most value when it is designed for operational scale, analyst usability, and validation against real production telemetry—not just AI benchmark performance.
Threat Intelligence
Critical Infrastructure
This past April the Deloitte ATLAS research and development team had the opportunity to present our research on “Malicious Command-Line Detection” at the 2026 IEEE SYSCON conference. Our findings included a novel methodology for tackling malicious command line detection, in a way that is scalable and deployable inline for a modern Security Operation Center (SOC). In this post, we build on that foundation, sharing our approach, and key insights.
Modern adversaries aren’t breaking in with obvious malware, they’re blending in. Attackers increasingly rely on “living off the land” (LOTL) techniques, abusing native system tools and command-line utilities to operate within normal-looking activity. This shift creates a fundamental detection challenge: the same commands used for routine administration are being weaponized for persistence, lateral movement, and data access. Because these actions often resemble legitimate behavior, and many organizations lack the logging, baselines, and visibility to distinguish them, malicious command-line activity can go unnoticed even in mature environments.
Enterprise security teams are operating in a new reality. Attackers are moving faster. Infrastructure is more distributed. Network visibility is increasingly limited by encryption. Complicating the detection the tools used by adversaries often look very similar to the tools used by administrators. That is why command-line data matters.
Command lines tell a high-value story: what executed, how it executed, and what behavior followed. They capture PowerShell, Python, shell commands, administrative scripts, endpoint agents, updaters, installers, and living-off-the-land activity. For defenders, this telemetry is one of the richest signals available.
But there is a challenge: enterprise command-line data is noisy, repetitive, and massive.
In our IEEE SysCon 2026 paper, “Malicious Command Line Detection,” we set out to answer a practical question:
Can we build a lightweight, AI-enabled malicious command-line detector that performs well and is realistic for production SOC environments?
Our answer: yes - if detection is designed for operational scale from the beginning.
The real enterprise need is clear: Detect malicious command-line behavior with high confidence, low friction, and production-ready efficiency.
Our design principle: filter first, infer second
A major lesson from production security operations is that not every event deserves expensive analysis.
Enterprise environments generate large volumes of repeated command lines. Many are benign and predictable: software updaters, management agents, browser helpers, security tools, installers, and routine system processes. Sending every recurring command line through a large AI model is unnecessary and expensive.
Our detection pipeline therefore starts with aggressive but controlled reduction of known benign activity before applying machine learning.
The pipeline consists of three stages:
Whitelist filtering using Bloom filters and fuzzy string matching
Text representation using Small Language Model embeddings
Classification using k-nearest neighbours
This architecture reflects an enterprise SOC reality: detection is not only about accuracy. It is also about throughput, cost, and operational fit.
Reducing data ingestion with whitelist filtration.
The first stage of our approach uses a two-phase whitelist.
The first phase uses a Bloom filter to quickly identify exact recurring command lines. Bloom filters are space-efficient probabilistic data structures that allow very fast set membership checks. For high-volume telemetry streams, this is a practical way to remove common known-good command lines before they reach more expensive processing stages.
The second phase uses fuzzy string matching. This is important because many benign command lines are nearly identical but not exactly the same. For example, enterprise software updater paths often differ only by version number. Exact matching would treat each as unique, while fuzzy matching can recognize that they are operationally equivalent. A few examples of command lines are found below, showing how version numbers and hex values can add variance to otherwise similar command lines, .
This combination produced meaningful reduction. In one client dataset, fewer than 50 whitelisted command patterns reduced the command-line volume by on average 78%. The filtering stage processed more than 90,000 command lines per second using modest resources. This far exceeds even the largest enterprise environments.
That result is important for enterprise security leaders because it directly maps to operational value: less data to process, lower compute cost, fewer low-value events, and more analyst attention available for activity that actually needs review.
What you will see in the following figure is regardless of the client around the top 25 command lines represent between 40% to 80% of the incoming data to be processed.

Embeddings: moving beyond brittle rules
Rules still matter. Indicators still matter. But command-line detection cannot rely on exact matching alone.
Attackers can change syntax, reorder arguments, encode payloads, alter paths, or use slightly different tooling patterns. Static rules can become brittle quickly.
That is why we used SLM embeddings.
Command lines are structured text. They contain executables, flags, arguments, file paths, URLs, registry keys, encoded content, and behavioral clues. Embeddings allow us to represent those command lines as vectors and compare them based on similarity rather than exact text.
Instead of asking, “Have we seen this exact command before?” we can ask, “Is this command similar to known malicious behavior?”
That shift is important for enterprise security teams trying to detect variants, not just known strings.
Validating against public and production data
Many malicious PowerShell detection studies rely primarily on public datasets. Those datasets are useful, but they do not always reflect what production data looks like.
To make our evaluation more realistic, we used both public malicious datasets and production command-line data.
The public datasets were:
MPSD, the Malicious PowerShell Script Dataset
MPD, the Malicious PowerShell Dataset
Detection performance
Our detector achieved strong results when evaluated against production client data combined with malicious samples.
Experiment | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|
MPSD malicious in Client1 | 0.9999 | 0.9956 | 0.9898 | 0.9927 |
MPD malicious in Client1 | 0.9901 | 0.9961 | 0.9636 | 0.9796 |
These results show that a lightweight approach can achieve detection performance comparable to more complex contemporary methods at a small fraction of the operating cost.
These results are especially useful for enterprise interpretation. Precision remained very high, meaning that when the detector flagged activity as malicious, it was usually correct. Recall decreased in the cross-dataset experiments, meaning the detector missed more malicious samples when tested against a different malicious dataset than the one used in training.
That is an important operational finding. It suggests that the approach is well-suited for high-confidence detection, but broader coverage depends on having diverse and representative malicious examples in the reference set.
What we learned about public datasets
One of the most important findings from our work was not just about the model. It was about the data.
During exploratory analysis, we found a significant difference between the command-line lengths in public malicious datasets and production enterprise telemetry.
Dataset | Mean length | Standard deviation | Maximum length |
|---|---|---|---|
Client1 | 431 | 1,060 | 17,226 |
Client2 | 149 | 350 | 16,982 |
MPD | 151,149 | 587,219 | 8,106,494 |
MPSD | 11,005 | 104,503 | 4,542,236 |
The public malicious datasets contained command lines that were dramatically longer than the production client datasets. In practice, extremely long command lines are often already suspicious and may be flagged through simpler heuristics or analyst review.

This creates a research and deployment concern. If public datasets differ substantially from production environments, then models trained and validated only on those datasets may not generalize as well as benchmark results suggest.
In addition to published results, additional investigation was done on a wider variety of clients, and our initial findings confirm that production enviroments differ from the open source datasets. The distribution of commandline lenghts remained similar across clients of different sectors, demontrating that while open source datasets vary significantly from production level data, distributions among production enviroments remains similar.

For enterprise teams, the lesson is clear: detection models should be validated against representative production telemetry before they are trusted in operational workflows.
Enterprise deployment implications
The proposed detector is best understood as part of a layered SOC architecture.
A practical deployment pattern would look like this:
Endpoint telemetry, such as Sysmon process creation events, flows into the organization’s log pipeline or SIEM. Common benign command lines are removed through exact and fuzzy whitelisting. Remaining command lines are embedded and compared against known malicious and benign examples. High-confidence detections are sent to analysts for triage. Analyst decisions are then fed back into the reference set to improve future classification.
The benefits are clear:
High-confidence malicious command-line detection
Reduced telemetry volume before inference
Lower compute and storage pressure
Practical integration with existing SOC workflows
Analyst-in-the-loop improvement
Less dependence on brittle exact-match rules
No mandatory de-obfuscation stage
Better validation against enterprise-like data
Understand how ATLAS Cyber offers world-class detection and response with 0 false positives.