Documentation

Documentation / Use Shield

Scheduled scans and alerts

A chatbot changes without anyone touching its code: the model is updated, the system prompt is edited, a new tool is connected. A scheduled scan re-tests it on a fixed rhythm, and Shield tells you when the result gets worse.

On this page

When to schedule

  • A chatbot in production that you want to watch over time.
  • After a fix, to see quickly if the finding comes back.
  • Before an audit, to show a history of results rather than one snapshot.

Scheduled scans run on this instance, not on your machine. The instance sends the attacks and judges the answers itself, so their results are labelled Server-run results.

Create a schedule

Open Scheduled Scans in the sidebar, then New Schedule.

FieldWhat to enter
NameSomething you will recognise in an alert, for example the bot and the environment.
Target URLThe chatbot's endpoint.
AuthenticationNone, Bearer token or API key header.
Request body template (JSON)The request body, with {{prompt}} where the attack text goes.
Request encodingJSON, form or multipart, as your endpoint expects.
Response fieldThe dot path to the reply text, for example data.reply.
Scan presetThe depth. standard is the usual choice. Presets
Frequency and Time of dayHourly, Daily or Weekly, at a time in your time zone.
Include multi-turn (crescendo) attacksAdds conversations that escalate over several messages. Longer runs.
Include my custom testsReplays your active custom tests on every run, so a finding you saved as a regression test is re-checked. Adds to the run time.

Tip: test the same settings with shield-llm test-connection from your machine first. The fields map to the endpoint block of shield.config.json.

Credentials are stored encrypted on the instance. To change the endpoint or rotate a secret later, use Edit target. Leave a secret field blank to keep the current one. If you change the host or the authentication type, Shield asks for the secret again, so a stored secret is never sent to a new address.

Run now and run history

  • Run now queues a run without waiting for the schedule, even when the schedule is paused. It starts within a minute once a scan slot is free; until then the card shows Queued. You can queue several schedules: they start in the order you queued them.
  • Pause stops the schedule; Resume restarts it.
  • The Run history of a schedule lists every run, including the failed ones, with its status (Queued, Running, Completed, Failed, Unreachable, Interrupted), its score and a link to the report. Score over time draws the trend.
  • A run marked Regression is worse than the previous one (see the rule below).
  • When two runs were graded by a different judge or on a different attack catalogue, the history says the difference is not a reliable measure of drift.

Deleting a schedule deletes its run history. The scan reports it produced are kept.

Alerts

Regression email. After every completed scan, scheduled or run from the CLI, Shield compares it with the previous completed scan of the same target. It emails the scan's owner when:

  • a HIGH, CRITICAL, CRESCENDO or COMBO finding appears that was not detected before, or
  • the score dropped, and both scans were graded the same way (same judge, same attack catalogue).

The first scan of a target only sets the baseline. The email lists the new and fixed findings and links to the scan.

Webhook to Slack, Teams or your own endpoint. Your administrator can send the same alerts to one channel for the whole instance. Ask them if you want your team's channel to receive them.

A schedule that keeps failing switches itself off. After 5 consecutive failed runs, the schedule is disabled (Auto-disabled after repeated failures. Fix the target and resume.), and its owner gets an email: monitoring of that target has stopped. Fix the cause (an expired token, a moved endpoint), then click Resume. A run that failed because the chatbot rate-limited it, or because the judge was unavailable, does not count towards this limit.

Email and the webhook depend on the instance's configuration. If no email arrives, ask your administrator to check the mail settings.

If schedules never run

The Scheduled Scans page shows the state of the scheduler:

  • Scheduler not running: no run was ever triggered. The instance needs a background worker or a timed trigger, which your administrator sets up.
  • Scheduler may be down: it ran before but has stopped.

In both cases, runs queued with Run now wait too: they stay Queued until the scheduler runs. Administrators: see the operator guide docs/scheduled-scans-deployment.md (Operator guides).

Credentials and data

  • The target's token or key is encrypted at rest and never shown again in the app.
  • The attacks and the chatbot's answers travel from this instance to the chatbot, then to the LLM judge your administrator configured. Data the test sends out
Scheduled scans and alerts | Shield LLM