Skip to content

[domains-audit] Shared GitHub parent rule covers package registries outside ecosystem opt-ins #70226

Not planned

Description

@github-actions

Summary

The shared github.com parent rule also covers GitHub-hosted package registries, so literal-only tests do not establish the documented ecosystem opt-in boundary. The rule is copied into every engine bundle and the github ecosystem. Under documented AWF semantics, selecting those bundles permits the registry hostnames below without a separate language ecosystem entry.

Normal engine bundles are now explicit opt-ins; selecting an engine alone is not the finding. This affects configurations such as network.allowed: [github] or [claude], and the detection-specific baseline. Centralize and narrow the shared transport policy while retaining necessary GitHub access.

Affected sets

Set Domain Bucket File:line
github ecosystem github.com github-core, with package-registry suffix overlap pkg/workflow/data/ecosystem_domains.json:97
ClaudeDefaultDomains, CodexDefaultDomains, CopilotDefaultDomains, GeminiDefaultDomains, AgyDefaultDomains, PiDefaultDomains, PiBaseDefaultDomains github.com github-core pkg/workflow/data/ecosystem_domains.json:265-271
Detection bundle and ecosystem compatibility alias github.com github-core pkg/workflow/data/ecosystem_domains.json:261,272
node ecosystem npm.pkg.github.com package-registry overlap evidence pkg/workflow/data/ecosystem_domains.json:199
dotnet, java, ruby ecosystems nuget.pkg.github.com, maven.pkg.github.com, rubygems.pkg.github.com package-registry overlap evidence pkg/workflow/data/ecosystem_domains.json:73,138,256

Why this is suspicious

docs/src/content/docs/reference/network.md:23,214,299 states that bare domains already match all subdomains under AWF. Therefore github.com covers the concrete registry entries listed in the same repository. The issue is not inferred vendor infrastructure or observed malicious activity; it is a static comparison of documented matching semantics with the allow-list data.

domains.go:71-88 says package ecosystems require explicit opt-in, and the test comment in domains_package_registry_test.go:13-15 says the named registry hosts must never be reachable otherwise. That list expressly includes npm.pkg.github.com at line 19. However, the tests check absence of the literal hostname, not whether an allowed suffix covers it. The comment specifically promises the invariant for network.allowed: [defaults, github].

GitHub access is legitimate and documented; this audit does not recommend blindly deleting github.com or denying needed repository operations. The current parent rule and claimed registry boundary cannot both be treated as proven by literal exclusion tests.

Suggested change

  1. Define one narrow, auditable gateway/GitHub transport baseline and compose engine bundles from it instead of copying github.com and gateway hosts across eight JSON arrays. Do not replace it with the entire existing github ecosystem.
  2. For gateway/gh-proxy configurations, avoid unnecessary direct GitHub parent egress. Where direct github.com access is necessary, implement and test a registry restriction that preserves repository access and allows registry access only with the corresponding ecosystem opt-in. Choose the mechanism deliberately; a bare github.com entry cannot express exact-host-only access under current documented AWF semantics.
  3. Extend registry gating tests to evaluate effective suffix/wildcard coverage and composed allowed/blocked policy, including the four GitHub-hosted registries, rather than just membership of string lists. If GitHub package access is intentionally part of the GitHub capability, explicitly document that exception and narrow the security claim instead of leaving a false guarantee.

Verification

Static source/reference audit only; no live access attempt and no Go suite execution.

  • TestEngineDefaultDomainsExcludePackageRegistries (domains_package_registry_test.go:50) and TestEngineDefaultDomainsDoNotOverlapEcosystems (:101) use assert.NotContains; neither detects parent coverage.
  • TestNetworkPermissionsGatePackageRegistries (:139) includes [defaults, github] and verifies literal entries in a comma-separated domain map, not AWF matching behavior.
  • TestCompiledWorkflowGatesPackageRegistries (domains_package_registry_integration_test.go:19) uses generated-file substring checks and a three-registry list that omits npm.pkg.github.com; it does not prove GitHub registry denial.
  • Existing core-domain expectations in domains_test.go include TestCopilotDefaultDomains (:345), TestCodexDefaultDomains (:503), and TestClaudeDefaultDomains (:533). Preserve their intended GitHub capability when introducing the new shared policy.
  • matchesDomain (domains.go:473-486) expands only explicit *. patterns, so using it unmodified as an AWF bare-suffix coverage oracle would reproduce the blind spot. Keep classification semantics and enforcement-test semantics clearly distinguished.
<b>View full findings</b>

Justification reviewed before recommending changes

domains.go:106-113 calls Copilot's entries a shared gateway/GitHub transport baseline. Claude's comment (:118-122) likewise describes gateway/GitHub transport and explicitly warns that the bare anthropic.com parent would also allow unwanted subdomains. Pi's comments (:130-142) describe a provider-independent baseline and backward compatibility. Codex/Gemini have generic operation comments, while Agy has none at its declaration. These comments justify preserving transport, not silently granting every package hostname under the same suffix.

Overlap and deduplication

