{
  "ml": {
    "v": "4",
    "fs": [
      {
        "id": 0,
        "prob": 0.020928578451275826,
        "class": 0
      }
    ],
    "prob": 0.020928578,
    "class": 0,
    "models": [
      {
        "m": "az",
        "prob": 0.020928578,
        "class": 0
      },
      {
        "m": "az/scripts",
        "prob": 0.003412346,
        "class": 0
      },
      {
        "m": "az/php",
        "prob": 0.0069675986,
        "class": 0
      }
    ],
    "version": "v16.16",
    "thresholds": [
      0.9961138,
      0.99909174
    ],
    "analyzed_at": "2026-05-08T23:06:03Z"
  },
  "path": "matchRegexp.php",
  "raw": {
    "v": "4",
    "fs": [
      {
        "f": "O₂(AsC)Md",
        "k": {
          "source.imports[0]": "preg_match",
          "source.imports[1]": "str_replace",
          "source.imports[2]": "strstr",
          "source.has_imports": true,
          "source.functions[0]": "matchRegexp"
        },
        "x": 1,
        "id": 0,
        "is": [
          "strstr",
          "str_replace",
          "str_replace",
          "preg_match"
        ],
        "ms": {
          "file": {
            "size": 1018.0
          },
          "text": {
            "digit_ratio": 0.0,
            "space_count": 288.0,
            "total_lines": 43.0,
            "char_entropy": 4.5,
            "unique_chars": 60.0,
            "import_density": 9.3,
            "string_density": 0.33,
            "avg_line_length": 22.67,
            "max_line_length": 67.0,
            "empty_line_ratio": 0.07,
            "last_line_length": 2.0,
            "most_common_char": "e",
            "whitespace_ratio": 0.33,
            "most_common_ratio": 0.08,
            "identifier_density": 0.4,
            "line_length_stddev": 19.73,
            "normalized_import_count": 0.61,
            "normalized_string_count": 2.13,
            "repeated_char_sequences": 6.0,
            "max_inline_whitespace_run": 10.0,
            "normalized_function_count": 0.15,
            "imports_to_functions_ratio": 4.0,
            "strings_to_functions_ratio": 14.0,
            "normalized_unique_identifiers": 1.29,
            "identifiers_to_functions_ratio": 7.0
          },
          "imports": {
            "total": 4.0,
            "unique_modules": 3.0,
            "third_party_count": 4.0,
            "third_party_ratio": 1.0
          },
          "strings": {
            "total": 14.0,
            "avg_length": 1.57,
            "max_length": 2.0,
            "avg_entropy": 0.57,
            "total_bytes": 22.0,
            "entropy_stddev": 0.49
          },
          "comments": {
            "chars": 478.0,
            "lines": 14.0,
            "total": 17.0,
            "to_code_ratio": 0.48,
            "empty_comments": 3.0
          },
          "functions": {
            "total": 1.0,
            "avg_name_length": 11.0,
            "no_params_count": 1.0,
            "avg_length_lines": 21.0,
            "max_length_lines": 21.0,
            "min_length_lines": 21.0,
            "density_per_100_lines": 2.33,
            "code_in_functions_ratio": 0.49
          },
          "identifiers": {
            "total": 17.0,
            "avg_length": 7.57,
            "max_length": 11.0,
            "min_length": 4.0,
            "avg_entropy": 2.55,
            "reuse_ratio": 0.41,
            "unique_count": 7.0,
            "length_stddev": 2.77,
            "all_lowercase_ratio": 0.86
          }
        },
        "ss": [
          [
            647,
            "*"
          ],
          [
            648,
            "*"
          ],
          [
            816,
            "."
          ],
          [
            817,
            "."
          ],
          [
            821,
            "\\."
          ],
          [
            822,
            "\\."
          ],
          [
            852,
            "(^"
          ],
          [
            853,
            "(^"
          ],
          [
            871,
            "*"
          ],
          [
            872,
            "*"
          ],
          [
            876,
            ".*"
          ],
          [
            877,
            ".*"
          ],
          [
            893,
            "$)"
          ],
          [
            894,
            "$)"
          ]
        ],
        "sz": 1018,
        "ts": [
          {
            "a": "T1027",
            "c": 1.0,
            "d": "Comment-heavy source context",
            "e": [
              "comments.to_code_ratio = 0.48"
            ],
            "i": "objectives/anti-static/obfuscation/code-metrics/strings::comment-heavy-source",
            "l": 1,
            "m": "B0032"
          },
          {
            "a": "T1584",
            "c": 0.8999999761581421,
            "d": "Regex component marker",
            "e": [
              "strstr"
            ],
            "i": "objectives/command-and-control/dropper/delivery/seo-spam::php-seo-cloaking--rx-3",
            "l": 1
          },
          {
            "c": 0.8999999761581421,
            "d": "File has 30 or more lines",
            "e": [
              "text.total_lines = 43.00"
            ],
            "i": "metadata/file/text/metrics::file-has-30-plus-lines",
            "l": 1
          },
          {
            "a": "T1083",
            "c": 1.0,
            "d": "Iterate directory contents via functions in PHP",
            "e": [
              "glob("
            ],
            "i": "micro-behaviors/fs/directory/traverse::php-dir-traverse-fn",
            "l": 2
          }
        ],
        "sha": "1890ced34f09b6a1b0ae6019b06e461ef4983c218fe426ffa4f04113df7d7212",
        "path": "/data/samples/bad/projects/cross-platform/backdoor/phpsploit/src/api/php-functions/matchRegexp.php",
        "type": "php"
      }
    ],
    "tv": "bef72"
  }
}