From Billion-Scale to Million-Scale Language Models: Operational Capabilities for Embedded Post-Exploitation
Gabriel Hortea, Simon Pietro Romano, Juan Tapiador, Mario Varlese
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.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
Related papers
Living off the Local Model: Abusing Browser-Embedded Language Models for Post-Exploitation
Shared title terminologycs.CRWilliam Fleshman, Joseph Lucas
My Credentials, Please: Detecting Filesystem Capability Laundering in MCP Servers at Scale
Shared title terminologycs.CRZeqian Huang, Mingyue Tang, Aonan Guan et al.
Encoded but Exposed: Language Embeddings can Reveal More Than They Should in Recommender Systems
Shared title terminologycs.CRLinda Beková, Rodrigo Alves
Quantum-Annealing-Assisted Search-Space Reduction for Large-Scale Shortest-Path Computation
Shared title terminologycs.CRKasymkhan Khubiyev, Yaroslav Kholodov, Alexey Petrenko
When Being Wrong Is Right: Reverse-Capability Audio CAPTCHAs through Psychoacoustic Design
Shared title terminologycs.CRMingjie Bao, Yu Dai, Guangke Chen et al.
Reporting Differential Privacy Guarantees via Operationally Equivalent \varepsilon: What Does \varepsilon=19.61 Mean for the 2020 U.S. Census?
Shared title terminologycs.CRMasayuki Terada, Shinsuke Ito, Takumasa Ishioka et al.