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

Add Rule: Driver Added To Disallowed Images In HVCI - Registry #4965

Merged
merged 4 commits into from
Aug 21, 2024

Conversation

omaramin17
Copy link
Contributor

@omaramin17 omaramin17 commented Aug 12, 2024

Summary of the Pull Request

This PR add detection of modification to HVCIDisallowedImages to blocks loading drivers by filename according to this recent tweet

Changelog

new: Driver Added To Disallowed Images In HVCI - Registry

Example Log Event

<Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'>
  <System>
    <Provider Name='Microsoft-Windows-Sysmon' Guid='{5770385f-c22a-43e0-bf4c-06f5698ffbd9}'/>
    <EventID>13</EventID>
    <Version>2</Version>
    <Level>4</Level>
    <Task>13</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime='2024-08-12T10:51:58.6970127Z'/>
    <EventRecordID>134290435</EventRecordID>
    <Correlation/>
    <Execution ProcessID='6148' ThreadID='9200'/>
    <Channel>Microsoft-Windows-Sysmon/Operational</Channel>
    <Computer>REDACTED</Computer>
    <Security UserID='S-1-5-18'/>
  </System>
  <EventData>
    <Data Name='RuleName'>-</Data>
    <Data Name='EventType'>SetValue</Data>
    <Data Name='UtcTime'>2024-08-12 10:51:58.696</Data>
    <Data Name='ProcessGuid'>{f3beb03c-e94e-66b9-013e-000000002501}</Data>
    <Data Name='ProcessId'>2380</Data>
    <Data Name='Image'>C:\Windows\system32\reg.exe</Data>
    <Data Name='TargetObject'>HKLM\System\CurrentControlSet\Control\CI\HvciDisallowedImages</Data>
    <Data Name='Details'>Binary Data</Data>
    <Data Name='User'>REDACTED</Data>
  </EventData>
</Event>

Fixed Issues

N/A

SigmaHQ Rule Creation Conventions

  • If your PR adds new rules, please consider following and applying these conventions

@github-actions github-actions bot added Rules Windows Pull request add/update windows related rules labels Aug 12, 2024
@nasbench nasbench self-assigned this Aug 12, 2024
@nasbench nasbench added the Work In Progress Some changes are needed label Aug 12, 2024
@nasbench nasbench removed the Work In Progress Some changes are needed label Aug 21, 2024
@nasbench
Copy link
Member

As this was already covered by some private rule last year, i'll migrate the internal version here to avoid duplication.

@nasbench nasbench changed the title Add Rule: registry_set_block_drivers_code_integrity.yml Add Rule: Driver Added To Disallowed Images In HVCI - Registry Aug 21, 2024
@nasbench nasbench merged commit b1a2d41 into SigmaHQ:master Aug 21, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rules Windows Pull request add/update windows related rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants