Skip to content

Instantly share code, notes, and snippets.

@yt0ng
Created February 5, 2022 15:38
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yt0ng/2fb4832f97a5d90687d07d2886b595c3 to your computer and use it in GitHub Desktop.
Save yt0ng/2fb4832f97a5d90687d07d2886b595c3 to your computer and use it in GitHub Desktop.
// Must have console module via yara-4.2.0-rc1+
// expects decoded beacons
import "pe"
import "console"
rule CobaltStrike_Watermark_Profiler: Profiler
{
meta:
description = "Profiles Cobaltstrike Watermarks using Yara Console Module"
author = "Markus Neis"
date = "2022-05-02"
strings:
$watermark = {00 25 00 02 00 04 ?? ?? ?? ??} // TLV for watermark
condition:
filesize < 5MB and
console.log("Watermark: ", uint32be(@watermark+6))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment