← Latest papers
💻 computer science

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

This paper introduces a systematic benchmark and dataset of 336 obfuscated and encrypted JavaScript programs to evaluate Large Language Models' ability to recover Indicators of Compromise, revealing that while LLMs effectively handle lightweight transformations like variable renaming and Base64 encoding, their detection performance severely degrades against cryptographic concealment methods such as XOR and AES-256.

Original authors: Jaime Morales, Sergio Pastrana, Juan Tapiador

Published 2026-05-12
📖 4 min read☕ Coffee break read

Original authors: Jaime Morales, Sergio Pastrana, Juan Tapiador

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 are a digital detective trying to find a hidden clue (like a specific IP address) inside a piece of code. Usually, this is easy: the clue is written plainly, like a name on a piece of paper. But what if the bad guys hide that clue? They might write it in a secret code, scramble the letters, or lock it inside a safe.

This paper is a report card for Large Language Models (LLMs)—the smart AI chatbots we use today—on how well they can act as these detectives when the clues are hidden.

Here is the breakdown of their investigation:

The Setup: A "Hide and Seek" Game

The researchers created a massive game of hide-and-seek.

  • The Players: They tested five famous AI models (like ChatGPT, Gemini, Claude, Grok, and Cohere).
  • The Clue: A fake "Indicator of Compromise" (IoC), which is just a fancy term for a suspicious IP address (like a phone number of a bad guy).
  • The Hiding Spots: They took 336 pieces of computer code and hid the clue inside them using 12 different levels of difficulty.
    • Level 1-4 (The Easy Hiding Spots): They just renamed variables (calling "IP_Address" something like "x99"), added useless junk code to confuse the eye, or used simple encodings like Base64 (which is like writing a message in a secret alphabet that anyone can easily decode).
    • Level 5-6 (The Hard Hiding Spots): They locked the clue inside a cryptographic safe. They used strong encryption (XOR and AES-256). Crucially, they left the key to the safe right there in the code, just like a real hacker might do.
    • Level 7-12 (The Nightmare Hiding Spots): They combined the locked safe with all the confusing renaming and junk code.

The Results: The "Light Switch" Effect

The results were surprising and very clear. They didn't see a slow decline in performance; they saw a light switch.

1. The "Easy" Hiding Spots (Levels 1–4):
When the clue was just scrambled or renamed, the AI detectives were amazing.

  • Most models found the clue 100% of the time.
  • They were like kids playing hide-and-seek who can easily spot a shoe sticking out from behind a curtain. They recognized the patterns even when the words were changed.

2. The "Hard" Hiding Spots (Levels 5–12):
The moment the researchers used encryption (the safe), the AI's performance crashed.

  • Even though the key was sitting right there in the code, the AI models could not open the safe.
  • They went from finding the clue 100% of the time to finding it almost 0% of the time.
  • The Analogy: Imagine you have a locked box, and the key is taped to the outside of the box. A human detective would look at the key, put it in the lock, and open it. The AI, however, looked at the box and the key, but instead of trying to unlock it, it just said, "I can't see what's inside," or guessed a random number.

The "Guessing" Problem

When the AI couldn't find the clue, some of them started hallucinating (making things up).

  • One model (Gemini) made up fake IP addresses about 5% of the time.
  • The Pattern: When the AI got stuck, it didn't just say "I don't know." It often guessed a very common private address (like 192.168.17.101).
  • The Metaphor: It's like a student taking a test who doesn't know the answer. Instead of leaving it blank, they write down "The answer is probably 42" because they've seen that number a lot in other tests. The AI was just guessing based on what it had seen before, not actually solving the puzzle.

The Big Takeaway

The paper concludes with a simple truth:

  • AI is great at reading messy handwriting. If the code is just scrambled or renamed, the AI can figure it out.
  • AI is terrible at cracking safes. If the code is encrypted, the AI hits a wall. It doesn't have the ability to "think" through the math of the encryption, even if the key is right in front of it.

In short: These AI tools are excellent for finding hidden clues in plain sight, but they are currently useless against code that has been locked up with strong encryption. They can't "unlock" the mystery; they can only read what is already visible.

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 →