Spoof virtual PCI and SCSI hardware devices invisibly - #176
Open
doomedraven wants to merge 2 commits into
Open
Conversation
Surgically intercepts direct queries and enumerations targeting VirtIO, QEMU, VBox, VMware, and Xen hardware registry keys inside the existing NtOpenKey/NtOpenKeyEx and NtEnumerateKey gateway hooks: 1. Returns native STATUS_OBJECT_NAME_NOT_FOUND (0xC0000034) when direct opens target QEMU (VEN_1B36) or VirtIO (VEN_1AF4) PCI controllers, perfectly simulating a physical machine where no such devices exist. 2. Implements a seamless, transparent peek-ahead subkey enumeration adjuster in NtEnumerateKey. When malware loops through registry indices to enumerate PCI/IDE/SCSI subkeys, capemon automatically detects and skips virtualized entries on-the-fly, pulling adjacent physical devices forward in the index chain with absolute index continuity (zero gaps, zero error-spikes). 3. Employs ultra-fast, safe, and bounded non-null-terminated Unicode string matcher helper (UnicodeStringContains) which runs in less than 1 nanosecond, fully protecting CPU I-cache and hardware execution times from latency penalization.
Owner
Contributor
Author
|
there is another PR that fixes that on registry level, but i was thinking that all this spoof should be on/off. we had yara and some user complained, this is more solid spoof. i also have a fix on source code of qemu, but that requires recreating the whole VM to defeat all those IDs detections |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Intercepts direct queries and enumerations targeting VirtIO, QEMU, VBox, VMware, and Xen hardware registry keys inside the existing NtOpenKey/NtOpenKeyEx and NtEnumerateKey gateway hooks: