Skip to content

Instantly share code, notes, and snippets.

@itsreallynick
Created October 24, 2019 14:39
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 itsreallynick/5fb125d217997c39618ed7b8f913b68e to your computer and use it in GitHub Desktop.
Save itsreallynick/5fb125d217997c39618ed7b8f913b68e to your computer and use it in GitHub Desktop.
Workflow.Compiler rules from August 2018
// Background:
rule Hunting_Workflow_Collection_XOML {
meta:
author = "Nick Carr - @itsreallynick"
strings:
$workflow1 = "<SequentialWorkflowActivity" nocase ascii wide
$workflow2 = "Code" nocase ascii wide
condition:
uint16(0) != 0x5A4D and all of ($workflow*) and new_file
}
rule Hunting_Workflow_Collection_Compiler {
meta:
author = "Nick Carr - @itsreallynick"
strings:
$workflow1 = "<CompilerInput" nocase ascii wide
$workflow2 = "<parameters" nocase ascii wide
$options1 = "<coreAssemblyFileName" nocase ascii wide
$options2 = "<generate" nocase ascii wide
$options3 = "languageToUse>CSharp" nocase ascii wide
$options4 = "<win32Resource" nocase ascii wide
$options5 = "<embeddedResources" nocase ascii wide
$options6 = "<assemblyNames" nocase ascii wide
$options7 = "/System.CodeDom.Compiler" nocase ascii wide
condition:
uint16(0) != 0x5A4D and all of ($workflow*) and 4 of ($options*) and new_file
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment