Analysis

  • max time kernel
    13s
  • platform
    debian-9_mipsel
  • resource
    debian9-mipsel-20231215-en
  • resource tags

    arch:mipselimage:debian9-mipsel-20231215-enkernel:4.9.0-13-4kc-maltalocale:en-usos:debian-9-mipselsystem
  • submitted
    21-12-2023 20:40

General

  • Target

    xiang/1.sh

  • Size

    404B

  • MD5

    fa4f1798d03844cc950c5c0ff1ed71a7

  • SHA1

    7b7bb83c614603989d91a77ac0405d4000a0fa75

  • SHA256

    a5b0146024e8974f15f29c835f5d2d272a199846fa04963bb05d7e0bd14620ff

  • SHA512

    e94e75ade995e3ed08e1fcff6a830dbb28e512091d72af14bbf19ae6b6a33381130bda2c9b38050e61fc9dcf82e25ba06fb8d8f15edd4edeb1a7c1a675a8139e

Score
3/10

Malware Config

Signatures

  • Reads runtime system information 3 IoCs

    Reads data from /proc virtual filesystem.

  • Writes file to tmp directory 11 IoCs

    Malware often drops required files in the /tmp directory.

Processes

  • /tmp/xiang/1.sh
    /tmp/xiang/1.sh
    1⤵
    • Writes file to tmp directory
    PID:724
    • /bin/rm
      rm -r -f /tmp/exploit
      2⤵
        PID:727
      • /bin/mkdir
        mkdir /tmp/exploit
        2⤵
        • Reads runtime system information
        PID:728
      • /bin/ln
        ln /bin/ping /tmp/exploit/target
        2⤵
          PID:733
        • /bin/ls
          ls -l /proc/724/fd/3
          2⤵
          • Reads runtime system information
          PID:735
        • /bin/rm
          rm -rf /tmp/exploit
          2⤵
            PID:736
          • /bin/ls
            ls -l /proc/724/fd/3
            2⤵
            • Reads runtime system information
            PID:737
          • /bin/cat
            cat
            2⤵
              PID:739
            • /usr/bin/gcc
              gcc -w -fPIC -shared -o /tmp/exploit program.c
              2⤵
              • Writes file to tmp directory
              PID:740
              • /usr/lib/gcc/mipsel-linux-gnu/6/cc1
                /usr/lib/gcc/mipsel-linux-gnu/6/cc1 -quiet -imultiarch mipsel-linux-gnu program.c -mel -quiet -dumpbase program.c "-march=mips32r2" -mfpxx -mllsc -mno-lxc1-sxc1 -mno-madd4 -mips32r2 "-mabi=32" -auxbase program -w -fPIC -o /tmp/ccFuWbCa.s
                3⤵
                • Writes file to tmp directory
                PID:741
              • /usr/local/sbin/as
                as -W -EL -mips32r2 -O1 -no-mdebug "-mabi=32" "-march=mips32r2" -mfpxx -KPIC -o /tmp/ccEpibQf.o /tmp/ccFuWbCa.s
                3⤵
                  PID:743
                • /usr/local/bin/as
                  as -W -EL -mips32r2 -O1 -no-mdebug "-mabi=32" "-march=mips32r2" -mfpxx -KPIC -o /tmp/ccEpibQf.o /tmp/ccFuWbCa.s
                  3⤵
                    PID:743
                  • /usr/sbin/as
                    as -W -EL -mips32r2 -O1 -no-mdebug "-mabi=32" "-march=mips32r2" -mfpxx -KPIC -o /tmp/ccEpibQf.o /tmp/ccFuWbCa.s
                    3⤵
                      PID:743
                    • /usr/bin/as
                      as -W -EL -mips32r2 -O1 -no-mdebug "-mabi=32" "-march=mips32r2" -mfpxx -KPIC -o /tmp/ccEpibQf.o /tmp/ccFuWbCa.s
                      3⤵
                      • Writes file to tmp directory
                      PID:743
                    • /usr/lib/gcc/mipsel-linux-gnu/6/collect2
                      /usr/lib/gcc/mipsel-linux-gnu/6/collect2 -plugin /usr/lib/gcc/mipsel-linux-gnu/6/liblto_plugin.so "-plugin-opt=/usr/lib/gcc/mipsel-linux-gnu/6/lto-wrapper" "-plugin-opt=-fresolution=/tmp/ccB3LUVQ.res" "-plugin-opt=-pass-through=-lgcc" "-plugin-opt=-pass-through=-lgcc_s" "-plugin-opt=-pass-through=-lc" "-plugin-opt=-pass-through=-lgcc" "-plugin-opt=-pass-through=-lgcc_s" "--sysroot=/" --build-id --eh-frame-hdr -EL -mips32r2 -shared -melf32ltsmip -o /tmp/exploit /usr/lib/gcc/mipsel-linux-gnu/6/../../../mipsel-linux-gnu/crti.o /usr/lib/gcc/mipsel-linux-gnu/6/crtbeginS.o -L/usr/lib/gcc/mipsel-linux-gnu/6 -L/usr/lib/gcc/mipsel-linux-gnu/6/../../../mipsel-linux-gnu -L/usr/lib/gcc/mipsel-linux-gnu/6/../../../../lib -L/lib/mipsel-linux-gnu -L/lib/../lib -L/usr/lib/mipsel-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/mipsel-linux-gnu/6/../../.. /tmp/ccEpibQf.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/mipsel-linux-gnu/6/crtendS.o /usr/lib/gcc/mipsel-linux-gnu/6/../../../mipsel-linux-gnu/crtn.o
                      3⤵
                      • Writes file to tmp directory
                      PID:744
                      • /usr/bin/ld
                        /usr/bin/ld -plugin /usr/lib/gcc/mipsel-linux-gnu/6/liblto_plugin.so "-plugin-opt=/usr/lib/gcc/mipsel-linux-gnu/6/lto-wrapper" "-plugin-opt=-fresolution=/tmp/ccB3LUVQ.res" "-plugin-opt=-pass-through=-lgcc" "-plugin-opt=-pass-through=-lgcc_s" "-plugin-opt=-pass-through=-lc" "-plugin-opt=-pass-through=-lgcc" "-plugin-opt=-pass-through=-lgcc_s" "--sysroot=/" --build-id --eh-frame-hdr -EL -mips32r2 -shared -melf32ltsmip -o /tmp/exploit /usr/lib/gcc/mipsel-linux-gnu/6/../../../mipsel-linux-gnu/crti.o /usr/lib/gcc/mipsel-linux-gnu/6/crtbeginS.o -L/usr/lib/gcc/mipsel-linux-gnu/6 -L/usr/lib/gcc/mipsel-linux-gnu/6/../../../mipsel-linux-gnu -L/usr/lib/gcc/mipsel-linux-gnu/6/../../../../lib -L/lib/mipsel-linux-gnu -L/lib/../lib -L/usr/lib/mipsel-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/mipsel-linux-gnu/6/../../.. /tmp/ccEpibQf.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/mipsel-linux-gnu/6/crtendS.o /usr/lib/gcc/mipsel-linux-gnu/6/../../../mipsel-linux-gnu/crtn.o
                        4⤵
                        • Writes file to tmp directory
                        PID:745
                • /proc/self/fd/3
                  /proc/self/fd/3
                  1⤵
                    PID:724

                  Network

                  MITRE ATT&CK Matrix

                  Replay Monitor

                  Loading Replay Monitor...

                  Downloads

                  • /tmp/ccEpibQf.o

                    Filesize

                    1KB

                    MD5

                    779d808ed1a897e2d144f2bc9fcf7872

                    SHA1

                    8288f57c2f315129cb17949a89b6f0c570151b44

                    SHA256

                    664bce27ed61e792d31376e504e4f4eaa72324ddfc0a5947362e4066f67015a7

                    SHA512

                    8e9d44b4221ca880a31f132b2deedea8e3cda9bd7d05aa6edb38b8bbc336e0449d4931cba9361f26bcadaea1641d119c576f9af7f15b0a1b214e78f04cc9c6cd

                  • /tmp/exploit

                    Filesize

                    5KB

                    MD5

                    dfd7ff2358d520e0b5e59565a0a8bcf3

                    SHA1

                    72f610bd0c85c493d73c7eabe62a05d1b2c61fa2

                    SHA256

                    cfe517bf03cd7ef2b0286e515a0eb657c5ae82b16f017413375c5d273712f85c

                    SHA512

                    431b049743731a93ca7e006ef2d289e17b3c1aa807b43bbad25263db2073e044f108e83630abf0d03ffed13c4f524ea421727c260ca26a9d956dda90551e7265