Claude Almost Exposed Our Database!

Issue #114 - November 25, 2026

Have you ever built something with AI, watched it finish the work, and thought...

“Well, that was easy.”

The app works.

The automation runs.

The new feature looks good.

AI says everything is ready.

So you move on to the next thing.

But here's a question I think we all need to start asking a lot more often.

Just because AI says something works, does that mean it's safe?

Because about six weeks ago, something happened inside one of our applications that could have been a very expensive lesson.

And y'all, this one got my attention.

Claude almost exposed our entire database.

We've been using Claude Code extensively to build and improve our applications.

And I love what it allows us to do.

Things that used to take developers days can now happen much faster.

But there's something I've learned from working with AI this closely.

Sometimes AI takes shortcuts.

And those shortcuts aren't always obvious.

About six weeks ago, Claude was working on one of our applications.

During the process, it made a decision that seemed to be an easier way to accomplish what it was trying to do.

Except there was a problem.

A BIG problem.

It exposed our database password in plain text on the front end of the application.

Let me explain what that means.

The database contains information our application uses.

The password is supposed to be protected.

But Claude had placed that password somewhere it could potentially be seen by anyone accessing the application.

Think about that for a second.

If that code had gone live, someone could have discovered the password and potentially gained access to our database.

That's not a small mistake.

That's the kind of mistake that can put an entire business at risk.

Fortunately, we caught it.

Our security checks identified the problem before the code was deployed.

We fixed it.

No breach occurred from that mistake.

But I keep thinking about one thing.

What if we hadn't checked?

What if we'd simply trusted Claude because it said the work was complete?

That's the part that concerns me.

And then it happened again. In a different way.

About a week and a half ago, we were building a new feature for another one of our production applications.

Now, we don't build new features directly in the live application people are using.

We have a separate development environment.

We build there.

We test there.

And only after the work passes our checks do we move it forward.

Pretty standard practice.

So we asked Claude Code to plan a new feature.

And one thing Claude is really good at is planning.

It created a detailed plan.

I'm talking more than 30 pages.

We reviewed it.

Everything looked fine.

So we told Claude to build it.

It completed the work.

Ran its internal tests.

And told us the feature had been deployed to our development environment and was ready for testing.

Great!

Except when our human testers opened the application...

The new feature wasn't there.

They sent screenshots.

Same old screens.

No new functionality.

Nothing.

And we're sitting there thinking...

What are you talking about? Claude said it was ready. 😂

So we went back and asked Claude what happened.

And that's when we discovered something buried in its original plan.

One statement.

In more than 30 pages.

Claude had planned to deploy the entire feature switched off until a human explicitly enabled it.

And technically, it had followed that plan.

But it told us the feature was deployed and ready for testing without making that limitation clear.

The code existed.

The feature just wasn't available to test.

Now, that wasn't a security breach.

But it revealed the same problem.

AI had made a decision we didn't fully catch during review.

And when you have 30 pages of technical planning, it's surprisingly easy to miss one important line.

That's what worries me.

Because sometimes that one line is simply an inconvenience.

And sometimes that one line exposes your database password.

Here's why I think this problem is getting bigger.

I used to be a software engineer.

Back when I was writing code, we wrote the actual lines ourselves.

We understood what we were building because we were the ones building it.

Now?

AI can generate enormous amounts of code in a fraction of the time.

And that's incredible.

But think about what that changes.

We can create software faster than ever.

Which means we're also creating more code that someone needs to review.

And just because AI can produce the code quickly doesn't mean the code is secure.

The speed of building has changed. The responsibility for what we build hasn't.

That's the part I don't think enough people are talking about.

Everyone is excited about how quickly they can launch an app.

How quickly they can build an automation.

How quickly they can turn an idea into something real.

And I get it.

I'm excited too!

But who's checking what happens behind the scenes?

Who's making sure your API keys aren't exposed?

Who's checking whether one user can accidentally see another user's information?

Who's making sure the AI didn't choose the easiest solution when a safer one was needed?

Because I've seen firsthand how easily those mistakes can happen.

And we catch AI taking questionable shortcuts in our development work at least once a week.

Sometimes more.

And this isn't just a problem for developers.

Maybe you're reading this thinking...

Atiba, I'm not building some massive software company.

I'm just using AI to create a few tools for my business.

I hear you.

But here's something I want you to understand.

If you're building an application that's accessible through a web address, security matters.

Even if it's just for you.

Even if only a few employees use it.

Even if you think nobody else knows it exists.

A web address doesn't automatically mean an application is vulnerable.

But it does mean you need to think about who can access it and how it's protected.

And if you're putting passwords, API keys, customer information, or business data into AI-powered tools, you need to understand how that information is being handled.

There's also been reporting about AI systems mixing up information between users.

In the video, I discuss a reported issue involving Meta's internal AI assistant, where information about one employee appeared to be confused with another employee's information.

Now, that example might sound harmless.

Childcare information.

Okay.

But my immediate question was...

If it can confuse that information, what else could it confuse?

And that's why I think we need to pay attention.

So what should you actually do?

I'm not telling you to stop using AI.

Goodness, no.

We're building with AI every single day.

I'm telling you to change one habit.

Stop treating “AI says it's done” as proof that the work is safe.

When you're building something, especially something that handles information, ask a few more questions.

Is this the safest way to build it?

Are any passwords or API keys exposed?

Can someone access information they shouldn't be able to see?

What shortcuts did the AI take?

And most importantly, has someone actually tested those answers?

Because asking AI whether its own work is secure is a useful starting point.

But it isn't a substitute for independent security checks.

We learned that firsthand.

If we hadn't had safeguards in place, that exposed database password could have made it into our live application.

And that's a risk I'm not willing to take.

Here's what I keep coming back to.

We're entering a time when almost anyone can build software.

You don't need to spend years learning to code before you can create something useful.

And I think that's wonderful.

But the easier it becomes to build, the easier it also becomes to overlook what we don't understand.

That's why I'm paying more attention to security now than ever.

Because I want us to keep building.

I want us to keep experimenting.

I want us to keep using AI to do things we couldn't do before.

I just don't want us to accidentally put our businesses at risk while we're doing it.

And after seeing what happened inside our own applications, I can tell you this is something I'm taking very seriously.

Can I ask you something? 🤔

Have you ever stopped to wonder whether something AI built for you was actually secure?

For me, it took catching a database password exposed in our own code to realize just how easily things can go wrong.

What about you?

Hit reply and tell me in one sentence.

Even “Yes, but I don't know how to check” or “No, I honestly haven't thought about it” is perfect.

I'd love to know where you are with this.

Want to see what happened? 👇

I recorded a video where I break down the mistakes we caught while building with AI, how Claude almost exposed our database, and why I'm paying more attention to AI security than ever.

I'm not sharing this to scare you away from AI. I want you to keep building, experimenting, and creating.

I just want you to do it safely.

For the doctors reading this 👨‍⚕️

Our AiM (AI & Marketing) Rounds community has been growing, and the conversations are getting better because more doctors are sharing what they’re actually trying, questioning, and figuring out in real time.

We’re talking about practical AI, marketing, what’s working, what isn’t, and how all of this actually fits into a medical practice.

No pressure to be an expert. No need to have the perfect answer.

Just doctors learning from doctors.

If you want in, reply “JOIN AIM” and I’ll send you the WhatsApp link.

A few things worth checking out 👀

Just sharing a few things I've been exploring lately:

Was this email helpful? 💬

I'd love your quick feedback.

❤️ Yes — I'm going to pay more attention to AI security.
💛 Interesting — I hadn't considered these risks before.
💜 I use AI, but I don't know how to check if it's secure.

Just hit reply with ❤️,💛, or 💜.

I read every response, and it helps me know what I should talk about next.

— Atiba

Reply

or to participate.