Created
January 27, 2022 19:40
-
-
Save paralax/1ea7de91eb3f0129a55ebafd82cdba1a to your computer and use it in GitHub Desktop.
Yara rules to tag artifacts with deserialized and obfuscated code
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 JavaDeswerializePayload | |
{ | |
meta: | |
author = "@jnazario" | |
date = "2022-01-27" | |
version = 1 | |
strings: | |
$s1 = "java.lang.Runtime.getRuntime().exec" ascii fullword | |
$s2 = "javaSerializedData" ascii fullword | |
condition: | |
all of them | |
} | |
rule JavaCharEncodedPayload | |
{ | |
meta: | |
author = "@jnazario" | |
date = "2022-01-27" | |
version = 1 | |
strings: | |
$s1 = "exec(String.fromCharCode(" ascii fullword | |
$s2 = "eval" ascii fullword | |
condition: | |
all of them | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment