Skip to content
AI SYSTEM — Artificial Intelligence

Building software with AI

Vibe coding with guardrails.

Vibe coding means: you describe what you want, and the AI writes the code. It is fast – and without checks it goes wrong fast.

AI SYSTEM, based in St. Gallen, builds its own products this way and follows ten rules while doing so. Here they are, along with what we check automatically and what we do not.

Assembly line

A suggestion from the AI is not a release yet.

Every change passes the same stations. Whatever gets stuck at a station goes back – and not live.

  1. AI suggestion

    A change as a small, clearly bounded step.

  2. Tests

    Lint, type check, tests and production build must be green.

  3. Security

    Dependencies against known vulnerabilities, a scan for key patterns, security headers.

    Gets stuckFinding: back to the workshop, not live.

  4. Review

    The main model reviews the result, with screenshots from 390 to 1440 pixels.

  5. Approval

    A person decides whether it goes live.

  6. Live

    A script checks the public pages. If that fails, the previous version comes back.

How to read it: two changes start. The blue one passes every station and goes live. The red one gets stuck at “Security” and goes back. Schematic illustration.

Our ten rules

Ten rules we follow when building with AI.

For each rule we state what a machine checks and what is a working rule that people have to rely on. The second kind is the more honest half.

  1. Credentials do not belong in code or prompts

    Keys and passwords sit in a protected file outside the project. Scripts read them from there without displaying them.

    Partly automaticHow it is enforced: The deploy aborts if an .env file ends up in the archive, and a check scans every project for key patterns. For prompts it is a working rule.

  2. Customer data does not belong in free AI

    Customer data only goes into models whose contract rules out training on that content.

    Working ruleHow it is enforced: There is no automatic check for this. Which plans meet the condition is listed with sources under “Data & security”.

  3. Every change passes the full check chain

    Lint, type check, tests, content check and production build must be green before anything is handed over.

    Checked automaticallyHow it is enforced: The deploy of this website repeats the content check, lint and build and then checks the public pages.

  4. A security finding stops the deploy

    A script checks the dependencies of all projects for known vulnerabilities. If it reports a finding, nothing goes live until it is fixed – even if the finding is in another project.

    Partly automaticHow it is enforced: Built into the deploy for part of the projects, a step before it for the others.

  5. A person approves

    Nothing goes live without approval from a responsible person. For our own sites the owner commissions every package and receives a test report and screenshots.

    Working ruleHow it is enforced: Checked routine deploys of our own sites are then carried out by the AI itself.

  6. Small steps, versions, a way back

    Every finished package is its own state in version control. If the check after the deploy fails, the previous version comes back.

    Checked automaticallyHow it is enforced: The deploy remembers the running version and restores it by itself on failure.

  7. Only as many rights as necessary

    The workstation the AI works on has no administrator rights. Credential files can only be read by that one user, and every task names the folders it may touch.

    Partly automaticHow it is enforced: The missing administrator rights and the file permissions are technically enforced. The folder boundary is a working rule.

  8. Security headers on every page

    Every response of this website carries a Content Security Policy, HSTS and four more protective headers.

    Checked automaticallyHow it is enforced: Set centrally and read from the live site after the deploy. Known weakness: the policy allows inline scripts, see “Check us yourself”.

  9. Delete logs regularly

    Deploy and test logs are not an archive. An hourly run cleans them up according to a fixed list.

    Checked automaticallyHow it is enforced: Logs older than 14 days are deleted; the 20 most recent per folder are kept.

  10. The right model – and a second look

    Architecture and security are handled by a different model than design and copy. Whatever a helper model delivers is reviewed by the main model.

    Working ruleHow it is enforced: A model from another vendor is available for second opinions.

Data & security: what the vendors commit toAs of

Check us yourself

Anyone can claim this. These tests are public.

Three free services check from the outside what a website sends along. Run them for our site – and for your own.

  • Mozilla HTTP Observatory

    Rates security headers, redirects and the Content Security Policy.

    Result: B+, 80 out of 100 points11/12 tests passed · Scan of

    Not passed: the Content Security Policy, because it allows inline scripts (“unsafe-inline”). The prerendered pages need them; without them every page would have to be generated on every request. This is a deliberate trade-off – and the reason there is no A here. 7

    Run the test yourself
  • Security Headers

    Grades the protective headers of a website.

    No grade from us: the service cannot be queried automatically. Please check for yourself.

    Run the test yourself
  • Qualys SSL Labs

    Checks the certificate and the encryption of the connection.

    No grade from us: the service cannot be queried automatically. Please check for yourself.

    Run the test yourself

What this website sends along

  • Content-Security-Policy
  • Strict-Transport-Security
  • X-Content-Type-Options
  • X-Frame-Options
  • Referrer-Policy
  • Permissions-Policy

Measured ourselves on the live site on .

