mlsanityData to 7 Oct 2026

CmdCaliper: A Semantic-Aware Command-Line Embedding Model and Dataset for Security Research

arXiv 2411.01176 ↗First posted 2 Nov 2024cs.CLcited by 5

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  6. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  7. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  8. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  9. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
  10. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  11. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
  12. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
13 more
  1. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
  2. 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
  3. 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
  4. 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 395
  5. 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 358
  6. 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 329
  7. 2022DiffCSE: Difference-based Contrastive Learning for Sentence Embeddingscited by 131
  8. 2021LogBERT: Log Anomaly Detection via BERTcited by 114
  9. 2024Large Language Models in Cybersecurity: State-of-the-Artcited by 34
  10. 2023From Text to MITRE Techniques: Exploring the Malicious Use of Large Language Models for Generating Cyber Attack Payloadscited by 31
  11. 2021Living-Off-The-Land Command Detection Using Active Learningcited by 8
  12. 2023Bypassing antivirus detection: old-school malware, new trickscited by 2
  13. 2021End-To-End Anomaly Detection for Identifying Malicious Cyber Behavior through NLP-Based Log Embeddingscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 1.

5 papers.