Krisztián P.

Krisztián P.

Krisztián P.

Head of Operations

Head of Operations

Product development, AI

Product development, AI

The AI magic trick: the hidden risks of vibe coding

The AI magic trick: the hidden risks of vibe coding

Recently I used AI to build a working car park booking app for our company in just a few days, even though I’m not a developer. In the morning I had a problem, and by the evening I had a web app my colleagues were using. I know the feeling when every request brings back a working solution and you keep going, faster and faster, with growing excitement.

A few times, that momentum nearly sent me the wrong way. One of these moments came when the app needed to add bookings to Google Calendar and send notification emails. Normally, each colleague would have to give the app permission once in their own Google Workspace account. The AI suggested an easier route, which was to let everyone run it on my behalf so that nobody would need to approve anything.

It would have been quick and convenient. But it would also have meant that everyone using the app could access my calendar through me and send emails in my name. For the sake of convenience, I would have opened up my own account to the whole company. The AI didn’t make a mistake. It solved exactly what I’d asked for, and I just didn’t ask what it would cost.

That was when I realised that getting carried along by AI’s fast results has a downside too. I’ve called this downside the AI magic trick ever since.

How a magic trick works

A magician performs wonders. A card vanishes, and a person sawn in half walks off the stage. Behind every bit of magic there’s a mechanism we never see, and that’s fine. The audience doesn’t care about the box with the false bottom, because they’re there for the experience.

In the classic set-up there are two parties. The magician knows the trick, and the audience doesn’t.

With the AI magic trick, however, nobody knows the trick. If you build software with AI, you’re both the magician and the audience. You ask for the trick, you perform it, and you’re the one amazed by it. The AI isn’t deliberately hiding anything either. It simply delivers what it was asked for. If nobody asks what’s at the bottom of the box, nobody will ever find out, so in the end the person being fooled is you.

A trick up close: data leakage through a Google Docs link

Take an everyday situation. Someone wants to use AI to build a report from an internal system. The data sits on the company’s internal network, which the AI tool can’t reach.

So they ask the AI how to get round this. The answer is logical and quick. Export the data to a Google Doc, set sharing to ‘anyone with the link’ and give it the link. Two minutes later it works, the result looks impressive and the user is happy.

Behind the curtain, however, internal data (possibly including personal data or business secrets) has ended up somewhere publicly accessible. Nobody broke in and there was no attack, yet the company caused its own data breach, and most likely nobody even knows about it.

When the flow sweeps you along

AI answers the question it’s asked. If the request is ‘make it work’, it’ll take the shortest route there. Data security, data protection and software maintainability only come into play if someone includes them in the request.

The other factor is the flow. When every request brings back a working solution within a few minutes, you don’t want to stop, because each pause breaks your momentum and each question slows you down. So the very questions that would expose the trick never get asked. Magicians call this misdirection, and it’s one of the oldest techniques they have. They guide our eyes to where the magic happens while the actual trick takes place somewhere else entirely. In AI coding, the working, impressive feature draws the eye, and the trick stays where nobody’s looking.

This doesn’t only happen to junior colleagues or people with no development background. I’ve seen experienced professionals fall into it too. They have the knowledge, but the flow carries them along so much that they stop paying close attention. That lapse in attention is the real trap, and plenty of magic tricks rely on exactly that.

What’s hiding up the sleeve?

The public link is just one example. Here are the vibe coding security risks that typically hide in software built quickly and without enough care:

  • Leaked data: internal or personal data in a place where it shouldn’t be.

  • Missing access control: it works, but everyone can see everything.

  • Secrets in the code: passwords and API keys written into the source code.

  • Unknown dependencies: external packages that nobody has checked.

  • Licensing problems: an open-source dependency with a restrictive licence, whose terms may even extend to the whole application.

  • Data protection questions: where personal data goes, on what legal basis, and who is responsible for it.

  • Unmaintainable code: it works, but nobody understands it, so nobody dares to touch it.

None of these shows up in a demo, and each one only surfaces once something has already gone wrong.

Where vibe coding fits: prototypes and production

This article isn’t against vibe coding. It’s excellent for trying out an idea, building a software prototype or running an internal experiment. It quickly shows whether something could work, and often that’s all you need.

The trouble starts when we mistake the trick for the finished product, for example when an app built through vibe coding quietly becomes a production system with real data and real users. From the outside the two look identical, since both work. The difference lies behind the scenes.

Beyond the magic: responsible AI-assisted software development

AI is neither an enemy nor a magician out to fool us. It’s a tool that gives us exactly what we ask for, so the responsibility lies with whoever is asking.

Responsible AI-assisted software development takes this seriously. It uses the same speed, but it also asks the questions the flow would drown out. Where does the data go? Who can access it? What happens if something breaks? Who will maintain it a year from now?

Vibe coding has its place on stage, in demos, prototypes and experiments. In production systems, though, we can’t let the spectacle distract us from the trick.

At LogiNet, this is exactly what we focus on. We build on more than 15 years of experience in software and application development, and we use AI as a tool that speeds up our work and improves its quality. At the same time, we make a conscious effort to notice when we’re watching an AI magic trick. That’s how, even in the age of AI, we can deliver software to our clients that is secure and of lasting value, as well as impressive.