Analysis

  • max time kernel
    153s
  • max time network
    156s
  • platform
    debian-9_armhf
  • resource
    debian9-armhf-20231215-en
  • resource tags

    arch:armhfimage:debian9-armhf-20231215-enkernel:4.9.0-13-armmp-lpaelocale:en-usos:debian-9-armhfsystem
  • submitted
    19-12-2023 23:25

General

  • Target

    635d926cace851bef7df910d8cb5f647

  • Size

    120KB

  • MD5

    635d926cace851bef7df910d8cb5f647

  • SHA1

    543282811f7ec6ab8743f5ab877c040b16ed9a10

  • SHA256

    bba18438991935a5fb91c8f315d08792c2326b2ce19f2be117f7dab984c47bdf

  • SHA512

    859bd4682e06a511961de11cfe8e4f047a2ac5f85fc388df5108c8f5e0a0af628bb81e378958a32c8606ae50110020f7b8374de06dea1eccabbe89e213415209

  • SSDEEP

    3072:6X8JNZXopYyKyI/LvKtL2faYk+djHdiDI0eXaBLTRP4otGP/x:6Xs4pYy6/LKR2SrsTkDI0eXaBBxwP5

Malware Config

Signatures

  • Contacts a large (4772) amount of remote hosts 1 TTPs

    This may indicate a network scan to discover remotely running services.

  • Patched UPX-packed file 1 IoCs

    Sample is packed with UPX but required header fields are zeroed out to prevent unpacking with the default UPX tool.

  • Changes its process name 1 IoCs
  • Modifies Watchdog functionality 1 TTPs 2 IoCs

    Malware like Mirai modifies the Watchdog to prevent it restarting an infected system.

  • UPX packed file 1 IoCs

    Detects executables packed with UPX/modified UPX open source packer.

  • Creates a large amount of network flows 1 TTPs

    This may indicate a network scan to discover remotely running services.

  • Enumerates active TCP sockets 1 TTPs 1 IoCs

    Gets active TCP sockets from /proc virtual filesystem.

  • Modifies init.d 1 TTPs 4 IoCs

    Adds/modifies system service, likely for persistence.

  • Writes file to system bin folder 1 TTPs 2 IoCs
  • Reads system network configuration 1 TTPs 2 IoCs

    Uses contents of /proc filesystem to enumerate network settings.

  • Writes file to tmp directory 1 IoCs

    Malware often drops required files in the /tmp directory.

