Skip to content

[domains-audit] Behavior-defined engine network defaults bypass engine-default guards (Kiro telemetry, Aider PyPI) #73396

Not planned

Description

@github-actions

Summary

Behavior-defined engines declare their own behaviors.network.defaults. BehaviorDefinedEngine.allowedDomains (pkg/workflow/behavior_defined_engine.go:764) passes them through resolveEngineNetworkDomains (pkg/workflow/domains.go:613) into the AWF allow-list. The package-registry and vendor-endpoint rules for static engine sets in ecosystem_domains.json do not cover these declared defaults. TestEngineDefaultDomainsDoNotOverlapEcosystems (pkg/workflow/domains_package_registry_test.go:175) checks only engineDefaultDomainSets.

Two in-repo engine definitions use this path to add egress that static engines are no longer allowed to have:

  • Kiro adds two vendor telemetry hosts, an auth host, an unexplained asset host, and a *.kiro.dev provider wildcard by default.
  • Aider adds the PyPI registry (pypi.org, files.pythonhosted.org) to its engine defaults.

None of these entries has a justification comment or a test that references it. These are new findings. Previous [domains-audit] issues covered only the static engine sets in ecosystem_domains.json.

Affected sets

Set Domain Bucket File:line
kiro network.defaults client-telemetry.us-east-1.amazonaws.com vendor-telemetry .github/workflows/shared/kiro.md:32
kiro network.defaults prod.us-east-1.telemetry.kiro.aws.dev vendor-telemetry .github/workflows/shared/kiro.md:33
kiro network.defaults cognito-identity.us-east-1.amazonaws.com vendor-auth .github/workflows/shared/kiro.md:30
kiro network.defaults prod.assets.shortbread.aws.dev unclear .github/workflows/shared/kiro.md:34
kiro provider-domains *.kiro.dev vendor-model-api (broad wildcard) .github/workflows/shared/kiro.md:36
aider network.defaults pypi.org package registry (eco:python) .github/workflows/shared/aider.md:41
aider network.defaults files.pythonhosted.org package registry (eco:python) .github/workflows/shared/aider.md:42

Why this is suspicious

  • Telemetry is not needed for correctness. Agents run behind the AWF gateway. Telemetry hosts are not needed to complete a task. The Kiro telemetry hosts were added after failure investigation [aw-failures] Kiro/Cursor CLI auth fails intermittently — network allow-list gap + missing SECRET_ fallback #50519, which described the denials only as a plausible cause and noted that a passing run had the same domains denied. No code comment records why they are needed. grep finds no reference outside shared/kiro.md.
  • The Kiro telemetry hosts are in the compiled lock file. prod.us-east-1.telemetry.kiro.aws.dev and client-telemetry.us-east-1.amazonaws.com appear in the allowDomains list in .github/workflows/smoke-kiro.lock.yml. That workflow allows only defaults, github, and go.
  • *.kiro.dev is broader than needed. The harness downloads the CLI from prod.download.cli.kiro.dev inside the sandbox, so this provider wildcard covers both tool downloads and every other kiro.dev subdomain. Concrete hosts would make the allow-list auditable.
  • Aider's PyPI defaults conflict with the opt-in rule. The domains.go comment (lines 68–80) says engine defaults must exclude package registries. Aider now installs aider-chat and fastuuid in pre-agent-steps, outside the sandbox, which was the fix for [aw-failures] Smoke Aider: awmg-mcpg container-attach race (P0) + fastuuid firewall block (P1) #50439. So PyPI access inside the sandbox is not needed for installation. As a result, smoke-aider.md declares network.allowed: [] and still gets PyPI access. The import's runtimes: python also grants the python ecosystem. That is the documented explicit opt-in, so the engine-default copy is unnecessary.
  • The guard has a structural gap. Any new shared/<engine>.md can add registries or telemetry to engine defaults without failing a test.

