CmdCaliper: A Semantic-Aware Command-Line Embedding Model and Dataset for Security Research
Not on the map. Why?
Abstract (arXiv)
This research addresses command-line embedding in cybersecurity, a field obstructed by the lack of comprehensive datasets due to privacy and regulation concerns. We propose the first dataset of similar command lines, named CyPHER, for training and unbiased evaluation. The training set is generated using a set of large language models (LLMs) comprising 28,520 similar command-line pairs. Our testing dataset consists of 2,807 similar command-line pairs sourced from authentic command-line data. In addition, we propose a command-line embedding model named CmdCaliper, enabling the computation of semantic similarity with command lines. Performance evaluations demonstrate that the smallest version of CmdCaliper (30 million parameters) suppresses state-of-the-art (SOTA) sentence embedding models with ten times more parameters across various tasks (e.g., malicious command-line detection and similar command-line retrieval). Our study explores the feasibility of data generation using LLMs in the cybersecurity domain. Furthermore, we release our proposed command-line dataset, embedding models' weights and all program codes to the public. This advancement paves the way for more effective command-line embedding for future researchers.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 25 of its 48 references that are in the map. First posted on arXiv 2 Nov 2024.
Builds on
25 of 48 references.
References · 25
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
13 more
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
- 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
- 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
- 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 395
- 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 358
- 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 329
- 2022DiffCSE: Difference-based Contrastive Learning for Sentence Embeddingscited by 131
- 2021LogBERT: Log Anomaly Detection via BERTcited by 114
- 2024Large Language Models in Cybersecurity: State-of-the-Artcited by 34
- 2023From Text to MITRE Techniques: Exploring the Malicious Use of Large Language Models for Generating Cyber Attack Payloadscited by 31
- 2021Living-Off-The-Land Command Detection Using Active Learningcited by 8
- 2023Bypassing antivirus detection: old-school malware, new trickscited by 2
- 2021End-To-End Anomaly Detection for Identifying Malicious Cyber Behavior through NLP-Based Log Embeddingscited by 1
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 1.
5 papers.
- 2025OMNISEC: LLM-Driven Provenance-based Intrusion Detection via Retrieval-Augmented Behavior Promptingcited by 3
- 2024SCADE: Scalable Framework for Anomaly Detection in High-Performance Systemcited by 0
- 2025Coherence-driven inference for cybersecuritycited by 0
- 2025Democratizing ML for Enterprise Security: A Self-Sustained Attack Detection Frameworkcited by 0
- 2026SENTINEL: A Multi-Pathway Architecture for Detecting Living-Off-the-Land APT Attacks on Windows Command Linescited by 0
- 2026SENTINEL: A Multi-Pathway Architecture for Detecting Living-Off-the-Land APT Attacks on Windows Command Lines13 Sep 2026
- 2025Democratizing ML for Enterprise Security: A Self-Sustained Attack Detection Framework9 Dec 2025
- 2025Coherence-driven inference for cybersecurity23 Sep 2025
- 2025OMNISEC: LLM-Driven Provenance-based Intrusion Detection via Retrieval-Augmented Behavior Prompting5 Mar 2025
- 2024SCADE: Scalable Framework for Anomaly Detection in High-Performance System5 Dec 2024