capa-rules
capa-rules copied to clipboard
Improve Screenshot Detection by Modifying capture-screenshot.yml
Added GDI, GDIP, and DirectX API calls to improve detection accuracy for various screenshot capture methods.
This detects screenshot capture that uses GDI+ routines as well as CreateDC with other arguments along with DISPLAY. The test files include two executables that demonstrate the improved detection.
closes #981
@akh7177 lints are failing now:
capture screenshot
FAIL: rule contains one or more statements with a single child statement:
remove the superfluous parent statement:
and(or(api(BitBlt),api(StretchBlt),api(PrintWindow)))
FAIL: rule format incorrect: use scripts/capafmt.py or adjust as follows
You can run lints locally by installing capa for development using the instructions found here.
@mike-hunhoff I modified the file and made sure that it passes lint.py given that my new test binary is added . Could you please check it?