Skip to content

Commit

Permalink
Ghostly Hollowing process injection rule (#865)
Browse files Browse the repository at this point in the history
* ghostly hollowing process injection rule

---------

Co-authored-by: Moritz <[email protected]>
  • Loading branch information
sara-rn and mr-tz authored Jan 23, 2024
1 parent e09a22d commit 4f27bfe
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions host-interaction/process/inject/process-ghostly-hollowing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
rule:
meta:
name: process ghostly hollowing
namespace: host-interaction/process/inject
authors:
- [email protected]
scopes:
static: function
dynamic: call
references:
- https://github.com/hasherezade/transacted_hollowing/tree/main#ghostly-hollowing
examples:
- 3b2eba4789bd4a799fe18476a4d1ce9f37ecc4c202eb406e06425c7e792904ff:0x140007aa0 # open_file
- 3b2eba4789bd4a799fe18476a4d1ce9f37ecc4c202eb406e06425c7e792904ff:0x140007840 # delete_pending_file
features:
- or:
- and:
- operand[1].number: 0xC0110000 = DELETE | SYNCHRONIZE | GENERIC_READ | GENERIC_WRITE
- operand[1].number: 0x20 = FILE_SUPERSEDE | FILE_SYNCHRONOUS_IO_NONALERT
- or:
- api: NtOpenFile
- string: "NtOpenFile"
- and:
- api: NtWriteFile
- api: NtSetInformationFile
- api: NtCreateSection

0 comments on commit 4f27bfe

Please sign in to comment.