this post was submitted on 31 Aug 2023
22 points (92.3% liked)

Linux

48149 readers
740 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I have just seen that StrongSwan is installed and the service is enabled on my Raspberry Pi. But I have never used Strongswan before. Is there any way to research when it was installed? I just use the Raspi for OMV 5 with Portainer and various Docker containers. Should I be concerned that the package is installed without my active action?

EDIT:

I did some further investigation and found this commands in my .bash_history. This was approximately one year ago. Maybe I wanted to test something that I cannot remember. But interesting that despite those apt purge commands strongswan was still installed and running.

sudo apt install strongswan
sudo apt install strongswan-pki
sudo apt install libstrongswan-extra-plugins
sudo apt purge strongswan
sudo apt purge strongswan-pki
sudo apt purge libstrongswan-extra-plugins

you are viewing a single comment's thread
view the rest of the comments
[–] CameronDev 8 points 1 year ago (1 children)

Take your device offline, asap.

ls -l on the executables (you'll have to find them yourself) will give the last modified time.

If it's logging to the journal, you can grep through that and find the first time it logged.

If it truely is malicious, none of those will be trustworthy, as they can be changed by a malicious actor. If you can't work out where it's from, wipe and start over is probably the best bet.

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (1 children)

The strongswan installation itself doesn't seem to be malicous.

It looks like these packages were installed via the apt repositories: strongswan-starter
strongswan-libcharon
strongswan-charon
libstrongswan

[–] [email protected] 7 points 1 year ago

Check /var/log/dpkg.log. See when they were installed, probably alongside something you wanted.