Safeguard
Security Guides•

Stop conditions and guardrails for chaos experiments

Before injecting a fault, define what ends the experiment. How to pick stop conditions, scope blast radius, and roll back safely.

Safeguard Security Team
3 min read

A stop condition is a pre-agreed threshold that ends a chaos experiment automatically, such as an alarm on error rate or a synthetic user check failing. Define it, test it in a safe environment, and scope the experiment small before you ever touch real traffic.

Why guardrails come first

The Principles of Chaos Engineering accept some short-term negative effect but put the burden on the engineer to keep fallout minimized and contained. That is the blast radius principle. AWS adds a blunt warning in its fault injection documentation: the service carries out real actions on real resources, so plan first and rehearse in pre-production.

Anatomy of an experiment

AWS describes an experiment template as three parts: actions (what you do), targets (what you do it to) and stop conditions (when to quit). Any tool you use, or script you write, should have all three.

Targets can be chosen by tag or state. Start with one instance, one pod or one percent of a cohort.

Picking stop conditions

Good stop conditions watch two things.

  1. The steady state metrics for the whole workload, such as error rate and latency percentiles.
  2. The metrics of the component receiving the fault.

AWS also recommends including a synthetic monitor, a user canary that exercises the public path, as a proxy for real users. Its fault injection service supports up to five stop conditions per template.

For a security experiment, add one more: a canary that checks the security behavior itself. If you are testing a token validator outage, the canary should confirm that a known invalid token is still rejected.

Rollback

You must return the system to a known good state. Many designs heal themselves, but some failed experiments leave things broken, and you need to notice. Automate the undo where you can, and keep the manual steps in a playbook.

AWS discourages ad hoc scripts for chaos work unless they understand current workload state, emit logs, and offer rollback and stop conditions.

Tell people

Inform operations, reliability and support before you start, and give them a way to tell you that something looks wrong. A surprise experiment looks exactly like an incident.

A pre-flight checklist

  1. Hypothesis written, with a measurable steady state.
  2. Scope limited to the smallest useful target.
  3. Stop conditions defined and verified to trigger.
  4. Rollback tested.
  5. Stakeholders informed.
  6. Results will be stored.

Quick check

Should the first experiment run in production?

AWS recommends simulating faults in non-production first and confirming stop conditions fire as expected.

Who can call a stop?

Anyone watching. Agree beforehand that any participant or on-call engineer can end the experiment.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.