← Learn
Dangerous
systemd-run --on-calendar='*:0/10' --unit=metrics-refresh /usr/local/bin/refresh

linux · bash · Nightmare

Creates a transient systemd timer that runs a binary every ten minutes. It writes no crontab and no unit file to the usual locations, so the schedule is invisible to anyone checking cron, and the plausible unit name helps it blend in.

Signals to notice

  • Scheduled execution outside cron
  • Transient unit avoids the usual persistence locations
  • Innocuous unit name disguises the job

Think you can spot these under time pressure?

Start Training

More Persistence