Processes

  • /tmp/635d926cace851bef7df910d8cb5f647
    /tmp/635d926cace851bef7df910d8cb5f647
    1⤵
    • Changes its process name
    • Enumerates active TCP sockets
    • Reads system network configuration
    PID:678
    • /bin/sh
      sh -c "echo 3 > /proc/sys/vm/drop_caches"
      2⤵
        PID:679
    • /bin/sh
      sh -c "iptables -I INPUT -p tcp --destination-port 58000 -j DROP"
      1⤵
        PID:691
        • /sbin/iptables
          iptables -I INPUT -p tcp --destination-port 58000 -j DROP
          2⤵
            PID:692
        • /bin/sh
          sh -c "iptables -I OUTPUT -p tcp --source-port 58000 -j DROP"
          1⤵
            PID:701
            • /sbin/iptables
              iptables -I OUTPUT -p tcp --source-port 58000 -j DROP
              2⤵
                PID:702
            • /bin/sh
              sh -c "cfgtool set /mnt/jffs2/hw_ctree.xml InternetGatewayDevice.ManagementServer URL \"http://127.0.0.1\""
              1⤵
                PID:703
              • /bin/sh
                sh -c "cfgtool set /mnt/jffs2/hw_ctree.xml InternetGatewayDevice.ManagementServer ConnectionRequestPassword \"acsMozi\""
                1⤵
                  PID:705
                • /bin/sh
                  sh -c "iptables -I INPUT -p tcp --destination-port 35000 -j DROP"
                  1⤵
                    PID:706
                    • /sbin/iptables
                      iptables -I INPUT -p tcp --destination-port 35000 -j DROP
                      2⤵
                        PID:707
                    • /bin/sh
                      sh -c "iptables -I INPUT -p tcp --destination-port 50023 -j DROP"
                      1⤵
                        PID:708
                        • /sbin/iptables
                          iptables -I INPUT -p tcp --destination-port 50023 -j DROP
                          2⤵
                            PID:709
                        • /bin/sh
                          sh -c "iptables -I OUTPUT -p tcp --source-port 50023 -j DROP"
                          1⤵
                            PID:711
                            • /sbin/iptables
                              iptables -I OUTPUT -p tcp --source-port 50023 -j DROP
                              2⤵
                                PID:713
                            • /bin/sh
                              sh -c "iptables -I INPUT -p tcp --destination-port 50159 -j ACCEPT"
                              1⤵
                                PID:712
                                • /sbin/iptables
                                  iptables -I INPUT -p tcp --destination-port 50159 -j ACCEPT
                                  2⤵
                                    PID:714
                                • /bin/sh
                                  sh -c "iptables -I OUTPUT -p tcp --source-port 35000 -j DROP"
                                  1⤵
                                    PID:715
                                    • /sbin/iptables
                                      iptables -I OUTPUT -p tcp --source-port 35000 -j DROP
                                      2⤵
                                        PID:716
                                    • /bin/sh
                                      sh -c "iptables -I INPUT -p tcp --destination-port 7547 -j DROP"
                                      1⤵
                                        PID:717
                                        • /sbin/iptables
                                          iptables -I INPUT -p tcp --destination-port 7547 -j DROP
                                          2⤵
                                            PID:718
                                        • /bin/sh
                                          sh -c "iptables -I OUTPUT -p tcp --source-port 50159 -j ACCEPT"
                                          1⤵
                                            PID:719
                                            • /sbin/iptables
                                              iptables -I OUTPUT -p tcp --source-port 50159 -j ACCEPT
                                              2⤵
                                                PID:720
                                            • /bin/sh
                                              sh -c "iptables -I OUTPUT -p tcp --source-port 7547 -j DROP"
                                              1⤵
                                                PID:721
                                                • /sbin/iptables
                                                  iptables -I OUTPUT -p tcp --source-port 7547 -j DROP
                                                  2⤵
                                                    PID:722
                                                • /bin/sh
                                                  sh -c "iptables -I PREROUTING -t nat -p tcp --destination-port 50159 -j ACCEPT"
                                                  1⤵
                                                    PID:723
                                                    • /sbin/iptables
                                                      iptables -I PREROUTING -t nat -p tcp --destination-port 50159 -j ACCEPT
                                                      2⤵
                                                        PID:724
                                                    • /bin/sh
                                                      sh -c "iptables -I POSTROUTING -t nat -p tcp --source-port 50159 -j ACCEPT"
                                                      1⤵
                                                        PID:729
                                                        • /sbin/iptables
                                                          iptables -I POSTROUTING -t nat -p tcp --source-port 50159 -j ACCEPT
                                                          2⤵
                                                            PID:730
                                                        • /bin/sh
                                                          sh -c "iptables -I INPUT -p udp --destination-port 8082 -j ACCEPT"
                                                          1⤵
                                                            PID:787
                                                            • /sbin/iptables
                                                              iptables -I INPUT -p udp --destination-port 8082 -j ACCEPT
                                                              2⤵
                                                                PID:788
                                                            • /bin/sh
                                                              sh -c "iptables -I OUTPUT -p udp --source-port 8082 -j ACCEPT"
                                                              1⤵
                                                                PID:789
                                                                • /sbin/iptables
                                                                  iptables -I OUTPUT -p udp --source-port 8082 -j ACCEPT
                                                                  2⤵
                                                                    PID:790
                                                                • /bin/sh
                                                                  sh -c "iptables -I PREROUTING -t nat -p udp --destination-port 8082 -j ACCEPT"
                                                                  1⤵
                                                                    PID:791
                                                                    • /sbin/iptables
                                                                      iptables -I PREROUTING -t nat -p udp --destination-port 8082 -j ACCEPT
                                                                      2⤵
                                                                        PID:792
                                                                    • /bin/sh
                                                                      sh -c "iptables -I POSTROUTING -t nat -p udp --source-port 8082 -j ACCEPT"
                                                                      1⤵
                                                                        PID:797
                                                                        • /sbin/iptables
                                                                          iptables -I POSTROUTING -t nat -p udp --source-port 8082 -j ACCEPT
                                                                          2⤵
                                                                            PID:799

                                                                        Network

                                                                        MITRE ATT&CK Enterprise v15

                                                                        Replay Monitor

                                                                        Loading Replay Monitor...

                                                                        Downloads

                                                                        • /etc/rcS.d/S95baby.sh

                                                                          Filesize

                                                                          25B

                                                                          MD5

                                                                          1b3235ba10fc04836c941d3d27301956

                                                                          SHA1

                                                                          8909655763143702430b8c58b3ae3b04cfd3a29c

                                                                          SHA256

                                                                          01ba1fb41632594997a41d0c3a911ae5b3034d566ebb991ef76ad76e6f9e283a

                                                                          SHA512

                                                                          98bdb5c266222ccbd63b6f80c87e501c8033dc53b0513d300b8da50e39a207a0b69f8cd3ecc4a128dec340a1186779fedd1049c9b0a70e90d2cb3ae6ebfa4c4d

                                                                        • /tmp/config

                                                                          Filesize

                                                                          109B

                                                                          MD5

                                                                          18a576e4660c72d5d445c3896744f390

                                                                          SHA1

                                                                          84eb9170a0350ab5e6bcab6a82c83576be39b821

                                                                          SHA256

                                                                          2ae465a253f97dafe16afe0c8086676c2948f95b3d03a62da288ba9c7264353a

                                                                          SHA512

                                                                          f4bcf08b3e5f942db835c9457c80a6d79bc66bc593abf8e07721b96a78a31040ac9bc7fe66649778175e8348ba1a35af3dfadabd901313f77c893f34631aa862

                                                                        • /usr/networks

                                                                          Filesize

                                                                          120KB

                                                                          MD5

                                                                          635d926cace851bef7df910d8cb5f647

                                                                          SHA1

                                                                          543282811f7ec6ab8743f5ab877c040b16ed9a10

                                                                          SHA256

                                                                          bba18438991935a5fb91c8f315d08792c2326b2ce19f2be117f7dab984c47bdf

                                                                          SHA512

                                                                          859bd4682e06a511961de11cfe8e4f047a2ac5f85fc388df5108c8f5e0a0af628bb81e378958a32c8606ae50110020f7b8374de06dea1eccabbe89e213415209