Commit Graph

77 Commits

Author SHA1 Message Date
JJ 277540ac24 Add LdrCallEnclave in execute-shellcode-via-windows-callback-function.yml (#1076) 2025-09-09 13:21:58 -06:00
JJ 13e8622f8a Add rule execute-jscript-via-vsaengine-in-dotnet.yml (#1071) 2025-08-25 13:07:56 -06:00
Still / Azaka 7269873b0c Add rules for detecting donut-related features (#997)
* Initial additions for detecting donut features

Signed-off-by: Still Hsu <dev@stillu.cc>

* Lint rules

Signed-off-by: Still Hsu <dev@stillu.cc>

* Update ATT&CK for donut rule

Signed-off-by: Still Hsu <dev@stillu.cc>

* Fix comment for dynamic scope on donut loader

Signed-off-by: Still Hsu <dev@stillu.cc>

* Require at least one donut function match for donut rule

Signed-off-by: Still Hsu <dev@stillu.cc>

* Add offset for examples

Signed-off-by: Still Hsu <dev@stillu.cc>

* Add indirect call for IAssembly matching

Signed-off-by: Still Hsu <dev@stillu.cc>

* Match known vtable offsets for assembly loading

* Remove loop matching

---------

Signed-off-by: Still Hsu <dev@stillu.cc>
2025-03-21 10:15:28 -06:00
Mike Hunhoff 75c16e4b14 remove redundant matches for dynamic scope (#987)
* remove redundant matches for dynamic scope

* fix lints

* fix lints

* tighten scopes
2025-02-04 09:32:24 +01:00
Willi Ballenthin c1d20764ad use "span of calls" scope (#973)
* use sequence scope instead of thread scope for "static: function" rules

* use sequence scope instead of thread scope for "static: basic block" rules

* make runtime linking rules more concise

* doc: describe sequence scope

* rename "sequence" scope to "span of calls" scope

* Update anti-analysis/anti-av/check-for-sandbox-and-av-modules.yml

Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>

* Update anti-analysis/anti-vm/vm-detection/check-for-windows-sandbox-via-device.yml

Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>

* Update collection/get-geographical-location.yml

Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>

* Update collection/file-managers/gather-classicftp-information.yml

Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>

* Update collection/database/wmi/reference-wmi-statements.yml

Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>

* Update collection/database/sql/reference-sql-statements.yml

Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>

---------

Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>
2025-01-29 10:27:13 +01:00
jtothej 99c5cf0ea7 Update execute-shellcode-via-windows-callback-function.yml - Add functions that can be used to execute shellcode 2024-08-11 12:09:18 +02:00
Still Hsu f665d2a2ca Add EnumProps
Signed-off-by: Still Hsu <dev@stillu.cc>
2024-05-23 13:45:00 +08:00
Still Hsu cf3d77f540 Add more callback functions
Signed-off-by: Still Hsu <dev@stillu.cc>
2024-05-03 16:23:35 +08:00
mr-tz 2d3be8ec38 fix some dynamic unsupported rules 2023-11-24 11:35:05 +01:00
mr-tz e18704545a fix call/thread scopes manually 2023-11-24 11:35:00 +01:00
mr-tz 784c9dca53 upgrade rules using updated script 2023-11-24 11:34:28 +01:00
Moritz a39a2c0b52 Merge branch 'master' into update-alloc-rules 2023-10-11 12:03:42 +02:00
mr-tz 66f58dffa0 update match rule name 2023-10-11 11:20:23 +02:00
mr-tz ed791c9b17 separate allocate and change memory protection 2023-10-11 11:14:14 +02:00
JJ 23cfa23626 Merge execute-dotnet-assembly-via-clr-host.yml with load-windows-common-language-runtime.yml and promote load-windows-common-language-runtime.yml (#797) 2023-10-09 11:59:52 -06:00
mr-tz 616fd90aac loosen locality of features 2023-04-25 21:06:39 +02:00
Ervin Ocampo 708b06dd0a Add capa rule load-code/shellcode/execute-shellcode-via-windows-callback-function.yml (#744)
* Add capa rule load-code/shellcode/execute-shellcode-via-callback-functions.yml

* Update load-code/shellcode/execute-shellcode-via-callback-functions.yml

Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>

* Update load-code/shellcode/execute-shellcode-via-callback-functions.yml

Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>

* Update load-code/shellcode/execute-shellcode-via-callback-functions.yml

Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>

* Update execute-shellcode-via-callback-functions.yml

Omitted A and W on WinAPI function names since capa handles this automatically.

* Update execute-shellcode-via-callback-functions.yml

Added EnumTimeFormats and deduplicated EnumSystemCodePages

* Update and rename execute-shellcode-via-callback-functions.yml to execute-shellcode-via-windows-callback-function.yml

Renamed file to execute-shellcode-via-windows-callback-function.yml and merged https://github.com/mandiant/capa-rules/blob/master/load-code/shellcode/execute-shellcode-via-enumuilanguages.yml

* Delete execute-shellcode-via-enumuilanguages.yml

Delete rule due to merge with execute-shellcode-via-windows-callback-function.yml

---------

Co-authored-by: Mike Hunhoff <mike.hunhoff@gmail.com>
2023-04-19 09:56:15 -06:00
Moritz f81d04729a specify offset operand to reduce FPs (#716)
* specify offset operand to reduce FPs

* add instruction specifics
2023-03-01 16:08:17 +01:00
Blas 06c3803bdd Create execute-vbscript-javascript-or-jscript-in-memory.yml 2023-02-06 13:31:07 -05:00
Blas ffe68a3051 Delete execute-vbscript-javascript-or-jscript-in-memory.yml 2023-02-06 13:30:56 -05:00
Blas 5a2ac59d15 Added in memory execution rule 2023-02-06 12:44:27 -05:00
Blas 75d5170065 Create execute-dotnet-assembly-via-clr-host.yml (#688) 2023-02-06 10:12:02 -07:00
Moritz 761ccbab47 update ATT&CK/MBC meta data (#675)
* update ATT&CK/MBC meta data
2023-02-01 10:08:58 +01:00
ryan 86f8ac6ccd Update Mappings for MBC (part 9) 2022-08-30 09:15:15 -04:00
Willi Ballenthin 9083a1950c linter 2022-06-28 15:30:57 -06:00
Willi Ballenthin 57e1732f5c Revert "Revert "Merge pull request #548 from mandiant/feature-remove-flavors""
This reverts commit d43a6ee544.
2022-06-28 15:23:20 -06:00
Willi Ballenthin 7011634b0c Merge pull request #553 from sara-rn/master
added parse-pe-export-data rule
2022-06-28 14:26:17 -06:00
Willi Ballenthin 504a94444e resolve-function-by-parsing-pe-exports: fix linter suggestions 2022-06-28 14:25:11 -06:00
William Ballenthin 2d66aace99 *: add APIs used by .NET samples for basic interactions 2022-06-08 11:18:23 -06:00
Willi Ballenthin 88c9c786ca *: use meta.authors everywhere 2022-05-26 11:56:31 -06:00
William Ballenthin d43a6ee544 Revert "Merge pull request #548 from mandiant/feature-remove-flavors"
This reverts commit bc28847dd9, reversing
changes made to 82308c4109.
2022-04-27 06:23:36 -06:00
Willi Ballenthin 904bf3ef00 *: remove /x32 and /x64 flavors and use instruction scope 2022-04-05 12:25:14 -06:00
Baptistin Boilot efea9a37d9 Fix MBC names and IDs 2022-02-06 11:13:23 +01:00
Willi Ballenthin 7b91f0ceee Merge pull request #514 from jtothej/shellcode-via-copyfile2
Adding execute-shellcode-via-copyfile2.yml
2021-12-14 14:51:17 -07:00
Willi Ballenthin 26d216249f Merge pull request #516 from dzbeck/capa-3-mbc-updates
update mappings for mbc (part 7)
2021-12-14 14:45:25 -07:00
Desiree Beck 1294158df2 fix formatting 2021-12-14 16:37:31 -05:00
Desiree Beck ed3661b379 add mbc and att&ck tags 2021-12-14 16:16:07 -05:00
jtothej 4ea6e93ed9 Adding execute-shellcode-via-copyfile2.yml 2021-12-12 18:19:18 +08:00
jtothej c0b42ae17d Adding execute-shellcode-via-createthreadpoolwait.yml 2021-12-11 22:07:29 +08:00
Willi Ballenthin ad56aeb0e0 Merge pull request #505 from jtothej/shellcode-via-enumuilanguages
Adding execute-shellcode-via-enumuilanguages.yml
2021-12-06 10:57:12 -07:00
jtothej ee2bf8a2cd Adding execute-shellcode-via-windows-fibers.yml 2021-12-04 19:51:35 +08:00
jtothej e431c428f0 Adding execute-shellcode-via-enumuilanguages.yml 2021-12-04 18:46:44 +08:00
Desiree Beck e190179ffd Merge pull request #1 from MBCProject/ryan-patches1
Update patch-process-command-line.yml
2021-11-22 11:27:15 -05:00
Ryan Xu 1cf2dbb47d Delete parse-pe-exports.yml 2021-11-22 11:26:06 -05:00
Ryan Xu 33cdd98446 Update rebuild-import-table.yml
Resolve comment
2021-11-12 08:56:54 -06:00
Ryan Xu 6a02bdae83 Update parse-pe-exports.yml
Resolve comment
2021-11-12 08:56:27 -06:00
Ryan Xu 7a80910739 Update inspect-section-memory-permissions.yml
Resolve comment
2021-11-12 08:55:39 -06:00
Ryan Xu 2cf204d959 Update enumerate-pe-sections.yml
Resolving comment
2021-11-12 08:55:07 -06:00
Willi Ballenthin 1116322059 Merge pull request #487 from mandiant/williballenthin-patch-4
Delete parse-pe-exports.yml
2021-10-27 09:27:13 -06:00
Willi Ballenthin fcdef7b105 Delete parse-pe-exports.yml
similar problem to the parse PE header when it relies on structure offsets: its very common to FP when dealing with structures of more than a few hundred bytes.
see #484
2021-10-26 16:28:01 -06:00