Dear @Sky Fall
Thank you for your follow-up and for clearly outlining your security requirements.
Please find our responses to your questions below
- Host-side authorization by Windows principal
Question: Can host-process bind() and connect() operations for AF_HYPERV be restricted by Windows account, token, or security descriptor?
Answer: HvSocket provides communication between endpoints identified by VM IDs and Service IDs. For ordinary VMMS-managed VMs, I cannot establish that the standard Hyper-V management interfaces provide a mechanism to enforce the requested per-Windows-principal authorization.
- Guest-side access restricted to a designated supervisor process
Question: Can guest access be restricted to a designated supervisor process or Windows principal?
Answer: HvSocket endpoint addressing identifies the communication endpoint rather than an individual process within the guest. Therefore, endpoint addressing alone does not ensure that only a designated supervisor process can access the endpoint. Additional process-level access controls would be needed to meet this requirement.
- Applicability of HCS security descriptors
Question: Do BindSecurityDescriptor and ConnectSecurityDescriptor apply to ordinary VMMS-managed VMs?
Answer: These properties are part of the HCS HvSocket configuration model. Their presence in the HCS schema does not establish that they can be configured for ordinary VMMS-managed VMs through the standard Hyper-V management interfaces. Their applicability depends on the supported API and VM management model.
- Inspecting the effective endpoint authorization policy
Question: Is there a supported API to inspect and independently verify the effective endpoint authorization policy?
Answer: To independently verify endpoint authorization, an interface would need to expose the effective policy applied to the endpoint. The standard Hyper-V management interfaces do not document such an interface for the requested per-principal authorization model.
- Minimum permissions for an unprivileged host receiver
Question: Can a host receiver bind, listen, and accept connections without administrator privileges, Hyper-V Administrators membership, or general VM-management authority?
Answer: Socket access and VM-management permissions are separate concerns. However, the ability of an unprivileged process to bind and listen on the requested HvSocket endpoint depends on the applicable security configuration. I cannot establish a minimum permission set that guarantees the requested operation for this scenario.
- Endpoint exclusivity and competing listeners
Question: How are duplicate binds, wildcard VM IDs, competing listeners, and SO_EXCLUSIVEADDRUSE handled?
Answer: Endpoint exclusivity and access authorization are distinct. Preventing conflicting endpoint registrations would not, by itself, establish that only an authorized Windows principal can access the endpoint. SO_EXCLUSIVEADDRUSE should not be assumed to provide the required authorization guarantees for HvSocket.
- Other Hyper-V communication channels
Question: Can custom Service-ID configuration restrict other channels, such as PowerShell Direct or integration services?
Answer: No. A custom HvSocket Service-ID configuration should not be treated as a universal access-control policy for other Hyper-V communication channels. PowerShell Direct and integration services have separate security mechanisms and must be assessed independently.
- Supported Windows versions and SDKs
Question: Which Windows host/guest versions and SDKs support the requested mechanisms?
Answer: Support for HvSocket APIs does not necessarily imply support for the complete per-principal authorization model. Compatibility must be assessed separately for the relevant APIs, configuration interfaces, and VM management model.
Documentation and supportability
For reference, the following Microsoft documentation describes the relevant interfaces:
- Make your own integration services — Hyper-V sockets
- Host Compute System (HCS) JSON Schema Reference
The responses above are based on my current technical understanding and are intended to provide a preliminary baseline for your assessment. However, I have not identified official Microsoft documentation that explicitly confirms the complete endpoint-authorization model described in your request.
Accordingly, I recommend treating this information as a reference for further investigation rather than as a definitive statement of product supportability. We would not recommend making final development or production architecture decisions that depend on these security guarantees solely on the basis of this assessment.
For further clarification, I recommend submitting feedback or seeking additional confirmation from the Microsoft Support team regarding the supported security capabilities and applicable configuration interfaces.