← Latest papers
💻 computer science

Evaluating LLMs for Obfuscation Detection and Classification in Android Apps

This paper presents a large-scale empirical study evaluating the capability of off-the-shelf Large Language Models to detect and classify code obfuscation in Android applications through semantic reasoning, comparing their performance against traditional static analysis tools across diverse datasets and experimental conditions.

Original authors: Luca Ferrari, Marco Alecci, Jordan Samhi, Tegawende' F. Bissyande', Jacques Klein, Mariano Ceccato, Luca Verderame

Published 2026-06-15
📖 4 min read☕ Coffee break read

Original authors: Luca Ferrari, Marco Alecci, Jordan Samhi, Tegawende' F. Bissyande', Jacques Klein, Mariano Ceccato, Luca Verderame

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a secret recipe for a delicious cake. To keep people from stealing it, you decide to rewrite the recipe using a secret code: you change "sugar" to "X99," "flour" to "Z12," and you scramble the order of the steps so it looks like a chaotic mess, even though the cake still tastes exactly the same. In the world of Android apps, developers do this to protect their code from hackers and competitors. This process is called obfuscation.

The problem is that this secret code also makes it very hard for security experts (the "good guys") to check if the app is safe or if it has hidden traps (vulnerabilities). Traditional security tools are like old-fashioned spell-checkers; they look for specific patterns or known "bad words." If the code is scrambled in a new way, these tools often get confused and miss the problem.

The Big Question
This paper asks a simple question: Can modern "AI brains" (Large Language Models, or LLMs) read this scrambled code and figure out, "Hey, this looks like it's been hidden," without needing a rulebook?

Think of LLMs not as spell-checkers, but as super-smart detectives who understand the story and logic of the code, even if the names and steps are changed.

How They Tested It

The researchers set up a "training gym" for these AI detectives:

  1. The Controlled Gym (The Benchmark): They took 10 clean, honest apps and used a machine to scramble them in 11 different ways (like renaming everything, hiding strings, or twisting the logic). This gave them a perfect "answer key" to see if the AI was right.
  2. The Real World (The Jungle): They then took 1,000 real apps from the Google Play Store and asked the AI to spot the scrambled ones. Since they didn't know the answer beforehand, they manually checked a small sample to see if the AI was telling the truth.

What They Found

The results were surprisingly good, like finding a needle in a haystack that the AI could actually see.

  • The AI is a Great Detective: The best AI models (specifically one called gpt-5-mini) could spot obfuscated apps with incredible accuracy. They achieved a score of 0.88 (out of 1.0), meaning they were right almost 9 times out of 10.
  • Better Than the Old Tools: When compared to the current standard security tools (the "old spell-checkers"), the AI detectives were vastly superior. The old tools often missed the scrambled apps entirely or cried "wolf" (false alarms) too often. The AI, however, understood the intent of the code.
  • What They Caught Best: The AI was a master at spotting renaming tricks. If an app changed "Login" to "a1b2c3," the AI knew immediately. It was like a detective noticing that everyone in a room is wearing a mask.
  • What Was Harder: The AI struggled a bit with more complex tricks, like Reflection (where the app hides its moves until the very last second). These are like magicians who hide their tricks so well that even the detective needs a second look.

The "Secret Sauce"

The researchers found that the AI worked best when you gave it a detailed instruction manual (a specific "prompt"). Instead of just saying, "Is this code hidden?", they told the AI, "Look for these specific types of hiding tricks, like renaming or scrambling logic." This helped the AI focus its superpowers.

The Bottom Line

This paper proves that AI can act as a powerful new tool for spotting hidden code in Android apps.

  • It doesn't need to be trained: You don't need to teach the AI from scratch; you can just use the off-the-shelf models available today.
  • It understands the "why": Unlike old tools that just look for patterns, the AI understands the logic, making it harder for hackers to trick it with new tricks.
  • It's not perfect yet: It's not a magic wand that solves everything instantly, and it's slower than some older tools, but it is much more accurate.

In short, the paper shows that while hackers are getting better at hiding their tracks, our new AI detectives are learning to see through the disguises better than ever before.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →