Web design

AI-built website security: 10 questions to ask your provider

Geneviève Cyr
Geneviève Cyr

Partner · Web development, SEO and GEO

November 23, 202611 min readLire en français →

ShareLinkedInFacebookEmail

Geneviève Cyr

Insights · Web design

Write to Geneviève Cyr

A question about this article or about your situation? Your message goes straight to Geneviève.

A company address, preferably.
Reply within 1 business day

A website built with AI is no more and no less secure than any other: its security depends on the guardrails around the AI. Veracode's 2026 report found that 44% of coding tasks given to AI introduce a known security flaw. The risk is therefore handled before you sign, with precise questions for your provider: who reviews the code, which checks block a release, where the keys live, how the site rolls back and who has access to what. A good answer names a person, a tool or a timeframe. A vague answer should raise a flag, especially if your site collects personal information covered by Law 25.

Key takeaways
  • According to Veracode, 44% of coding tasks given to AI introduce a known flaw.
  • The security of an AI-built site rests on three things: a person who reviews, checks that block a release and a working copy kept separate from the live site.
  • Keys and passwords never live in the site's code.
  • A pre-built site exposes far less to the public than an application with a database and a login page.
  • Under Quebec's Law 25, your business answers for the personal information its site collects, even when a provider manages it.
On this page
Definition

Attack surface

A website's attack surface is every part exposed to the public that a malicious person can try to exploit: a database, a login page, plugins, forms or code that runs on every visit. The more software a site runs online, the larger it gets. A pre-built site, whose pages are made in advance, shrinks it to very little: what remains is mostly the forms and the accounts that can change the site.

44%of coding tasks given to AI introduced a known security flawVeracode, July 2026
15%average success rate of AI models against cross-site scriptingVeracode, July 2026
5 hoursbetween the disclosure of a heavily exploited WordPress flaw and the first attack attempt, medianPatchstack, 2026

What AI changes about the risk

AI quickly writes code that works. It is less good at writing code that withstands attacks. In its report published in July 2026, Veracode measured an average security pass rate of 56%, barely higher than the 55% in its first report. Results vary widely by type of flaw: an 83% pass rate against SQL injection, but only 15% against cross-site scripting (a malicious script slipped into a page) and 12% against log injection.

Platforms that build an entire application from a description show the same gap. In March 2025, a researcher analyzed 1,645 projects published with Lovable. In 170 of them, the database access rules were insufficient: a visitor without an account could read or change entire tables. The flaw is listed as CVE-2025-48757 in the U.S. National Vulnerability Database (NVD). Lovable disputes it: according to the company, each customer of the platform is responsible for protecting their application's data. The lesson for a business: when the tool and the customer pass responsibility back and forth, someone has to take it on in writing.

