Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

45
Found compromised sudo user on my linux server
Post Flair (click to view more posts with a particular flair)
Post Body

I host a linux server on my home network, and I recently was shocked to see 46,000 ssh login attempts over the past few months (looking in /var/log/auth.log). Of these, I noticed that there was one successful login into an account named "temp." This temp user was able to add itself to sudoers and it looks like it setup a cron job.

I deleted the user, installed fail2ban, ran rkhunter until everything was fixed, and disabled ssh password authentication. Absolutely carless of me to have not done this before.

A few days ago, I saw this message on my phone (I found this screenshot on google, but it was very similar):

https://discussions.apple.com/content/attachment/97260871-dbd4-4264-8020-fecc86b71564

This is what inclined me to look into this server's security, which was only intended to run a small nginx site.

What might have been compromised? What steps should I take now?

Edit: Distro is Ubuntu 22.04.4 LTS

Author
Account Strength
40%
Account Age
1 year
Verified Email
Yes
Verified Flair
No
Total Karma
51
Link Karma
26
Comment Karma
25
Profile updated: 2 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 months ago