-
Notifications
You must be signed in to change notification settings - Fork 164
/
Copy pathcapture-screenshot.yml
39 lines (39 loc) · 1.09 KB
/
capture-screenshot.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
rule:
meta:
name: capture screenshot
namespace: collection/screenshot
author:
- "@_re_fox"
scope: function
att&ck:
- Collection::Screen Capture [T1113]
mbc:
- Collection::Screen Capture::WinAPI [E1113.m01]
examples:
- BFB9B5391A13D0AFD787E87AB90F14F5:0x1314610A
- 7204e3efc2434012e13ca939db0d0b02:0x414070
- 50D5EE1CE2CA5E30C6B1019EE64EEEC2:0x406E07
features:
- or:
- and:
- or:
- api: user32.GetWindowDC
- api: user32.GetDC
- and:
- api: gdi32.CreateDC
- string: "DISPLAY"
- or:
- api: gdi32.BitBlt
- api: gdi32.GetDIBits
- api: gdi32.CreateCompatibleDC
- api: gdi32.CreateCompatibleBitmap
- optional:
- or:
- api: user32.GetSystemMetrics = fetch screen dimensions
- api: user32.GetDesktopWindow = get entire desktop
- basic block:
- and:
- api: BitBlt
- characteristic: tight loop