Why a working demo proves less than it seems
GitHub Copilot, Cursor, Claude Code and similar tools are good at building the thing you asked for. They are much less reliable at the things nobody asked for, because those are invisible when everything goes well: authorization on every record, error handling, backups, limits on what a single user can trigger.
There is measured evidence for the security side. In a 2025 study, Veracode gave more than 100 language models 80 coding tasks, and the code introduced a security vulnerability in 45 percent of cases. Larger models did not do significantly better than smaller ones. Its spring 2026 update found syntax correctness above 95 percent but security pass rates still at about 55 percent, almost where they stood two years earlier. The one notable improvement was reasoning-heavy models, which reached around 70 percent, still well short of safe by default.
None of this means using an AI tool was a mistake. Whether the app was vibe-coded by a founder over a few weekends or written mostly by Copilot inside a small team, a working demo is where the checking starts, not where it ends. This guide assumes an ASP.NET Core app on Azure, usually App Service and Azure SQL. If your app runs on another stack, the questions still apply; the Azure settings will not.
Ten checks, roughly in order of damage
Each check says what to look for, why it matters, and a plain question to put to whoever built the app, or to the AI tool itself.
- Secrets in the wrong place. Connection strings, API keys and payment keys belong in App Service settings backed by Azure Key Vault references, reached through the app's managed identity, never in
appsettings.json, the repository or anything sent to the browser. On a developer's machine they belong in user secrets. AI tools often paste a working key straight into the code to make the demo run. Search the repository history too: a key deleted last month is still in Git, and it has to be rotated, not just removed. Ask: "Where are our keys stored, and has any of them ever been committed?" - Signed in is not the same as allowed. The most common serious gap is an endpoint that checks who you are but not whether the record you asked for is yours, so changing an ID in the URL shows another customer's order. ASP.NET Core calls the fix resource-based authorization: load the record, then check it belongs to the caller before returning it. A fallback policy that requires an authenticated user closes new endpoints by default. Ask: "Show me what happens when user A requests user B's record."
- Rules enforced only in the page. Hiding a button does not stop anyone from calling the endpoint behind it, and Microsoft's own documentation says so. Prices, discounts, quantities, roles and limits must be checked on the server, in the API or page handler, not only in the Razor view, Blazor component or JavaScript. Ask: "Is this rule enforced on the server, or only on the screen?"
- Backups nobody has restored. Azure SQL keeps seven days of point-in-time restore by default, which is less than many businesses assume and is configurable up to 35 days. Long-term retention is off until someone turns it on. A backup you have never restored is a hope, not a plan. Ask: "When did we last restore into a test copy, and how long did it take?"
- No tests and no staging slot. Most AI-built apps have no automated tests and deploy straight to the live site. Each new prompt changes code nobody re-checks, which is how a fix in one place breaks checkout in another. A handful of tests over sign-in and the main transactions, plus an App Service staging slot you swap from, cover most of the risk. Ask: "How do we know a change didn't break something?"
- Packages nobody chose. AI tools add NuGet and npm packages freely, sometimes ones that are abandoned, vulnerable or have a name one letter off from the real thing.
dotnet restorereports known vulnerabilities as warnings NU1901 to NU1904; make the high and critical ones fail the build. Ask: "Can I see our dependency list and which ones are out of date or flagged?" - Silent failure. What happens when a payment fails, an email bounces or an outside API times out? In many AI-built apps the answer is an empty
catchblock: no message, no log, no alert, and you find out from a customer. Application Insights with one alert that reaches a person is the minimum. Ask: "How would we know if this broke at 2 a.m.?" - Payments and webhooks. Stripe, PayPal and similar providers call your app back to say a charge succeeded or failed. If the app does not verify the signature on those calls, anyone can fake one; if it does not handle the same event arriving twice, customers get charged or fulfilled twice. Ask: "Do we verify payment webhooks and ignore repeats?"
- Costs that can run away. Every call to Azure OpenAI, an email service or a maps API costs money. Without limits, one bug in a loop or one bad actor can produce a very large bill. ASP.NET Core's rate limiting middleware caps requests per user, and an Azure budget alert tells you before the invoice does. Budgets alert; they do not stop spending. Ask: "What stops someone from calling this a million times?"
- Who actually owns it. The Azure subscription, the GitHub repository, the domain, the Entra ID tenant and the AI tool's own account may all sit under one person's personal login. If that person is unavailable, can the business still get in? Ask: "Whose name is on each of these, and could I sign in without them?"
If the app was built by someone who has since moved on, the ownership check comes first, not last. Our guide on what to do when your developer leaves covers the first week.
What you can check yourself in an afternoon
You do not need to read code to make progress. In one sitting:
An afternoon, no code reading required
- List every account the app depends on: Azure subscription, database, repository, domain registrar, payment provider, email service, the AI tool. Note whose login owns each, and add a second owner anywhere there is only one.
- Create two test users and try to open one user's data while signed in as the other, by changing the ID in the address bar. If it works, stop and fix that before anything else.
- Search the repository for "key", "secret", "password" and "ConnectionStrings". Anything that turns up in a file instead of App Service settings or Key Vault is a finding.
- Restore last night's database into a test copy, or ask whoever runs Azure to do it while you watch.
- Set a budget alert on the subscription at a number that would surprise you.
Write down what would happen to the business if the app were off for a day. That answer decides how much of the rest is urgent.
When it is fine to keep going
Not every AI-built app needs a rescue, and it is worth saying plainly.
- Internal use, few users, no sensitive data. A tool only your team uses, holding nothing personal or financial, can run with far less ceremony. Fix ownership and backups, and move on.
- A prototype you plan to rebuild. If the app exists to learn what customers want, spend the money on what you learn, not on hardening a throwaway.
- It is already fine. A read-through sometimes finds the foundations are sound and only a few targeted fixes are needed. That is a cheaper result than most people fear.
The time to stop and get it checked is when real customer data, payments or regulated information are involved, or when you are about to put the app in front of customers who would notice an outage. For an app that is already in production on Azure, the ASP.NET Core security checklist for Azure App Service goes deeper on hosting settings and patching.
What an outside assessment looks like
A good assessment starts without changing anything. Someone reads the code with read-only access, gets it building on a clean machine, traces the paths the business depends on, and writes down what they find, ranked by how much it matters, with a price for each fix. You keep the report whatever you decide, and "leave it alone" is a legitimate answer.
You do not need any particular firm for this. What matters is that the result is written, ranked, and separates what is dangerous from what is merely untidy. If you want ours, the Project Rescue assessment is a fixed fee for one application, and the .NET and Azure security review covers an app that is already live and needs its security checked rather than a full read.
Sources
The study figures come from Veracode's published research; every platform behavior comes from Microsoft's own documentation.
- AI-generated code poses major security risks in nearly half of all development tasks (Veracode, July 30, 2025)
- Spring 2026 GenAI code security update (Veracode, March 24, 2026)
- Use Key Vault references as app settings in Azure App Service
- Safe storage of app secrets in development in ASP.NET Core
- Resource-based authorization in ASP.NET Core
- View-based authorization in ASP.NET Core MVC
- Automated backups in Azure SQL Database
- Set up staging environments in Azure App Service
- Auditing package dependencies for security vulnerabilities
- Application Insights overview
- Rate limiting middleware in ASP.NET Core
- Tutorial: Create and manage budgets