Can you build your firm’s client portal with AI?
AI tools can build a working client portal in a weekend. Whether it keeps one client out of another client's files is a separate question, and it's the one that matters.

A year ago, a client portal meant hiring someone. Today you can describe one to an AI tool on Friday evening and be clicking around a working version by Sunday. It has a login page, a dashboard and somewhere to upload files. It looks finished.
So it’s a fair question: why would a small firm pay a developer for this?
I’m not going to tell you AI tools are dangerous and you should avoid them. I use Claude Code on client work myself. But I also check what it gives me, and a portal is the kind of project where that check matters most.
What the research found this year
In June 2026, researchers from the National University of Singapore and Microsoft, along with an independent researcher, published an audit of apps built almost entirely by AI. They looked for projects made with two tools, Claude Code and Lovable, where at least 90% of the code was written by AI. They then took a random sample of 200 apps that were live on the web and tried harmless attacks against them.
They found at least one vulnerability in 182 of the 200. That’s 91%. About two thirds of everything they found was rated high or critical.
Yes, one of those two tools is the one I use. That’s part of why this paper is worth reading.
The study has limits, and the authors say so. These were open-source projects on GitHub, not client portals built for law firms. It doesn’t tell you the odds for your portal. But the kind of mistake it found matters more than the percentage.
The biggest category, at nearly 29% of all the flaws, was broken access control. In plain English, that means someone can see or do something they shouldn’t be allowed to. Failures around logging in made up another 15%.
For a client portal, that’s the whole job.
Why a portal can look perfect and still be wrong
Here’s the mistake that worries me most, and it’s easy to picture. Say your portal stores each client’s documents, and a client’s download link looks like this:
yourfirm.com/portal/documents/1042
You log in as a test client and the document opens. It works. Now change 1042 to 1043.
If the portal only checks that you’re logged in, and not that document 1043 belongs to you, you’ve just opened another client’s file. Nothing looks broken. There’s no error message. Every test you ran as a normal user passed, because normal users don’t edit the address bar.

AI tools are very good at the thing you can see working. You asked for a login and a download page, and you got them. Who shouldn’t be able to reach what is something you have to ask about, and test, one page at a time.
The audit has examples of how this slips through. In one app, a validation check was added to a new section but not to 11 older parts of the code. In another, password checking on a login route was left as a note to finish later. It never got finished.
The count of known cases is rising too. Georgia Tech researchers track published security flaws traced back to AI coding tools. They counted 56 cases in the first three months of 2026, and 35 of those came in March alone. Their advice is simple: review AI-written code as carefully as you’d review a junior developer’s work, especially anything touching logins and user input.
That’s a good description of how I try to work with it.
Six checks to run before a client logs in
You don’t need to read code for these. If someone built your portal, with or without AI, ask them to show you each one. If you built it yourself, try them with two test accounts.
- Swap the ID. Log in as Client A and open a document. Change any number or code in the address, or paste in a link copied from Client B’s account. You should be refused.
- Copy a link and log out. Paste a private document’s direct link into a private browser window. If the file opens with no login, it isn’t private. Forms and signed documents are the usual problem here.
- Try the staff pages as a client. Paste an admin or staff address into a client’s session. A hidden menu item is not protection.
- Test the password reset. Can you request a reset for someone else’s email and learn whether they’re a client? Does the reset link stop working after it’s used?
- Ask where the keys are. Payment, email and database passwords should never be visible in the page source. The audit found secrets left exposed in projects, including one “protected” by a simple letter-swap cipher.
- Ask who gets called. When a plugin or library has a security update next month, who applies it? And what happens to the client files if the portal has a problem? If nobody has an answer, that’s your answer.
When AI on its own is fine, and when it isn’t
Building it yourself with AI is reasonable when nothing private is at stake. An internal tool with no client data, a prototype to show your partners what you want, or a page of public information are all fair game. A prototype is actually a great way to work out what you need before paying anyone.
I’d want an experienced person involved as soon as it holds other people’s documents, identity details, payments or anything covered by professional confidentiality. A leak there isn’t only a technical problem. It’s a phone call to a client.
That doesn’t rule out AI. It means somebody who knows what to look for has to take responsibility for what it wrote.
How I handle this in practice
I use AI to write code faster, then treat the result as a draft. When I released an update to this site earlier this month, I wrote down what should happen and what must not, then tested both. I also ran the new test against the old code first, to prove it really caught the problem. Otherwise a passing test tells you nothing.
I’ve seen why that step matters. On a recent release of this site, the obvious fix would have left a stray piece of data behind, and I only caught it by reading the live output first. Then my first test showed no difference between the old code and the new, which meant it wasn’t testing anything. Had I trusted a green result, I’d have learned nothing.
On the projects I’ve built that collect passport numbers, signatures and card payments, including an international driver’s licence application, the hard part was never getting the form to appear. It was what happens when something goes wrong halfway through.
I’ve also built a demo client portal with made-up sample data, where you can try the swap-the-ID test yourself.
If you already have a portal
Run the six checks this week. Most of them need nothing more than a second test account. If you find a problem, or you’d rather not be the one checking, tell me what your portal does and I’ll tell you honestly whether it needs work. If you’re still planning one, that page explains how I build them and what they cost.