Files
mandiant-capa-rules/data-manipulation/encryption/rc4/encrypt-data-using-rc4-via-systemfunction033.yml
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

29 lines
989 B
YAML

rule:
meta:
name: encrypt data using RC4 via SystemFunction033
namespace: data-manipulation/encryption/rc4
authors:
- daniel.stepanic@elastic.co
scopes:
static: function
dynamic: call
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
- basic block:
- and:
- match: link function at runtime on Windows
- string: "SystemFunction033"
- optional:
- string: /advapi32/i
- string: /cryptsp/i