All articles

Security26 February 202611 min read

We can often hack a Claude app within a minute. Here is what that means for your app

Give us your Claude app and we can often hack it within a minute. Not to scare you, but to be clear: AI builds incredibly fast, but you should never leave security to the AI itself.

Give us any app you have built with Claude, Cursor or Lovable, and we can often break into it within a minute. Sounds arrogant? It is reality. And even after 5 rounds of corrections in which the AI solemnly assures you that everything is now watertight, we often still manage it quickly. It is not a problem that this is the case. It only becomes a problem if you think otherwise.

Close-up of a laptop with code on a dark screen

Often within a minute

We do it almost every day. Someone sends us their ZIP file or gives us a live URL. Before the coffee has gone cold, we have access to the database, can log in as admin, or are inside a panel we were never meant to reach. Not because the AI writes bad code, but because AI tools do not have defensive thinking built in. They build what you ask for, not what an attacker tries.

< 1 minis often enough to break an AI-built app
5 roundsof AI corrections still do not make it secure

Why AI tools do not "get" security

An AI coding tool optimises for working features, readable code and fast results. What it does not do is think like an attacker. An attacker does not send normal input. They send an empty string, an SQL injection, a huge payload, a request on behalf of another user, or hit an endpoint the developer forgot to lock down.

Ask an AI to add a feature, and it adds it. Ask whether the app is secure, and it confidently says "yes". Ask where the weak spots are, and you get a list of theoretical concerns, not concrete bugs. Never trust that self-assessment. It is like asking a student to mark their own exam.

Stories from the field: 8 issues we have already fixed

A selection of what we came across in recent months, ranked by how often we see them. No theory: these were real, working apps from clients who gave us their ZIP.

  1. API key visible in the browser

    A Lovable app with the Supabase service key in the frontend bundle. With that one key we could read the entire database, view all users and delete records. Our fix: a backend layer between the frontend and the database, only anonymous keys in the browser, service keys in encrypted environment variables.

  2. Admin routes without a check

    A Cursor app with /admin/users that worked without any authentication at all. Anyone who knew the path could create or delete users, or log in as any user. Our fix: middleware that verifies the role on every admin route, plus rate limiting on login attempts.

  3. Row-level security that did not work

    A v0 app with RLS policies in the database that looked correct at first glance. Testing showed they only applied to authenticated requests, not to service-role requests made by the app itself. Every user could see everyone else's data. Our fix: RLS reviewed table by table, explicit user context in every query, and penetration tests with multiple accounts.

  4. Passwords in plain text

    A Claude Code app that stored passwords unhashed in the database. In a data breach, every user could be exploited immediately, often on other services too. Our fix: bcrypt or Argon2 hashing, a password reset flow, advice on MFA and a clear breach procedure.

  5. SQL injection via a filter parameter

    A dashboard where you could choose a sort order through the URL. The parameter was put straight into the SQL query. With one modified URL we could read the entire user table, including password hashes and email addresses. Our fix: all queries through an ORM with parameterised queries, an allow-list of permitted sort columns, validation on all input.

  6. IDOR: other users' data via IDs

    A SaaS app where /api/orders/123 showed the order of customer 123. Change 123 to 124 and you saw another customer's order. No permission check at object level. Our fix: every read operation checks whether the current user owns the object, plus audit logs of all access patterns.

  7. No rate limiting on login

    An AI-generated login screen with no limit at all on the number of attempts. With a script we could try 1,000 passwords per minute. For a user with a weak password, that is over within seconds. Our fix: exponential backoff per IP and account, a captcha after 3 failed attempts, alerts for suspected brute-force attacks.

  8. Unrestricted file uploads

    A Claude app with an upload form that accepted every file type and every size. We uploaded a 5GB file, and the whole app became unusable. An attacker could also place executables that could later be run via another route. Our fix: a maximum file size, an allow-list of extensions, virus scanning, storage outside the web root.

The most dangerous illusion: "Claude says it is secure"

We see it so often that we have a name for it: the "secure-according-to-the-AI" effect. You ask your AI whether the code is secure. It says it looks fine, mentions a few best practices that have been applied, and gives you the feeling that all is well.

Then we scan the same code and find three serious issues within a few minutes. Not because the AI lied, but because it does not know what it does not know. It sees the code, not the gap in how it is protected.

AI self-assessment

"Yes, this is secure"

Gives a reassuring answer based on visible patterns in the code. Consistently misses logical gaps, forgotten endpoints and context issues.

Independent audit

"Here are 7 problems"

Specialists with an attacker's mindset, structured checklists, automated scanning tools and manual tests find what the builder cannot see.

