Skip to content

Instantly share code, notes, and snippets.

@schrodyn
Forked from stvemillertime/RareEquities_Pcap.yar
Created November 19, 2021 21:27
Show Gist options
  • Save schrodyn/a20272334cc242da2d7242091d542abd to your computer and use it in GitHub Desktop.
Save schrodyn/a20272334cc242da2d7242091d542abd to your computer and use it in GitHub Desktop.
rule ELF_Methodology_RareEquities_Pcap
{
meta:
author = "@stvemillertime"
description = "This is a wide catchall rule looking for executables with pcap equities. Matches on this rule may have built-in pcap collection, sniffing capability such as in MESSAGETAP, RATSNIF, etc."
ref_md5 = "8d3b3d5b68a1d08485773d70c186d877"
strings:
$a1 = "pcap_"
condition:
(uint32(0) == 0x464c457f) and int8(0x10) == 0x02 and $a1
}
rule PE_Methodology_RareEquities_Pcap
{
meta:
author = "@stvemillertime"
description = "This is a wide catchall rule looking for executables with pcap equities. Matches on this rule may have built-in pcap collection, sniffing capability such as in MESSAGETAP, RATSNIF, etc."
ref_md5 = "8d3b3d5b68a1d08485773d70c186d877"
strings:
$a1 = "pcap_"
condition:
(uint16(0) == 0x5A4D) and uint32(uint32(0x3C)) == 0x00004550 and $a1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment