You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
M4: Upgrade FlagFirewall to typed manifest flag contracts #68
src/ether/gateway/flags.py parses arguments with loose heuristics: positional targets are accepted by regex, macros are not expanded, and manifest flags are only checked as an allowlist. Forms like -p80,443, --port=8443, and -T4 are not validated against typed contracts.
Acceptance criteria
Validate flags against typed manifest contracts, including value arity and ranges.
Expand {target}, {domain}, and {wordlist} macros before validation.
Track multi-flag expect_value correctly across = and space-separated forms.
Reject positional tokens that are not well-formed targets.
Add bypass tests for each accepted and rejected form.
Out of scope
New adapters or new manifest sections beyond flag contracts.
Observed FlagFirewall friction under default GatePolicy.SAFE:
Ether's own built-in gobuster --profile fast fails preflight with PreflightGateRejected: Unvalidated positional argument 'dir' rejected for 'gobuster' under SAFE policy.
nmap --min-rate is also blocked under SAFE policy, causing full-port TCP connect scans over WAN to stall until timeout.
Activity
h45sh commentedon Dec 1, 2026
Observed
FlagFirewallfriction under defaultGatePolicy.SAFE:gobuster --profile fastfails preflight withPreflightGateRejected: Unvalidated positional argument 'dir' rejected for 'gobuster' under SAFE policy.nmap --min-rateis also blocked underSAFEpolicy, causing full-port TCP connect scans over WAN to stall until timeout.