Skip to content

Commit

Permalink
Create encrypt-data-using-rc4-via-systemfunction033.yml (#890)
Browse files Browse the repository at this point in the history
* Create encrypt-data-using-rc4-via-systemfunction033.yml

Similar to SystemFunction032, this undocumented API allows encryption/decryption using RC4 algo
  • Loading branch information
dstepanic authored Apr 22, 2024
1 parent ec36656 commit c454ffb
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
rule:
meta:
name: encrypt data using RC4 via SystemFunction033
namespace: data-manipulation/encryption/rc4
authors:
- daniel.stepanic@elastic.co
scopes:
static: function
dynamic: thread
att&ck:
- Defense Evasion::Obfuscated Files or Information [T1027]
mbc:
- Defense Evasion::Obfuscated Files or Information::Encryption-Standard Algorithm [E1027.m05]
- Cryptography::Encrypt Data::RC4 [C0027.009]
references:
- https://www.redteam.cafe/red-team/shellcode-injection/inmemory-shellcode-encryption-and-decryption-using-systemfunction033
examples:
- 0f33c2fec223823f84a732ceb1ad94ed2645e896095144850cf1443aeda67da6:0x180001000 # api match
features:
- or:
- api: SystemFunction033
- and:
- match: link function at runtime on Windows
- string: "SystemFunction033"
- optional:
- string: /advapi32/i
- string: /cryptsp/i

0 comments on commit c454ffb

Please sign in to comment.