mirror of
https://github.com/mandiant/capa.git
synced 2026-06-12 11:01:31 -07:00
34 lines
781 B
YAML
34 lines
781 B
YAML
- name: hex-number-with-e
|
|
description: hex literals containing the letter e are parsed as integers, not floats
|
|
rules:
|
|
- name: hex-e-match
|
|
scopes:
|
|
static: function
|
|
features:
|
|
- number: 0x1e
|
|
features: |
|
|
func: 0x600000
|
|
bb: 0x600000: basic block
|
|
insn: 0x600000: number(0x1e)
|
|
expect:
|
|
matches:
|
|
hex-e-match:
|
|
- 0x600000
|
|
|
|
- name: colon-in-feature-text
|
|
description: feature text containing a colon is parsed correctly
|
|
rules:
|
|
- name: colon-string-match
|
|
scopes:
|
|
static: function
|
|
features:
|
|
- string: "key: value"
|
|
features: |
|
|
func: 0x600000
|
|
bb: 0x600000: basic block
|
|
insn: 0x600001: string(key: value)
|
|
expect:
|
|
matches:
|
|
colon-string-match:
|
|
- 0x600000
|