Offer

Security check for AI-built apps.

You have built an app with an AI app builder or a coding assistant, or had one built? We check what such apps typically leave open and tell you what to close first.

  • Exposed keys

    API keys and passwords in code, in the repository or in the browser.

    According to GitGuardian, 28.65 million new hardcoded secrets were added to public GitHub commits in 2025, 34 percent more than the year before. For commits made with Claude Code the leak rate was 3.2 percent, against 1.5 percent across all commits – one reason for our first rule. 4

  • Missing access rules

    Databases that answer every request because row-level rules are missing.

    CVE-2025-48757: an insufficient row-level security policy in sites generated with Lovable allowed unauthenticated attackers to read or write arbitrary tables. A scan found 303 affected endpoints in 170 of 1,645 projects analysed. The supplier disputes the classification. 23

  • Data leaks

    Personal data, payment details or internal documents that can be retrieved without signing in.

    In the same case, according to the report, names, phone numbers, API keys and payment details were among the exposed data. 3

For context: in a study by Veracode, AI-generated code introduced security vulnerabilities in 45 percent of the cases tested – across 80 tasks and more than 100 language models. 1

Checklist

10 questions for anyone who builds software for you with AI.

Those with good answers give them in five minutes. Those who dodge have told you something too.

  1. Where are credentials and keys stored – and who can read them?

    Good answer: Outside the code, with restricted permissions. Never in the repository.

  2. Which AI models see our data, and under which contract?

    Good answer: Named models with a business contract and a data processing addendum.

  3. Is our content used for training? Where does it say so?

    Good answer: No – with a reference to the vendor’s clause.

  4. Which checks run automatically before every release?

    Good answer: At least tests, type check, lint and a dependency audit.

  5. What happens when a check finds a vulnerability?

    Good answer: The release stops until the finding is fixed.

  6. Who approves changes – a person or the AI?

    Good answer: A person who is named.

  7. How do we get back to the last working version?

    Good answer: Version control and a way back that has been used before.

  8. Which rights does the AI have, and which do users have in the app?

    Good answer: As few as necessary. Access rules in the database, not only in the interface.

  9. Can you show me a public security test of our site?

    Good answer: Yes – with link, grade and date.

  10. Who owns the code, and do we receive all of it?

    Good answer: It is in the contract. You receive source code and access.

Download the checklist as PDFDeutsche Fassung (PDF)

PDF, one page. No sign-up, no email.

Questions and answers

Four questions we hear often.

Answered briefly, with a source where there is one.

Is vibe coding unsafe?
Without checks, often. In a study by Veracode (July 2025), AI-generated code introduced security vulnerabilities in 45 percent of the cases tested. The risk lies less in the AI than in the missing process behind it: tests, security checks, review and approval catch what the model overlooks. 1
Who owns the code?
In Switzerland only what comes from a human is protected by copyright, writes the Swiss Federal Institute of Intellectual Property; someone who uses AI as a tool and shapes the result themselves can have protection. Anthropic, for example, assigns the rights in outputs to the customer in its Commercial Terms. Who is entitled to the result of a project therefore belongs in the contract. 56
Which AI sees our data?
That depends on the tool and the plan, not on the word “AI”. With the business offerings of Microsoft and Anthropic, the terms rule out training on your content; with private Claude accounts a setting decides. The evidence is on the “Data & security” page. Ask every service provider about model, plan and contract.
Who is liable for errors?
Not the AI. The tool vendors see the responsibility with the customer: in the entry for vulnerability CVE-2025-48757 the supplier states that each customer accepts responsibility for protecting the data of their application. How liability is shared between you and your service provider is determined by the contract. That is a legal question for which you should consult a specialist. 2

General information, not legal advice.

Sources

Sources, with dates.

The numbers match the references on this page.

  1. NIST · National Vulnerability Database

    CVE-2025-48757 (opens the publisher’s page)

    Source dated · accessed on

  2. Matt Palmer

    Statement on CVE-2025-48757 (opens the publisher’s page)

    Source dated · accessed on

  3. GitGuardian

    The State of Secrets Sprawl 2026 (opens the publisher’s page)

    Source dated · accessed on

  4. Eidgenössisches Institut für Geistiges Eigentum (IGE)

    Künstliche Intelligenz: Können KI-Tools Urheberrecht verletzen? (opens the publisher’s page)

    Source dated · accessed on

  5. Anthropic

    Commercial Terms of Service (opens the publisher’s page)

    Source dated · accessed on

  6. Mozilla · MDN

    HTTP Observatory – Scan aisystem.ch (opens the publisher’s page)

    Source dated · accessed on

Contact

What problem should AI solve for your business?

Tell us about the task. We will respond with an honest assessment of the value, feasibility and a sensible next step.

Discuss a projectcontact@aisystem.ch