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

  • CameronDev@programming.dev
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    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.

    • Mia@feddit.deOP
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      1 year ago

      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

  • 𝒍𝒆𝒎𝒂𝒏𝒏
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    Might be used by network-manager to auto connect to VPNs, if you have something like that set up for untrusted networks? Other distros do something similar for OpenVPN, Wireguard and such.

    Remove it and see what breaks?

  • Tetsuo@jlai.lu
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    Regarding the edit:

    As far as I know your bash just tells you the purge commands were run but not if they were successful.

    It also seems like the first purge would have removed all strongswan* package anyway so it sounds likely that you attempted to purge strongswan and decided not to. Maybe seeing the things that would be broken at the time you decided to reduce the scope of the great purge of strongswan in 2022 :)