Obfuscation was counting on the analyst getting tired
SDK protections that relied on the cost of human analysis have become cheap to break with AI. What that changes for anyone protecting biometric capture.
In the previous article I wrote about injection attacks and why a PAD report doesn’t cover that path. I closed by saying that AI was accelerating the problem. Now I want to get into one specific point: reverse engineering capture SDKs.
A large part of the protection against injection runs on the device, inside the SDK itself. And a large part of that protection has always rested on an assumption few people state openly: understanding the protected code takes so much work that almost nobody will try. With AI, that has changed a lot.
How the flow usually works
Before talking about reverse engineering, it helps to understand what it has to break. Most serious liveness solutions follow a similar flow, whether in an app or in the browser.
First, the SDK opens a session on the vendor’s server and gets back some kind of session key or token, which is valid only once and expires within a few minutes. Then the SDK captures the face, runs the local checks and builds the package it will send to the server. In that package it combines the session key with keys embedded in the SDK itself, then signs and encrypts everything. Finally, the server checks that the session is valid and the signature matches, decrypts, and only then runs the liveness check.
Because the session key works only once, nobody can record a valid package and replay it later. The signature stops anyone from changing the content on its way from the device to the server, and the encryption stops anyone watching the traffic from understanding what is being sent. Against an attacker who can only see the network, that is solid protection.
But one thing about this model has always bothered me: the fraudster isn’t just watching the network. The phone, or the browser, belongs to them. The embedded keys, the logic that builds the package and the local checks are all right there, on a device they can open, debug and tamper with at will. If they understand how the SDK builds and signs the package, they can make the SDK sign whatever they want, including an injected video. In other words, the cryptography guarantees that the package came out of the SDK, not that the content came from the camera.
That is why the last line of defence on the device is making it hard for the attacker to understand the SDK. And that is where obfuscation comes in.
What the SDK tries to protect on the device
Besides building the package, a modern capture SDK tries to find out whether it is running in an emulator, whether an instrumentation tool is attached to the process, whether the app has been modified, and whether the camera is real or virtual. In the browser, the equivalent is trying to detect automation, virtual cameras and tampering with the JavaScript itself.
All these checks, together with the embedded keys and the package-building logic, live in the SDK’s code, which is in the attacker’s hands. To make things harder, vendors use obfuscation: meaningless names, scrambled control flow, encrypted strings, sensitive logic hidden in native code, scattered and redundant checks. The idea was never to prevent analysis, only to make it expensive enough not to be worth it.
Why it worked
It worked because understanding obfuscated code is exhausting. An obfuscated SDK becomes thousands of nameless functions with deliberately chopped-up flow, and to find the check that matters someone has to read, test a hypothesis, get it wrong, take notes and slowly build a mental map of the whole thing, over days or weeks. Few people can do this well, those who can charge a lot, and many give up halfway.
The tools have always existed: decompilers, debuggers, instrumentation frameworks. They help open the code, but they don’t understand anything for you. Putting the pieces together was the analyst’s job, and the vendor was counting on that fatigue.
And there was a bonus: with every new SDK version, with the obfuscation regenerated, much of the map was lost and the analyst started again almost from scratch.
What AI changed
AI can do some things a human simply can’t, and the main one here is reading messy code without getting tired and without stopping. It looks at an obfuscated function at three in the morning with the same attention as the first, says what it seems to do, gives things names that make sense, reconstructs the flow and recognises what an emulator or integrity check looks like. And it doesn’t do this one function at a time. It does it with hundreds at once.
With agents, it goes further. The model runs the tools on its own, tests a hypothesis, gets it wrong, tries another, gets it wrong again, without getting frustrated and without dropping the problem on a Friday afternoon. It can test thousands of hypotheses in the time a person would test half a dozen. The map an analyst took weeks to build in their head is now built by the machine, and the human’s role becomes checking and deciding.
That doesn’t mean it is always right. In one of the solutions I analysed, which I describe below, it misread the code a few times and I had to correct its course. But for whoever is doing the protecting, that matters little. The defence depended on few people being able to do this work, and today someone with average knowledge, backed by a model, gets where only a specialist used to.
This is already showing up in real attacks. In 2025, Anthropic reported an espionage campaign in which the model carried out reconnaissance of the targets in a fraction of the time a human team would have needed, with little intervention from the operators.
What I saw in practice
Over the past few months I analysed, with the help of AI, three well-known solutions on the market. So far I have looked only at browser capture, that is, the code that runs in the user’s browser. I won’t name any of them, because of confidentiality clauses and because the point here is to show the pattern, not to single out a vendor.
First, a confession that matters for the rest. I have a degree in computer engineering and experience with native code, but I was never a reverse engineering specialist. My work has always been biometrics and fraud prevention, not taking software protection apart.
The first solution had real protection: several layers of obfuscation, part of the sensitive logic compiled to WebAssembly, redundant checks. It was the only one where the AI needed a lot of guidance, and there were moments when it simply misread the code and I had to correct its course. Even so, I got to the end. And to be completely honest, without AI I most likely wouldn’t have made it. I would have got stuck somewhere along the way and given up, as happens to most people who try.
The second had obfuscation, but more superficial. The AI mapped where the checks were almost on its own, and my role was more checking than steering.
The third had almost no client-side protection. It didn’t even take AI to understand the essentials, and the AI only sped up what would already have been quick.
Two things caught my attention, and I believe they also hold for native SDKs, which I still want to test. The first is the huge difference between solutions that look equivalent in their sales material. The second is that even the best-protected one is no longer a job only for specialists. It has become something within reach of someone like me, who understands software but doesn’t come from reverse engineering, with an AI at their side and some patience.
“But the models have guardrails”
That is the first objection I usually hear, and it doesn’t hold up, for two reasons.
First, there are open models anyone can download and run locally, with none of those protections. Some were even trained specifically to work with compiled code.
Second, reverse engineering breaks down into pieces that look harmless. “Explain what this function does” or “rename these variables based on how they’re used” are requests any developer makes every day. No guardrail can tell that apart from an attack by looking at a single request.
A model’s guardrail is a layer of protection belonging to the model’s provider. It is not a security control of your product, and nobody should rely on it as if it were.
So is there no way out?
There is. Obfuscation hasn’t become useless: it still raises the cost and keeps less dedicated attackers away. It just can’t be the main protection any more. Anyone designing the security of a capture SDK today has to assume the code will be read and understood, sooner or later.
And there are techniques that make the attacker’s life considerably harder, even with an AI on their side and even in the browser, which is the most exposed environment of all. If you are responsible for a capture solution and want to understand where it is most vulnerable, that is exactly the kind of conversation I’m interested in having.
There is one thing, though, that any vendor can and should do right away: put an AI to work trying to understand and bypass its own protections. If it succeeds in an afternoon, it’s better that you find out before the fraudster does.