Skip to content

Commit 4cd4879

Browse files
authored
Merge pull request #1 from akh7177/add-screenshot-rule
Improve Screenshot Detection by Modifying capture-screenshot.yml
2 parents 9c86fbe + 51bd126 commit 4cd4879

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

collection/screenshot/capture-screenshot.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ rule:
66
77
- "@_re_fox"
88
9+
- "Abhyuday K Hegde"
910
scopes:
1011
static: function
1112
dynamic: span of calls
@@ -17,7 +18,10 @@ rule:
1718
- BFB9B5391A13D0AFD787E87AB90F14F5:0x1314610A
1819
- 7204e3efc2434012e13ca939db0d0b02:0x414070
1920
- 50D5EE1CE2CA5E30C6B1019EE64EEEC2:0x406E07
21+
- 333cf4a403f2dbd56e2509eb2f1d8922:0x140002180
22+
- de5f2dd641b3e75eea6e4575b0ba4a48:0x140002180
2023
features:
24+
# Classic GDI Capture
2125
- or:
2226
- and:
2327
- or:
@@ -43,3 +47,48 @@ rule:
4347
- and:
4448
- api: BitBlt
4549
- api: System.Drawing.Graphics::CopyFromScreen
50+
51+
- and:
52+
- or:
53+
- api: "GetDC"
54+
- and:
55+
- api: "CreateDC"
56+
- optional:
57+
- string: "DISPLAY"
58+
- or:
59+
- and:
60+
- api: "SelectObject"
61+
- api: "DrawText"
62+
- and:
63+
- api: "CreateCompatibleDC"
64+
- api: "CreateCompatibleBitmap"
65+
- or:
66+
- api: "BitBlt"
67+
- api: "StretchBlt"
68+
- api: "PrintWindow"
69+
70+
# GDI+ Graphics API chain
71+
- and:
72+
- api: "GdipCreateBitmapFromScan0"
73+
- api: "GdipGetImageGraphicsContext"
74+
- api: "GdipGetDC"
75+
76+
# Direct GDI+ screen copy
77+
78+
- and:
79+
- api: "Gdiplus::Graphics::FromHDC"
80+
- api: "Gdiplus::Graphics::CopyFromScreen"
81+
82+
# DirectX method of screen capture
83+
- and:
84+
- or:
85+
- api: "PrintWindow"
86+
- api: "StretchBlt"
87+
- and:
88+
- api: "DwmGetDxSharedSurface"
89+
- optional:
90+
- string: "DXGI"
91+
- or:
92+
- api: "Direct3DCreate9"
93+
- api: "IDirect3DDevice9::GetFrontBufferData"
94+
- string: "IDirect3DSurface9::GetDC"

0 commit comments

Comments
 (0)