Hackbydoing Academy cheat sheet · blue · soc
| tail /var/log/auth.log | the recent page of the diary |
| grep Failed /var/log/auth.log | isolate the failure thread |
| grep <attacker-ip> /var/log/auth.log | one thread, no noise |
| grep -c <pattern> <log> | count it — scale decides severity |
| the fingerprint | one host · one rare destination · even intervals · small bytes |
| grep <c2-ip> /var/log/auth.log | isolate the metronome |
| grep -c <c2-ip> /var/log/auth.log | confirm the rhythm at scale |
| ufw deny from <c2-ip> | cut the channel, then investigate the host |
| 1 · CONTAIN | kill the process (ps → kill <pid>) |
| 2 · EVICT | remove persistence (autostart entries, services) |
| 3 · VERIFY | prove clean — status checks, fresh logs |
| then | harden (ufw enable, kill defaults) + write the incident report |
Free from the Hackbydoing Academy — the game that teaches real cybersecurity, attack and defense, on simulated networks. Play free at hackbydoing.com · Print this page (Ctrl/Cmd+P) for a clean paper copy.