Adversaries may attempt to get information about running processes on a system. Information obtained could be used to gain an understanding of common software running on systems within the network.===Windows===
An example command that would obtain details on processes is "tasklist" using the Tasklist utility.
===Mac and Linux===
In Mac and Linux, this is accomplished with the
ps
command.Detection: System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.
Normal, benign system and network events that look like process discovery may be uncommon, depending on the environment and how they are used. Monitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as Windows Management Instrumentation and PowerShell.
Platforms: Linux, macOS, Windows
Data Sources: Process command-line parameters, Process monitoring
Permissions Required: User, Administrator, SYSTEM
System Requirements: Administrator, SYSTEM may provide better process ownership details
Utilize ps to identify processes
Supported Platforms: macOS, CentOS, Ubuntu, Linux
Name | Description | Type | Default Value |
---|---|---|---|
output_file | path of output file | path | /tmp/loot.txt |
ps >> #{output_file}
ps aux >> #{output_file}