Access keys are the third weak point. GitGuardian found 28.6 million new secrets (API keys, passwords, tokens) in changes published on GitHub in 2025. Its 2026 report adds that changes co-authored by Claude Code (Anthropic's coding tool) expose secrets about twice as often as the baseline. We use Claude Code ourselves: this figure does not condemn the tool. It shows what happens when no one checks where a key goes.

OWASP, the foundation that publishes the most widely followed risk lists in web security, ranks broken access control first in its 2025 list, security misconfiguration second and software supply chain failures (the components a site depends on) third. If your site includes a chatbot connected to an AI, its Top 10 for AI applications also applies: prompt injection, sensitive information disclosure, excessive agency given to an agent and unbounded consumption, which can drive up a bill.

Watch out

A site that looks perfect on screen can hide an open database or a key visible in its code. Security does not show on screen: it is verified through precise questions and evidence.

Ten questions to ask your provider

These questions require no technical knowledge. Ask them before you sign, in person or in writing. For each one, here is what a good answer contains.

01

Who reviews the code the AI writes?

A good answer names a person who can read code and who reviews every change before it goes live. The AI prepares, a person approves: never the other way around. Building software without reviewing the AI's code has a name, vibe coding: it suits a prototype, not a site that serves your customers.

02

Which checks block a release?

A good answer gives a precise list of automatic checks that block publication when they fail: broken links, disconnected forms, structured data, security headers, a scan for keys left in the code, components with a known flaw. A check that only warns ends up being ignored.

03

Where do the site's keys and passwords live?

A good answer: never in the code or in the repository. Keys (email sending, AI, payment) live in the host's protected settings or in a vault built for that purpose. Each one serves a single purpose, can be replaced without rebuilding the site and carries a spending cap when the service allows it. GitGuardian found 24,008 unique secrets in configuration files for MCP connectors (the protocol that connects an AI to a tool): the question also applies to your provider's AI tools.

04

What software does the site depend on and who updates it?

A good answer lists the components (the framework, plugins, libraries), how often they are updated and the promised timeframe for a critical patch. In the WordPress ecosystem, Patchstack recorded 11,334 new vulnerabilities in 2025, 91% of them in plugins. For 46% of them, the developer had released no fix by the time the flaw was made public. For the most heavily exploited flaws, Patchstack saw a first attack attempt five hours after disclosure, at the median.

05

Does the AI work on the live site?

A good answer: no. The AI works on a separate working copy and the live site only changes after approval. The agent has only the rights its task requires. OWASP ranks excessive agency among the ten major risks of AI applications: an agent that can do anything can also break anything.

06

How do you roll back?

A good answer separates two things. Versioning keeps every version of the code and lets you put the previous one back online within minutes. Backups protect what changes outside the code: database content, uploaded files, form submissions. The Canadian Centre for Cyber Security recommends keeping long-term backups offline and regularly checking that restoring works. Ask for the date of the last successful restore.

07

Who has access to what?

A good answer fits in a list: every person and every tool that can change the site, with its role. Administrator rights are reserved for those who need them. Two-factor authentication protects important accounts (hosting, domain name, code repository, administrators' email), as the Canadian Centre for Cyber Security recommends. Access for someone who leaves the project is removed the same day.

08

Is the site pre-built or is it an application?

A good answer says what runs online. A pre-built site serves pages made in advance, with no database and no public login page: its attack surface is mostly limited to the forms and the accounts that change it. An application with a database, customer accounts or payments can be the right choice. It then needs tested access rules, as the Lovable case shows.

09

Where does form data go?

A good answer says where submissions are stored, who can read them, how long they are kept and whether they leave Quebec. It also says whether the AI receives personal information: to change a page, it does not need any.

10

Who owns the code?

A good answer: you do. The code lives in a repository in your name or is handed over to you with its full history. The site runs without the AI, which is only used to change it. You can then switch tools or providers without starting from scratch. Our article on digital asset ownership covers the other accounts to keep in your name.

For a WordPress site, our note on security patch responsibility explains what the maintenance contract should cover. Our article on the WordPress business website details its costs and our guide to AI in WordPress 7 shows how to protect API keys. Tracking and chat scripts are components too: our note on third-party scripts explains how to take stock of them.

Forms and Law 25: what stays your responsibility

Handing your site to a provider does not transfer responsibility for personal information. Quebec's Act respecting the protection of personal information in the private sector says so in section 3.1: every business is responsible for protecting the personal information it holds. For a site that receives quote requests or newsletter sign-ups, four obligations matter.

The obligationWhat the law providesThe question to ask your provider
Security measures (section 10)Reasonable measures given the sensitivity of the information, its quantity, its distribution and its mediumWhat measures protect the submissions the site receives?
A written contract (section 18.3)When a provider receives personal information for its mandate, the contract is in writing and sets out the confidentiality measures. The provider notifies your privacy officer without delay of any breach or attempted breach.Does the contract include these measures and this notice?
Communication outside Quebec (section 17)A privacy impact assessment before personal information is communicated outside Quebec, followed by a written agreementWhere are the site, the submissions and any AI tools that might process them hosted?
Confidentiality incidents (sections 3.5 and 3.8)Reduce the risks, notify the Commission d'accès à l'information and the people concerned when there is a risk of serious injury, record every incident in the registerWho notifies us, how quickly and with what information?

A confidentiality incident is not limited to hacking. The law includes unauthorized access to, use of or communication of personal information, as well as its loss. A key left in the code that gives access to submissions could be enough to cause one.

The register covers every incident, whether the risk of injury is serious or not: the Commission d'accès à l'information points this out in its prevention guide published in January 2026. The regulation that governs it sets out its content: the information involved, the circumstances, the date of the incident and the date the business learned of it, the number of people concerned, the risk assessment and the measures taken. It must be kept for at least five years. To fill it in, you depend on your provider's information: the incident notice is therefore negotiated before you sign.

The stakes are real: failing to report an incident or to take the required security measures can lead to an administrative monetary penalty of up to $10 million or 2% of worldwide turnover, whichever is greater. Our article on Law 25 and marketing also covers cookies and email lists.

Answers that should raise a flag

A reassuring answer is not always a good answer. These ones deserve a follow-up.

The answer you hearWhat it can hideThe follow-up
“The AI writes secure code.”No one reviews what it producesWho reviews each change before it goes live?
“We do backups.”No restore has ever been testedWhen did you last restore a backup?
“Everything is in our account, it's simpler.”You own neither the code nor the accessCan the repository, hosting and domain name be in our name?
“We edit directly on the live site, it's faster.”No working copy, so no testing before your customers see itWhere is testing done before release?
“The platform handles security.”The split of responsibilities is written down nowhereWhat does the platform cover and what is left to us?
“We'll let you know if anything happens.”No timeframe and no notice contentHow quickly and with what information for our register?

Our own answers, on falia.co

We ask these questions of our own site. Falia.co was built with Claude Code on the Astro framework. Here is what its repository shows as of October 20, 2026.

  • A pre-built site. Pages reach the visitor already assembled. The public site has no database and no login page. Forms and search go through small, separate functions.
  • 28 automatic checks before every release. Links, structured data, forms, prices, writing rules: if a check fails, the release is blocked. One of them prevents an internal document from being published by mistake. These checks mostly cover quality: security also relies on review and on the architecture.
  • Two direct production dependencies. The public site relies on Astro and its sitemap module.
  • Keys outside the code. The tokens that connect the forms to their destination are stored in the host's protected settings. The file used for local testing is excluded from the repository.
  • A closed list of domains. A content security policy (CSP) stops the browser from loading scripts from any domain other than ours and those of our audience measurement.

Every change is prepared by the AI, passes the checks and is then approved by a person before release. It is the same method we apply to our clients' websites managed with AI. Our pillar article on AI and website development describes the full approach.

What this means for you

Five checks before you sign

  • Do we have the name of the person who reviews the AI's code before release?
  • Does the contract say where our keys live and who can change them?
  • Are the code repository, hosting and domain name in our name?
  • When was a backup last restored successfully?
  • Does the contract provide for prompt notice of an incident, with the information our register needs?

AI writes the code. Security is proven through precise answers.

A pre-built site, checks that block a release, approval before every publication and code that belongs to you: that is our website managed with AI offer.

Would you rather hand off your site's updates, security and backups? Our website maintenance service takes care of it, always with the same contact.

How would you like to send this email?

Frequently asked questions about the security of an AI-built website

Is a website made with AI less secure than one coded by hand?

Not in itself. AI code often contains flaws: Veracode found them in 44% of the tasks it tested. Hand-written code can contain them too. The difference comes from the guardrails: a person who reviews, checks that block and a site that exposes little.

How do I know if my provider really reviews the AI's code?

Ask for the name of the person who approves releases and an example of a change they rejected or corrected. Also ask to see the version history of a delivered site: every change is dated and described.

Can my API keys end up in my site's code?

Yes, if no one checks. GitGuardian found 28.6 million new secrets in changes published on GitHub in 2025. Keys should live in the host's protected settings, never in the code.

Does the AI see my customers' data?

It should not. To change a page, the AI needs neither the submissions received nor your customers' information. If personal information goes through an AI tool hosted outside Quebec, Law 25 requires a privacy impact assessment before it is communicated.

Who is responsible if my site gets hacked?

Under Law 25, your business is: it answers for the personal information it holds. It records the incident in its register. If there is a risk of serious injury, it also notifies the Commission d'accès à l'information and the people concerned. The contract with your provider should require them to notify you without delay.

What is two-factor authentication for on a website?

It protects the accounts that can change or hijack the site: hosting, the domain name, the code repository and administrators' email. A stolen password is no longer enough. The Canadian Centre for Cyber Security recommends it for important accounts, including administrators'.

Can I have someone else check my site's code?

Yes, if you own the code. A site whose code lives in a repository in your name can be checked by a third party at any time. If your provider refuses to show you the code, that is already an answer.

Sources and references
  1. Veracode, 2026 GenAI Code Security Report, July 28, 2026.
  2. OWASP, OWASP Top 10:2025, accessed in 2026.
  3. OWASP GenAI Security Project, Top 10 for LLM Applications 2025, accessed in 2026.
  4. NVD (NIST), CVE-2025-48757 (Lovable), May 30, 2025, tagged as disputed by the supplier; Matt Palmer, Statement on CVE-2025-48757, 2025.
  5. GitGuardian, The State of Secrets Sprawl 2026, 2026.
  6. Patchstack, State of WordPress Security in 2026, 2026.
  7. Canadian Centre for Cyber Security, Baseline cyber security controls for small and medium organizations, version 1.2, accessed in 2026.
  8. LégisQuébec, Act respecting the protection of personal information in the private sector, sections 3.1, 3.5, 3.6, 3.8, 10, 17, 18.3 and 90.12, accessed in 2026.
  9. LégisQuébec, Regulation respecting confidentiality incidents, sections 7 and 8, accessed in 2026.
  10. Commission d'accès à l'information du Québec, Prévenir les incidents de confidentialité : guide explicatif pour les entreprises (in French), January 2026; Incidents de confidentialité et mesures de sécurité (in French), accessed in 2026.
Geneviève Cyr
Geneviève CyrPartner · Web development, SEO and GEO

Geneviève puts the strategy for your engagement into action. She leads all our web development projects: Shopify, WordPress and the new ways of building a site with AI. She manages our team of developers and translates your business needs into technical language. She runs your organic search (SEO), your visibility in AI answers (GEO) and your site's conversion rate optimization (CRO). Her work is at the heart of three goals: Attract customers with SEO and AI, Improve your site's conversion, and Strengthen your visibility in AI answers. With Gabriel, she also builds the landing pages for your advertising campaigns. She writes mainly about SEO, AI visibility and web design.

About Falia →

Keep reading

Tout Web design →
01
Web design·11 min read

Page builders: why some businesses move to a coded website

→
02
Web design·10 min read

WordPress or a website managed with AI: which one fits your business?

→
03
Web design·14 min read

Astro website: the architecture of falia.co, a case study of a bilingual site updated with AI

→
Other topicsStrategySEOPaid advertisingConversionAI visibilityWeb designeCommerce
← All insights