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: Apply the engagement's loopback policy to entity-target validation #88
src/ether/gateway/gate.py:447 — validate_action checks a selected entity with is_blocked_destination(pik_str) and no allow_loopback argument, so the
function's default True applies. The command-argument path 70 lines earlier
reads the engagement scope instead
(is_blocked_destination(flags_str, allow_loopback=allow_loopback), gate.py:377), as do the preflight call sites. Under GatePolicy.SAFE with the
default EngagementScope (allow_loopback=False), the same loopback address is
rejected when it arrives as a flag and accepted when it arrives as a stored
entity the adapter then scans.
Proof
Proof withheld: private advisory. Reproduced under the audited policy at the ref in the footer; the minimal reproducer and its observed output are held in the audit's private store (mode 0600) and are available to maintainers on request.
Impact
Default SAFE policy. An agent can register a discovered loopback host (or
any host that resolves to loopback) as a target entity and run tools against
host-local services — dev servers, MCP bridges, admin APIs — without the operator
enabling loopback. Metadata addresses remain blocked by BLOCKED_TARGETS, so
this is loopback scope, not metadata.
Acceptance criteria
validate_action passes the engagement's loopback policy when checking a target entity
A regression test stores a loopback host and asserts SAFE rejects it while allow_loopback=True accepts it
A mechanical guard asserts every is_blocked_destination call site passes an explicit allow_loopback
The metadata-entity test still blocks for the metadata reason, not by accident
Out of scope
Changing the default of is_blocked_destination; other callers rely on it.
Activity