{
  "ml": {
    "v": "4",
    "fs": [
      {
        "id": 0,
        "prob": 0.976971447467804,
        "class": 2
      }
    ],
    "prob": 0.97697145,
    "class": 2,
    "models": [
      {
        "m": "az",
        "prob": 0.10952183,
        "class": 0
      },
      {
        "m": "az/scripts",
        "prob": 0.23249105,
        "class": 0
      },
      {
        "m": "az/php",
        "prob": 0.97697145,
        "class": 2
      }
    ],
    "version": "v16.16",
    "thresholds": [
      0.9961138,
      0.99909174
    ],
    "analyzed_at": "2026-05-10T02:44:45Z"
  },
  "path": "testdecompressor.php",
  "raw": {
    "v": "4",
    "fs": [
      {
        "f": "O(As)Md(Pt)",
        "k": {
          "source.shebang": "/usr/bin/env php",
          "source.imports[0]": "base64_decode",
          "source.imports[1]": "file_get_contents",
          "source.imports[2]": "gzdecode",
          "source.imports[3]": "gzinflate",
          "source.imports[4]": "gzuncompress",
          "source.imports[5]": "zlib_decode",
          "source.strings[0]": "gzdecode",
          "source.strings[1]": "gzdecode\\n",
          "source.strings[2]": "gzinflate",
          "source.strings[3]": "gzinflate\\n",
          "source.strings[4]": "gzuncompress",
          "source.strings[5]": "gzuncompress\\n",
          "source.strings[6]": "zlib_decode",
          "source.strings[7]": "zlib_decode\\n",
          "source.has_imports": true
        },
        "x": 37,
        "id": 0,
        "is": [
          "file_get_contents",
          "base64_decode",
          "gzinflate",
          "gzuncompress",
          "gzdecode",
          "zlib_decode"
        ],
        "ms": {
          "file": {
            "size": 328.0
          },
          "text": {
            "digit_ratio": 0.01,
            "space_count": 9.0,
            "total_lines": 18.0,
            "char_entropy": 4.7,
            "unique_chars": 40.0,
            "import_density": 33.33,
            "string_density": 0.44,
            "avg_line_length": 17.22,
            "max_line_length": 49.0,
            "empty_line_ratio": 0.33,
            "last_line_length": 29.0,
            "most_common_char": "e",
            "whitespace_ratio": 0.08,
            "most_common_ratio": 0.11,
            "identifier_density": 0.78,
            "line_length_stddev": 15.43,
            "normalized_import_count": 1.41,
            "normalized_string_count": 1.89,
            "max_inline_whitespace_run": 1.0,
            "normalized_unique_identifiers": 2.16
          },
          "imports": {
            "total": 6.0,
            "unique_modules": 6.0,
            "third_party_count": 6.0,
            "third_party_ratio": 1.0
          },
          "strings": {
            "total": 8.0,
            "avg_length": 11.0,
            "max_length": 14.0,
            "avg_entropy": 3.16,
            "total_bytes": 88.0,
            "entropy_stddev": 0.31
          },
          "comments": {},
          "functions": {},
          "identifiers": {
            "total": 14.0,
            "avg_length": 11.33,
            "max_length": 17.0,
            "min_length": 4.0,
            "avg_entropy": 3.04,
            "reuse_ratio": 0.64,
            "unique_count": 9.0,
            "length_stddev": 3.65,
            "has_digit_ratio": 0.11,
            "all_lowercase_ratio": 0.89
          }
        },
        "ss": [
          [
            130,
            "gzinflate\\n"
          ],
          [
            131,
            "gzinflate"
          ],
          [
            179,
            "gzuncompress\\n"
          ],
          [
            180,
            "gzuncompress"
          ],
          [
            234,
            "gzdecode\\n"
          ],
          [
            235,
            "gzdecode"
          ],
          [
            281,
            "zlib_decode\\n"
          ],
          [
            282,
            "zlib_decode"
          ]
        ],
        "sz": 328,
        "ts": [
          {
            "c": 0.949999988079071,
            "d": "PHP opening tag present",
            "e": [
              "\u003c?php"
            ],
            "i": "metadata/lang/scripted::php-open-tag",
            "l": 1
          },
          {
            "a": "T1027",
            "c": 0.8799999952316284,
            "d": "Dense gzip decompression",
            "e": [
              "gzinflate("
            ],
            "i": "objectives/anti-static/obfuscation/string/encoding::dense-gzip-decode",
            "l": 4,
            "m": "B0032"
          },
          {
            "c": 0.8999999761581421,
            "d": "Generic env-based shebang line",
            "e": [
              "#!/usr/bin/env php"
            ],
            "i": "metadata/lang/shebang::env-interpreter",
            "l": 2
          },
          {
            "c": 1.0,
            "d": "PHP shebang line",
            "e": [
              "#!/usr/bin/env php"
            ],
            "i": "metadata/lang/shebang::php",
            "l": 3
          },
          {
            "a": "T1505.003",
            "c": 0.9399999976158142,
            "d": "file_get_contents (raw POST body reader)",
            "e": [
              "file_get_contents"
            ],
            "i": "objectives/command-and-control/backdoor/webshell/request::raw-json-post-cmd-field--rx-7",
            "l": 1,
            "m": "B0030"
          },
          {
            "a": "T1505.003",
            "c": 0.8999999761581421,
            "d": "PHP source imports base64_decode",
            "e": [
              "[base64_decode, file_get_contents, gzdecode, gzinflate, gzuncompress, zlib_decode]"
            ],
            "i": "objectives/command-and-control/backdoor/webshell/stager::source-import-base64-decode",
            "l": 1
          }
        ],
        "sha": "3ff501a74710402de81a09125a39b28f9cb349c550be7d4fdcb61a9b4da224ee",
        "path": "testdecompressor.php",
        "type": "php"
      }
    ],
    "tv": "d376d"
  }
}