The script found 28 intersecting pairs among all eight engine bundles, sharing at least github.com and host.docker.internal. github.com also overlaps the github, gh-aw, and detection ecosystems exactly; under AWF parent matching it covers the package hosts listed above. This makes extracting a shared base substantive policy work, not a sorting/style request.

Primary open-issue searches for the [domains-audit] title prefix and security label returned no issues; a separate open search for npm.pkg.github.com plus network also returned none. An additional broader subdomain search failed, so that supplementary search is not claimed complete. No previous audit state was present. This is a newly reported observation, not a demonstrated recent regression.

Reviewed commit: b8f6f36d349b16a78a321b4c3eb8853bae0e15ff.

> - [x] expires on Nov 22, 2026, 10:27 AM UTC

Generated by 🌐 Weekly Network Domain Set Audit · pi · gpt60 · 369.2 AIC · ⌖ 82.1 AIC · ⊞ 8.5K · ◷

Activity

  1. added
    cookie
    on Oct 19, 2026
  2. github-actions commented on Oct 20, 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, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · 0.739 AIC · ⌖ 0.865 AIC · ⊞ 12.9K · ◷

  3. github-actions commented on Oct 20, 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, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · 0.517 AIC · ⌖ 0.62 AIC · ⊞ 12.9K · ◷

  4. github-actions commented on Oct 20, 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, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · 0.669 AIC · ⌖ 0.615 AIC · ⊞ 12.9K · ◷

  5. github-actions commented on Oct 20, 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, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · 0.682 AIC · ⌖ 0.617 AIC · ⊞ 12.9K · ◷

  6. github-actions commented on Oct 20, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    This issue is a good candidate for automated resolution, and assignment to the Copilot coding agent was requested.

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

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · 0.772 AIC · ⌖ 0.624 AIC · ⊞ 12.9K · ◷

  7. github-actions commented on Oct 20, 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, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · 0.69 AIC · ⌖ 0.753 AIC · ⊞ 12.9K · ◷

  8. github-actions commented on Oct 20, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

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

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

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · 0.645 AIC · ⌖ 0.982 AIC · ⊞ 12.9K · ◷

  9. github-actions commented on Oct 20, 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, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · 0.566 AIC · ⌖ 0.61 AIC · ⊞ 12.8K · ◷

  10. github-actions commented on Oct 20, 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, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · 0.624 AIC · ⌖ 0.713 AIC · ⊞ 12.5K · ◷

  11. github-actions commented on Oct 20, 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, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · 0.56 AIC · ⌖ 0.812 AIC · ⊞ 12.5K · ◷

  12. github-actions commented on Oct 20, 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, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · 0.671 AIC · ⌖ 0.741 AIC · ⊞ 12.5K · ◷

  13. github-actions commented on Oct 20, 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, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · 0.616 AIC · ⌖ 0.871 AIC · ⊞ 12.5K · ◷

  14. github-actions commented on Oct 20, 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, the Copilot coding agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · 0.573 AIC · ⌖ 0.722 AIC · ⊞ 12.5K · ◷

  15. 225 remaining items

  16. github-actions commented on Oct 26, 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, the Copilot coding agent 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 · ⌖ ~1 AIC · ⊞ 12.1K · ◷

  17. github-actions commented on Oct 26, 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, the Copilot coding agent 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 · ⌖ ~1 AIC · ⊞ 12.1K · ◷

  18. github-actions commented on Oct 26, 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, the Copilot coding agent 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 · ⌖ ~1 AIC · ⊞ 12.1K · ◷

  19. github-actions commented on Oct 26, 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, the Copilot coding agent 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 · ⌖ ~1 AIC · ⊞ 12.1K · ◷

  20. github-actions commented on Oct 26, 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, the Copilot coding agent 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 · ⌖ ~1 AIC · ⊞ 12.3K · ◷

  21. github-actions commented on Oct 26, 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, the Copilot coding agent 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 · ⌖ ~1 AIC · ⊞ 12.3K · ◷

  22. github-actions commented on Oct 26, 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, the Copilot coding agent 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 · ⌖ ~1 AIC · ⊞ 12.3K · ◷

  23. github-actions commented on Oct 26, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    This issue was identified as a good candidate for automated resolution and assignment to the Copilot coding agent was requested.

    If assignment succeeds, the Copilot coding agent 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 · ⌖ ~1 AIC · ⊞ 12.3K · ◷

  24. github-actions commented on Oct 26, 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, the Copilot coding agent 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 · ⌖ ~1 AIC · ⊞ 12.3K · ◷

  25. github-actions commented on Oct 26, 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, the Copilot coding agent 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 · ⌖ ~1 AIC · ⊞ 12.3K · ◷

  26. github-actions commented on Oct 26, 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, the Copilot coding agent 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 · ⌖ ~1 AIC · ⊞ 12.3K · ◷

  27. github-actions commented on Oct 26, 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, the Copilot coding agent 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 · ⌖ ~1 AIC · ⊞ 12.3K · ◷

  28. added
    backlog:security
    on Nov 21, 2026
  29. github-actions commented on Nov 22, 2026

    @github-actions
    ContributorAuthor

    This issue was automatically closed because it expired on 2026-11-22T10:27:38.427Z.

    Closed by Workflow

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlog:securitycookiesecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions