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.

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.
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
"Yes, this is secure"
Gives a reassuring answer based on visible patterns in the code. Consistently misses logical gaps, forgotten endpoints and context issues.
"Here are 7 problems"
Specialists with an attacker's mindset, structured checklists, automated scanning tools and manual tests find what the builder cannot see.

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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
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.
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.