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.
    • 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
                                  • A
                                    aaronouthier
                                    last edited by

                                    Even scarier: The ptr record for 104.244.77.92 points to nasa.gov.

                                    I don’t know which is more disturbing: The thought that the US Feds did this, or the thought that their server might be compromised!??!

                                    I don’t know. Can a ptr record be spoofed?

                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      aaronouthier @aaronouthier
                                      last edited by

                                      @aaronouthier

                                      Thinking about it some more, the ptr record is certainly spoofed. Probably attempting misdirection.

                                      A 1 Reply Last reply Reply Quote 0
                                      • A
                                        aaronouthier @aaronouthier
                                        last edited by

                                        @aaronouthier
                                        If your box wasn’t accessible from the outside, then something inside maybe compromised, or perhaps a visitor’s device was compromised and launched an attack on your router while on your network.

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

                                          Mmm, it would be very interesting to see what's in those script files.

                                          Seeing this error log on a box with 16GB RAM:

                                          [zone: pf states] PF states limit reached\
                                          

                                          Implies it's moving a lot of traffic.

                                          Steve

                                          johnpozJ 1 Reply Last reply Reply Quote 0
                                          • Bob.DigB
                                            Bob.Dig LAYER 8
                                            last edited by

                                            I knew it, one day docker would come to pfSense... 😉

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