Skip to content

Commit

Permalink
Merge pull request #442 from Evert0x/master
Browse files Browse the repository at this point in the history
Adding the right TTP's to all the signatures
  • Loading branch information
jbremer authored Apr 23, 2019
2 parents 27dcd60 + b1031e7 commit e49d0e6
Show file tree
Hide file tree
Showing 119 changed files with 165 additions and 9 deletions.
1 change: 1 addition & 0 deletions modules/signatures/windows/antianalysis_detectfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class AntiAnalysisDetectFile(Signature):
categories = ["anti-analysis"]
authors = ["KillerInstinct"]
minimum = "2.0"
ttp = ["T1063"]

file_indicators = [
"[A-Za-z]:\\\\analysis",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antiav_avast_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class AvastDetectLibs(Signature):
categories = ["anti-av"]
authors = ["Optiv"]
minimum = "2.0"
ttp = ["T1063"]

filter_apinames = set(["LdrLoadDll", "LdrGetDllHandle"])

Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antiav_bitdefender_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class BitdefenderDetectLibs(Signature):
categories = ["anti-av"]
authors = ["Optiv"]
minimum = "2.0"
ttp = ["T1063"]

filter_apinames = set(["LdrLoadDll", "LdrGetDllHandle"])

Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antiav_detectfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class AntiAVDetectFile(Signature):
categories = ["anti-av"]
authors = ["Optiv"]
minimum = "2.0"
ttp = ["T1063"]

file_indicators = [
".*\\\\AVAST\\ Software",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antiav_detectreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class AntiAVDetectReg(Signature):
categories = ["anti-av"]
authors = ["Optiv"]
minimum = "2.0"
ttp = ["T1063", "T1012"]

reg_indicators = [
".*\\\\Software\\\\(Wow6432Node\\\\)?Avg",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antiav_servicestop.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class AntiAVServiceStop(Signature):
categories = ["anti-av"]
authors = ["Optiv"]
minimum = "2.0"
ttp = ["T1031", "T1089"]
evented = True

def __init__(self, *args, **kwargs):
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antiav_srp.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class AntiAVSRP(Signature):
categories = ["anti-av"]
authors = ["Optiv"]
minimum = "2.0"
ttp = ["T1089"]

regkeys_re = [
".*\\\\Policies\\\\Microsoft\\\\Windows\\\\Safer\\\\\CodeIdentifiers\\\\0\\\\Paths\\\\.*",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antidbg_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class AntiDBGDevices(Signature):
categories = ["anti-debug"]
authors = ["nex"]
minimum = "2.0"
ttp = ["T1083", "T1057"]

indicators = [
".*SICE$",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antidbg_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class AntiDBGWindows(Signature):
categories = ["anti-debug"]
authors = ["nex", "KillerInstinct", "Brad Spengler"]
minimum = "2.0"
ttp = ["T1057"]

filter_categories = "ui",

Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antiemu_wine.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class WineDetect(Signature):
categories = ["anti-emulation"]
authors = ["nex"]
minimum = "2.0"
ttp = ["T1057"]

filter_apinames = "LdrGetProcedureAddress",

Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antisandbox_clipboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class AntisandboxClipboard(Signature):
categories = ["anti-sandbox"]
authors = ["Kevin Ross"]
minimum = "2.0"
ttp = ["T1115"]

filter_apinames = set(["GetClipboardData"])

Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antisandbox_cuckoo_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class CuckooDetectFiles(Signature):
categories = ["anti-sandbox"]
authors = ["Brad Spengler"]
minimum = "2.0"
ttp = ["T1083", "T1057"]

file_indicators = [
".*\\\\agent\\.py$",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antisandbox_fortinet_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class FortinetDetectFiles(Signature):
categories = ["anti-sandbox"]
authors = ["Brad Spengler"]
minimum = "2.0"
ttp = ["T1083", "T1057"]

files_re = [
"C:\\\\tracer\\\\mdare32_0\\.sys",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antisandbox_idletime.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class AntiSandboxIdleTime(Signature):
categories = ["anti-sandbox"]
authors = ["Cuckoo Technologies"]
minimum = "2.0"
ttp = ["T1082"]

filter_apinames = "NtQuerySystemInformation",

Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antisandbox_joe_anubis_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class SandboxJoeAnubisDetectFiles(Signature):
categories = ["anti-sandbox"]
authors = ["Kevin Ross"]
minimum = "2.0"
ttp = ["T1083", "T1057"]

file_indicators = [
"C:\\\\sample\\.exe",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antisandbox_sunbelt.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class SunBeltSandboxDetect(Signature):
categories = ["anti-vm"]
authors = ["Cuckoo Technologies"]
minimum = "2.0"
ttp = ["T1083", "T1057"]

dlls_re = [
".*api_log(\\.dll)?$",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antisandbox_sunbelt_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class SunbeltDetectFiles(Signature):
categories = ["anti-sandbox"]
authors = ["Kevin Ross"]
minimum = "2.0"
ttp = ["T1083", "T1057"]

file_indicators = [
".*\\\\SandboxStarter\\.exe$",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class ThreatTrackDetectFiles(Signature):
categories = ["anti-sandbox"]
authors = ["Brad Spengler"]
minimum = "2.0"
ttp = ["T1083", "T1057"]

files_re = [
"C:\\\\cwsandbox",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antisandbox_unhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Unhook(Signature):
categories = ["anti-sandbox"]
authors = ["nex"]
minimum = "2.0"
ttp = ["T1089"]

filter_apinames = "__anomaly__",

Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivirus_detection_cn.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class AVDetectionChinaKey(Signature):
families = ["china"]
authors = ["RedSocks"]
minimum = "2.0"
ttp = ["T1063", "T1012"]

indicators = [
".*360Safe",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_bochs_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class BochsDetectKeys(Signature):
categories = ["anti-vm"]
authors = ["Brad Spengler"]
minimum = "2.0"
ttp = ["T1057", "T1012"]

regkeys_re = [
".*\\\\HARDWARE\\\\ACPI\\\\(DSDT|FADT|RSDT)\\\\BOCHS_.*",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_generic_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class AntiVMCPU(Signature):
categories = ["anti-vm"]
authors = ["Optiv"]
minimum = "2.0"
ttp = ["T1082", "T1012"]

regkeys_re = [
".*\\\\HARDWARE\\\\DESCRIPTION\\\\System\\\\CentralProcessor\\\\.*\\\\ProcessorNameString",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_generic_ide.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class AntiVMIDE(Signature):
categories = ["anti-vm"]
authors = ["nex"]
minimum = "2.0"
ttp = ["T1057", "T1012"]

def on_complete(self):
for regkey in self.check_key(pattern=".*\\\\SYSTEM\\\\(CurrentControlSet|ControlSet001)\\\\Enum\\\\IDE", regex=True, all=True):
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_generic_scsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class AntiVMSCSI(Signature):
categories = ["anti-vm"]
authors = ["nex"]
minimum = "2.0"
ttp = ["T1057", "T1012"]

regkeys_re = [
".*\\\\HARDWARE\\\\DEVICEMAP\\\\Scsi\\\\Scsi Port \\d+\\\\Scsi Bus \\d+\\\\Target Id \\d+\\\\Logical Unit Id \\d+\\\\Identifier",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_generic_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class AntiVMServices(Signature):
categories = ["anti-vm"]
authors = ["nex"]
minimum = "2.0"
ttp = ["T1007"]

filter_apinames = "EnumServicesStatusA", "EnumServicesStatusW"

Expand Down
3 changes: 2 additions & 1 deletion modules/signatures/windows/antivm_hyperv_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class HyperVDetectKeys(Signature):
categories = ["anti-vm"]
authors = ["Brad Spengler"]
minimum = "2.0"

ttp = ["T1057", "T1012"]

regkeys_re = [
".*\\\\SYSTEM\\\\(CurrentControlSet|ControlSet001)\\\\Enum\\\\ACPI\\\\Hyper_V_Gen_Counter_V1",
]
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_memory_available.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class MemoryAvailable(Signature):
categories = ["anti-vm"]
authors = ["Kevin Ross"]
minimum = "2.0"
ttp = ["T1082"]

filter_apinames = [
"GlobalMemoryStatusEx", "GetPhysicallyInstalledSystemMemory",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_parallels_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class ParallelsDetectKeys(Signature):
categories = ["anti-vm"]
authors = ["Brad Spengler"]
minimum = "2.0"
ttp = ["T1057", "T1012"]

regkeys_re = [
".*\\\\SYSTEM\\\\(CurrentControlSet|ControlSet001)\\\\Enum\\\\PCI\\\\VEN_1AB8&DEV_4000&SUBSYS_04001AB8&REV_00",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_parallels_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class ParallelsDetectWindow(Signature):
categories = ["anti-vm"]
authors = ["Kevin Ross"]
minimum = "2.0"
ttp = ["T1057"]

filter_categories = "ui",

Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_psuedo_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class AntiVMSharedDevice(Signature):
categories = ["anti-vm"]
authors = ["Kevin Ross"]
minimum = "2.0"
ttp = ["T1082"]

filter_apinames = "NtCreateFile",

Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_sandboxie.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class SandboxieDetect(Signature):
categories = ["anti-vm"]
authors = ["Cuckoo Technologies"]
minimum = "2.0"
ttp = ["T1057"]

mutexes_re = [
".*Sandboxie_SingleInstanceMutex_Control",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_vbox_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class VBoxDetectFiles(Signature):
categories = ["anti-vm"]
authors = ["nex"]
minimum = "2.0"
ttp = ["T1083", "T1057"]

indicators = [
".*VBoxDisp\\.dll",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_vbox_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class VBoxDetectKeys(Signature):
categories = ["anti-vm"]
authors = ["nex", "Brad Spengler"]
minimum = "2.0"
ttp = ["T1057", "T1012"]

regkeys_re = [
".*\\\\SOFTWARE\\\\(Wow6432Node\\\\)?Oracle\\\\VirtualBox\\ Guest\\ Additions",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_vbox_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class VBoxDetectWindow(Signature):
categories = ["anti-vm"]
authors = ["nex"]
minimum = "2.0"
ttp = ["T1057"]

filter_categories = "ui",

Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_virtualpc_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class VirtualPCDetectWindow(Signature):
categories = ["anti-vm"]
authors = ["Kevin Ross"]
minimum = "2.0"
ttp = ["T1057"]

filter_categories = "ui",

Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_vmware_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class VMWareDetectFiles(Signature):
categories = ["anti-vm"]
authors = ["Cuckoo Technologies"]
minimum = "2.0"
ttp = ["T1083", "T1057"]

files_re = [
".*vmmouse\\.sys",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_vmware_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class VMWareDetectKeys(Signature):
categories = ["anti-vm"]
authors = ["Cuckoo Technologies", "Optiv"]
minimum = "2.0"
ttp = ["T1057", "T1012"]

regkeys_re = [
".*\\\\SOFTWARE\\\\(Wow6432Node\\\\)?VMWare,\\ Inc\..*",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_vmware_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class VMwareDetectWindow(Signature):
categories = ["anti-vm"]
authors = ["Kevin Ross"]
minimum = "2.0"
ttp = ["T1057"]

filter_categories = "ui",

Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_vpc_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class VPCDetectKeys(Signature):
categories = ["anti-vm"]
authors = ["Optiv"]
minimum = "2.0"
ttp = ["T1057", "T1012"]

regkeys_re = [
".*\\\\SYSTEM\\\\(CurrentControlSet|ControlSet001)\\\\Enum\\\\PCI\\\\VEN_5333&DEV_8811&SUBSYS_00000000&REV_00",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/antivm_xen_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class XenDetectKeys(Signature):
categories = ["anti-vm"]
authors = ["Brad Spengler"]
minimum = "2.0"
ttp = ["T1057", "T1012"]

regkeys_re = [
".*\\\\SYSTEM\\\\(CurrentControlSet|ControlSet001)\\\\Enum\\\\ACPI\\\\XEN0000.*",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/appinit.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class InstallsAppInit(Signature):
categories = ["persistence"]
authors = ["Cuckoo Technologies"]
minimum = "2.0"
ttp = ["T1103"]

regkeys_re = [
".*\\\\SOFTWARE\\\\Microsoft\\\\Windows\\ NT\\\\CurrentVersion\\\\Windows\\\\Appinit_Dlls",
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/applocker_bypass.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class AppLockerBypass(Signature):
categories = ["applocker", "bypass"]
authors = ["FDD", "Cuckoo Technologies"]
minimum = "2.0.4"
ttp = ["T1086", "T1117"]

def on_yara(self, category, filepath, match):
if match.name != "ApplockerBypass":
Expand Down
2 changes: 1 addition & 1 deletion modules/signatures/windows/bootconfig_modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ModifiesBootConfig(Signature):
categories = ["persistance", "ransomware"]
authors = ["Kevin Ross"]
minimum = "2.0"

ttp = ["T1067"]
filter_apinames = "ShellExecuteExW", "CreateProcessInternalW",

def on_call(self, call, process):
Expand Down
2 changes: 1 addition & 1 deletion modules/signatures/windows/bootkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Bootkit(Signature):
authors = ["Optiv"]
minimum = "2.0"
evented = True

ttp = ["T1067"]
BasicFileInformation = 4

def __init__(self, *args, **kwargs):
Expand Down
1 change: 1 addition & 0 deletions modules/signatures/windows/browser_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class BrowserSecurity(Signature):
categories = ["browser", "clickfraud", "banker"]
authors = ["Kevin Ross", "Optiv"]
minimum = "2.0"
ttp = ["T1089"]

regkeys_re = [
".*\\\\SOFTWARE\\\\(Wow6432Node\\\\)?Microsoft\\\\Internet\\ Explorer\\\\Privacy\\\\EnableInPrivateMode",
Expand Down
2 changes: 1 addition & 1 deletion modules/signatures/windows/bypass_firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class BypassFirewall(Signature):
categories = ["bypass"]
authors = ["Anderson Tamborim", "nex", "Kevin Ross"]
minimum = "2.0"

ttp = ["T1031"]
indicator = ".*\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\SharedAccess\\\\Parameters\\\\FirewallPolicy\\\\.*"

def on_complete(self):
Expand Down
4 changes: 2 additions & 2 deletions modules/signatures/windows/clears_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ClearsEventLogs(Signature):
categories = ["commands", "stealth"]
authors = ["Kevin Ross"]
minimum = "2.0"

ttp = ["T1070"]
utilities = [
"wevtutil cl",
"wevtutil.exe cl"
Expand All @@ -43,7 +43,7 @@ class ClearPermissionEventLogs(Signature):
categories = ["commands", "stealth"]
authors = ["Kevin Ross"]
minimum = "2.0"

ttp = ["T1222"]
utilities = [
"wevtutil sl",
"wevtutil.exe sl"
Expand Down
Loading

0 comments on commit e49d0e6

Please sign in to comment.