Elamur Research⌕
☰
home / papers / 2026 / Command-Line Obfuscation Detection in Real-World Telemetry under Extreme Class Imbalance

Command-Line Obfuscation Detection in Real-World Telemetry under Extreme Class Imbalance

Paper · 2026 · Vojtěch Outrata, Barbora Štěpánková, Michael Adam Polák et al.

Summary

Attackers often abuse built-in Windows utilities (LOLBins) and disguise their commands by rewriting the syntax while keeping the behavior. Tricks include random casing, caret insertion, and string reassembly, and they defeat hash and signature matching. The authors, from Cisco, build a detector for such obfuscated command-lines that can run on real endpoint telemetry. Two constraints shape the design: obfuscated entries there are extremely rare, and daily log volumes are huge.

They train a small transformer (an ELECTRA-based model) from scratch, paired with a WordPiece tokenizer fitted to command-line logs. Training uses real benign traffic, roughly 1,500 obfuscated samples confirmed by threat hunters, and synthetic positives generated with public obfuscation tools.

Earlier methods were mostly tested on balanced data. Here, evaluation subsets are resampled to progressively harsher class ratios, and the model beats existing approaches, especially at extreme imbalance. A second test covers 24 million real command-lines, with flagged items reviewed by hand. The model keeps precision high, runs on a single GPU, and finds previously unseen malicious variants. This makes it useful for cutting analyst workload at scale.

Key points

  • Telemetry: about 350 million unique execution logs from around 1,000 private networks over 20 days. They cover PowerShell, cmd, msiexec, rundll and explorer. The estimated rate of real obfuscation is below 1 in 100k.
  • Training and evaluation sets: both use a 1:10 positive-to-negative ratio.
    • Training: 405k negatives, 1.1k real obfuscated samples and 39.4k artificial ones.
    • Evaluation: 129k negatives, 387 real and 12.5k artificial positives.
    • Synthetic positives come from Invoke-Obfuscation and Invoke-DOSfuscation.
  • Tokenizer: a custom WordPiece tokenizer (Huggingface Tokenizers) trained on 300M logs, with a 20k vocabulary chosen. A 10k-vocabulary version already yields about 11% fewer tokens than the 32k bert-base-cased tokenizer.
  • Real-world deployment: detections were manually labeled to measure precision. The model caught Raspberry Robin-style commands that published signatures would miss.
  • Limitations and code: stated limitations are reliance on tool-generated samples, untested adversarial robustness, and Windows-only scope. Code is released on GitHub, but the data and tokenizer stay private.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Fields, topics and concepts

📚 Shelves 2The field of science this work belongs to (OpenAlex fields).Computer Science · 16,667 worksArtificial Intelligence · 16,194 works

Cite

Cite as Vojtěch Outrata, Barbora Štěpánková, Michael Adam Polák and Martin Kopp. 2026. Command-Line Obfuscation Detection in Real-World Telemetry under Extreme Class Imbalance. Proceedings of the Second International Conference on Natural Language Processing and Artificial Intelligence for Cyber Security.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{outrata2026command,
  title = {{Command-Line Obfuscation Detection in Real-World Telemetry under Extreme Class Imbalance}},
  author = {Vojtěch Outrata, Barbora Štěpánková, Michael Adam Polák and Martin Kopp},
  booktitle = {Proceedings of the Second International Conference on Natural Language Processing and Artificial Intelligence for Cyber Security},
  year = {2026},
  url = {https://aclanthology.org/2026.nlpaics-1.8/}
}

References

5 references, 1 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Adobe. 2025. Command obfuscation detection. [Online]. Available: https://github.com/adobe/ obfuscation-detection. Accessed August 6, 2025. ↗
  2. Radovan Haluška, Jan Brabec, and Tomáš Komárek. 2022. Benchmark of data preprocessing methods for imbalanced classification. In 2022 IEEE International Conference on Big Data (Big Data), pages 2970–2979. IEEE. find
  3. Ben Athiwaratkun and Jack W Stokes. 2017. Malware classification with lstm and gru language models and a character-level cnn. In 2017 IEEE international Danny Hendler, Shay Kels, and Amir Rubin. 2018. Detecting malicious powershell commands using deep neural networks. In Proceedings of the 2018 on A… find
  4. Renuka Kumar and Anand Raj Essar Vaishakh. 2016. Detection of obfuscation in java malware. Procedia Computer Science, 78:521–529. find
  5. Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollár. 2017. Focal loss for dense object detection. In Proceedings of the IEEE international conference on computer vision, pages 2980–2988.

Updated

This page in Markdown → https://md.research.elamur.ai/free/en/papers/outrata-2026-command-line-obfuscation-detection-real/