Adversaries may attempt to take screen captures of the desktop to gather information over the course of an operation. Screen capturing functionality may be included as a feature of a remote access tool used in post-compromise operations.===Mac===
On OSX, the native command
screencapture
is used to capture screenshots.===Linux===
On Linux, there is the native command
xwd
. (Citation: Antiquated Mac Malware)Detection: Monitoring for screen capture behavior will depend on the method used to obtain data from the operating system and write output files. Detection methods could include collecting information from unusual processes using API calls used to obtain image data, and monitoring for image files written to disk. The sensor data may need to be correlated with other events to identify malicious activity, depending on the legitimacy of this behavior within a given network environment.
Platforms: Linux, macOS, Windows
Data Sources: API monitoring, Process monitoring, File monitoring
Use screencapture command to collect a full desktop screenshot
Supported Platforms: macOS
Name | Description | Type | Default Value |
---|---|---|---|
output_file | xxx | ||
Path | desktop.png |
screencapture
Use screencapture command to collect a full desktop screenshot
Supported Platforms: macOS
Name | Description | Type | Default Value |
---|---|---|---|
output_file | xxx | ||
Path | desktop.png |
screencapture -x
Use xwd command to collect a full desktop screenshot and review file with xwud
Supported Platforms: Linux
Name | Description | Type | Default Value |
---|---|---|---|
output_file | xxx | ||
Path | desktop.xwd |
xwd -root -out #{output_file}
xwud -in #{output_file}
Use import command to collect a full desktop screenshot
Supported Platforms: Linux
Name | Description | Type | Default Value |
---|---|---|---|
output_file | xxx | ||
Path | desktop.png |
import -window root