← Latest papers
💻 computer science

Insecurity Through Obscurity: Veiled Vulnerabilities in Closed-Source Contracts

This paper introduces SKANF, a novel EVM bytecode analysis tool that demonstrates how code obfuscation in closed-source smart contracts often conceals rather than prevents vulnerabilities, successfully detecting flaws in over 1,000 real-world MEV bots and generating exploits with a potential value of $10.6 million.

Original authors: Sen Yang, Kaihua Qin, Aviv Yaish, Fan Zhang

Published 2026-06-11
📖 5 min read🧠 Deep dive

Original authors: Sen Yang, Kaihua Qin, Aviv Yaish, Fan Zhang

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 the blockchain (like Ethereum) as a giant, public glass house. Inside this house, everyone can see the blueprints of every machine (smart contract) that runs there. Usually, this is a good thing because it means no one can hide a trap. But, some machine builders decide to wrap their blueprints in layers of fog, paint over the diagrams, or build secret passages that only they know how to navigate. They do this to keep their business secrets safe or to stop people from stealing their ideas.

The paper "Insecurity Through Obscurity" argues that while these builders think they are making their machines safer by hiding them, they are actually making them more dangerous. By hiding the blueprints, they accidentally hide the broken locks and open windows, too.

Here is a simple breakdown of what the researchers did and found:

1. The Problem: "Hiding the Keys"

The researchers noticed that many of the most active machines in this glass house are "closed-source" (no blueprints available) and "obfuscated" (the code is scrambled).

  • The Analogy: Imagine a bank vault where the security guard is wearing a blindfold and the alarm system is written in a secret code. The bank owner thinks, "If no one can read the code, no one can hack it!"
  • The Reality: Because the code is so messy, even the bank's own security experts can't see that the vault door is actually wide open. The "obscurity" (hiding) creates "insecurity."

2. The Tool: "The Fog-Clearing Robot" (skanf)

The authors built a new tool called skanf (named after the four researchers: Sen, Kaihua, Aviv, and Fan). Think of skanf as a high-tech robot equipped with a special flashlight and a decoder ring.

  • Step 1: Clearing the Fog (Deobfuscation): The robot scans the scrambled code. It knows that in this specific type of machine (EVM), every secret door must have a specific "Do Not Enter" sign (called a JUMPDEST). The robot finds all these signs and redraws the map, turning the secret, winding paths into a clear, straight line. Suddenly, the hidden doors are visible.
  • Step 2: Using History as a Guide (Seeded Execution): The robot doesn't just guess how the machine works. It looks at the machine's past behavior (historical transactions) to see where it usually goes. It uses these past trips as "seeds" to guide its exploration, helping it find dangerous paths much faster than a robot guessing in the dark.
  • Step 3: The Test Drive (Exploit Generation): Once the robot finds a broken lock (a vulnerability), it doesn't just report it. It actually builds a "key" (an exploit) to try and open the door. If the key works, it proves the machine is truly vulnerable.

3. The Test Bed: MEV Bots

To test their robot, the researchers looked at MEV bots.

  • The Analogy: Imagine a fleet of high-speed race cars (bots) that drive around a track (the blockchain) looking for tiny gaps in traffic to squeeze through and make a quick profit. These cars are very fast, handle huge amounts of money, and their drivers (searchers) are very secretive about how their engines work.
  • Why they chose them: These bots are often closed-source and scrambled, making them the perfect test subjects for a tool designed to see through fog.

4. The Findings: A Lot of Open Doors

The results were startling:

  • The Scan: The robot scanned 6,554 of these race cars.
  • The Discovery: It found that 1,030 of them had broken locks (vulnerabilities) that could let thieves steal their fuel (crypto assets).
  • The Proof: The robot successfully built working keys for 394 of these cars.
  • The Cost: If a thief had used these keys, they could have stolen over $10.6 million.

5. Real-World Evidence: The "Phishing" Trap

The researchers also looked back at history to see if anyone had already stolen from these cars.

  • The Attack: They found 104 real-life thefts. The thieves used a clever trick called "MEV Phishing."
  • How it works: Imagine a thief leaves a fake, shiny gold bar (a fake opportunity) on the track. The race car driver sees it, thinks it's a great profit, and drives over to pick it up. But the gold bar is actually a trapdoor. When the car drives over it, the trapdoor opens, and the thief steals the car's fuel.
  • The Loss: These real-world thefts had already cost the drivers about $2.76 million.
  • The Missed Opportunity: The researchers found that their robot (skanf) could have spotted the broken locks in most of these stolen cars before the theft happened.

6. The Conclusion

The paper concludes that hiding your code doesn't make you safe; it just makes it harder for you to see your own mistakes.

  • For the Builders: If you are building a machine that holds money, you need to be able to see your own blueprints clearly. Hiding them might protect your secrets, but it leaves your money exposed.
  • The Takeaway: The researchers showed that with the right tools (like skanf), we can clear the fog, find the broken locks, and fix them before the thieves arrive.

In short: Don't hide your security flaws in the dark; shine a light on them so you can fix them.

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 →