-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into morriscode-gitgudnoob
- Loading branch information
Showing
10 changed files
with
122 additions
and
31 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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: "Attachment: PDF with link to DMG file download" | ||
description: | | ||
This rule identifies PDF attachments that either link directly to a DMG file, link to a ZIP archive containing a DMG file, or link to an encrypted ZIP containing a DMG file. This technique has been observed delivering MetaStealer Malware. | ||
references: | ||
- "https://thehackernews.com/2023/09/beware-metastealer-malware-targets.html" | ||
- "https://duo.com/decipher/new-metastealer-malware-targets-macos-users" | ||
- "https://www.sentinelone.com/blog/macos-metastealer-new-family-of-obfuscated-go-infostealers-spread-in-targeted-attacks/" | ||
type: "rule" | ||
severity: "medium" | ||
source: | | ||
type.inbound | ||
and any(attachments, | ||
.file_type == "pdf" | ||
and any(file.explode(.), | ||
any(.scan.url.urls, | ||
// url links to dmg or zip | ||
( | ||
strings.iends_with(.url, ".dmg") or strings.iends_with(.url, "zip") | ||
) | ||
// and downloads a dmg or a zip | ||
and any(beta.linkanalysis(.).files_downloaded, | ||
( | ||
.file_extension == "dmg" | ||
or ( | ||
.file_extension in~ $file_extensions_common_archives | ||
// and the zip contains a dmg file | ||
and any(file.explode(.), | ||
(.file_extension =~ "dmg") | ||
// exif inspection if encrypted | ||
or strings.ends_with(.scan.exiftool.zip_file_name, ".dmg") | ||
) | ||
) | ||
) | ||
) | ||
) | ||
) | ||
) | ||
// first time sender | ||
and ( | ||
( | ||
sender.email.domain.root_domain in $free_email_providers | ||
and sender.email.email not in $sender_emails | ||
) | ||
or ( | ||
sender.email.domain.root_domain not in $free_email_providers | ||
and sender.email.domain.domain not in $sender_domains | ||
) | ||
) | ||
tags: | ||
- "Malfam: MetaStealer" | ||
attack_types: | ||
- "Malware/Ransomware" | ||
tactics_and_techniques: | ||
- "Evasion" | ||
- "PDF" | ||
detection_methods: | ||
- "Archive analysis" | ||
- "Content analysis" | ||
- "File analysis" | ||
- "URL analysis" | ||
|
||
id: "2c486fe0-506d-5498-bb19-dbe58904f9dc" |
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
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
File renamed without changes.