Repository navigation
Description
⚠️ 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
- Run a Hyperlight sandbox with
network.defaultPolicyomitted or set toblock. - Add one entry to
network.blockedHosts. - 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
github-actions commentedon Aug 8, 2026
Triage complete.
Container-Hyperlight(OS-Windows was already present)@huzaifa-d(Hyperlight backend owner)This is a security-relevant bug in
network_policy_from_requestfor the Hyperlight backend: a non-emptyblockedHostslist selectsBlockListmode beforedefaultPolicyis checked, silently widening the network boundary whendefaultPolicy=blockis set.Maintainers: Comment
/investigateto 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.bbonaby commentedon Oct 24, 2026
The code this referred to no longer exists so closing this issue.