Skip to content

Commit

Permalink
Merge pull request #396 from andreiminca/asyncrat_mutex
Browse files Browse the repository at this point in the history
Create asyncrat_mutex.py
  • Loading branch information
doomedraven authored Mar 7, 2024
2 parents ddba852 + 1ff48d8 commit efb5dc9
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions modules/signatures/windows/asyncrat_mutex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright (C) 2024 andreiminca
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from lib.cuckoo.common.abstracts import Signature


class AsyncRatMutex(Signature):
name = "asyncrat_mutex"
description = "Creates known AsyncRat mutexe"
severity = 3
categories = ["infostealer", "keylogger", "rat"]
families = ["AsyncRat"]
authors = ["andreiminca"]
minimum = "1.3"
ttps = ["T1219"] # MITRE v6,7,8
mbcs = ["OC0003", "C0042"] # micro-behaviour

def run(self):
indicators = [
"ASYNCMUTEX_[a-zA-Z0-9]{9}$",
]

for indicator in indicators:
match = self.check_mutex(pattern=indicator, regex=True, all=True)
if match:
for mut in match:
self.data.append({"mutex": mut})
return True

return False

0 comments on commit efb5dc9

Please sign in to comment.