SINOON

Reverse engineering with AI: what's exposed in your app and how to protect it

By Christian Alves, founder of SINOON
5 min
SecurityReverse engineeringDevelopment

Everything that ships to the user's device can be analyzed: mobile apps, desktop programs, browser extensions and your website's JavaScript. With tools such as REA, that analysis became faster and more accessible. Protection doesn't come from hiding the code, but from not putting in it what can't leak: API keys, passwords, rules that should run on the server and other customers' data.

A phone on a wooden table showing a padlock icon
Photo: Dan Nelson / Unsplash

What changed with AI

Analyzing an app was always possible, but it took time and rare expertise. With tools such as REA, which went viral in October 2026, an AI agent operates analysis programs such as Ghidra and JADX, reads JavaScript, Electron, .NET and Android apps and returns conclusions in plain language.

That doesn't create new vulnerabilities. It makes the old ones easier to find, for defenders and attackers alike. The question for anyone who publishes software has become: what can someone extract from my app in an afternoon?

What's exposed in your app

Everything that runs on the user's device can be read: the mobile app, the desktop program, the browser extension and your website's JavaScript. The most common findings:

  • ✓API keys and tokens written in the code, including for paid AI services.
  • ✓Addresses and parameters of your internal APIs.
  • ✓Business rules that should live on the server, such as plan limits, discount calculations and unlocking paid features.
  • ✓Hidden and experimental features, enabled by flags in the app itself.
  • ✓Debug messages and comments that reveal the system's structure.
  • ✓Third-party libraries and their versions, which may have known vulnerabilities.

The size of the problem

Credentials exposed in code are an old problem that keeps growing. GitGuardian's State of Secrets Sprawl 2026 report counted 28.65 million new secrets (keys, passwords and tokens) exposed in public GitHub repositories in 2025, up 34% from the previous year. Secrets for AI services totaled 1.27 million, up 81%.

The same report showed that commits made with Claude Code's help leaked secrets in 3.2% of cases, versus 1.5% on public GitHub overall. The takeaway isn't that one tool is worse than another: code written faster needs more review.

What the security references say

The OWASP Mobile Top 10, the main reference for mobile app risks, puts improper credential usage (M1) first and includes insufficient binary protection (M7), which deals precisely with reverse engineering and app tampering.

The lesson is in the order of the items: protecting the binary with obfuscation and integrity checks raises the cost of analysis, but doesn't prevent it. What solves it is not putting in the app what can't leak.

Protection checklist

Before your next release, check these eight points:

  • ✓No secrets in the app: keys for paid services stay on the server, which makes the calls on the user's behalf.
  • ✓Rules on the server: price, discount, plan limits and permissions are decided on the back end, never in the app.
  • ✓Authorization on every request: the server checks who the user is and what they can do, without trusting what the app says.
  • ✓Secrets scanning: turn on secret detection in the repository and the release pipeline, and rotate any exposed key immediately.
  • ✓Obfuscation as an extra layer: in mobile apps, obfuscation and integrity checks make analysis and tampering harder.
  • ✓Clean up before publishing: remove debug messages, internal comments and test features from the final package.
  • ✓Dependencies up to date: update libraries and follow vulnerability alerts.
  • ✓Monitoring: usage limits and alerts for abnormal call patterns to your APIs.

Use the same AI in your favor

If anyone can analyze your app with an agent, the first should be someone on your team. Running an authorized analysis on your own product, before every major release, shows what an attacker would see. To understand the legal limits of analyzing software, including third-party software, see is software reverse engineering a crime?.

It's also worth having a channel for researchers to report flaws. A security.txt file on your website, standardized by RFC 9116, points to the responsible team's contact.

The human factor

Most leaks don't come from sophisticated attacks, but from routine: the key pasted into the code for a test, the debug feature left in the final version, the AI-generated code nobody reviewed. That's solved with process and training.

In our AI training for teams, we include the safe use of coding assistants, and in our AI consulting we help define the usage policy and review data risks. For the full picture, read the guide to reverse engineering with AI.

Frequently asked questions

Does obfuscating the code solve it?

Not on its own. Obfuscation increases the time and cost of analysis, but doesn't prevent it. Real protection is not putting secrets and critical rules in the app.

Does my website's JavaScript expose my keys?

Everything sent to the browser can be read by any visitor. If a key appears in front-end code, including environment variables bundled into the site, it's public. Private keys need to stay on the server.

How do I know if a key has already leaked?

Secret scanning tools analyze the repository and the commit history. When you find an exposed key, rotate it immediately: deleting it from the code isn't enough, because it remains in the history.

My app was analyzed by a third party. Is that illegal?

It depends on what was done with the analysis. Copying code, bypassing protections or using flaws to break into systems are illegal; the analysis itself is a gray area. Consult a lawyer.

Is reverse engineering with AI also useful for defense?

Yes. Analyzing your own app, with authorization, is one of the most efficient ways to discover what's exposed before someone else does.

Put AI to work in your company

Talk to the SINOON team and find out which agent, squad or engagement makes sense for where you are now.

Custom AI agents, automation squads, consulting and team training.