Hacked by hydra. At wits end.

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
scatman98
Posts: 31
Joined: Fri Mar 30, 2018 12:56 am

Re: Hacked by hydra. At wits end.

#11 Post by scatman98 »

Nokkaelaein wrote: Mon Jan 13, 2025 8:23 am That's because they are not installed. Checked your used command more closely, and you are doing an "apt search" - this searches for all suitable available packages, not merely packages that are installed.
Thanks for the info, so this searchable items list is getting populated by available programs when sudo command is run initially is the idea here ?

Nokkaelaein
Posts: 338
Joined: Fri Jul 17, 2020 10:32 am

Re: Hacked by hydra. At wits end.

#12 Post by Nokkaelaein »

scatman98 wrote: Mon Jan 13, 2025 8:31 am Thanks for the info, so this searchable items list is getting populated by available programs when sudo command is run initially is the idea here ?
No, sudo doesn't have anything to do with it. Sudo is a utility in unix/linux/etc. to run things with elevated privileges, and it only does that. It's most often used in admin tasks a regular user account doesn't have sufficient privileges for. In turn, apt just has a command called "search" that lists available packages matching the search string, and that's it. You can do an apt search with standard user privileges, too, with no use of sudo. (Provided that a system has fetched the package lists for the repositories in use - manually fetching the lists is done for example by running "apt update", and this is an action that requires elevated privileges. Anyway, everything seems to be okay with your system 👍)
Last edited by Nokkaelaein on Mon Jan 13, 2025 8:43 am, edited 1 time in total.

User avatar
siamhie
Global Moderator
Posts: 3465
Joined: Fri Aug 20, 2021 5:45 pm

Re: Hacked by hydra. At wits end.

#13 Post by siamhie »

scatman98 wrote: Mon Jan 13, 2025 6:14 am As soon as I run an update on fresh install malware gets installed like hydra, squashfs-tools-ng, slack , tiger-otheros, unburden-home-dir , vagrant-sshsfs , vagrant-libvirt, vbackup , unionfs-fuse , python3-cinder, python-flufl, ruby-lockfile and many more.

Not one of these programs are installed on my system I installed just over a week ago.

Check again.

Code: Select all

apt list --installed
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
DukeComposed
Posts: 1453
Joined: Thu Mar 16, 2023 1:57 pm

Re: Hacked by hydra. At wits end.

#14 Post by DukeComposed »

Nokkaelaein wrote: Mon Jan 13, 2025 8:07 am No, it's not malware, it's a security tool developed for breaching login passwords. Why it is installed on your system is hopefully discovered later in this thread.
Agreed, network security tools are an important part of the Linux ecosystem. We also don't know for sure that any of these packages are actually installed, since "apt search <something>" can list a bunch of software, but it doesn't actually install any of it. dpkg -l | grep hydra will be useful here in showing if any of these tools are actually present on the system.

Code: Select all

Repos:
  Packages: pm: dpkg pkgs: 2117 libs: 1052 tools: apt,apt-get,aptitude,nala,synaptic 
QSI shows there are 2,117 packages installed on the system currently. I loaded an MX 23.4 x64 ISO to match the OS in the QSI and it shows 2,114 packages present in the live session. I honestly don't think any of these NFS-related applications are getting installed.

Perhaps OP thinks that "apt search <something>" searches the local system for installed software, rather than what "apt search" really does: searches the repositories configured on the system for available packages.

Nokkaelaein
Posts: 338
Joined: Fri Jul 17, 2020 10:32 am

Re: Hacked by hydra. At wits end.

#15 Post by Nokkaelaein »

DukeComposed wrote: Mon Jan 13, 2025 8:43 am We also don't know for sure that any of these packages are actually installed, since "apt search <something>" can list a bunch of software, but it doesn't actually install any of it.
Indeed, ninja'd above while you were writing this, heh :)

scatman98
Posts: 31
Joined: Fri Mar 30, 2018 12:56 am

Re: Hacked by hydra. At wits end.

#16 Post by scatman98 »

DukeComposed wrote: Mon Jan 13, 2025 8:43 am
Nokkaelaein wrote: Mon Jan 13, 2025 8:07 am No, it's not malware, it's a security tool developed for breaching login passwords. Why it is installed on your system is hopefully discovered later in this thread.
Agreed, network security tools are an important part of the Linux ecosystem. We also don't know for sure that any of these packages are actually installed, since "apt search <something>" can list a bunch of software, but it doesn't actually install any of it. dpkg -l | grep hydra will be useful here in showing if any of these tools are actually present on the system.

Code: Select all

Repos:
  Packages: pm: dpkg pkgs: 2117 libs: 1052 tools: apt,apt-get,aptitude,nala,synaptic 
QSI shows there are 2,117 packages installed on the system currently. I loaded an MX 23.4 x64 ISO to match the OS in the QSI and it shows 2,114 packages present in the live session. I honestly don't think any of these NFS-related applications are getting installed.

Perhaps OP thinks that "apt search <something>" searches the local system for installed software, rather than what "apt search" really does: searches the repositories configured on the system for available packages.
yes i did assume these were installed packages 9_9

i dont understand though why does 'apt search' query show more than just the results from ' dpkg -l | grep' only after sudo is run inititially otherwise there is no difference in results when i search for 'apt search 'nfs-*' or dpkg -l | grep 'nfs-*'

Nokkaelaein
Posts: 338
Joined: Fri Jul 17, 2020 10:32 am

Re: Hacked by hydra. At wits end.

#17 Post by Nokkaelaein »

scatman98 wrote: Mon Jan 13, 2025 8:58 am i dont understand though why does 'apt search' query show more than just the results from ' dpkg -l | grep' only after sudo is run inititially otherwise there is no difference in results when i search for 'apt search 'nfs-*' or dpkg -l | grep 'nfs-*'
Again, sudo doesn't have an effect on this. It's what you run with elevated privileges using sudo. If your system doesn't have the package lists fetched, apt search will not show you those available packages in the repos that aren't installed. I guarantee the situation will not change if you just run sudo by itself. If, in a situation where there are no package lists on your local machine, you use sudo to run a command (that requires elevated privileges) that fetches them, then the situation changes, and "apt search" shows you all available packages, including ones that aren't installed on your system.

User avatar
DukeComposed
Posts: 1453
Joined: Thu Mar 16, 2023 1:57 pm

Re: Hacked by hydra. At wits end.

#18 Post by DukeComposed »

scatman98 wrote: Mon Jan 13, 2025 8:58 am i dont understand though why does 'apt search' query show more than just the results from ' dpkg -l | grep' only after sudo is run inititially otherwise there is no difference in results when i search for 'apt search 'nfs-*' or dpkg -l | grep 'nfs-*'
The cache gets updated. "man apt" and "man apt-cache" might be useful here in describing how these tools work, particularly the section that goes:

Code: Select all

apt-cache does not manipulate the state of the system but does provide operations to search and generate interesting output from the package metadata. The metadata is acquired and updated via the 'update' command of e.g.  apt-get, so that it can be outdated if the last update is too long ago, but in exchange apt-cache works independently of the availability of the configured sources (e.g. offline).

scatman98
Posts: 31
Joined: Fri Mar 30, 2018 12:56 am

Re: Hacked by hydra. At wits end.

#19 Post by scatman98 »

Nokkaelaein wrote: Mon Jan 13, 2025 9:05 am
scatman98 wrote: Mon Jan 13, 2025 8:58 am i dont understand though why does 'apt search' query show more than just the results from ' dpkg -l | grep' only after sudo is run inititially otherwise there is no difference in results when i search for 'apt search 'nfs-*' or dpkg -l | grep 'nfs-*'
Again, sudo doesn't have an effect on this. It's what you run with elevated privileges using sudo. If your system doesn't have the package lists fetched, apt search will not show you those available packages in the repos that aren't installed. I guarantee the situation will not change if you just run sudo by itself. If, in a situation where there are no package lists on your local machine, you use sudo to run a command (that requires elevated privileges) that fetches them, then the situation changes, and "apt search" shows you all available packages, including ones that aren't installed on your system.
i had run three commands with sudo all were "command not found" . these are the commands i had run to move from few to many results with apt search, does this check out as legit behaviour?

Code: Select all

psa@mx:~
$ apt search 'nfs-*'
Sorting... Done
Full Text Search... Done
liblockfile1/now 1.17-1+b1 amd64 [installed,local]
  NFS-safe locking library

libnfs13/now 4.0.0-1 amd64 [installed,local]
  NFS client library (shared library)

libnfsidmap1/now 1:2.6.2-4 amd64 [installed,local]
  NFS idmapping library

libtirpc-common/now 1.3.3+ds-1 all [installed,local]
  transport-independent RPC library - common files

libtirpc-dev/now 1.3.3+ds-1 amd64 [installed,local]
  transport-independent RPC library - development files

libtirpc3/now 1.3.3+ds-1 amd64 [installed,local]
  transport-independent RPC library

manpages/now 6.03-2 all [installed,local]
  Manual pages about using a GNU/Linux system

nfs-common/now 1:2.6.2-4 amd64 [installed,local]
  NFS support files common to client and server

nfs-common-modified-init/now 19.07.01 all [installed,local]
  modified nfs-common init script for mx and antiX linux

nfs-kernel-server/now 1:2.6.2-4 amd64 [installed,local]
  support for NFS kernel server

psa@mx:~
$ sudo /etc/init.d/nscd restart
[sudo] password for psa:         
sudo: /etc/init.d/nscd: command not found
psa@mx:~
$ sudo /etc/init.d/dnsmasq restart
sudo: /etc/init.d/dnsmasq: command not found
psa@mx:~
$ sudo /etc/init.d/named restart
sudo: /etc/init.d/named: command not found
psa@mx:~
$ apt search 'nfs-*'
Sorting... Done
Full Text Search... Done
4pane/stable 8.0-1+b2 amd64
  four-pane detailed-list file manager

arch-install-scripts/stable,stable 28-1 all
  scripts aimed at automating some menial tasks

backuppc/stable 4.4.0-8 amd64
  high-performance, enterprise-grade system for backing up PCs

cinder-api/stable,stable,stable-security,stable-security 2:21.3.1-1~deb12u1 all
  OpenStack block storage system - API server
  
 
.................
.................
.....................
....................

User avatar
siamhie
Global Moderator
Posts: 3465
Joined: Fri Aug 20, 2021 5:45 pm

Re: Hacked by hydra. At wits end.

#20 Post by siamhie »

What are you searching for?
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

Locked

Return to “MX Help”