The officially official Devuan Forum!

You are not logged in.

#1 2026-09-15 17:19:48

beate
Member
Registered: 2019-03-25
Posts: 43  

Devuan Server compromised

One of my servers has recently been hacked. Added to a bot network, and apparently still sleeping. It was an old server, still running 32 bit ASCII. It had emerged through about 20 years from some early debian installation.

I know, ASCII is really outdated, but it was not upgradable due to technical issues - the virtual machine running it limited glibc to version 3.10 which meant that nothing more recent could be run.

What happened:

the attac was performed through a login as root via ssh. With the correct password. No attepts to guess it could be found.

Strange enough, the ssh server had been opened to allow root login. Which i had disallowed from the very first setup of that server. But i just saw that ssh root login is enabled by default in excalibur without a warning. 

To me it looks as if the intruder actually had compromised the system earlier,  learning the password (it was strong 20 years ago, but weak for modern resources).

Anyway:

Apparently this is closely connected to the phishing site scanbot.me showing that that site even intrudes mail servers if possible.

the intruder installed a bot-net client in /tmp/.drone/ hiding in the process list as
"-bash" and "crond"

hidden in

/tmp/.drone/

It was conncted to server 45.58.183.18 through port 6667 and to 51.79.74.212 through port 80. There are more possible controlling servers configured.

the crontab had been modified to restart the client within 5 minutes and to load data from scanbot.me

of course the "authorized_keys" of any user on the system are also compromised.

Offline

#2 2026-09-15 17:53:10

EDX-0
Member
From: Guatemala
Registered: 2020-12-12
Posts: 263  

Re: Devuan Server compromised

yes, there are multiple CVEs related to ssh, basically any ssh-server version under 9.5 is considered compromised with working exploits.

Offline

#3 2026-09-15 18:24:33

beate
Member
Registered: 2019-03-25
Posts: 43  

Re: Devuan Server compromised

BTW: a newer server initally set up as devuan chimaera or daedalus vie apt-get from a corresponding debian installation apparently has not (yet) been compromised.
But here the SSHD config did also permit root logins. Is that an issue of the, well actually not too outdated, debians or an issue of devuan? Or maybe an issue of the inital setup from the vserver provider's template?

Anyway, scanbot.me seems to be pretty well known as a phishing site which usually works through email appendices. Which rises the question if and if yes, how, the door could have been the mail server (older postfix with greylisting, no DKIM/DMARC, but otherwise thoroughly configured) in combination with recent thunderbird.

I am running claws-mail which cannot execute garbage in the emails, but the other users (ex wife and my son) use thunderbird.

Offline

#4 2026-09-15 21:21:11

yurimodin
Member
Registered: 2025-06-09
Posts: 34  

Re: Devuan Server compromised

the attac was performed through a login as root via ssh. With the correct password. No attepts to guess it could be found.

inside job

Offline

#5 2026-09-15 22:17:46

beate
Member
Registered: 2019-03-25
Posts: 43  

Re: Devuan Server compromised

This is not a company but a family's private server. With only two people knowing the password. And the root login came came from outside

Offline

#6 Yesterday 00:08:10

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,746  

Re: Devuan Server compromised

Thanks for reporting.

I'd suggest using port knocking for all ssh service. There are several port knocking schemes available, and you can easily set up your client .ssh/config to issue port knocking sequences in any scheme prior to making the connection. And at the server(s) you may utilise iptables with ipset to keep the ssh port blocked normally, and then open briefly for an client IP that presents the "right knock".

One class of knock detection would use UDP message(s) with special code(s) to pre-defined ports, where perhaps the server have special iptables rules to detect those. Rules like

-A knock -p tcp -m set --match-set GATE4 src -j SET --add-set GATE4 src --exist --timeout 600
-A knock -m set --match-set GATE4 src -j ACCEPT
-A knock -p udp -m udp --dport 25 -m string --string "I'mTheUrbanSpaceman" --algo bm --from 28 -j SET --add-set GATE4 src --timeout 5
-A knock -p tcp -m tcp --dport 22 -j DROP
-A INPUT -j knock
-A OUTPUT -p tcp -m set --match-set GATE4 src -j SET --add-set GATE4 src --exist --timeout 600

That collection of rules opens port 22 for 5 seconds upon receiving a UDP message with special content on port 25, and then refreshes the hole to 10 minute openings for any input or output packet from/to that same IP.

I'm sure there are packaged schemes available as well, if iptables rule editing feels scary.

Offline

#7 Yesterday 11:11:10

rolfie
Member
Registered: 2017-11-25
Posts: 1,510  

Re: Devuan Server compromised

In a small private network it may be advisable to configure ssh to a non-standard port. E.g instead of 22 use 1223.

Offline

#8 Yesterday 12:20:49

tux_99
Member
Registered: 2025-06-17
Posts: 152  

Re: Devuan Server compromised

I find the title of this thread misleading bordering on clickbait as it could imply that the offcial Devuan server(s) has been comprmised, it should be changed to something like "personal server running an ancient Devuan release compromised".


Either the users control the program – or the program controls the users” Richard Stallman

Offline

#9 Yesterday 12:36:37

beate
Member
Registered: 2019-03-25
Posts: 43  

Re: Devuan Server compromised

No. I am not clickbaiting at all. Must say that very clearly. Up to You everyone understood that i was talking on a devuan based server.
And maybe one could consider that not all users here are native speakers and therefore tend to express things differently.

But there are always people who apparently feel good at misunderstanding.

Offline

#10 Yesterday 12:54:53

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,989  

Re: Devuan Server compromised

Using a non-standard port for ssh (or any service) doesn't work as well as it used to. If your server is exposed to the internet, it's just a matter of checking your IP address to see what ports you have open.
Search here: https://search.censys.io/

Offline

#11 Yesterday 13:08:29

beate
Member
Registered: 2019-03-25
Posts: 43  

Re: Devuan Server compromised

Fortunately does not always work (it did not on the ip address of the replacement server),
but anyway, there are still many attempts to guess passwords brute force just on the official ports. So it is still a slight relief which btw i've bee using for years. Of course i am aware that a port scanner will always lead to results. And that with more computing power (and with KI help) intrusion has become a lot easier.

Offline

#12 Yesterday 16:30:51

chris2be8
Member
Registered: 2018-08-11
Posts: 386  

Re: Devuan Server compromised

For a home system it's best not to allow any inbound connections from the internet to reach it (unless you have a really good reason to allow them).

Remote systems will need to allow remote access. Changing the port ssh listens on will cut the amount of noise in the logs but doesn't provide much real security. The one I help administer has root logons disabled and the accounts on it have non-obvious names and strong passwords (we normally log on with SSH keys anyway). So an attacker would need to guess both an ID and it's password.

And we have backups so it's not a disaster if it did get hacked.

Offline

Board footer