magnification-api-screenshot
Abuse of the Windows Magnification API (Magnification.dll) to capture the desktop or specific window regions at high quality with programmatic control over scaling, filtering, and excluded windows. The Magnification API is less commonly monitored than BitBlt or PrintWindow, providing a stealthier screen-capture channel.
Technique Details
- Initialization:
MagInitialize,MagSetWindowSourcedefine the capture rectangle ^[strings.txt] - Scaling control:
MagImageScaling,MagSetImageScalingCallbackadjust quality and size of captured bitmaps ^[strings.txt] - Window filtering:
MagSetWindowFilterListexcludes specific windows from the capture (e.g., the malware's own overlay) ^[strings.txt] - Fallback:
CaptureScreenExcludingfalls back to GDIBitBltif Magnification API is unavailable ^[strings.txt]
Cross-References
- sky-jamaica — family using this technique