Benchmarking Large Language Models for IoC Recovery under Adversarial Code Obfuscation and Encryption

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Morales, Jaime, Pastrana, Sergio, Tapiador, Juan
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915990906863616
author Morales, Jaime
Pastrana, Sergio
Tapiador, Juan
author_facet Morales, Jaime
Pastrana, Sergio
Tapiador, Juan
contents Software obfuscation and encryption present persistent challenges for program comprehension and security analysis, particularly when adversaries conceal Indicators of Compromise (IoCs) such as IP addresses within source code. While Large Language Models (LLMs) have recently demonstrated remarkable progress in code reasoning and transformation, their resilience against adversarial concealment techniques remains largely uncharted. This paper introduces a systematic benchmark for secret detection under adversarial code transformations, designed to evaluate the capacity of LLMs to recover IoCs embedded in obfuscated and encrypted JavaScript programs. We construct a dataset of 336 programs, progressively transformed through 12 levels of obfuscation and cryptographic concealment (including XOR and AES-256), to emulate realistic threat scenarios. An automated evaluation framework standardizes LLM queries and responses, enabling reproducible, large-scale testing across diverse models. Our results reveal a dichotomy: while LLMs exhibit high success against lightweight transformations such as variable renaming and Base64 encoding, encryption-based concealment severely degrades detection performance. These findings establish encryption as a critical frontier for LLM-driven code analysis and highlight both current limitations and avenues for advancing automated threat intelligence.
format Preprint
id arxiv_https___arxiv_org_abs_2605_06910
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Benchmarking Large Language Models for IoC Recovery under Adversarial Code Obfuscation and Encryption
Morales, Jaime
Pastrana, Sergio
Tapiador, Juan
Cryptography and Security
K.6.5; I.2.7
Software obfuscation and encryption present persistent challenges for program comprehension and security analysis, particularly when adversaries conceal Indicators of Compromise (IoCs) such as IP addresses within source code. While Large Language Models (LLMs) have recently demonstrated remarkable progress in code reasoning and transformation, their resilience against adversarial concealment techniques remains largely uncharted. This paper introduces a systematic benchmark for secret detection under adversarial code transformations, designed to evaluate the capacity of LLMs to recover IoCs embedded in obfuscated and encrypted JavaScript programs. We construct a dataset of 336 programs, progressively transformed through 12 levels of obfuscation and cryptographic concealment (including XOR and AES-256), to emulate realistic threat scenarios. An automated evaluation framework standardizes LLM queries and responses, enabling reproducible, large-scale testing across diverse models. Our results reveal a dichotomy: while LLMs exhibit high success against lightweight transformations such as variable renaming and Base64 encoding, encryption-based concealment severely degrades detection performance. These findings establish encryption as a critical frontier for LLM-driven code analysis and highlight both current limitations and avenues for advancing automated threat intelligence.
title Benchmarking Large Language Models for IoC Recovery under Adversarial Code Obfuscation and Encryption
topic Cryptography and Security
K.6.5; I.2.7
url https://arxiv.org/abs/2605.06910