DocumentationStart
Permission to test
BotSting sends hostile messages. It will not send anything to a system outside its own process without permission on record.
What an authorization is
An authorization records who allows the test, for which exact address, what it covers, and until when. It is how a person takes responsibility for the test by name.
botsting authorize https://staging.example.com --by "Your Name" \
--scope "the support assistant on our staging site" \
--environment staging --days 30 --tool issue_refund
- It lasts at most 90 days.
- Add
--tool NAMEfor each tool the scan may exercise. A tool the authorization does not name is left untested, and the report says so. --agentand--tenantlimit it to one bot or one account at that address.- Authorizations are kept in a file in your project folder and are never sent anywhere.
Proof of control
For any address that is not your own machine, the command prints a token. Serve it as plain text at the address being tested:
https://staging.example.com/.well-known/botsting-challenge.txt
Then confirm it:
botsting authorize --verify https://staging.example.com
The token is fetched again whenever a scan or a replay starts, and every ten minutes during a long scan. If it has been taken down, the scan stops and reports what it had found so far. Removing the token is your stop switch.
If you use the harness, set BOTSTING_CHALLENGE to the token line and the harness serves it for you.
What this does and does not show
The token shows control of what a site serves. It does not show that the person who placed it owns everything behind the address. The named person and the written scope are how someone takes responsibility for that.
A system on your own machine, at localhost or 127.0.0.1, needs the record but not the token.
Testing for someone else
If you test a client's system, agree the scope in writing first. The project includes a rules-of-engagement template: what is tested, at which level of realism, what is out of scope, when to stop, and what happens to the evidence. The person who signs for the owner runs the authorization command, or instructs you to in writing.