Suggested change

  1. Move Kiro's telemetry hosts (client-telemetry.us-east-1.amazonaws.com, prod.us-east-1.telemetry.kiro.aws.dev) out of network.defaults and into an explicit opt-in, such as a kiro-vendor set used through network.allowed. Alternatively, add a comment in shared/kiro.md with run evidence showing the CLI fails when they are blocked.
  2. Document or narrow cognito-identity.us-east-1.amazonaws.com and prod.assets.shortbread.aws.dev. Replace *.kiro.dev with the concrete API and download hosts.
  3. Remove pypi.org and files.pythonhosted.org from shared/aider.md network.defaults. The runtimes: python entry already provides the explicit python opt-in.
  4. Apply the engineDefaultEcosystemOverlaps check to behavior-defined engines. Options: validate behaviors.network.defaults and provider-domains at compile time, or add a test that loads every .github/workflows/shared/*.md engine definition and checks its declared defaults against the package ecosystems.
View full findings

Other behavior-defined engine defaults reviewed

Engine Declared defaults beyond the gateway/GitHub baseline Verdict
cursor downloads.cursor.com, api2.cursor.sh, agentn.global.api5.cursor.sh downloads.cursor.com is used by the harness's in-sandbox download (shared/cursor.md:127). agentn.global.api5.cursor.sh has no comment and should be documented.
crush, goose objects.githubusercontent.com, release-assets.githubusercontent.com GitHub download hosts. These follow the same pattern as #72063 (Agy); goose.md:28 has a comment.
opencode, deepseek-harness, factory gateway/GitHub plus provider APIs Acceptable.

Static engine sets (no change since last audit)

The SHA-256 of pkg/workflow/domains.go matches the previous run. Open issues still cover the existing findings:

There are 72 exact-overlap pairs among the static and ecosystem sets. All are either the shared gateway/GitHub baseline or deliberate ecosystem overlaps resolved by ecosystemPriority: node-cdns before node, deno before node, rust before python, python ⊂ python-native, and storage.googleapis.com shared by dart, go, and node.

Minor clarity note: threat-detection is defined in both the ecosystems and engine-defaults objects of ecosystem_domains.json, with identical contents.

Verification

  • No existing test references the Kiro hosts.
  • Regenerate .github/workflows/smoke-kiro.lock.yml, smoke-aider.lock.yml, engine-conformance-{kiro,aider}.lock.yml, and the daily Aider workflows with make recompile.
  • pkg/workflow/domains_package_registry_integration_test.go (lines 21, 59, 65) asserts PyPI behavior for static engines only. Extend it, or add aider_workflow_test.go coverage, so a behavior-defined engine with network.allowed: [] and no python opt-in does not get pypi.org.
  • Run the Kiro smoke test after the change, and keep the telemetry hosts only if the run fails without them.
  • expires on Nov 22, 2026, 10:27 AM UTC

Generated by 🌐 Weekly Network Domain Set Audit · pi · routed: opus55 high · ~105 AIC · ⌖ ~1 AIC · ⊞ 5.8K · ◷

Activity

  1. added
    cookie
    on Oct 31, 2026
  2. github-actions commented on Oct 31, 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 · ⊞ 13.5K · ◷

  3. github-actions commented on Oct 31, 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 · ⊞ 13.5K · ◷

  4. github-actions commented on Oct 31, 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 · ⊞ 13.5K · ◷

  5. github-actions commented on Oct 31, 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 · ⊞ 13.5K · ◷

  6. github-actions commented on Oct 31, 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 · ⊞ 13.4K · ◷

  7. github-actions commented on Oct 31, 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 · ⊞ 13.5K · ◷

  8. github-actions commented on Oct 31, 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 · ⊞ 13.6K · ◷

  9. github-actions commented on Oct 31, 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 · ⊞ 13.6K · ◷

  10. github-actions commented on Oct 31, 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 · ⊞ 13.6K · ◷

  11. github-actions commented on Oct 31, 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 · ⊞ 13.6K · ◷

  12. github-actions commented on Oct 31, 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 · ⊞ 13.6K · ◷

  13. github-actions commented on Oct 31, 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 · ⊞ 13.6K · ◷

  14. github-actions commented on Oct 31, 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 · ⊞ 13.6K · ◷

  15. github-actions commented on Oct 31, 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 · ⊞ 13.6K · ◷

  16. github-actions commented on Oct 31, 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 · ⊞ 13.6K · ◷

  17. github-actions commented on Oct 31, 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 · ⌖ ~2 AIC · ⊞ 13.6K · ◷

  18. added
    backlog:security
    on Nov 21, 2026
  19. github-actions commented on Nov 22, 2026

    @github-actions
    ContributorAuthor

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

    Closed by Workflow

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

Metadata

Metadata

Labels

backlog:securitycookiesecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions