Created
January 24, 2021 18:04
-
-
Save ajpc500/5b029c81b54b69968cf7e59c57e913c5 to your computer and use it in GitHub Desktop.
PoC Yara rule for PE shellcode artefacts in UUIDs
This file contains 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
rule PEs_converted_to_UUID { | |
meta: | |
description = "Loading PE shellcode through UUIDs" | |
author = "ajpc500" | |
date = "2021-01-24" | |
reference_url1 = "https://research.nccgroup.com/2021/01/23/rift-analysing-a-lazarus-shellcode-execution-method/" | |
reference_url2 = "https://gist.github.com/rxwx/c5e0e5bba8c272eb6daa587115ae0014#file-uuid-c" | |
strings: | |
// UUIDs for "This program cannot be run in DOS mode" | |
$s1 = "70207369-6f72-7267-616d-2063616e6e6f" | |
$s2 = "65622074-7220-6e75-2069-6e20444f5320" | |
$s3 = "HeapAlloc" | |
$s4 = "EnumSystemLocales" | |
$s5 = "UuidFromString" | |
condition: | |
all of them | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment