214. That's How Adversaries Sanitize Logs

Hello everyone!

Adversaries often delete logs. But in some cases we can see more sophisticated approach. For example, they can sanitize the logs.

Let's look at the report on CL-STA-0969. They used utmpdump to dump the contents of the wtmp log file:

utmpdump /var/log/wtmp >/var/log/wtmp.file

Then they used sed to remove lines containing their IP address:

sed -i '/<IP Address>/d' /var/log/wtmp.file

And finally utmpdump again:

utmpdump -r /var/log/wtmp.file > /var/log/wtmp

So, for example, we can search for suspicious utmpdump executions:

event_type: "processcreatenix"

AND

proc_file_path: "utmpdump"

AND

cmdline: "wtmp"

See you tomorrow!

Comments

Popular posts from this blog

391. Hunting for TeamPCP's Stealer

343. Ransomware Gangs Abuse SystemSettingsAdminFlows to Evade Defenses

082. Huniting for Malicious Browser Extensions