Scope enforcement for authorized security testing.
Given a scope file (the assets you are allowed to test) and a list of targets,
aetherscope tells you, for every target, whether it is in-scope,
out-of-scope (explicitly denied), or unknown. It is built to be piped:
feed it a subdomain list, keep only what is safe to test, and generate a
JSON or Markdown report alongside.
- Parse a scope file supporting:
- exact hosts (
example.com) - wildcard domains (
*.example.com) - negations / exclusions (
!secret.example.com,!*.example.com) - host with port (
example.com:8080) - URL rules with scheme and path (
https://api.example.com/v1) - IP addresses (
203.0.113.5) - CIDR ranges (
10.0.0.0/24) - comments (
#and;) and blank lines
- exact hosts (
- Classify targets as
in-scope/out-of-scope/unknown/error. - Negation rules always win over inclusion rules.
- Pipe a list of targets and keep only in-scope entries.
- Exit codes for scripting:
0in-scope,1out-of-scope,2unknown,3error. - JSON and Markdown reports.
pip install .
# or from source
python -m aetherscope --versionClassify targets against a scope file:
aetherscope -s scope.txt check api.example.com admin.example.com
# api.example.com: in-scope
# admin.example.com: in-scopeRead targets from stdin:
cat hosts.txt | aetherscope -s scope.txt checkJSON output:
aetherscope -s scope.txt check --json example.comKeep only in-scope targets (piping-friendly):
cat recon_subs.txt | aetherscope -s scope.txt filter > in_scope.txtShow the parsed rules:
aetherscope -s scope.txt parseBuild a report:
aetherscope -s scope.txt report --format json --input targets.txt -o report.json
aetherscope -s scope.txt report --format markdown --input targets.txt -o report.mdThe scope file may be given as - to read it from stdin, and the target list
may be given as - to read it from stdin.
# program scope
*.example.com
!secret.example.com
example.org/invoice
10.0.0.0/24
203.0.113.5
MIT — see LICENSE. Copyright (c) 2026 Aether-DZ.