Skip to content

Instantly share code, notes, and snippets.

@timb-machine
Last active March 1, 2021 18:19
Show Gist options
  • Save timb-machine/64ec7021d43219580b16dc9c3d28d35b to your computer and use it in GitHub Desktop.
Save timb-machine/64ec7021d43219580b16dc9c3d28d35b to your computer and use it in GitHub Desktop.
enterpriseapps2.yara
import "elf"
rule enterpriseapps2 {
meta:
author = "Tim Brown @timb_machine"
description = "Enterprise apps"
strings:
$db2 = "db2" nocase
$oracle = "oracle" nocase
$mysql = "mysql" nocase
$mqm = "mqm" nocase
$tivoli = "tivoli" nocase
$patrol = "patrol" nocase
$websphere = "websphere" nocase
$weblogic = "weblogic" nocase
$sap = "sap" nocase
$tomcat = "tomcat" nocase
$libca = "libc.a"
$text = ".text"
$data = ".data"
condition:
($db2 or $oracle or $mysql or $mqm or $tivoli or $patrol or $websphere or $weblogic or $sap or $tomcat) and ((elf.number_of_sections >= 1) or ($libca and $text and $data))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment