Skip to content

Commit

Permalink
Merge branch 'main' into cd.extend-timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-dunn-sublime authored Sep 11, 2023
2 parents 2071a56 + c3d3c68 commit 4a67d78
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions detection-rules/attachment_macro_dll_loader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@ severity: "high"
source: |
type.inbound
and any(attachments,
.file_extension == "zip"
and (
any(file.explode(.),
.scan.zip.encrypted == false
// zip contains a dll file
and any(.scan.zip.all_paths, strings.icontains(., "dll"))
)
and any(file.explode(.),
// macro references a dll file
any(.flavors.yara, strings.like(., "vb_file"))
and any(.scan.strings.strings, strings.icontains(., "dll"))
(
.file_extension == "zip"
and (
any(file.explode(.),
.scan.zip.encrypted == false
// zip contains a dll file
and any(.scan.zip.all_paths, strings.icontains(., "dll"))
)
and any(file.explode(.),
// macro references a dll file
any(.flavors.yara, strings.like(., "vb_file"))
and any(.scan.strings.strings, strings.icontains(., "dll"))
)
)
)
or any(file.explode(.), // fallback for encrypted zips
Expand All @@ -27,13 +29,13 @@ source: |
// zip contains a dll file
and any(.scan.zip.all_paths, strings.icontains(., "dll"))
)
or any(attachments,
.file_extension in~ $file_extensions_common_archives
and any(file.explode(.),
any(.flavors.yara, strings.like(., "vb_file"))
and any(.scan.strings.strings, strings.ilike(., "*Lib*.dll*"))
)
and any(file.explode(.), strings.ilike(.file_extension, "dll"))
or (
.file_extension in~ $file_extensions_common_archives
and any(file.explode(.),
any(.flavors.yara, strings.like(., "vb_file"))
and any(.scan.strings.strings, strings.ilike(., "*Lib*.dll*"))
)
and any(file.explode(.), strings.ilike(.file_extension, "dll"))
)
)
attack_types:
Expand Down

0 comments on commit 4a67d78

Please sign in to comment.