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.
    • 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
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator @Bob.Dig
                                last edited by

                                @bob-dig hahah

                                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 @stephenw10
                                  last edited by

                                  @stephenw10 Yeah I bet ;)

                                  Other then curiosity on what it is, and how it got there being the biggest question. I would wipe this box for sure.. This is clearly not something you setup. And everything points to nefarious use.. The IPs are hosted vps, and you got some weird ass PTR setting nasa.gov - yeah ok ;)

                                  And the one IP is a tor exit node..

                                  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
                                  • First post
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.