Skip to content
All articles
Audit practice 8 min read· by Lars Zimmermann

A security check is not a prompt: AI as a testing tool

A language model scans your website for gaps and replaces the pentester? Three reasons why that does not hold, and what a testing tool has to do.

In short

A language model can help with a security check, but it replaces neither a fixed test script nor a penetration test. A testing tool must give the same result twice on the same state, its limit must lie in its permissions instead of the task text, and an outside view sees only what lies outside. The costliest gaps sit inside.

Auf Deutsch lesen: deutsche Fassung

In a demonstration currently doing the rounds, a language model checks a website for security vulnerabilities. Enter the address, wait briefly, read the traffic light. At the end comes, in substance, the sentence that you no longer need a pentester. I looked at the setup. The model runs at a third-party provider. The refusals that otherwise block security questions have been trained out of it. And the only limit is a sentence in the task: read only, do not carry out any attacks.

As an auditor I ask three questions of every testing tool. Does it deliver the same result twice? What is it technically allowed to do? And what can it see at all from where it stands? The setup fails on all three. A language model still has a place in security work. That place is somewhere other than where the demonstration puts it.

A testing tool must say the same thing twice

A calliper that reads 20.02 in the morning and 20.11 in the afternoon gets thrown out of the workshop. Nobody argues about it. The same standard applies to security testing, it is just stated less often: a finding counts when a second run confirms it.

A large part of what the demonstration shows is pure measurement. Are the security headers set? Which TLS versions does the server accept? Do the cookies carry the right attributes? Is a backup file lying openly on the web? These are yes-or-no questions. A fixed script answers them in seconds and the same way on every run. Anyone who runs websites knows two free tools for this: Mozilla's HTTP Observatory for the headers and the SSL Server Test from Qualys for the encryption.

A language model works differently. It generates its answer with an element of chance. The same task can produce a different rating on the second run, leave out a point or invent a new one. For a draft that is harmless. For a traffic light it is a problem. A yellow that turns green on the next run although nobody changed anything tells you something about the measuring instrument. About your website it tells you nothing.

Test it yourself. Run the same check three times in a row and lay the results side by side. If the list stays the same, you have a measuring instrument. If it shifts, you have an opinion. With an opinion you can neither justify a release nor prove to a customer that a gap has been closed.

Repeatability has a second benefit that is often overlooked: the history. A fixed check that runs every week shows you the day a header disappeared or a certificate is about to expire. You see the change before a customer reports it. That only works if the check measured the same thing yesterday as today. A tool with fluctuating results has no history. It only has snapshots that do not fit together.

The limit is in the task text, so it is nowhere

The second point weighs more. In the demonstration the model is supposed to only read and to exploit nothing. This limit is in the prompt. A prompt is a request. If the model does not keep to it, nothing stops it. Why a rule in the task text is no barrier, I have shown in a separate article. Here something is added: exactly the restraint this request relies on has been trained out of the model.

Why a rule in the prompt is not a barrier, and how to recognise a technical limit:

When the only barrier is a sentence in the system prompt

A technical limit looks different. The tool is given read-only requests as its only capability. It has no credentials. It may only call the addresses on a fixed list. It runs in an environment from which it cannot reach anything else. Then it no longer matters what the task says and what the model makes of it. The limit lies in the permissions.

ISO/IEC 27001 has known this idea for a long time. Privileged access rights are restricted and managed (A.8.2). A testing tool that accesses other systems is a privileged actor, even if it only reads. Whoever procures one therefore asks about the permissions first and about the traffic light last.

Then there is the operator. The model does not run on your premises. Every response from your website, every finding and every exposed file pass through a third party's systems. That is a supplier relationship within the meaning of the standard (A.5.19). You need the answers to three questions: who sees the results? How long are they kept there? Are they used for training? A list of your vulnerabilities is the last thing you want lying with a provider whose contract you have not read.

From outside you only see what lies outside

The third point is the least conspicuous. As its most expensive find, the demonstration names the advice that quotas and payment data must be secured on the server. That is true. It is just not a find. The check never saw the server from inside. It cannot know whether anything is missing there. It gives general advice and shows it in the colour of a finding.

Look for this difference in every report. A finding has a location, evidence and a counter-check: this address responds with that content, here is the request, after the fix it responds differently. Advice has none of that. It fits every website in the world. Two pairs as examples, freely worded:

  • Weak: “Make sure your request limits are enforced on the server side.”
  • Solid: “The request limit depends on a header field that the sender sets themselves. With a modified field the limit no longer applies; the request demonstrating this is attached.”
  • Weak: “Payment data should be protected.”
  • Solid: “Retrieving an invoice checks the login, but not whether the invoice belongs to the logged-in account.”

The second example in the list is no coincidence. Gaps of this kind sit in the logic behind the login. Who may see what? What does a limit depend on? What happens when two requests arrive at the same time? Only someone who reads the code, works with a test account or deliberately tries to break the rules can answer such questions. That is exactly the work of a penetration test. An outside check finds the open door. Whether the safe behind it is locked, it never learns.

A clean outside check is therefore good news with a short reach. Zero critical points means: the things anyone can see from outside are in order. It means nothing more. Whoever turns that into “we are secure” has skipped half the test without noticing.

What a language model still contributes to testing

I work with language models on security topics myself. They are strong where a person reads over the output and where the result remains a proposal.

  • Explaining results: a script reports a missing header. The model explains what it does and how to set it for your server.
  • Reviewing code: searching your own source code for patterns that often go wrong. Every hit is a suspicion that a test has to confirm.
  • Suggesting test cases: which inputs should a form withstand? The model's list is longer than your own. A fixed test carries it out.
  • Making reports understandable: turning a technical finding into a summary for management that leaves the finding itself unchanged.

The order decides. The script measures, the model explains, the human decides. Whoever turns that round and lets the model measure has given away repeatability and got speed in return that the script already had anyway.

A word on the law, without advice on any individual case: test only your own systems or those for which you have a written mandate. Under German criminal law, anyone who without authorisation gains access to specially protected data by overcoming the access protection commits an offence (Section 202a of the German Criminal Code, Strafgesetzbuch, StGB). Even preparing such an act is covered (Section 202c StGB). A tool that examines any address on demand does not take this check off your hands. It only makes the misstep more convenient.

Where this connects to ISO/IEC 27001

What the standard asks for is a process that holds up. It prescribes neither a particular scanner nor a penetration test at fixed intervals. Four controls from Annex A interlock here.

  • A.8.8, management of technical vulnerabilities: obtaining information about vulnerabilities, assessing your own exposure, acting. That requires findings that can be traced.
  • A.8.29, security testing in development and acceptance: tests are defined in the development process and carried out. A test that checks something different on every run cannot be defined.
  • A.8.2, privileged access rights: a testing tool, too, receives only the rights it needs for its task.
  • A.5.19, information security in supplier relationships: the operator of the model is a supplier who sees your findings.

In an audit I ask about the last security test and have three things shown to me. First, the scope: what was tested, and what was expressly excluded? Second, the findings with evidence. Third, the retest, meaning the run after the fix. A screenshot with a green traffic light answers none of the three questions. A script log with date, test points and result answers the first and the third. The report of a penetration test answers all three, if it is a good one.

What to do on Monday

Start with what costs nothing. Run your website through the two fixed tests for headers and encryption and keep the result with a date. That takes ten minutes and can be compared next time.

Then write down what nobody can see from outside: login, roles, payment flows, interfaces, request limits. That is the list for testing from inside. For a small application, a developer who did not write the code can take this on. If you process money or personal data on a larger scale, a penetration test with a clear mandate belongs in it. A public testing guide such as the OWASP Web Security Testing Guide shows what such a test should cover and helps when comparing quotes.

If someone offers you an AI security check, four questions are enough. Does it deliver the same list across three runs? What rights does the tool have technically? Where do my results go? And which points in the report are findings with evidence, which are general advice? Whoever gets clear answers to these has a usable tool in front of them. Whoever hears that the prompt takes care of it now knows where the offer is vulnerable.

Share: LinkedIn E-Mail

Frequently asked questions

Can a language model replace a penetration test?+

No. A penetration test deliberately examines the logic behind the login, with test accounts, access to the code or attack attempts within the agreed scope. A language model looking at a website from outside sees none of that. It can explain results and suggest test cases; the test itself it does not replace.

Why is repeatability so important for a security check?+

Because after a fix you have to prove that the gap is closed. That only works if the same test reports red before and green after. If the result changes from run to run even without a fix, nothing can be concluded from a green result.

Are free tests for headers and TLS enough?+

For the points they measure, yes. They reliably show whether the configuration is right from the outside. About login, roles, payment flows and interfaces they say nothing. That takes a test from inside.

May I test other people's websites with such a tool?+

Test only your own systems or those for which there is a written mandate. Under German criminal law, obtaining unauthorised access to specially protected data is an offence under Section 202a StGB, and preparing it under Section 202c StGB. If in doubt, a lawyer should clarify this before the test runs.

Does ISO/IEC 27001 require a penetration test?+

Not expressly and not at fixed intervals. The standard requires the management of technical vulnerabilities (A.8.8) and defined security testing in development and acceptance (A.8.29). How you meet that depends on your risk. For applications handling money or large amounts of personal data, a penetration test is the usual evidence in practice.

Author & expert review: Lars Zimmermann · ISO/IEC 42001 Senior Lead Auditor & Senior Lead Implementer · ISO/IEC 27001 Lead Auditor & Lead Implementer (PECB)

Last updated: 13 November 2026. Researched and reviewed to the best of our knowledge; not a substitute for individual legal advice.

Questions about your own case?

In a free 15-minute intro call we assess where you stand on ISO 42001, ISO 27001 and the EU AI Act, honestly and without a sales pitch.

Continue reading