Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add resolve-function-by-brute-ratel-badger-hash.yml #793

Merged
merged 2 commits into from
Jul 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
rule:
meta:
name: resolve function by Brute Ratel Badger hash
namespace: linking/runtime-linking
authors:
- [email protected]
description: Custom API hashing algorithm used in Brute Ratel Badger (version 1.3 or higher)
scope: function
att&ck:
- Defense Evasion::Obfuscated Files or Information::Dynamic API Resolution [T1027.007]
references:
- https://bruteratel.com/release_notes/releases.txt
examples:
- 64ce9ab801d9bef5284b408c3373dd30ba2dc6952c0950c8049be067b5f24530:0x6DB42430
features:
- or:
- basic block:
- and:
- mnemonic: add
- instruction:
- mnemonic: imul
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add mul here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! Added in 20c12b5

- operand[2].number: 0x801
- instruction:
- mnemonic: or
- operand[1].number: 0x2800000
- basic block:
- and:
- mnemonic: add
- instruction:
- mnemonic: shl
- operand[1].number: 0xB
- instruction:
- mnemonic: or
- operand[1].number: 0x2800000
Loading