Anvilogic high experimental spl

File Copied to _var_log - *nix [splunk-edr]

Threat actors may attempt to conceal their activities or manipulate system logs by copying files into the /var/log/ directory within a compromised environment. This technique may be employed to evade detection, establish persistence or obfuscate the threat actor's actions by blending in with legitimate log files. Once placed in the /var/log/ directory, adversaries may manipulate or delete these files to cover their tracks and impede forensic analysis. This use case detects files moved to /var/log either through terminal commands or by a program specifically designed to perform this action.

View Source

Detection Logic

`get_endpoint_data` `get_endpoint_data_edr` ((TERM(scp) 
OR TERM(cp) 
OR TERM(rsync) 
OR TERM(install) 
OR TERM(cat) 
OR TERM(dd) 
OR TERM(sftp) 
OR TERM(whois) 
OR TERM(curl)) 
OR ("nametype=CREATE" "root")) ("/var/log" 
OR "/var/log/")
| regex process="(?i)\b(s?cp
| rsync
| install
| cat
| dd
| sftp
| whois
| curl)\b\s+.{1,128}\s+\/var\/log"
| table _time, host, user, process, dest_host
| bin span=1s
| stats values(*) as * by _time, host

Field Validations

Loading…

Comments (0)

Loading comments...