Employee writing on a whiteboard

The checklist you should work through

We assess the points below as standard for every app we take on for maintenance. You can also go through them yourself, but be aware: even if you answer "yes" to everything, that does not mean your app is secure. It means the known mistakes have been avoided.

  1. No secrets in the frontend code

    Open your deployed app in the browser, press F12 and search the bundle for "key", "secret" and "token". If you find anything: it is public. Assume the whole world already has it.

  2. Authentication on every protected route

    Click through all the admin, management and owner functions in your app. Open an incognito window and paste the URL into it. Do you get access? Then there is no middleware on it. There should be.

  3. Object-level permissions

    Create two accounts. View data from account A. Change the URL to the ID of account B's data. Can you see it? Then object-level authorisation is missing. A classic.

  4. Rate limiting on sensitive endpoints

    Login, password reset, registration, OTP requests. Test whether you can make 100 attempts per minute. If you can, you are a target for brute-force attacks.

  5. Input validation on all parameters

    Send empty strings, huge strings, SQL injection attempts and JavaScript payloads. A well-secured app rejects them or treats them as plain text, never executing them.

  6. HTTPS and proper headers

    No HTTP. Strict-Transport-Security, Content-Security-Policy, X-Frame-Options and X-Content-Type-Options as a minimum. Tools such as securityheaders.com give you a score in 5 seconds.

  7. Up-to-date dependencies

    npm audit, pip-audit or an SCA tool such as Snyk shows which of your libraries have known vulnerabilities. Patch critical and high within 7 days, no excuses.

  8. Logging and monitoring

    If something goes wrong (and it will), you want to know within minutes. Audit logs on sensitive actions, alerts for unusual patterns, and a dashboard to see what is happening.

"But my app is not important enough to be hacked"

That is a misconception we hear every week. Attackers do not target your app because you are interesting. They scan the entire internet for vulnerabilities and process whatever they find on a massive scale. Passwords to sell on, email addresses to send phishing to, servers to use as part of a botnet.

Do it yourself or have it done?

To be honest: an experienced security engineer can do this themselves. For one project, if they are given the time, and if they are not also under pressure to deliver the app. In practice we see three types of builders, and for two of them outsourcing is the right choice.

Do it yourself

Works for specialists

Do you have security experience, time and a test environment to simulate attacks? Do it yourself. Bear in mind, though: the field changes constantly.

Let us do it

Better for most cases

We do this every day, know the patterns AI tools miss, have automated scanners running, and keep your app secure over time, not just on day one.

Conclusion: keep building, secure smarter

The message is not "stop using Claude, Cursor or Lovable". Those tools are a revolution in how quickly you can deliver value. But the revolution has a downside: building software is more accessible than building security, and that gap is growing.

Build with your AI tools. Deliver faster than ever. But do not leave security to that same AI. Hand your ZIP to us and we take care of the hardening, monitoring and ongoing patches. You keep building, we keep the attackers out.

Frequently asked questions

What if the fixes mean the whole architecture has to be reworked?
That sometimes happens, but less often than you might think. Most issues are local fixes: adding a check, parameterising a query, adjusting a config. For architectural issues (such as data models where permissions are fundamentally wrong) we provide a redesign proposal with an estimate before you decide.
Can you also audit an app that was built by someone else?
Certainly. We audit any web app, whether it was built by Claude, a freelancer, an agency or an internal team. Give us access to the code (or a live URL for a black-box assessment) and we will do our job.
What if I want to fix the issues myself after the audit?
You can. We deliver a report with concrete fix instructions for each issue. If you want to do it yourself, fine. If you want us to fix it, also fine. A combination is often the most efficient: you fix the simple things, we tackle the structural issues.
Do you guarantee that an app can no longer be hacked after the audit?
No, and anyone who does is lying. No app is 100% unhackable. What we do guarantee: after our audit the known top risks are closed, you meet industry standards, and you have monitoring so you quickly see when new problems arise. Security is a continuous process, not a one-off stamp of approval.
Do you also work with agencies that want to take work off their clients' hands?
Yes. Many agencies send us builds for security review and hosting. You remain the point of contact for your client; we deliver a security report and run the monitoring in the background. Special agency rates are available for multi-app deployments.

Start with a challenge.

Tell us what you want to achieve. In a Discovery we show you how Eneqto solves it.

Phone
0318 742 583
Email
info@eneqto.ai
Visiting address
Traverse 3, 3905 NL Veenendaal, the Netherlands
Opening hours
Mon to Fri, 8.30 am to 5.30 pm