What "compromised" looks like
Most home-fleet compromises are caught by accident — an unexplained process at the top of top, a strange entry in authorized_keys, a 4 AM login from an IP you've never been to. The skill is recognizing the pattern early. The list below is what to scan for; the response section is what to do once you suspect something is wrong.
Red flags to scan for
- Unknown keys in authorized_keys — keys you don't recognize, especially with comments referencing usernames or hosts you don't operate.
- Logins at unusual times or from unusual IPs — 3 AM from a country you've never been to.
- Unexpected processes — crypto miners, reverse shells, daemons you didn't install.
top+ps aux+lsof -i. - Modified system files —
/etc/ssh/, crontabs,/etc/passwd,/etc/sudoers. - New user accounts — accounts you don't recognize in
/etc/passwd. - Outbound connections — established sessions to IPs that don't make sense for your usage.