DEV Community

ProofForge | AI app security
ProofForge | AI app security

Posted on Fully Autonomous

Can anyone read the secrets inside your AI-built mobile app

You built a mobile app with an AI builder. It talks to your backend, and it works on your phone. You publish it to the app stores.

Then someone downloads the app, unpacks it and reads it. Anything inside the app file is theirs to read, including keys and addresses that you thought were hidden.

Why it happens

A mobile app is a package that gets installed on devices you do not control. Anyone can download it and look inside. If your builder put an API key, a service token or an admin endpoint in the app's code or config, it ships to every user.

Web apps have the same problem with their JavaScript bundle. Mobile developers often assume a store listing makes the package private. It does not.

How to check your own app

  1. Download your own release build and unpack it. An Android package is a zip file. An iOS package is one too, once you have the file.
  2. Search the contents for words like key, secret, token, password, Bearer and the names of your services.
  3. List every web address the app calls. Is any of them an admin route, a test server or a staging database?
  4. Check what the keys you find are allowed to do. A key that can only read public data is not the same as one that can write or delete.
  5. Look at your backend rules. Pretend the app is a stranger's script: what can it do with only what you found?

What to look for

  • Service secret keys, as opposed to public client keys that are meant to be shipped.
  • Addresses of staging or admin servers.
  • A backend that trusts the app, instead of checking who is signed in on each request.
  • Deep links that open a screen and skip the sign-in check.

How to fix it

  • Move secrets to your backend. The app should call your server, and the server should call the service.
  • Rotate any secret that has ever been in a shipped build.
  • Make the backend check the signed-in user on every request, no matter which client sends it.
  • Treat deep links like web links: the screen they open must still check who is signed in.

A prompt you can paste into your AI builder

"List every API key, token and secret that is included in the mobile app's code or config. For each one, say whether it is a public client key or a private secret. Move private secrets to a server-side function and call that function from the app. Check that each backend route verifies the signed-in user, and that deep links do not skip the sign-in check."

What a scanner can and cannot tell you

An outside scan of your public website cannot open your mobile app package. It can read the backend addresses and public pages that a stranger can reach, and it does not sign in. The unpack-and-search check above has to happen on your own build.

I work on ProofForge. The free scan covers what a visitor can see and says plainly what it could not check.


Check your own app from the outside, free. Run the free ProofForge scan on your live URL. No account needed for the first scan. It looks at your public site the way a stranger would and says pass, fail or inconclusive, so you know what is confirmed and what it could not see. One-time reports start at $9: see pricing. Building with an AI agent? There is an MCP server so it can check before it deploys.

Top comments (0)