← Learn
Dangerous
find /var/www -name '*.php' -newermt '-2 days' -exec sh -c 'mkdir -p /tmp/.s && cp "$1" /tmp/.s/' _ {} \;

linux · bash · Nightmare

Copies every recently modified web application file into a hidden staging directory. Each piece is ordinary sysadmin vocabulary; together they collect proprietary source into one dot-hidden folder, which is the step before a transfer.

Signals to notice

  • Recently changed source files collected in bulk
  • Hidden staging directory in /tmp
  • Recursive -exec broadens the reach

Think you can spot these under time pressure?

Start Training

More Data Exfiltration