More Context, Mixed Results: Evaluating LLMs for Identifier Recovery and Code Deobfuscation
Simon Queyrut, Valerio Schiavoni, Giuseppe Antonio Di Luna, Daniele Cono D'Elia, Leonardo Querzoni, Pascal Felber
Abstract
Source code is often obfuscated through identifier renaming, incentivizing reverse engineers to develop techniques for recovering meaningful names. To assess how LLMs compare with these techniques, we evaluate 4 traditional baselines and 3 LLMs (Qwen, OLMo and DeepSeek) on identifier detection and semantic recovery across 51 recent Java projects, 3 obfuscators, and 6 context/retrieval settings. LLMs generally outperform traditional techniques on both tasks, but benefit from different forms of context and settings: agentic retrieval yields the strongest detection results, reaching 91.56% F1, while enclosing-class context generally improves semantic recovery at a higher token cost. Despite these gains, exact recovery peaks at 16.42% overall (under one-hop context) and 32.93% for field names (under repository retrieval), which are the easiest to recover. Class identifiers are the hardest to detect, with a mean detection F1 of 48.48% across models, settings and obfuscators. More context is not always beneficial: larger methods hinder semantic recovery. Beyond identifier renaming, our experiments show that control-flow obfuscation degrades both tasks more than string encryption. Our findings provide useful ad hoc insights for reverse engineers choosing models and context strategies to deobfuscate code snippets.
Create a lesson
Related papers
Think Before You Code: A Benchmark for Testing LLMs on Software Engineering Deliberation
Shared title terminology · Ashman Mehra
Reliable Mining of Heterogeneous AI Coding-Agent Data: Context-Aware Prediction and Resource-Aware Ranking
Shared title terminology · Haoran Yu, Lifei Liu, Danping Zhang
Beyond Benchmarks: Evaluating Large Language Models and Agentic Patterns for Static Code Analysis Warning Classification
Shared title terminology · Lakmal Deshapriya, Sherlock A. Licorish, Brendon J. Woodford et al.
Context Matters: Improving LLM-Based Code Summarization with Hierarchical Information
Shared title terminology · Alexandre Petrachini, Breno Bernard Nicolau de França, Guido Araujo
Choosing Quantized Code LLMs by File Size and Energy per Solved Task
Shared title terminology · Aditi Patodiya
Beyond Source Code: Evaluating Natural Language Specifications for LLM-Based C-to-Rust Translation
Shared title terminology · Biruk Tadesse, Lawrence Arkoh, Marcelo D'Amorim et al.