← Learn
Dangerous
truncate -s 0 /var/log/auth.log

linux · bash · Intermediate

Empties the authentication log while leaving the file in place. Nothing here looks alarming, but destroying the record of who logged in is a hallmark of covering tracks after access, and it breaks the audit trail investigators rely on.

Signals to notice

  • Clears a security-relevant log
  • Anti-forensic intent
  • Leaves the file present so the change is easy to miss

Think you can spot these under time pressure?

Start Training

More Persistence