-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and add Cabinet archive related rules (#808)
* Update and add Cabinet archive related rules
- Loading branch information
Showing
6 changed files
with
63 additions
and
27 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
data-manipulation/compression/create-cabinet-on-windows.yml
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,24 @@ | ||
rule: | ||
meta: | ||
name: create Cabinet on Windows | ||
namespace: data-manipulation/compression | ||
authors: | ||
- [email protected] | ||
- [email protected] | ||
scope: function | ||
att&ck: | ||
- Collection::Archive Collected Data::Archive via Library [T1560.002] | ||
mbc: | ||
- Data::Compress Data [C0024] | ||
references: | ||
- https://learn.microsoft.com/en-us/windows/win32/devnotes/creating-a-cabinet | ||
examples: | ||
- 44bad2e2a9e387b86870f009d01833ea4618d2a7cda5f64fa84a19f3bdf4efaf:0x1400028E0 | ||
features: | ||
- and: | ||
- match: create File Compression Interface context on Windows | ||
- or: | ||
- api: cabinet.FCIAddFile = add file to Cabinet | ||
- api: cabinet.FCIFlushFolder = flush current folder under construction | ||
- api: cabinet.FCIFlushCabinet = complete current cabinet | ||
- api: cabinet.FCIDestroy = delete an open FCI context |
21 changes: 21 additions & 0 deletions
21
data-manipulation/compression/extract-cabinet-on-windows.yml
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,21 @@ | ||
rule: | ||
meta: | ||
name: extract Cabinet on Windows | ||
namespace: data-manipulation/compression | ||
authors: | ||
- [email protected] | ||
scope: function | ||
att&ck: | ||
- Defense Evasion::Deobfuscate/Decode Files or Information [T1140] | ||
mbc: | ||
- Data::Decompress Data [C0025] | ||
references: | ||
- https://learn.microsoft.com/en-us/windows/win32/devnotes/extracting-files-from-a-cabinet | ||
examples: | ||
- 44bad2e2a9e387b86870f009d01833ea4618d2a7cda5f64fa84a19f3bdf4efaf:0x1400028E0 | ||
features: | ||
- and: | ||
- match: create File Decompression Interface context on Windows | ||
- or: | ||
- api: cabinet.FDICopy | ||
- api: cabinet.FDIDestroy |
6 changes: 4 additions & 2 deletions
6
nursery/open-cabinet-file.yml → ...pression-interface-context-on-windows.yml
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,12 +1,14 @@ | ||
rule: | ||
meta: | ||
name: open cabinet file | ||
namespace: host-interaction/file-system | ||
name: create File Compression Interface context on Windows | ||
authors: | ||
- [email protected] | ||
lib: true | ||
scope: function | ||
references: | ||
- https://docs.microsoft.com/en-us/windows/win32/msi/cabinet-files | ||
examples: | ||
- 44bad2e2a9e387b86870f009d01833ea4618d2a7cda5f64fa84a19f3bdf4efaf:0x1400028E0 | ||
features: | ||
- or: | ||
- api: cabinet.FCICreate |
14 changes: 14 additions & 0 deletions
14
lib/create-file-decompression-interface-context-on-windows.yml
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,14 @@ | ||
rule: | ||
meta: | ||
name: create File Decompression Interface context on Windows | ||
authors: | ||
- [email protected] | ||
lib: true | ||
scope: function | ||
references: | ||
- https://docs.microsoft.com/en-us/windows/win32/msi/cabinet-files | ||
examples: | ||
- 44bad2e2a9e387b86870f009d01833ea4618d2a7cda5f64fa84a19f3bdf4efaf:0x1400028E0 | ||
features: | ||
- or: | ||
- api: cabinet.FDICreate |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.