Ownership verification
Active scanning sends crafted inputs to a target. Doing that to a host you do not control is unauthorized testing. So for any non-local target, Scout requires proof of ownership before it will run active checks.
1. Generate the token
Section titled “1. Generate the token”scout ownership --target https://example.comScout prints a token derived from your config’s signing key and the host, plus exactly where to publish it:
Ownership token for example.com:
scout-verify-abc123...
Publish it in one of these places before running an active scan: DNS TXT on _scout-verify.example.com scout-verify=scout-verify-abc123... DNS TXT on example.com scout-verify=scout-verify-abc123... File https://example.com/.well-known/scout-verify containing the token2. Publish it
Section titled “2. Publish it”Pick one:
- DNS TXT — add a
TXTrecord on_scout-verify.example.com(or the apex) with thescout-verify=...value. Best for a domain you administer. - Well-known file — serve the token at
https://example.com/.well-known/scout-verify. Best when you can deploy a file but not change DNS.
3. Run the active scan
Section titled “3. Run the active scan”scout scan --target https://example.com --mode active --env prod --allow-activeScout re-checks the token at scan time. If it is present and matches, the active checks run; if not, Scout refuses and tells you what it expected.
Why both a token and --allow-active?
Section titled “Why both a token and --allow-active?”They guard different things. --allow-active is your intent (“yes, be
aggressive here”); the token proves authorization (“yes, this host is mine”).
Active scanning of a public target needs both. See Modes & environments.