paper-with-me

홈 › Papers

Execution-Based Evaluation of Natural Language to Bash and PowerShell for Incident Remediation

2024-05-10 · Ngoc Phuoc An Vo, Brent Paulovicks, Vadim Sheinin

Given recent advancements of Large Language Models (LLMs), code generation tasks attract immense attention for wide application in different domains. In an effort to evaluate and select a best model to automatically remediate system incidents discovered by Application Performance Monitoring (APM) platforms, it is crucial to verify if the generated code is syntactically and semantically correct, and whether it can be executed correctly as intended. However, current methods for evaluating the quality of code generated by LLMs heavily rely on surface form similarity metrics (e.g. BLEU, ROUGE, and exact/partial match) which have numerous limitations. In contrast, execution based evaluation focuses more on code functionality and does not constrain the code generation to any fixed solution. Nevertheless, designing and implementing such execution-based evaluation platform is not a trivial task. There are several works creating execution-based evaluation platforms for popular programming languages such as SQL, Python, Java, but limited or no attempts for scripting languages such as Bash and PowerShell. In this paper, we present the first execution-based evaluation platform in which we created three test suites (total 125 handcrafted test cases) to evaluate Bash (both single-line commands and multiple-line scripts) and PowerShell codes generated by LLMs. We benchmark seven closed and open-source LLMs using our platform with different techniques (zero-shot vs. few-shot learning).

📄 PDF Abstract BibTeX arXiv:2405.06807

Code (1)

IBM/nl2bash-eabench 공식 구현

Tasks

Code GenerationFew-Shot Learning

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

LLM-Supported Natural Language to Bash Translation

2025-02-07 · Finnian Westenfelder, Erik Hemberg, Miguel Tulla, Stephen Moskal 외

The Bourne-Again Shell (Bash) command-line interface for Linux systems has complex syntax and requires extensive specialized knowledge. Using the natural language to Bash command (NL2SH) translation capabilities of large…

In-Context LearningTranslation

AI-Generated PowerShell Malware: An Experimental Framework and Dataset

2026-06-29 · Luciano Pianese, Vittorio Orbinato, Pietro Liguori, Roberto Natella arxiv

Generative AI has emerged as a significant cybersecurity threat, with several recent attack campaigns leveraging LLMs to generate code for malicious purposes via scripting languages such as PowerShell. Consequently, for …

Detecting Malicious PowerShell Commands using Deep Neural Networks

2018-04-11 · Danny Hendler, Shay Kels, Amir Rubin

Microsoft's PowerShell is a command-line shell and scripting language that is installed by default on Windows machines. While PowerShell can be configured by administrators for restricting access and reducing vulnerabili…

AMSI-Based Detection of Malicious PowerShell Code Using Contextual Embeddings

2019-05-23 · Amir Rubin, Shay Kels, Danny Hendler

PowerShell is a command-line shell, supporting a scripting language. It is widely used in organizations for configuration management and task automation but is also increasingly used by cybercriminals for launching cyber…

Management

LLM-as-a-Judge for Reference-less Automatic Code Validation and Refinement for Natural Language to Bash in IT Automation

2025-06-12 · Ngoc Phuoc An Vo, Brent Paulovicks, Vadim Sheinin

In an effort to automatically evaluate and select the best model and improve code quality for automatic incident remediation in IT Automation, it is crucial to verify if the generated code for remediation action is synta…

Code Generation