Skip to content

Commit

Permalink
Merge pull request #822 from mandiant/rules52-35
Browse files Browse the repository at this point in the history
add `get ntoskrnl base address`
  • Loading branch information
mr-tz authored Sep 5, 2023
2 parents a20c17d + 45dbe87 commit 955d7b7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions nursery/get-ntoskrnl-base-address.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
rule:
meta:
name: get ntoskrnl base address
namespace: linking/runtime-linking
authors:
- "@mr-tz"
scope: function
att&ck:
- Execution::Shared Modules [T1129]
references:
- https://github.com/hfiref0x/TDL/blob/cc4b46ae1c939b14a22a734a727b163f873a41b5/Source/Furutaka/sup.c#L76
- https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/ex/sysinfo/query.htm
features:
- and:
- basic block:
- and:
- description: returns RTL_PROCESS_MODULES structure
- number: 0xB = SystemModuleInformation
- match: get system information on Windows
- and:
- arch: i386
- offset: 0xC = RTL_PROCESS_MODULES.Modules[0].ImageBase
- and:
- arch: amd64
- offset: 0x18 = RTL_PROCESS_MODULES.Modules[0].ImageBase

0 comments on commit 955d7b7

Please sign in to comment.