# Safeguards

> The scope gate, new-host admission, and the 24 safeguard controls in the Lab, Standard and Production presets.

Source: https://scansuite.eu/documentation/ai-pentest/safeguards
Last reviewed: 2026-11-26

> **ScanSuite AI:** This page describes ScanSuite AI. ScanSuite Teams has no AI Pentest.

What an AI Pentest may do is decided in code, not in the prompt. Every tool call of every agent passes a gate that checks it against the scope, the rules from your instructions and the safeguard settings, and refuses it otherwise. A refused call is counted, shown on the scan page and never sent. Text found on a target is data: a page that tells an AI agent to test another host changes nothing.

## Always on, for every run

- No shell: a fixed tool set, and the harness builds every command line.
- The scope is checked on every request, redirect, page load and scanner start. A `Host` header naming another host is refused.
- New hosts found during the run are tested only after admission (below).
- Scanners run as an unprivileged user, without the platform's secrets and with a process limit.
- The browser is locked to the target's origin, WebSockets and workers included.
- Credentials are used by placeholder: the model never holds a password.
- Personal data (e-mail addresses, IBANs, card and phone numbers) and secrets are masked in logs and the report.
- Target text is framed as data for every model that judges it, and text aimed at AI agents is flagged on the scan page.
- Findings must cite evidence the run holds; High and Critical findings are verified.
- Every tool call is logged, in the database and in the process log.

## Hosts the agents find

A subdomain or a host found during the run, which you did not list, is tested only once it is admitted: it must lie under a domain you gave, resolve, not be served by a third party or a CDN, and be allowed by the team's targets. The *New hosts* safeguard decides what happens next: only your own targets, the admission rules alone, or the rules and then a second opinion from a model (the scope judge), which may still refuse it. The report lists the hosts found but not tested, with the reason.

## Safeguard settings

Twenty-four controls, in five groups, set in two places:

- **System settings → Security → AI Pentest safeguards** (system administrators): the installation's value of each control, and whether it is **Enforced** (a floor no team and no scan can loosen; a team may only tighten it) or **Team decides** (the installation's value is the default; for budgets, also the ceiling).
- **Teams → Scanning → AI Pentest safeguards** (team admins): the team's own values where the installation lets the team decide, and tighter ones where it does not. An empty value follows the installation.

A preset fills every control at once: **Lab** for test systems you own, **Standard** (the default) and **Production** for systems that matter.

| Group | Control | What it does | Lab | Standard | Production |
|---|---|---|---|---|---|
| Engagement rules | Read-only | No PUT, PATCH or DELETE; POST only to a login. | Off | Off | On |
|  | Stop at the first foothold | A verified foothold ends the run: no pivoting. | Off | Off | On |
|  | No brute force | The brute-force scanner is refused. | Off | On | On |
|  | No high-volume checks | Full port sweeps, DoS templates and active load scans are refused. | Off | On | On |
|  | Rate ceiling per run | Requests per second for the whole run; 0 for none. | 0 | 0 | 0 |
|  | Rate per host | Requests per second to one host, all shards of a scan together. | 20 | 20 | 20 |
|  | Failed logins per account | Failed sign-ins before an account is left alone (1 to 5). | 5 | 5 | 5 |
|  | Credential audits per login form | Default-credential audits of one form (1 to 5). | 5 | 5 | 5 |
| Scope | New hosts | Never (only your targets); admission rules and the scope judge; admission rules only. | Rules only | Rules and judge | Rules and judge |
|  | Admit third-party and CDN hosts | Found subdomains another party serves. | Off | Off | Off |
|  | Largest network per scan | Addresses one scan may cover. | 1024 | 1024 | 1024 |
|  | Full TCP sweeps per run | Addresses swept on every port; 0 for none. | 16 | 16 | 16 |
| Oversight | Refusal pause: refusals | One agent refused this often within the window pauses the run; 0 never pauses. | 0 | 5 | 5 |
|  | Refusal pause: within | The window, in seconds. | 300 | 300 | 300 |
|  | Log watch | A second model reviews each 5-minute window of tool calls: off, alarm only, or alarm and pause. | Off | Alarm only | Alarm and pause |
|  | Run window | HH:MM-HH:MM in a time zone; empty for any time. A team may only narrow it. | Any time | Any time | 08:00-20:00 UTC |
|  | Contact on every request | A mailbox or phone number sent in the User-Agent and an X-Pentest-Contact header. | None | None | Required |
| Results | Verify findings | Severity from which a fresh-context model checks findings. | High and up | Medium and up | Medium and up |
| Budgets | Run time | Minutes. | 180 | 180 | 180 |
|  | Model turns | Turns of all agents together. | 900 | 900 | 900 |
|  | HTTP requests | Requests of all agents together. | 6000 | 6000 | 6000 |
|  | Scanner runs | Scanner starts. | 60 | 60 | 60 |
|  | Sub-agents per run | Sub-agents the lead may start. | 16 | 16 | 16 |
|  | Sub-agents at once | Sub-agents working in parallel. | 4 | 4 | 4 |

### How the values apply

- Each scan keeps a snapshot of the values in force when it started. A stricter value saved while it runs reaches it within a minute; a looser one does not.
- Nothing fails open: settings that cannot be read give the Standard preset.
- Saving a looser value, or letting teams decide what was enforced, is recorded in the activity log and raises the AI Pentest alarm.
- The deployment can hold a preset as a floor (`AI_PENTEST_SAFEGUARD_FLOOR`, or `pentest_safeguard_floor` in Terraform: `standard` or `production`). Nothing on the settings pages can then go below it, and with `production` a run needs a run window and a contact before it starts.
- Your focus instructions and your messages during the run can only add rules, never loosen a safeguard.

## Watching a run

- **Login limits** are counted per account across every shard of the scan, so parallel agents cannot add up to a lockout.
- **Refusal pause:** an agent that keeps trying what the gate refuses pauses the run, and the scan page asks you to look.
- **Log watch:** a separate model reviews each running test's recent tool calls for harmful patterns, apart from the runner; it raises an alarm and, if set, pauses the run.
- Alarms are also written to the log as `AI_PENTEST_ALERT` lines (`kind=refusals`, `watch`, `injection`, `config`, `failed`), for your log alerting.

## A first run against a system that matters

1. **Get written authorisation**

   Name the targets, the dates and a contact on the owner's side.
2. **Choose Production**

   In System settings, or in the team's settings if the installation lets the team decide. Set the run window to the agreed hours and the contact to a mailbox the owner can reach.
3. **List only the agreed targets**

   Prefer URLs over whole networks; leave New hosts on the judge, or set it to Never.
4. **Write what must not be touched**

   In Focus, plainly: paths, forms, ports, a request rate. Check Your instructions as rules on the scan page once it starts.
5. **Stay with it**

   Follow the Activity tab and Needs attention for the first run; Pause or Stop if anything looks wrong.

> **Danger:** Safeguards reduce risk; they do not make a penetration test harmless. Read-only still sends attack payloads in requests, and a fragile system can fail under ordinary traffic. Test what you are authorised to test, and prefer an environment where a side effect is survivable.
