Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anti-VM: Hyper-V / Windows Sandbox MAC #229

Open
recvfrom opened this issue Mar 5, 2021 · 2 comments
Open

Anti-VM: Hyper-V / Windows Sandbox MAC #229

recvfrom opened this issue Mar 5, 2021 · 2 comments

Comments

@recvfrom
Copy link
Contributor

recvfrom commented Mar 5, 2021

References:

Once executed, the SUNSHUTTLE backdoor enumerates the victim’s MAC address and compares it to a hardcoded MAC address value “c8:27:cc:c2:37:5a”. If a match is found the backdoor exits. The MAC address is likely a default MAC address for the Windows sandbox network adapter.

image

@LordNoteworthy
Copy link
Owner

LordNoteworthy commented Mar 9, 2021

Thanks @recvfrom, I will update it.

The MAC address detection as it is implemented now in this project is producing a false positive, which I am not quiet sure how SUNSHUTTLE does it properly. The problem is that the network interface in both the guest and the host will have that MAC address. So it is possible that if you run the tool inside a Windows physical machine with Hyper-V installed, it will find the MAC address and thinks it is a VM.

One workaround, though it is not reliable is: if the count of network adapters == 1 AND the mac address is in the blacklist, then is it a VM.

@recvfrom
Copy link
Contributor Author

FYI: https://twitter.com/MalwareRE/status/1384193510245474313

The Hyper-V interface of Windows Sandbox gets assigned a new pseudo-randomly generated MAC every time Windows Sandbox is launched (i.e. would not equal c8:27:cc:c2:37:5a / C8-27-CC-C2-37-5A in a running VM). MAC prefix: 00:15:5D (MSFT's IEEE organizationally Unique ID).
... was hardcoded in the early versions of Windows Sandbox but no longer the case

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

No branches or pull requests

3 participants