Skip to content

Instantly share code, notes, and snippets.

@paralax
Created January 27, 2022 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paralax/1ea7de91eb3f0129a55ebafd82cdba1a to your computer and use it in GitHub Desktop.
Save paralax/1ea7de91eb3f0129a55ebafd82cdba1a to your computer and use it in GitHub Desktop.
Yara rules to tag artifacts with deserialized and obfuscated code
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