← Back to blog

Is it safe when AI works on a penetration test? Our process, data handling and limits

· How we work

When we tell a client that we use artificial intelligence (AI) agents in testing, the first question is almost always the same: “And where does our data go?” It is the right question. During a penetration test we see vulnerabilities, configurations, sometimes source code and credentials that nobody else should see.

In this article we describe openly how we work: from the first conversation to the retest, where AI agents help us, where only a human decides, and under which terms we use AI so that your data does not become anyone's training material.

The short answer

  • AI works, a human decides: agents perform reconnaissance, configure scans, sort findings and write drafts. The tester manually verifies every finding and approves every report.
  • Agreed scope only: the agent works only with systems you have authorised us in writing to test.
  • Your data does not train models: we use only Anthropic models under commercial terms, under which Anthropic may not train models on customer content. We do not send data to any other AI provider.

1. What does our work look like from start to finish?

AI does not replace the process; it works inside it. So the process comes first:

  1. Consultation and scope. A free 15-minute conversation, followed by a request for technical information: which systems, environments, user roles, APIs and integrations. We confirm the scope (domains, IP addresses, roles, what we do not test) in writing.
  2. Contract, NDA and authorisation to test. We do not start without a signed written authorisation to test. It lists the systems, testing windows, incident contacts and prohibited actions (for example, DoS tests unless agreed).
  3. Plan. The methodology follows the OWASP WSTG, and the testing time is agreed so that it does not disrupt your business.
  4. Testing. Automated and manual DAST, commercial tools (Burp Suite Professional, Acunetix, Tenable Nessus) and open-source tools. These tools run on our own equipment, not in the cloud, and the results are stored locally.
  5. Verification of findings. We reproduce every finding manually. Only what we have confirmed stays in the report.
  6. Report. In Lithuanian or English: an executive summary, technical details with evidence (PoC), risk rated by CVSS, and specific recommendations.
  7. Help with remediation. We explain the findings to developers and, if needed, help to cover a vulnerability temporarily with a WAF rule until it is fixed.
  8. Retest. We check that the vulnerabilities have been fixed and issue an updated report.
  9. Data deletion. We deliver the report encrypted and, when the project ends, delete the testing data and copies of the reports.

2. Where do AI agents work in this process?

An AI agent is not a chat window into which we paste text. It is a programme (we use Claude Code) that can run tools, read their output and suggest the next step. That is exactly why it needs clear boundaries.

StageWhat the AI agent doesWhat the human does
ScopeAnalyses the documentation provided (for example, an OpenAPI description) and compiles a list of endpoints and rolesConfirms the scope with the client
ReconnaissancePassively collects public information about the agreed domains (certificate registries, DNS)Decides what falls within the scope; assets found outside it are only reported to the client
DAST scanningPrepares the scanner configuration: authentication, roles, exclusions, rate limitsReviews it and starts the scan
Sorting findingsGroups duplicates and picks out likely false positivesManually reproduces every finding and rates it by CVSS
ReportPrepares a draft of the reproduction steps and recommendations from our findings libraryEdits, checks and approves
WAFChecks whether existing WAF rules (Cloudflare, F5, Coraza) block the attack that was found and proposes a temporary ruleTests the rule in the lab before handing it to the client
RetestRepeats the documented reproduction stepsConfirms whether the vulnerability has been fixed

How do we make sure the agent does not go outside the scope?

The scope is locked technically, not only in the contract. All HTTP(S) testing traffic goes through a proxy (for example, Burp Suite) that allows only the pre-agreed scope, so we see and control every request. Requests outside the scope are rejected before they are sent, so the agent cannot redirect the work elsewhere on its own.

The aim is to prove access, not to reach client data. It is enough to show that a command can be executed on the server or that another agreed resource can be reached: that already demonstrates the risk, because the next step would lead to data. The checks are therefore chosen to confirm access without touching client data or its contents. If the application itself shows client data in a response, we stop work immediately under rules defined in advance.

We apply the same strict verification in our own research: in our security research on open-source projects, agents work in different roles (one looks for vulnerabilities, another tries to disprove them, a third defends), and a finding counts as confirmed only when a working proof of concept (PoC) succeeds in an isolated environment and withstands the adversary's review. AI quickly generates many hypotheses, so strict verification is essential.

Hypothetical example. A web application with three roles and 120 API endpoints. From the OpenAPI description, the agent compiles a matrix of endpoints and roles and prepares a checklist of authorisation tests. The tester picks the riskiest areas from this list and tests them manually. Routine work gets shorter, and more time is left for manual testing.

3. Will your data be used to train AI models?

No. For client projects we use the Claude Team plan and the Claude API. Both are covered by Anthropic's commercial terms (Commercial Terms of Service). They state explicitly: “Anthropic may not train models on Customer Content from Services”, that is, on prompts and responses [1]. The same applies to Claude Code: under the commercial terms, Anthropic does not train models on the code or prompts sent through Claude Code [3].

Why stress this? Because different terms apply to consumer plans (Claude Free, Pro, Max): since September 2025, users choose for themselves whether their conversations and Claude Code sessions may be used for model training, and if they allow it, the data is retained for up to 5 years [2]. For that reason we do not use personal plans for client work.

What this means for you in practice:

  • Your findings, configurations and source code do not become training material.
  • Data retention is limited. Under the commercial terms, Claude Code and API data is stored on Anthropic's servers for 30 days [3][4]. The exception: if Anthropic's automated safety systems flag content as violating the usage policy, it may be retained for up to 2 years [4].
  • We do not send feedback. The commercial terms provide that explicitly submitted feedback (for example, a like / dislike button) may be used [5]. We have therefore disabled feedback submission and do not take part in the Development Partner Program.
  • Data minimisation. We pass the AI agent only what the task requires.
  • You can opt out. If your policy does not allow the use of AI, we carry out the project without AI agents. In that case the work takes longer and therefore costs more.

4. Is AI allowed to be used for penetration testing?

Yes, when testing is carried out with the system owner's authorisation. Anthropic's Usage Policy prohibits “finding or exploiting vulnerabilities in systems, networks or applications without the system owner's authorisation”, and creating malicious code, DoS tools or tools designed to compromise systems at scale [6]. The version of the policy that takes effect on 12 November 2026 states this explicitly: security research and testing are permitted on systems you control, with the system owner's authorisation, or under an official bug bounty or vulnerability disclosure programme, provided the activity complies with the law [7].

Our work matches exactly this model: every project has written authorisation and a clear scope (section 1), and the agent does not work with systems outside the scope (section 2).

Anthropic also has the Cyber Verification Program (CVP), a programme for verified security professionals [8][9]. It does not remove safeguards: for programme members it only reduces the blocking classifiers that might otherwise interrupt legitimate work, such as verifying a vulnerability exploit. The Usage Policy applies in full, and Anthropic may review, narrow or revoke the access it has granted [8]. For penetration testing firms, the access allows testing only the systems that the firm is authorised to test [9].

Taking part in the programme does not by itself give the right to use it for client work: each service needs separate approval from Anthropic, and until it is granted, clients may not be served [8]. Our penetration testing service has received such approval. Anthropic retains the data of programme participants to monitor for abuse [8].

5. Why do we use only Anthropic models?

For all client projects we use only the Claude models built by Anthropic. We do not use AI models developed in China or by other third parties, and we do not send client data to any other AI provider.

The reasons:

  • A clear legal chain. For EEA customers, the Anthropic contracting party is Anthropic Ireland, Limited [1], and the data processing agreement (DPA) with EU Standard Contractual Clauses (SCCs) is part of the commercial terms [10]. Your GDPR documentation shows clearly who processes the data and on what basis.
  • Verifiable security. Anthropic holds ISO 27001:2022, ISO/IEC 42001:2023 (AI management systems) and SOC 2 Type II certifications [11], and its list of subprocessors is public [12].
  • Supply chain risk. NIS2 requires you to manage supplier and supply chain risk. Every additional AI provider, especially one from a jurisdiction in which the authorities can demand access to data, is an additional risk that you would have to assess. A single provider with clear terms reduces that risk and simplifies your supplier assessment.

What should you know about data location? Currently Anthropic does not directly offer EU-only processing: the available locations are “us” and “global” [13]. Data is transferred to the US under the DPA and SCCs [10]. If your policy requires data to be processed only in the EU, we carry out the project without AI agents.

6. What does this give you?

  • Speed. Routine work (configuration, sorting, drafts) takes less time, so you receive the report sooner.
  • Wider coverage. In the same time we check more endpoints, roles and parameter combinations.
  • Consistency. Every project follows the same checklist, and reports have the same structure.
  • Lower cost. Fewer hours on routine work means fewer hours on the invoice. Prices are published openly on the penetration testing page.
  • Quality does not drop. A human checks every finding, and the time AI saves goes into manual testing: business logic, authorisation and complex attack chains that neither scanners nor AI can see.

Have questions about AI and your data?

In a free 15-minute consultation we will tell you how we would work with your system, what data the AI agent would see and how to align this with your security policy.

Book a consultation

Frequently asked questions

Will my data be used to train AI models?

No. We use Claude Team and the Claude API under Anthropic's commercial terms, which state that Anthropic may not train models on customer content [1]. We do not send feedback containing client data to Anthropic.

Does the AI attack my system on its own?

Not autonomously. The agent prepares and carries out actions only within the agreed scope, and the tester approves active actions. A human manually verifies every finding and approves the report.

Where is my data processed?

On Anthropic's infrastructure, currently not EU-only (the available locations are “us” and “global”) [13]. The transfer is governed by a DPA with EU Standard Contractual Clauses [10]. If you need EU-only processing, we carry out the project without AI agents.

Can I opt out of AI use on my project?

Yes. We will carry out the project without AI agents, but the work will take longer and therefore cost more.

Sources

  1. Anthropic — Commercial Terms of Service (Section B; contracting party in the EEA)
  2. Anthropic — Updates to Consumer Terms and Privacy Policy (2025-08-28)
  3. Claude Code Docs — Data usage
  4. Anthropic Privacy Center — How long do you store my organization's data?
  5. Anthropic Privacy Center — Is my data used for model training?
  6. Anthropic — Usage Policy (in force from 2025-09-15)
  7. Anthropic — Usage Policy (takes effect 2026-11-12)
  8. Claude Help Center — Cyber Verification Program
  9. Anthropic — Expanding the Cyber Verification Program (2026-10-06)
  10. Anthropic — Data Processing Addendum
  11. Anthropic Privacy Center — What certifications has Anthropic obtained?
  12. Anthropic — Subprocessors
  13. Claude Platform Docs — Data residency

Want a penetration test where AI does the work and a human makes the decisions?

We will discuss your system, the scope and the data handling terms before you sign the contract.

Book a consultation