Repository navigation
Done
Labels
area:gatewayGatePolicy, scope, and execution boundarypriority:P0Blocks the milestonetype:securitySecurity boundary or hardening work
Milestone
Description
Context
ether pipeline and the MCP execute_pipeline tool do not go through the execution gateway.
SupervisedExecutionService.execute_pipeline(src/ether/services/execution.py:331-333) preflights only the first stage, and callspreflight_verify(..., flags="").preflight_verifyis notActionGateway.validate_action: it does not runFlagFirewall.PipelineEngine(src/ether/core/pipeline.py:149-172) then callsadapter.execute_action(target_finding, stage.params, context)directly, forwarding every parsedkey=valuefrom the expression with no validation.
As a result, no FlagFirewall, no shell-metacharacter check, no CIDR/scope check and no per-stage destination check runs for the first-stage flags or for any downstream stage. It is reachable from the agent-facing MCP tool (src/ether/mcp/server.py:824), not only from an operator CLI.
Concrete consequences under GatePolicy.SAFE:
ether pipeline 'nmap(target=10.0.0.5, flags=-oN /tmp/pwned --script=/tmp/x.nse)'bypasses the firewall entries (-oN,--script) that block the same flags onether run/execute_tool.- An expression with no
target=defaults to127.0.0.1(pipeline.py:136), which bypasses the loopback block since nothing validates that seed target. - Downstream stages consume graph-derived targets without any destination validation.
Acceptance criteria
- Build an
ActionRequestper stage and callActionGateway.validate_action(pluspreflight_verifywith the realflags) before any adapter runs. - Run
FlagFirewallagainst pipelineflags, including first-stage flags, with regressions for-oN,--script,--config,-iLunder SAFE. - Reject pipeline parameters not declared by the manifest instead of forwarding them to the adapter.
- Validate the explicit/implicit stage-0 target and every graph-derived target against
EngagementScope. - Add a test proving a blocked flag or out-of-scope target fails the pipeline while a clean pipeline still runs.
Out of scope
Changing pipeline syntax or adding stages.
Part of #27
Related to #68
Metadata
Metadata
Assignees
Labels
area:gatewayGatePolicy, scope, and execution boundarypriority:P0Blocks the milestonetype:securitySecurity boundary or hardening work
Activity