Skip to content

Commit

Permalink
Merge pull request #404 from bartblaze/master
Browse files Browse the repository at this point in the history
Additions and edits
  • Loading branch information
doomedraven authored Mar 8, 2024
2 parents 98d36e3 + 56ea163 commit 7b77087
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
timeout-minutes: 20
strategy:
matrix:
python-version: [3.8]
python-version: [3.11]

steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -39,15 +39,15 @@ jobs:
timeout-minutes: 20
strategy:
matrix:
python-version: [3.8]
python-version: [3.11]
if: ${{ github.ref == 'refs/heads/master' }}

steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update-mitre-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.11]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Update mitre files
Expand Down
2 changes: 1 addition & 1 deletion modules/signatures/windows/asyncrat_mutex.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class AsyncRatMutex(Signature):
name = "asyncrat_mutex"
description = "Creates known AsyncRat mutexe"
description = "Creates known AsyncRat mutex"
severity = 3
categories = ["infostealer", "keylogger", "rat"]
families = ["AsyncRat"]
Expand Down
46 changes: 46 additions & 0 deletions modules/signatures/windows/credential_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,49 @@ def run(self):
ret = True

return ret


class VaultCmd(Signature):
name = "vaultcmd_credentialaccess"
description = "Lists credentials using VaultCmd"
severity = 3
categories = ["credentials", "credential_access"]
authors = ["bartblaze"]
minimum = "1.3"
evented = True
ttps = ["T1555"]
reference = ["https://attack.mitre.org/techniques/T1555/004/"]

def run(self):
ret = False
cmdlines = self.results["behavior"]["summary"]["executed_commands"]
for cmdline in cmdlines:
lower = cmdline.lower()
if "vaultcmd" in lower and "list" in lower:
ret = True
self.data.append({"command": cmdline})

return ret


class CredWiz(Signature):
name = "credwiz_credentialaccess"
description = "Exports credentials using CredWiz"
severity = 3
categories = ["credentials", "credential_access"]
authors = ["bartblaze"]
minimum = "1.3"
evented = True
ttps = ["T1555"]
reference = ["https://attack.mitre.org/techniques/T1555/"]

def run(self):
ret = False
cmdlines = self.results["behavior"]["summary"]["executed_commands"]
for cmdline in cmdlines:
lower = cmdline.lower()
if "credwiz" in lower and "keymgr" in lower:
ret = True
self.data.append({"command": cmdline})

return ret

0 comments on commit 7b77087

Please sign in to comment.