mlsanityData to 7 Oct 2026

Command-line Risk Classification using Transformer-based Neural Architectures

arXiv 2412.01655 ↗First posted 2 Dec 2024cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

To protect large-scale computing environments necessary to meet increasing computing demand, cloud providers have implemented security measures to monitor Operations and Maintenance (O&M) activities and therefore prevent data loss and service interruption. Command interception systems are used to intercept, assess, and block dangerous Command-line Interface (CLI) commands before they can cause damage. Traditional solutions for command risk assessment include rule-based systems, which require expert knowledge and constant human revision to account for unseen commands. To overcome these limitations, several end-to-end learning systems have been proposed to classify CLI commands. These systems, however, have several other limitations, including the adoption of general-purpose text classifiers, which may not adapt to the language characteristics of scripting languages such as Bash or PowerShell, and may not recognize dangerous commands in the presence of an unbalanced class distribution. In this paper, we propose a transformer-based command risk classification system, which leverages the generalization power of Large Language Models (LLM) to provide accurate classification and the ability to identify rare dangerous commands effectively, by exploiting the power of transfer learning. We verify the effectiveness of our approach on a realistic dataset of production commands and show how to apply our model for other security-related tasks, such as dangerous command interception and auditing of existing rule-based systems.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 10 of its 23 references that are in the map. First posted on arXiv 2 Dec 2024.

Builds on

10 of 23 references.

References · 10

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  5. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  6. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
  7. 2019How to Fine-Tune BERT for Text Classification?cited by 409
  8. 2020IntelliCode Compose: Code Generation Using Transformercited by 225
  9. 2021BERT: A Review of Applications in Natural Language Processing and Understandingcited by 109
  10. 2018Detecting Malicious PowerShell Commands using Deep Neural Networkscited by 3

Built on by

Not cited yet.