Skip to content
Back to blog
Vibe coding at work: the security guardrails you cannot skip
Artificial Intelligence

Vibe coding at work: the security guardrails you cannot skip

AI-generated code and vibe coding in SMEs: what the Veracode 2025 and 2026 reports show, the OWASP Top 10:2025 and seven guardrails before a tool goes live.

By Mohamad HajiPublished on 10 November 20267 min read
Share:

In short

AI-generated code often contains classic security flaws. Let your teams build their own internal tools, but put seven guardrails in place before any tool goes live. As soon as a tool touches sensitive data or external users, hand it to a developer.

Vibe coding means describing an application in plain language to an AI coding assistant. The assistant writes the code, then you refine the result step by step. For your SME, the appeal is obvious. An office manager can build in a single afternoon the tool they have been waiting months for. It might be a leave request form, a quote calculator or a tracking sheet.

The risk is just as obvious. A tool that works is not necessarily a safe tool. Studies published since 2025 show that AI-generated code often contains classic security flaws. Below are the figures, then the guardrails to put in place before such tools spread through your business.

Why vibe coding appeals to SMEs

The most sensible uses are internal tools with a limited scope:

  • request forms (leave, purchases, equipment);
  • calculators (quotes, bonuses, mileage allowances);
  • tracking sheets that replace an Excel file passed around by email;
  • prototypes to test an idea before paying for development.

This is not a fringe trend. According to Veracode's July 2026 report, AI now generates roughly half of all code committed to repositories. Veracode bases this on an analysis by DX. Assistants also let people with no programming background build their own tools.

What the studies show

Veracode 2025: 45% of tasks with a flaw

On 30 July 2025, Veracode published its GenAI Code Security Report. The company gave 80 coding tasks to more than 100 large language models. In 45% of cases, the code contained an OWASP Top 10 vulnerability. This reference list covers the main web application risks. Against cross-site scripting (XSS, injecting malicious code into a web page), the models failed in 86% of cases. Against the injection of fake entries into activity logs, they failed in 88% of cases. The failure rate exceeded 70% in Java. Larger models did not perform significantly better than smaller ones.

Veracode 2026: no improvement

The 2026 report, published on 28 July 2026, concludes that the security of generated code has stalled. The average pass rate remains 56%. The generated code almost always compiles. Without security guidance, however, it fails security tests nearly 44% of the time. Coding-specialised models do no better than general-purpose ones (51% versus 52%). By language, pass rates range from 63% for Python down to 30% for Java.

45%

of tasks with an OWASP flaw (Veracode 2025)

86%

failure rate against XSS (Veracode 2025)

56%

security pass rate in 2026, unchanged

Invented packages

A study presented at the USENIX Security Symposium 2025 analysed 576,000 code samples produced by 16 models. A package is a ready-made code library that you install in a project. On average, at least 5.2% of the packages suggested by commercial models did not exist. For open-source models, the share rose to 21.7%. The researchers recorded 205,474 invented package names. An attacker can publish a malicious package under one of those names and wait for an assistant to recommend it.

Working is not the same as safe

Veracode's tests cover models used on their own, with no human review or analysis tool. That is exactly the situation of an employee building a tool alone, without a developer. The guardrails below are there to close that gap.

Seven guardrails before a tool goes live

Data: use dummy data while building. Never paste customer, HR or personal data into the assistant, in line with the GDPR and your AI policy.
Secrets: no passwords or API keys in the prompt or in the code. Secrets belong in environment variables or a password vault, never in a repository.
Access: every tool requires authentication and grants only the rights needed. An internal tool should not be publicly reachable on the internet by default.
Dependencies: check that every suggested package exists, is maintained and is genuinely needed before installing it.
Review: a second person reviews at least access control, input validation and data storage.
Testing: test abnormal cases (empty field, very long text, special characters, unauthorised user). Where possible, also run the code through static analysis and dependency analysis tools.
Inventory: every tool has an owner, a description of its data and a review date. A tool without an owner should be retired.

The OWASP Top 10:2025 in brief

The OWASP Top 10 is a widely used reference for web application risks. These are the categories from the 2025 edition that matter most for an internal tool.

  • A01 Broken Access Control: a user sees or changes data that does not concern them
  • A02 Security Misconfiguration: debug mode on, open database, default permissions
  • A03 Software Supply Chain Failures: non-existent, abandoned or malicious package
  • A05 Injection: XSS or SQL injection through a form field
  • A07 Authentication Failures: no password, or one password shared by the whole team

You can explicitly ask the assistant to take these points into account. That helps, but it does not replace review and testing.

When to bring in a developer

Vibe coding suits a personal or team tool with low risk. Hand over to a developer as soon as any of these conditions applies:

1

Sensitive data

The tool processes personal data, customer data or financial information.

2

External users

Customers, suppliers or the public can access it.

3

Critical systems

The tool connects to accounting, the ERP or email, or triggers payments.

4

Long-term use

The tool becomes part of daily work and must be maintained, backed up and updated.

In these cases the prototype keeps its value: it serves as a living specification. The developer starts from a need that users have already tested, which makes the brief clearer.

Learning to do it properly

Your teams can learn this method in a vibe coding workshop at TrAInyng Lab. The workshop lasts half a day or a full day, for 6 to 16 participants, developers or not. Each participant builds a small internal tool. They leave with a security checklist and a decision grid: keep it, improve it or hand it to a developer. Pricing is set by quote, sent within 48 hours, free and with no commitment.

Vibe coding workshop at TrAInyng Lab

Your teams build an internal tool with an AI coding assistant. They learn what never to paste into the tool and how to review generated code.

See the workshop programme
Share:

Related articles

Start by knowing where you stand

A free assessment gives you your number one priority in a few minutes. Then a 15-minute call is enough to choose the first step.