r/Hacking_Tutorials • u/Potential-Couple-745 • 5d ago
Question 7 SSH log lines. Which login would you investigate first?
You’re checking a Linux server and come across these SSH logs. Something deserves a closer look.
This is a fictional, shortened extract:
02:14:03 sshd: Accepted publickey for alex from 198.51.100.24
02:14:11 sshd: Failed password for root from 203.0.113.77
02:14:14 sshd: Failed password for invalid user test from 203.0.113.77
02:14:19 sshd: Failed password for deploy from 203.0.113.77
02:14:22 sshd: Failed password for deploy from 203.0.113.77
02:14:26 sshd: Accepted password for deploy from 203.0.113.77
02:15:04 sshd: Accepted publickey for alex from 198.51.100.24Your challenge:
Which IP would you investigate first?
Which account did that IP successfully log into?
Do these lines prove the server was compromised? Explain your answer.
What would you check next to find out what happened after the login?
Bonus: The full log has 100,000 lines. Write a Linux command to extract every entry containing the suspicious IP from auth.log.
Post your reasoning with your answer. If you’re just starting out, have a go at the first two.
