Skip to content

Hyperlight blockedHosts overrides defaultPolicy=block #786

Closed

Description

@MGudgin

⚠️ Security notice: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to GitHub issues. Instead, send them to secure@microsoft.com referencing the GitHub issue. For application crashes, include a Feedback Hub link if possible (open with Win+F, choose "Share My Feedback" after submission).

Relevant area(s)

Windows

Brief description of your issue

The Hyperlight backend treats a non-empty network.blockedHosts list as an allow-by-default blocklist even when network.defaultPolicy remains at its secure default of block. This silently widens the requested network boundary and contradicts the meaning of defaultPolicy=block.

Steps to reproduce

  1. Run a Hyperlight sandbox with network.defaultPolicy omitted or set to block.
  2. Add one entry to network.blockedHosts.
  3. Attempt network access to a destination not in blockedHosts.

Expected behavior

network.defaultPolicy=block remains authoritative. blockedHosts must not enable networking to every unlisted destination; the backend should either preserve block-by-default semantics or reject the incompatible policy combination.

Actual behavior

network_policy_from_request selects Hyperlight's BlockList whenever blockedHosts is non-empty, before checking defaultPolicy. The resulting policy allows all destinations except the listed hosts. The generic boundary-relaxation audit also omits blockedHosts, so this backend-specific relaxation is not logged.

Activity

  1. github-actions commented on Aug 8, 2026

    @github-actions

    Triage complete.

    • Labels added: Container-Hyperlight (OS-Windows was already present)
    • Assigned to: @huzaifa-d (Hyperlight backend owner)

    This is a security-relevant bug in network_policy_from_request for the Hyperlight backend: a non-empty blockedHosts list selects BlockList mode before defaultPolicy is checked, silently widening the network boundary when defaultPolicy=block is set.

    Maintainers: Comment /investigate to check whether this issue or bug is valid against the most current code. Copilot will also produce a report with the changes that will be needed. For a small, unambiguous documentation or test fix, it may also create one draft PR.

    Generated by 🏷️ Issue Triage for #786 · 18.5 AIC · ⌖ 5.62 AIC · ⊞ 6.7K · ◷

  2. bbonaby commented on Oct 24, 2026

    @bbonaby
    Collaborator

    The code this referred to no longer exists so closing this issue.

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

Metadata

Metadata

Labels

Backend-HyperlightHyperlight and Unikraft micro-VM backend behavior or integration.Issue-BugSomething is not working as intended.OS-WindowsApplies specifically to Windows hosts or Windows behavior.Priority2High-impact issue affecting key functionality; prioritize for the next appropriate release.

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions