Automatically Generating Rules of Malicious Software Packages via Large Language Model
Not on the map. Why?
Abstract (arXiv)
Today's security tools predominantly rely on predefined rules crafted by experts, making them poorly adapted to the emergence of software supply chain attacks. To tackle this limitation, we propose a novel tool, RuleLLM, which leverages large language models (LLMs) to automate rule generation for OSS ecosystems. RuleLLM extracts metadata and code snippets from malware as its input, producing YARA and Semgrep rules that can be directly deployed in software development. Specifically, the rule generation task involves three subtasks: crafting rules, refining rules, and aligning rules. To validate RuleLLM's effectiveness, we implemented a prototype system and conducted experiments on the dataset of 1,633 malicious packages. The results are promising that RuleLLM generated 763 rules (452 YARA and 311 Semgrep) with a precision of 85.2% and a recall of 91.8%, outperforming state-of-the-art (SOTA) tools and scored-based approaches. We further analyzed generated rules and proposed a rule taxonomy: 11 categories and 38 subcategories.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 30 of its 76 references that are in the map. First posted on arXiv 24 Apr 2025.
Builds on
30 of 76 references.
References · 30
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2023Teaching Large Language Models to Self-Debugcited by 988
- 2022Large Language Models Can Self-Improvecited by 664
- 2023Detecting Pretraining Data from Large Language Modelscited by 387
- 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 181
- 2024Benchmark Data Contamination of Large Language Models: A Surveycited by 147
18 more
- 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
- 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
- 2023LLMs Cannot Reliably Identify and Reason About Security Vulnerabilities (Yet?): A Comprehensive Evaluation, Framework, and Benchmarkscited by 97
- 2020Backstabber's Knife Collection: A Review of Open Source Software Supply Chain Attackscited by 61
- 2022Taxonomy of Attacks on Open-Source Software Supply Chainscited by 58
- 2023Prompting Is All You Need: Automated Android Bug Replay with Large Language Modelscited by 40
- 2019Small World with High Risks: A Study of Security Threats in the npm Ecosystemcited by 37
- 2023Automatic Code Summarization via ChatGPT: How Far Are We?cited by 34
- 2023An Empirical Study of Malicious Code In PyPI Ecosystemcited by 19
- 2023The Hitchhiker's Guide to Program Analysis: A Journey with Large Language Modelscited by 18
- 2020Automatic Yara Rule Generation Using Biclusteringcited by 17
- 2021What are Weak Links in the npm Supply Chain?cited by 16
- 2022Pop Quiz! Can a Large Language Model Help With Reverse Engineering?cited by 14
- 2024How Far Have We Gone in Binary Code Understanding Using Large Language Modelscited by 7
- 2018On the evolution of technical lag in the npm package dependency networkcited by 5
- 2017An Empirical Comparison of Developer Retention in the RubyGems and npm Software Ecosystemscited by 4
- 2018Beyond Metadata: Code-centric and Usage-based Analysis of Known Vulnerabilities in Open-source Softwarecited by 4
- 2022Towards the Detection of Malicious Java Packagescited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.