Blog
AppSec Blog

Vibe-coding your way out of SaaS is a risk decision

 - 
noviembre 25, 2026

CISO’s Corner  AI has dramatically reduced the cost of building software, but it hasn’t removed the responsibilities of owning it. As organizations consider replacing commercial SaaS products with AI-generated applications, security leaders need to look beyond the immediate savings and ask who will secure, test, maintain, and be accountable for that software throughout its lifetime. Building instead of buying is as much a risk decision as a financial one.

You information will be kept Private
Table of Contents

Every few months, a hyped new AI release lands and the same headline follows: this is going to kill SaaS. Earlier this year, the claim came with numbers attached, as a wave of AI launches wiped hundreds of billions of dollars off software vendor valuations within days. The question soon moved from trading floors to internal budget reviews: if AI can generate a working app in an afternoon, why buy or renew a commercial product?

As a CISO, I think the question is fair, but much of the debate treats code and a finished product as one and the same. They aren’t. A mature software product comes with everything around the code: secure design, testing, patching, assurance, and someone accountable when things go wrong. A weekend prototype rarely comes with any of that.

There are plenty of cases where building your own software makes sense, and AI is expanding that list. What worries me is when the decision is driven by the ease of generating code without considering what it takes to turn that code into a secure, reliable product. Here are six points worth putting in front of your leadership team before the next “let’s just build it with AI” proposal lands on your desk.

The “SaaSpocalypse” is as much about business models as it is about software

Before going into the risk aspects, let’s look closely at what the initial selloff was about. Much of the selloff in early 2026 reflected uncertainty about what AI could do to software vendors’ growth prospects and per-seat business models, rather than evidence that enterprises were suddenly abandoning their existing systems. Gartner frames the decision faced by organizations as “build, buy or blend,” according to a July 2026 industry brief.

That’s not saying some replacement isn’t happening – Retool’s 2026 report found that 35% of enterprises have already replaced at least one SaaS tool with custom software. Thin workflow wrappers and lightly differentiated tools are genuinely exposed.

How vendors charge for software is changing, but your obligation to secure the software you run is not. That’s the question a CISO needs to answer – and one that doesn’t appear in earnings calls.

Writing code was never the hardest part

Generating code used to be time-consuming and expensive, but it can now be fast and cheap. However, engineering a secure and reliable product is not fast or cheap, and every major framework we rely on reflects that reality. 

The NIST Secure Software Development Framework (SP 800-218) organizes secure development into four groups of practice: prepare the organization, protect the software, produce well-secured software, and respond to vulnerabilities. ISO/IEC 27001:2022 spells out similar expectations in Annex A, from application security requirements and secure architecture to secure coding and security testing before acceptance (controls 8.25 to 8.29). OWASP SAMM measures the same ground as maturity across governance, design, implementation, verification, and operations.

Notice what all these have in common: having an LLM generate code satisfies very few of them. A prompt produces code, but it doesn’t produce threat models, security requirements, independent testing, a vulnerability response process, or evidence that any of it happened. A well-run product team builds all of that into how software gets made – and that’s what you’re really paying for when you buy from a vendor that takes it seriously. Any business case for replacing SaaS with an internally built application needs to account for the total cost of ownership, including security assurance, ongoing maintenance, and the operational risk the organization is taking on. 

Vibe-coded apps fail on security in predictable ways

Getting AI to generate working code is becoming easier, but functional correctness remains a poor indicator of security. A 2026 academic study evaluating 10 LLMs across three programming languages found that even the strongest model passed both functional and security tests on fewer than 15% of benchmark tasks in each language. Better coding capabilities don’t automatically translate into better security.

We’ve seen this in our own research at Invicti. In an analysis of over 20,000 web applications generated using LLMs, we found fewer traditional vulnerabilities such as SQL injection than expected, but recurring weaknesses in the form of hardcoded secrets, common credentials, and predictable endpoints. The same secret string (supersecretkey) appeared in 1,182 applications. In one AI-generated restaurant ordering application, a predictable token-signing secret allowed our researcher to escalate from ordinary customer to administrator privileges. When AI reproduces the same insecure patterns across unrelated applications, attackers can potentially reuse the same techniques against multiple targets.

These are familiar security problems, reproduced at a new scale. The restaurant app can work perfectly in a demo without anyone checking whether a customer can gain administrator access or view another customer’s orders. Static analysis can flag hardcoded secrets, but it takes runtime testing to demonstrate what an attacker can actually do with them. This is why I keep arguing for a DAST-first mindset: security assurance has to be grounded in how the running application behaves when someone tries to abuse it.

There’s also a governance principle here that predates AI by decades: the party that builds a system shouldn’t be the only party that verifies it. If the same model writes the code and reviews it, that review may reproduce the assumptions that introduced the security flaws in the first place. AI-assisted development doesn’t remove the need for independent security verification – the speed and scale at which AI can generate software actually make that independence more important than ever.

The shadow app problem is a visibility problem

Even if you never knowingly approve a single AI-built production system, your people are building them anyway. The Retool research mentioned above found that 60% of respondents built software outside IT oversight in the past year. Add the fact that many vibe-coding platforms can publish an app to the open internet in a few clicks, and you can see where this leads.

It’s the same pattern we see in breach after breach: an internet-facing asset no one was watching. Asset inventory sits at the foundation of the frameworks we already use: the Identify function in NIST CSF 2.0, control 5.9 in ISO 27001 Annex A, and CIS Controls v8 (software asset inventory in Control 2, application software security in Control 16). None of them carve out an exception for “it was only a quick internal tool.”

The practical answer isn’t a ban because that just pushes the activity further into the shadows. It’s making the safe path the easy path: a lightweight way to register what’s being built, an owner for each app, a data classification before anything touches real data, and continuous discovery of what’s actually exposed. That’s ASPM and attack surface management doing their jobs properly – which is more important than ever, now that building an app takes an afternoon rather than a quarter.

What you get when buying – and what you owe when building your own

When you buy from a mature vendor, you should be getting far more than the bits and features. You may get independent assurance in the form of SOC 2 reports and ISO 27001 certification, along with third-party penetration test results, a vulnerability disclosure process, defined incident notification terms, and a contract that assigns accountability. Widely deployed commercial products may also benefit from scrutiny by customers, auditors, and independent researchers on a scale that most internal applications will never receive.

When you build your own software, you take on the responsibilities you would otherwise expect a vendor to fulfill.

For regulated organizations in particular, building your own has real consequences. NIS2 explicitly addresses both supply chain security and security throughout systems acquisition, development, and maintenance (Article 21). The technical standards supplementing DORA go further, extending secure development and testing requirements even to systems built or managed by users outside the IT function (Article 16). Neither framework gives you a pass because the code was generated by AI. Accountability stays with the organization, and so does the burden of demonstrating that the app is controlled, tested, and monitored.

The security assurance standards we impose on our vendors must apply equally to the software we build ourselves. We ask vendors for evidence because evidence is how trust scales. An internal app built in a weekend is unlikely to have that evidence trail, and “the AI wrote it” will not be an acceptable answer in a customer questionnaire or a regulator’s inquiry.

Software is a long-term commitment, not just a project deliverable

The first release is the cheapest part of an application’s life. After that come not only routine bug fixes, functionality updates, and code maintenance tasks, but also the security and resilience steps: dependency updates, CVE triage, access reviews, secret rotation, backup and recovery testing, change control, monitoring, and an incident response plan that holds up under pressure. ISO 27001 treats these as ongoing controls (technical vulnerability management in 8.8, change management in 8.32, incident management in 5.24 to 5.28), and the Respond and Recover functions of NIST CSF 2.0 assume that someone is doing all that work even years after launch.

AI can and will make parts of this easier, and we all welcome that – but better tooling doesn’t change who owns the outcome. Vibe coding gets you to version one. It says nothing about who patches version forty, who gets paged at 2 a.m. when the system goes down, or who explains to a customer why their data was exposed.

This is something I have to account for every day as CISO at Invicti. Building security software doesn’t exempt us from the security challenges of building and operating software ourselves. We still have to test at multiple stages, from code through to runtime, manage vulnerabilities after release, and be accountable for the products our customers depend on. None of that work ends when a feature ships.

A practical decision framework: buy, boost, or build

It’s no surprise that headlines tend to oversimplify complex issues. In a real business setting, false choices like “SaaS or AI” should be replaced by portfolio-level decisions made workflow by workflow, with security and resilience as explicit inputs rather than an afterthought.

I find it useful to frame the decision in terms of three options: buy, boost, or build. Here’s when each approach makes sense and what a CISO needs to see before signing off:

Choice When to use it What the CISO needs to see
Buy The capability is well served by mature vendors, or the cost and risk of owning it internally outweigh the benefits Attestations, penetration test evidence, incident notification terms, subprocessor transparency
Boost You want AI agents, integrations, or automations on top of a vendor platform Scoped permissions, appropriate data access controls, and auditable agent actions
Build The software provides meaningful differentiation or meets needs that commercial products cannot, and you’re prepared to own its full lifecycle A named owner, risk assessment, secure SDLC evidence, independent security testing, and a maintenance and retirement plan

Whenever the answer is “build” – and especially when AI is generating the code – enforce five main guardrails to make the risks visible and manageable:

  1. Register the software. Every app gets an owner, a data classification, and an entry in the inventory before it is deployed or given access to real data.
  2. Make it secure by default. SSO, least privilege, and no secrets in code, enforced through the platform rather than left to the prompt.
  3. Separate the builder from the verifier. Run SAST and SCA in the pipeline, test the running app with DAST before deployment to production, and independently verify critical access controls and business logic.
  4. Validate fixes, not just tickets. Re-test after remediation to confirm the exploit path is actually closed.
  5. Plan the end of life. Name who patches it, who monitors it, and when it gets retired.

A final reflection

Nobody is questioning that as the costs and barriers to entry for building software drop, some SaaS vendors will lose business. Products that were never more than a thin layer over a database and a form deserve to worry, and pricing models built purely on counting seats are already changing. That’s the market doing its job.

But the idea that AI-assisted development does away with the need for discipline around software is the one I’d challenge hardest. If anything, AI raises the stakes. As I’ve argued previously, AppSec is becoming the last line of truth in an AI-generated software world: the more software we generate and the less insight we have into its internals, the more we depend on independent verification of what it actually does.

When it comes to evaluating new software, the AI era hasn’t changed what security leaders want to know: who will secure it, test it, patch it, and be answerable for it five years from now. Until a prompt can answer that, the value of well-built software products and the teams that stand behind them isn’t going anywhere.

Frequently asked questions

No items found.
Table of Contents