mirror of
https://github.com/mandiant/capa-rules.git
synced 2026-10-12 02:18:39 +00:00
* 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 <[email protected]> * Update anti-analysis/anti-vm/vm-detection/check-for-windows-sandbox-via-device.yml Co-authored-by: Mike Hunhoff <[email protected]> * Update collection/get-geographical-location.yml Co-authored-by: Mike Hunhoff <[email protected]> * Update collection/file-managers/gather-classicftp-information.yml Co-authored-by: Mike Hunhoff <[email protected]> * Update collection/database/wmi/reference-wmi-statements.yml Co-authored-by: Mike Hunhoff <[email protected]> * Update collection/database/sql/reference-sql-statements.yml Co-authored-by: Mike Hunhoff <[email protected]> --------- Co-authored-by: Mike Hunhoff <[email protected]>
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
rule:
|
|
meta:
|
|
name: encrypt data using Salsa20 or ChaCha
|
|
namespace: data-manipulation/encryption/salsa20
|
|
authors:
|
|
- [email protected]
|
|
scopes:
|
|
static: function
|
|
dynamic: span of calls
|
|
att&ck:
|
|
- Defense Evasion::Obfuscated Files or Information [T1027]
|
|
references:
|
|
- http://cr.yp.to/snuffle/ecrypt.c
|
|
features:
|
|
# The constant words spell "expand 32-byte k" in ASCII (i.e. the 4 words are "expa", "nd 3", "2-by", and "te k")
|
|
- or:
|
|
- description: part of key setup
|
|
- string: "expand 32-byte k"
|
|
description: sigma
|
|
- string: "expand 16-byte k"
|
|
description: tau
|
|
# if sigma and tau are in contiguous memory, may result in concatenated string
|
|
- string: "expand 32-byte kexpand 16-byte k"
|
|
- bytes: 65 78 70 61 6E 64 20 33 32 2D 62 79 74 65 20 6B = "expand 32-byte k"
|
|
- bytes: 65 78 70 61 6E 64 20 31 36 2D 62 79 74 65 20 6B = "expand 16-byte k"
|
|
- and:
|
|
- string: "expa"
|
|
- string: "nd 3"
|
|
- string: "2-by"
|
|
- string: "te k"
|
|
- and:
|
|
- number: 0x61707865 = "apxe"
|
|
- number: 0x3320646E = "3 dn"
|
|
- number: 0x79622D32 = "yb-2"
|
|
- number: 0x6B206574 = "k et"
|