Skip to content

[domains-audit] Proxy-routed behavior engines automatically allow direct provider API hosts #76218

Done

Description

@github-actions

Summary

Behavior-defined engines add model-provider hosts to the sandbox firewall merely from the model prefix, even when inference is routed through AWF and the workflow has not opted into direct vendor access. This newly identified provider-egress issue is distinct from #73396's Kiro telemetry and Aider registry findings; that report treated provider APIs as acceptable.

Affected sets

Set Domain Bucket File:line
atomic provider mapping api.githubcopilot.com, api.anthropic.com, api.openai.com vendor-model-api .github/workflows/shared/atomic.md:31-35
factory provider mapping api.githubcopilot.com, api.anthropic.com, api.openai.com vendor-model-api .github/workflows/shared/factory.md:32-36
mini-swe-agent provider mapping api.githubcopilot.com, api.anthropic.com, api.openai.com vendor-model-api .github/workflows/shared/mini-swe-agent.md:39-42
aider, crush, deepseek-harness provider mappings same three API hosts vendor-model-api .github/workflows/shared/aider.md:42-45; crush.md:32-35; deepseek-harness.md:29-32
goose, opencode provider mappings same three API hosts plus generativelanguage.googleapis.com vendor-model-api .github/workflows/shared/goose.md:29-33; opencode.md:29-34

Why this is suspicious

resolveEngineNetworkDomains appends the mapping for a provider/model prefix (pkg/workflow/domains.go:616-639); BehaviorDefinedEngine.allowedDomains then merges it directly into the AWF network list (pkg/workflow/behavior_defined_engine.go:788-800). This occurs even with network.allowed: []. The committed mini-SWE-agent smoke lock illustrates it: the agent network.allowDomains includes api.githubcopilot.com (.github/workflows/smoke-mini-swe-agent.lock.yml:1174). Its Python runtime opt-in explains the PyPI entries, not the Copilot API entry.

Atomic, Factory and mini-SWE-agent require AWF reflection and configure the reflected proxy endpoint (shared/atomic.md:99-129, shared/factory.md:90-119, shared/mini-swe-agent.md:215-247). Their provider-map entries have no separate comment justifying direct firewall access. Some other engines support a non-AWF fallback; preserve that behavior rather than removing an actually needed non-sandbox path. Hosted remote MCP or an explicitly configured provider target may also need separately requested access.

Suggested change

  1. For proxy-routed AWF execution, do not append direct provider API hosts solely because of the model prefix. Keep explicit domain or vendor-bundle opt-ins and supported custom/direct modes available.
  2. Exercise each supported provider using the reflected gateway, with an empty network policy, and assert the emitted network.allowDomains does not contain its direct API host unless independently requested.
  3. Keep gateway targets, explicit MCP endpoints and download/bootstrap requirements separate from agent direct-egress rules.

Verification

  • pkg/workflow/aider_workflow_test.go:31-60 currently asserts that api.openai.com is present even in its no-opt-in case; pkg/workflow/domains_package_registry_integration_test.go:75-80 has the same expectation. Update them deliberately.
  • pkg/workflow/mini_swe_agent_workflow_test.go:29-55,82-90 checks provider execution and reflected routing; extend it to check the actual AWF network policy. Atomic and Factory have their own harness tests in pkg/workflow/atomic_workflow_test.go and pkg/workflow/factory_workflow_test.go.
  • Static source and committed-lock review only; no endpoint was contacted and no test suite was run.
View full findings

The named static copilot, codex, gemini and pi domain bundles are themselves explicit network opt-ins in the common helper (pkg/workflow/domains.go:688-697); this report is about the separate behavior-engine merge path, not a claim that selecting one of those static engines always adds its bundle. Existing #70226 tracks shared GitHub suffix breadth; this issue does not repeat it.

Aider, Crush, Goose, OpenCode and DeepSeek Harness also contain reflected gateway paths; review fallback conditions and provider support before changing their mappings. The two Google mappings are present in data, but their use depends on selecting a matching provider prefix.

Generated by 🌐 Weekly Network Domain Set Audit · pi · routed: gpt61 high · ~29 AIC · ⌖ ~2 AIC · ⊞ 6.7K · ◷

Activity

  1. added
    cookie
    on Nov 9, 2026
  2. github-actions commented on Nov 9, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~2 AIC · ⊞ 11.2K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

cookiesecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions