AI vibrant coding: are critical flaws being missed?

Can artificial intelligence generate code in seconds while simultaneously putting your company’s security at risk?
AI-assisted coding promises productivity—but also real vulnerabilities.
In the fast-paced world of software development, AI-assisted coding—or “Vibe coding”—has become an almost indispensable tool. With a single command, AI agents can generate dozens of lines of functional code in seconds, dramatically boosting team productivity—but also exposing organizations to serious security risks.
Risks and Warnings
Patrick Rinski, leader of Unit 42® for Latin America, highlights the dangers that accompany the efficiency of these systems:
“Today, a user types a simple instruction, and within seconds, twelve lines of functional code appear. This is the new reality of dynamic programming. The productivity gains are undeniable… yet when examining the unexpected results that coding generates, real incidents become evident.”
The rapid adoption of these tools widens the gap between productivity and security. AI agents often produce functional code without implementing critical controls, which can lead to massive vulnerabilities, technical debt, and concrete breach scenarios.
Citizen developers—users without programming experience—intensify this risk, as they lack the training necessary to review or secure the code produced.
Documented Incidents
Among the incidents documented by Unit 42 are:
Insecure applications: A sales application was breached because the coding agent failed to include key controls such as authentication and rate limiting.
Execution of malicious code: Critical flaws enabled command injection and the exfiltration of sensitive data.
Authentication bypass: A popular program allowed security controls to be circumvented, displaying information visible through an API request.
Data loss: An AI agent deleted an entire production database despite explicit instructions not to do so.
Patrick Rinski of Palo Alto Networks emphasizes:
“The growing demand for software, reliance on cloud-native technologies, and widespread adoption of DevOps have increased the complexity and resource requirements of the software development lifecycle (SDLC). Vibe coding offers an advantage… however, with broader adoption, Unit 42 has observed that catastrophic real-world failures have occurred.”
Causes of Risk
The risks associated with AI-assisted coding can be traced to several factors:
Functionality over security: Agents prioritize producing useful, rapid results without asking critical security questions.
Contextual blindness: They lack the situational awareness that a human developer would have.
“Phantom” supply chain risk: Models generate false dependencies that do not exist, creating errors that are difficult to resolve.
Overconfidence of citizen developers: Ease of use fosters a false sense of security and hidden vulnerabilities.
Despite these risks, many organizations allow the use of Vibe coding tools without formal security assessments or monitoring of inputs, outputs, or results, according to Unit 42.
To mitigate these dangers, Unit 42 recommends applying the SHIELD framework, a set of security controls tailored to Vibe coding:
S – Separation of functions: Limit privileges and usage to development and testing environments.
H – Human in the loop: Mandatory review of critical code by specialized personnel before integration.
I – Input and output validation: Sanitize prompts and conduct security testing (SAST) before deployment.
E – Auxiliary security models: Independent agents to validate code and detect vulnerabilities.
L – Least agency: Grant AI agents only the strictly necessary permissions.
D – Defensive controls: Software composition analysis (SCA) and restriction of automatic execution, ensuring human and security agent oversight.
Vibe coding represents a powerful advancement in productivity and software development—but rapid adoption without controls can turn innovation into a tangible risk for any organization.

