this post was submitted on 14 Dec 2023
180 points (97.9% liked)

Asklemmy

43810 readers
1 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] tetris11@lemmy.ml 33 points 2 years ago* (last edited 2 years ago) (17 children)

I have a small PC I use for exposing a private PC to the wider web via nginx proxy. It had two accounts on it: mine, and one I called "remote" with some basic password I set up to forward the proxy connection.

One day, this machine started making 100% CPU noises, for several hours. Wtf? I check the processes and a Tor node had been setup and was transmitting gigabytes to some Russian IP.

My brain goes into panic mode, I kill the process, wipe the remote user, and eventually pull the Ethernet plug.

I wish I hadn't wiped the user directory as I wanted to know what was being sent and where. Nonetheless the logs showed that several Russian IPs had been attempting an SSH brute force for literally months and one finally guessed "remote" and weak password I set for it.

I have decades of experience on Unix system, and I cringe having made such a rookie mistake.

Lesson learned: change the default SSH port to a transient port, have one dedicated SSH user with a non-standard username, and use auth-key entry only.

I still wonder what was being sent over that Tor node, and why it required all the CPU cores. My best guess is crypto mining, or it was used for a DDOS attack net somewhere.

[โ€“] cheese_greater@lemmy.world 2 points 2 years ago (7 children)

What do you think they were transmitting?

[โ€“] tetris11@lemmy.ml 2 points 2 years ago (1 children)

I think they were either computing crypto-hashes and passing on the results back home (via Tor), or they were using my machine to send out several ping/fetch requests over Tor to DDOS some unknown target machine.

[โ€“] cheese_greater@lemmy.world 2 points 2 years ago (1 children)

So can this pretty much always be shut down by having sufficiently complex + long pw?

[โ€“] tetris11@lemmy.ml 1 points 2 years ago* (last edited 2 years ago) (1 children)

I want to say "yes" but you should still try to change the default ports for any process open to the web. Just because they can't guess your ssh, doesn't mean they can't upload a root php script to your webserver which allows file uploads.

Just be as invisible as possible. Run nmap on your localhost with the defaults and see if anything is set to open. If so, change that port.

[โ€“] cheese_greater@lemmy.world 0 points 2 years ago (1 children)
[โ€“] tetris11@lemmy.ml 3 points 2 years ago (1 children)
[โ€“] cheese_greater@lemmy.world 1 points 2 years ago (1 children)

On Mac its part of security/firewall settings or sumfing

[โ€“] tetris11@lemmy.ml 2 points 2 years ago

Ah okay. I have no clue about macs. I guess the equivalent in Linux would be OpenSnitch

load more comments (5 replies)
load more comments (14 replies)