Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some signature error #450

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/signatures/windows/antivm_bochs_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from lib.cuckoo.common.abstracts import Signature

class BochsDetectKeys(Signature):
name = "antivm_xen_keys"
name = "antivm_bochs_keys"
description = "Detects Bochs through the presence of a registry key"
severity = 3
categories = ["anti-vm"]
Expand Down
14 changes: 8 additions & 6 deletions modules/signatures/windows/apt_uroburos_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ class UroburosFile(Signature):
authors = ["RedSocks"]
minimum = "2.0"

mutexes_re = [
".*turla10",
".*msdata\\\\.*",
".*1396695624",
files_re = [
".*\\\\drivers\\\\wo2ifsl.sys",
".*\\\\drivers\\\\acpied.sys",
".*\\\\drivers\\\\atmarpd.sys",
".*\\\\temp\\\\msmsgsmon.exe",
".*\\\\temp\\\\msdattst.ocx",
]

def on_complete(self):
for mutex in self.mutexes_re:
if self.check_mutex(pattern=mutex, regex=True):
for indicator in self.files_re:
if self.check_file(pattern=indicator, regex=True):
return True
19 changes: 7 additions & 12 deletions modules/signatures/windows/apt_uroburos_mutex.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@ class UroburosMutexes(Signature):
authors = ["RedSocks"]
minimum = "2.0"

files_re = [
".*\\\\drivers\\\\wo2ifsl.sys",
".*\\\\drivers\\\\acpied.sys",
".*\\\\drivers\\\\atmarpd.sys",
".*\\\\temp\\\\msmsgsmon.exe",
".*\\\\temp\\\\msdattst.ocx",
mutexes_re = [
".*turla10",
".*msdata\\\\.*",
".*1396695624",
]

def on_complete(self):
for indicator in self.files_re:
if self.check_mutex(pattern=indicator, regex=True):
return True

if self.check_file(pattern=indicator, regex=True):
return True
for mutex in self.mutexes_re:
if self.check_mutex(pattern=mutex, regex=True):
return True
2 changes: 2 additions & 0 deletions modules/signatures/windows/bot_dirtjumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ def on_complete(self):
if http["method"] == "POST" and http["body"].startswith("k=") and \
http.get("user-agent", "") == self.user_agent:
self.mark_ioc("http", http)

return self.has_marks()
2 changes: 1 addition & 1 deletion modules/signatures/windows/driver_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from lib.cuckoo.common.abstracts import Signature

class DriverLoad(Signature):
name = "shutdown_system"
name = "load_driver"
description = "Loads a driver"
severity = 3
categories = ["stealth"]
Expand Down
8 changes: 8 additions & 0 deletions modules/signatures/windows/trojan_pincav.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@ class TrojanLethic(Signature):
".*jK1dDfggS",
".*zBIYku2BMUdN9unB87sa2sa",
]

def on_complete(self):
for indicator in self.mutexes_re:
mutex = self.check_mutex(pattern=indicator, regex=True)
if mutex:
self.mark_ioc("mutex", mutex)

return self.has_marks()