In short: vibe coding means not reading the code. That is where invented packages, leaked keys, weak tests and hidden instructions get in. Read what you ship, and let fixed checks cover what reading misses.
What the term means
The term comes from a post by the programmer Andrej Karpathy in February 2025. He described a way of working where you give in to the vibes and forget that the code even exists. He accepted every change from the assistant, no longer read the differences and pasted error messages back without comment.
He called it fine for throwaway weekend projects. Martin Fowler gives the same advice: keep it to disposable software, and be sceptical of the rest.
Simon Willison draws the line where this page draws it. Code that was reviewed, tested and that you can explain is not vibe coding, even if an assistant wrote it. In everyday use the word now covers all AI-assisted coding. Here it means code that nobody read.
What goes wrong in practice
Packages that do not exist
Assistants sometimes name a package that does not exist. In 2024 a research team had sixteen models write code. Hallucinated package names appeared with commercial and open-source models alike, more often with the open-source ones. The authors call it a persistent, systemic problem.
In 2026 a researcher repeated the test with five new models. For 3.6 to 5.0 percent of the packages they named, the name did not exist. The gap between commercial and open-source models had disappeared. The study is a preprint.
OWASP describes the attack that follows. Someone publishes a malicious package under a name that is often invented, and waits for it to be installed.
Secrets
Another research team found that code completion tools reproduced exact training data and also produced other secret strings, including two valid credentials. Fowler notes that vibe-coded apps can expose sensitive data or credentials. What to do when a key gets in is on the related page about secret scanning.
GitGuardian sells software that finds secrets. In its 2026 report, commits made with an AI assistant leaked a secret about twice as often as the GitHub average. The company itself adds that such leaks may also be human mistakes.
Code that looks right and is not
In a study of an early assistant, a large share of the programs it wrote for security-relevant tasks were vulnerable. In a user study, people with an assistant wrote significantly less secure code than people without one. They were also more likely to believe it was secure.
Both studies used tools from 2021 and 2022. Since then, models write code that works far more often. That the code also became more secure does not show in the measurement we found.
Veracode, a vendor of security software, had the newest models carry out eighty tasks in 2026. The code was syntactically correct in over 95 percent of cases, against about half in 2023. It was secure in 55 percent of the tasks. That share has stayed almost the same for two years.
It is a vendor's own measurement. Read it as a sign that working code and secure code are two different things, not as a rating.
Tests nobody checked
If the same assistant writes the code and the tests, the tests can pass for the wrong reason. Google's review guide puts it plainly: tests do not test themselves, so a human must make sure they are valid. Ask whether a test would fail if the code were broken.
Instructions hidden in the repository
Assistants read configuration and rule files in your repository. Pillar Security showed that invisible Unicode characters in such a file can carry instructions that a reviewer does not see but the model follows. In their demonstration the assistant added a script from an attacker's site and did not mention it.
According to Pillar, GitHub has shown a warning since May 2025 when a file contains hidden Unicode text.
OWASP calls this indirect prompt injection: the model accepts input from files or websites, and instructions hidden there change what it does.
- a fixed check can read this
- a person has to judge this
What a team can do
- Read what you ship. Willison's rule is that he does not commit code he could not explain to someone else.
- Check package names before you install them. OWASP advises cross-checking model output with trusted sources.
- Keep keys out of prompts and out of code. Put a scan for secrets in the pipeline.
- Treat files for assistants as code. Pillar advises auditing rule files for invisible characters and reviewing them like executable code.
- Give the assistant as little reach as the task needs. OWASP advises least privilege and human approval for risky actions.
- Keep vibe coding for what you can throw away.
The related pages cover dependency scanning and our checks for AI-assisted development.
What we check of this
We read your code and your history for passwords and keys, and name file, line and version, never the value. For each package you use, we check that it exists and whether it is only days old. We also check whether its name is close to that of a widely used package. Besides that, we match the packages against public lists of known vulnerabilities and malicious packages.
We read the files meant for AI assistants for hidden characters and risky settings, and name file and line, never the text. We read which tests exist near the code and what your own CI reports. Fixed scans do this without AI. Where a model helps us read code, our own software confirms every finding, and secrets never go to a model.
We do not judge whether the code does what you meant, or whether a test is meaningful. We read and change nothing in your code.
Join the pilotSources, opened on 18 November 2026
- Simon Willison: Andrej Karpathy's post on vibe coding, quoted
- Simon Willison: Not all AI-assisted programming is vibe coding
- Martin Fowler: Vibe Coding
- Spracklen and others: We Have a Package for You! Package hallucinations by code generating LLMs
- OWASP: LLM09 Misinformation
- Huang and others: Neural code completion tools can memorize hard-coded credentials
- Pearce and others: Asleep at the Keyboard? The security of Copilot's code contributions
- Perry and others: Do users write more insecure code with AI assistants?
- Google: What to look for in a code review
- Pillar Security: Rules File Backdoor
- OWASP: LLM01 Prompt Injection
- Churilov: Re-evaluating LLM Package Hallucinations on the 2026 Frontier-Model Cohort (preprint)
- Veracode: Spring 2026 GenAI Code Security Update
- GitGuardian: The State of Secrets Sprawl 2026 (press release)
Written by the BlueLandscape team with the help of AI. Every statement was checked against the source above.