forked from mandiant/capa-rules
-
Notifications
You must be signed in to change notification settings - Fork 2
/
capture-webcam-video.yml
48 lines (48 loc) · 1.24 KB
/
capture-webcam-video.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
rule:
meta:
name: capture webcam video
namespace: collection/webcam
authors:
- "@johnk3r"
description: Rule that detects a system's webcam being used to capture video
scopes:
static: function
dynamic: thread
att&ck:
- Collection::Video Capture [T1125]
features:
- or:
# static
- and:
- os: windows
- api: capCreateCaptureWindow
- basic block:
- and:
- api: SendMessage
- number: 0x43E = WM_CAP_SEQUENCE
- or:
- basic block:
- and:
- api: SendMessage
- number: 0x417 = WM_CAP_FILE_SAVEAS
- basic block:
- and:
- api: SendMessage
- number: 0x414 = WM_CAP_FILE_SET_CAPTURE_FILE
# dynamic
- and:
- os: windows
- api: capCreateCaptureWindow
- call:
- and:
- api: SendMessage
- number: 0x43E = WM_CAP_SEQUENCE
- or:
- call:
- and:
- api: SendMessage
- number: 0x417 = WM_CAP_FILE_SAVEAS
- call:
- and:
- api: SendMessage
- number: 0x414 = WM_CAP_FILE_SET_CAPTURE_FILE