From Billion-Scale to Million-Scale Language Models: Operational Capabilities for Embedded Post-Exploitation
Gabriel Hortea, Simon Pietro Romano, Juan Tapiador, Mario Varlese
Key points
From the paper's conclusion- We systematically evaluate seven open-source SLMs (20M-1.5B parameters) on two post-exploitation code-generation tasks: Directory Enumeration and Backdoor Generation.
Abstract
Small Language Models (SLMs) are increasingly attractive for resource-constrained environments due to their low computational footprint. These characteristics also make them candidates for future autonomous malware, where connectivity, latency, privacy, or operational constraints may preclude cloud-based inference. Yet the ability of ultra-compact models to support malware during post-exploitation remains poorly understood. We systematically evaluate seven open-source SLMs (20M-1.5B parameters) on two post-exploitation code-generation tasks: Directory Enumeration and Backdoor Generation. We compare Python (high-resource) and Lua (low-resource) across prompting strategies, task formulations, iterative reasoning, grammar-constrained decoding, and execution-feedback loops. Results show that offensive code-generation capabilities do not increase linearly with model size. Successful execution depends on the interaction of model capacity, task formulation, and prompting strategy, with task formulation exerting a greater influence than prompt engineering alone. Algorithmic formulation combined with few-shot prompting enables Qwen2.5-Coder 1.5B to reach Pass@5 of 100% in both Python and Lua for Directory Enumeration, 100% in Python for Backdoor Generation, and 99.2% in Lua. Although the evaluated models remain too computationally demanding for widespread deployment in contemporary malware, rapid progress in compact models may reduce this barrier. These findings help anticipate AI-assisted malware and inform future countermeasures.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- POMA: Beyond Final Flags -- Process-Level Evaluation of Base LLMs in Vulnerability ExploitationarXiv · 2026
- Mobile AI Factory: Building Specialized Language Models for Your Mobile DevicearXiv · 2026
- VAST: Compiling Grounded Vulnerability Scenarios into Verifiable, Multi-Step Environments for Evaluating LLM Red-Team AgentsarXiv · 2026
- Analysis of Local Open-Weight LLM Agents on Vulnerability-Reproduction TasksarXiv · 2026
- Large Language Model Powered Symbolic ExecutionProceedings of the ACM on Programming Languages · 2025
- CVE-Pilot: Failure-Aware Tool Orchestration for Code LLM Agents on CVE-BenchApplied Sciences · 2026