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]>
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
rule:
|
|
meta:
|
|
name: capture webcam image
|
|
namespace: collection/webcam
|
|
authors:
|
|
- johnk3r
|
|
scopes:
|
|
static: function
|
|
dynamic: span of calls
|
|
att&ck:
|
|
- Collection::Video Capture [T1125]
|
|
examples:
|
|
- a30101595f6f28ab2f4b0b2cd177c3c4d2ab34a355ab7761a3795d0887c24ada:0x4011C0
|
|
features:
|
|
- or:
|
|
# static
|
|
- and:
|
|
- api: capCreateCaptureWindow
|
|
- basic block:
|
|
- and:
|
|
- api: SendMessage
|
|
- number: 0x40a = WM_CAP_DRIVER_CONNECT
|
|
- optional:
|
|
- basic block:
|
|
- and:
|
|
- api: SendMessage
|
|
- number: 0x40B = WM_CAP_DRIVER_DISCONNECT
|
|
- basic block:
|
|
- and:
|
|
- api: SendMessage
|
|
- number: 0x419 = WM_CAP_FILE_SAVEDIB
|
|
# dynamic
|
|
- and:
|
|
- api: capCreateCaptureWindow
|
|
- call:
|
|
- and:
|
|
- api: SendMessage
|
|
- number: 0x40a = WM_CAP_DRIVER_CONNECT
|
|
- optional:
|
|
- call:
|
|
- and:
|
|
- api: SendMessage
|
|
- number: 0x40B = WM_CAP_DRIVER_DISCONNECT
|
|
- call:
|
|
- and:
|
|
- api: SendMessage
|
|
- number: 0x419 = WM_CAP_FILE_SAVEDIB
|