NCAE Mapping Hub
Overview Scoreboard Data Roles Exercised Checklists Lessons Skill Drills Practice Terminal Progress
published priority 7 35 min. 70 XP.

Backdoor Hunt. The 10 Places to Look

The competition image arrives pre-compromised. Before the scoring engine even gets involved, you need to find and remove the planted backdoors. Ten locations cover 95% of persistence mechanisms used in past competitions.

Objectives

Quick reference

CommandPurpose
awk -F: '$3==0' /etc/passwd UID 0 accounts
for u in $(cut -d: -f1 /etc/passwd); do crontab -l -u $u; done All user crontabs
find / -name authorized_keys 2>/dev/null All SSH key files
systemctl list-unit-files --type=service --state=enabled Enabled services
systemctl list-timers --all Scheduled systemd units
find / -perm -4000 -type f -ls 2>/dev/null All SUID binaries
ss -tnp | grep -v 127.0.0.1 Non-loopback TCP connections
ps auxf | awk '$11 ~ /^\\/(tmp|dev\\/shm|var\\/tmp)/' Processes from temp dirs

Common pitfalls

Skill drills

  1. 1. Command to find all SUID binaries on the system?
    find / -perm -4000 -type f
  2. 2. Where do pre-scheduled systemd tasks live?
    systemctl list-timers (or .timer unit files in /etc/systemd/system/)
  3. 3. What UID does root have?
    0
  4. 4. What's the signature of a reverse-shell bash idiom?
    /dev/tcp in the command, or bash -i with an fd redirect