Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Pfsense found docker process

    Scheduled Pinned Locked Moved General pfSense Questions
    27 Posts 8 Posters 2.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dmateos86
      last edited by

      Hi everyone, today my pfsense start cpu increase at 100%, restart services and the cpu still high, reviewing System Activity found some docker process target unknown ip.

      Captura de Pantalla 2022-10-31 a la(s) 15.25.53.png

      Somebody know to disable this? I try to block with a firewall rule but nothing.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        I've never seen either of those processes in pfSense.

        What packages do you have installed there?

        Any 3rd party packages or addons?

        Steve

        D 1 Reply Last reply Reply Quote 0
        • D
          dmateos86 @stephenw10
          last edited by

          @stephenw10 Hi, I have installed, frr for bgp, ntopng and pfBlockerNG.

          I just kill the both process, and the cpu went ok, but I don't know if is my setup vulnerable now.

          johnpozJ 2 Replies Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @dmateos86
            last edited by

            @dmateos86 that IP 107.189.10.123 is a buy vm, IP - they run vpses - cheap, I run a server on there.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            D 1 Reply Last reply Reply Quote 0
            • D
              dmateos86 @johnpoz
              last edited by

              @johnpoz Thanks for your response, do you know why pfsense has those services or the meaning? I haven't install any docker instance on it.

              johnpozJ 1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Is that sold as a pfSense VPS specifically? Not sure how they would start those processes otherwise if something wasn't already installed. But I haven't spent much time playing with docker.

                D 1 Reply Last reply Reply Quote 0
                • D
                  dmateos86 @stephenw10
                  last edited by

                  @stephenw10 Hello, the pfsense is installed on a dell server on site, actually I don't work with docker, and I'm the only one who has access to it, thats why I'm confused why this process activated.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Try running at the CLI: ps -auxwwd That may show you what started them. If they are still running or have restarted.

                    Steve

                    D 1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @dmateos86
                      last edited by johnpoz

                      @dmateos86 no my pfsense has no dockers running - that for sure is not an out of the box experience, or with any packages. Odd that its talking to a buyvm IP.. So its talking to something running on a vps on their cloud would be my guess..

                      looks more just like a cmd that is running called that, with url to go talk to and port, and user to auth with I would assume. Not really a actual docker container running.

                      But yeah they are sucking some cpu that is for sure.. Some sort of miner maybe? Just wild ass guess..

                      A google for those commands doesn't even come up with anything.. which if was some common sort of legit package you would think you would find info on using it, etc.

                      I try to block with a firewall rule but nothing.

                      If its actually running on pfsense, you would have to use an outbound rule in floating to stop access to that IP or Port, etc. out of the box processes running on pfsense can go really anywhere they want. There is a specific rule to allow firewall to go outbound.

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator @dmateos86
                        last edited by

                        @dmateos86 said in Pfsense found docker process:

                        but I don't know if is my setup vulnerable now.

                        Did you have like the web gui open to the internet, or ssh or something..

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          dmateos86 @stephenw10
                          last edited by

                          @stephenw10 said in Pfsense found docker process:

                          ps -auxwwd

                          Hi, I kill both process, but when I run that command show me the following:

                          Captura de Pantalla 2022-11-01 a la(s) 15.33.36.png

                          And there's the ip address, and another ip that I don't recognize.

                          1 Reply Last reply Reply Quote 0
                          • D
                            dmateos86 @johnpoz
                            last edited by

                            @johnpoz I have open the wan ip address port for l2tp/ipsec connection, ssh disable, and only lan access for web gui.

                            johnpozJ 1 Reply Last reply Reply Quote 0
                            • johnpozJ
                              johnpoz LAYER 8 Global Moderator @dmateos86
                              last edited by johnpoz

                              @dmateos86 if you hit that 104 on just http you get this back

                              This is a Tor Exit Router
                              

                              And lots of other info.. talk to it on port 10005 like that command but doesn't connect..

                              None of that looks good or legit that is for sure... Your not doing anything routing traffic over tor are you?

                              Can tell you for sure that I don't have anything like running on mine, there is no sh process forked off my php-fpm processes that is for damn sure..

                              An intelligent man is sometimes forced to be drunk to spend time with his fools
                              If you get confused: Listen to the Music Play
                              Please don't Chat/PM me for help, unless mod related
                              SG-4860 24.11 | Lab VMs 2.8, 24.11

                              D 1 Reply Last reply Reply Quote 0
                              • stephenw10S
                                stephenw10 Netgate Administrator
                                last edited by

                                Yup I would nuke it and start over if you've not added any of that yourself.

                                It would be interesting to know what's in any of those referenced files but if it anything suspect it's likely to be obscured anyway.

                                Steve

                                R 1 Reply Last reply Reply Quote 0
                                • R
                                  rcoleman-netgate Netgate @stephenw10
                                  last edited by

                                  I'm curious what the hardware is that it's on.... the output of

                                  dmesg
                                  

                                  here would be really telling.

                                  Ryan
                                  Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                                  Requesting firmware for your Netgate device? https://go.netgate.com
                                  Switching: Mikrotik, Netgear, Extreme
                                  Wireless: Aruba, Ubiquiti

                                  D 1 Reply Last reply Reply Quote 0
                                  • M
                                    marcosm Netgate
                                    last edited by

                                    I agree that docker is not being used here - these look like scripts named in a purposely misleading way. Ultimately, this is not normal and hence I suggest wiping the drive(s) and re-installing pfSense. First however, try extracting more information.

                                    Make sure SSH is enabled under System / Advanced, then verify you can SSH by running the following from your Windows host:

                                    ssh root@192.168.1.1
                                    

                                    Then create a folder to transfer files to, e.g. C:\tmp_dir\ and grab all of the files in /tmp/ - for example by running this from Windows:

                                    scp -r root@192.168.1.1:/tmp/ C:\tmp_dir\
                                    

                                    The scripts should be stored under the www folder which you can verify by going to Diagnostics / Edit File and browsing to /usr/local/www/. Try finding them otherwise (likely the process needs to be running for the scripts to exist). Grab the scripts as well - for example:

                                    scp root@192.168.1.1:/usr/local/www/*.sh C:\tmp_dir\
                                    scp root@192.168.1.1:/usr/local/www/*docker* C:\tmp_dir\
                                    scp root@192.168.1.1:/usr/local/www/*clinche* C:\tmp_dir\
                                    

                                    If you get all of that, inspect it and feel free to share it here (zip it up, upload it somewhere, and share the link).

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      dmateos86 @rcoleman-netgate
                                      last edited by

                                      @rcoleman-netgate Hi, I share the result from dmesg, the pfsense is running on a dell r240 server.

                                      dmesg.txt

                                      thanks

                                      R 1 Reply Last reply Reply Quote 0
                                      • R
                                        rcoleman-netgate Netgate @dmateos86
                                        last edited by

                                        @dmateos86 I thought for sure it wasn't going to be running a bare metal... I'm a bit more concerned about the rest of the software, then. What got on it and how did it get there?

                                        Ryan
                                        Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                                        Requesting firmware for your Netgate device? https://go.netgate.com
                                        Switching: Mikrotik, Netgear, Extreme
                                        Wireless: Aruba, Ubiquiti

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          dmateos86 @johnpoz
                                          last edited by

                                          @johnpoz said in Pfsense found docker process:

                                          Your not doing anything routing traffic over tor are you?

                                          Hi, no I dont route any tor traffic, and the php-fpm is:

                                          Captura de Pantalla 2022-11-01 a la(s) 20.54.16.png

                                          1 Reply Last reply Reply Quote 0
                                          • bingo600B
                                            bingo600
                                            last edited by

                                            Hmmm ....

                                            That curl + chmod smells a lot too ...
                                            Payload fetcher ??

                                            297887c8-63a3-4a49-9ede-6c488d227784-image.png

                                            /Bingo

                                            If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

                                            pfSense+ 23.05.1 (ZFS)

                                            QOTOM-Q355G4 Quad Lan.
                                            CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                                            LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.