As mentioned in yesterday’s post, several users downloaded a malicious installer...
Stephan Berger @malmoeb@infosec.exchange
As mentioned in yesterday’s post, several users downloaded a malicious installer that ultimately executed ChainScript.
Part of the Hands-On Recon chain involved taking screenshots using PowerShell. The screenshot below shows the relevant code. This becomes particularly interesting from a detection perspective when PowerShell logging is enabled, and the resulting events are collected centrally.
As is often the case, Elastic already has a detection rule covering this technique. It looks for PowerShell content containing:
CopyFromScreen AND ("System.Drawing.Bitmap" OR "Drawing.Bitmap")
A nice example of how relatively simple PowerShell Script Block Logging can expose attacker collection activity.