Autonomous, not unsupervised: the rules of an engagement
An autonomous agent still works inside rules you set: scope, approvals, pacing and a complete audit trail. What each one does, and what it cannot do for you.
“Autonomous” describes who drives the testing loop. The agent picks the next request, reads the response and decides what to try next, without a person approving every step. It does not mean nobody is in charge. Every engagement runs inside a set of rules, and you are the one who writes them.
Scope and exclusions
Scope is set per engagement: the hosts, domains and paths the agent may test. Exclusions carve out what it must leave alone inside that scope, such as a payment callback, an account-deletion endpoint, or an admin host you would rather not touch.
To be plain about the division of labour: SamSec enforces the scope you give it, but it cannot know what you are allowed to test. If a host is listed, the agent treats it as in scope. Getting that list right is your call.
Note
Start with a staging environment you own, seeded with test accounts and test data. You get realistic findings without putting production data at risk, and retests against staging fit naturally into a release.
Approval rules: allow, ask, deny
Some actions are fine to take unattended; some need a person. Approval rules sort the agent’s actions into three outcomes.
- Allow: the agent proceeds without asking, typically for read-only probing inside scope.
- Ask: the agent pauses and requests approval, describing what it wants to do and why. A person approves or rejects it.
- Deny: the agent may not take the action at all.
An ask that nobody answers does not turn into a yes. Approval requests time out, and a request that times out is treated as deny. The agent records the refusal and moves on to other work, so an unattended engagement errs on the side of doing less.
Written out, the rules for a small engagement might read like this. The snippet is illustrative, to show the shape of the decisions, not a file format:
scope include staging.shop.acme.example
exclude staging.shop.acme.example/api/payments/*
approvals read-only requests allow
state-changing requests ask
account deletion deny
unanswered request deny (on timeout)
pacing balanced 5 requests per secondPacing
How hard the agent pushes is a choice too. Pacing profiles cap its request rate against the target.
- Quiet, 2 requests per second: for fragile or shared environments, or when you would rather not trip monitoring.
- Balanced, 5 requests per second: a middle ground for most staging environments.
- Aggressive, 20 requests per second: for environments built to take the load, such as a dedicated test stack.
Pacing changes how quickly the agent works, not which rules it follows. A quiet engagement takes longer; it does not get a looser scope in exchange.
The audit log
Every tool call the agent makes is written to the engagement’s audit log: what it ran, against which target, when, and with what result, alongside the approval requests and how each one was resolved. If something unexpected happens on the target, you can line the log up against your own server logs and see exactly what the agent did and when it did it.
The log is also how you check that the rules held: exclusions that were never touched, asks that were answered, pacing that stayed within its cap.
The legal part, plainly
Only test systems you own or have explicit, written permission to test. That includes the third-party services your application talks to: cloud providers, payment processors and CDNs have their own rules about security testing, and permission for your application does not extend to them. If you are not sure whether you are authorised, assume you are not yet, and ask first.
The guardrails above reduce the chance of an engagement doing something you did not intend. They cannot make an unauthorised test authorised. That part belongs to whoever sets up the engagement, which is exactly why setting it up stays a human job.