{
  "ml": {
    "v": "4",
    "fs": [
      {
        "id": 0,
        "prob": 0.9999861717224121,
        "class": 2
      }
    ],
    "prob": 0.9999862,
    "class": 2,
    "models": [
      {
        "m": "az",
        "prob": 0.99838376,
        "class": 1
      },
      {
        "m": "az/scripts",
        "prob": 0.9996463,
        "class": 2
      },
      {
        "m": "az/php",
        "prob": 0.9999862,
        "class": 2
      }
    ],
    "version": "v16.16",
    "thresholds": [
      0.9961138,
      0.99909174
    ],
    "analyzed_at": "2026-05-09T00:41:21Z"
  },
  "path": "db.php",
  "raw": {
    "v": "4",
    "fs": [
      {
        "f": "O₂(C₃I)H₄(Cm₂FOsDb)MdTh",
        "k": {
          "source.imports[0]": "basename",
          "source.imports[1]": "chmod",
          "source.imports[2]": "copy",
          "source.imports[3]": "error_reporting",
          "source.imports[4]": "isset",
          "source.strings[0]": "#0x2525",
          "source.strings[1]": "\u003cform action=\"\" method=\"post\" enctype=\"multipart/form-data\" name=\"uploader\" id=\"uploader\"\u003e",
          "source.strings[2]": "\u003cinput type=\"file\" name=\"file\" size=\"30\"\u003e\u003cinput name=\"_upl\" type=\"submit\" id=\"_upl\" value=\"Upload\"\u003e\u003c/form\u003e",
          "source.strings[3]": "PHP_SELF",
          "source.strings[4]": "Upload",
          "source.strings[5]": "tmp_name",
          "source.has_imports": true
        },
        "x": 139,
        "id": 0,
        "is": [
          "error_reporting",
          "chmod",
          "basename",
          "isset",
          "copy"
        ],
        "ms": {
          "file": {
            "size": 439.0
          },
          "text": {
            "digit_ratio": 0.04,
            "space_count": 14.0,
            "total_lines": 1.0,
            "char_entropy": 5.37,
            "unique_chars": 64.0,
            "import_density": 500.0,
            "lines_over_200": 1.0,
            "string_density": 26.0,
            "avg_line_length": 439.0,
            "high_byte_ratio": 0.01,
            "max_line_length": 439.0,
            "non_ascii_ratio": 0.01,
            "last_line_length": 439.0,
            "long_token_count": 1.0,
            "most_common_char": "\"",
            "whitespace_ratio": 0.03,
            "most_common_ratio": 0.07,
            "identifier_density": 10.0,
            "normalized_import_count": 5.0,
            "normalized_string_count": 26.0,
            "max_inline_whitespace_run": 1.0
          },
          "imports": {
            "total": 5.0,
            "unique_modules": 5.0,
            "third_party_count": 5.0,
            "third_party_ratio": 1.0
          },
          "strings": {
            "total": 26.0,
            "avg_length": 18.77,
            "max_length": 106.0,
            "avg_entropy": 2.08,
            "total_bytes": 488.0,
            "entropy_stddev": 1.37
          },
          "comments": {},
          "functions": {},
          "identifiers": {
            "total": 10.0,
            "avg_length": 6.56,
            "max_length": 15.0,
            "min_length": 4.0,
            "avg_entropy": 2.31,
            "reuse_ratio": 0.9,
            "unique_count": 9.0,
            "length_stddev": 3.24,
            "all_lowercase_ratio": 0.56,
            "all_uppercase_ratio": 0.44,
            "underscore_prefix_count": 4.0
          }
        },
        "ss": [
          [
            52,
            "PHP_SELF"
          ],
          [
            53,
            "PHP_SELF"
          ],
          [
            77,
            "#0x2525"
          ],
          [
            78,
            "#0x2525"
          ],
          [
            103,
            "u"
          ],
          [
            104,
            "u"
          ],
          [
            114,
            "\u003cform action=\"\" method=\"post\" enctype=\"multipart/form-data\" name=\"uploader\" id=\"uploader\"\u003e"
          ],
          [
            115,
            "\u003cform action=\"\" method=\"post\" enctype=\"multipart/form-data\" name=\"uploader\" id=\"uploader\"\u003e"
          ],
          [
            211,
            "\u003cinput type=\"file\" name=\"file\" size=\"30\"\u003e\u003cinput name=\"_upl\" type=\"submit\" id=\"_upl\" value=\"Upload\"\u003e\u003c/form\u003e"
          ],
          [
            212,
            "\u003cinput type=\"file\" name=\"file\" size=\"30\"\u003e\u003cinput name=\"_upl\" type=\"submit\" id=\"_upl\" value=\"Upload\"\u003e\u003c/form\u003e"
          ],
          [
            330,
            "_upl"
          ],
          [
            331,
            "_upl"
          ],
          [
            339,
            "Upload"
          ],
          [
            340,
            "Upload"
          ],
          [
            366,
            "file"
          ],
          [
            367,
            "file"
          ],
          [
            374,
            "tmp_name"
          ],
          [
            375,
            "tmp_name"
          ],
          [
            394,
            "file"
          ],
          [
            395,
            "file"
          ],
          [
            402,
            "name"
          ],
          [
            403,
            "name"
          ],
          [
            416,
            "S"
          ],
          [
            417,
            "S"
          ],
          [
            430,
            "F"
          ],
          [
            431,
            "F"
          ]
        ],
        "sz": 439,
        "ts": [
          {
            "c": 0.949999988079071,
            "d": "File is a one-liner",
            "e": [
              "text.total_lines = 1.00"
            ],
            "i": "metadata/file/text/metrics::file-one-liner",
            "l": 1
          },
          {
            "a": "T1105",
            "c": 0.8500000238418579,
            "d": "File upload access ($_FILES)",
            "e": [
              "$_FILES"
            ],
            "i": "micro-behaviors/communications/http/request/params::files",
            "l": 3
          },
          {
            "a": "T1071.001",
            "c": 0.6000000238418579,
            "d": "enctype attribute",
            "e": [
              "enctype="
            ],
            "i": "micro-behaviors/communications/http/post::enctype-attr",
            "l": 3,
            "m": "C0002"
          },
          {
            "c": 0.8600000143051147,
            "d": "Regex component marker",
            "e": [
              "method="
            ],
            "i": "objectives/command-and-control/backdoor/webshell/ui::self-named-get-form--rx-3",
            "l": 1,
            "m": "B0030"
          },
          {
            "a": "T1505.003",
            "c": 0.8500000238418579,
            "d": "PHP request superglobal access",
            "e": [
              "$_POST"
            ],
            "i": "objectives/command-and-control/backdoor/webshell/upload::php-request-variadic-function-call",
            "l": 3,
            "m": "B0030"
          },
          {
            "c": 0.800000011920929,
            "d": "Detects PHP copy file recreation call",
            "e": [
              "copy"
            ],
            "i": "objectives/impact/infect/script::php-copy-call",
            "l": 1
          },
          {
            "a": "T1505.003",
            "c": 0.4000000059604645,
            "d": "PHP $_GET parameter access",
            "e": [
              "$_GET["
            ],
            "i": "objectives/command-and-control/backdoor/webshell/request::php-get",
            "l": 1,
            "m": "B0030"
          },
          {
            "a": "T1059",
            "c": 0.8500000238418579,
            "d": "HTTP POST parameter access ($_POST)",
            "e": [
              "$_POST"
            ],
            "i": "micro-behaviors/communications/http/request/params::post-dup",
            "l": 3
          },
          {
            "a": "T1059",
            "c": 0.8500000238418579,
            "d": "HTTP GET parameter access ($_GET)",
            "e": [
              "$_GET"
            ],
            "i": "micro-behaviors/communications/http/request/params::get-dup",
            "l": 3
          },
          {
            "c": 0.8600000143051147,
            "d": "Regex component marker",
            "e": [
              "$_SERVER["
            ],
            "i": "objectives/command-and-control/backdoor/webshell/ui::self-named-get-form--rx-4",
            "l": 1,
            "m": "B0030"
          },
          {
            "c": 0.8600000143051147,
            "d": "Regex component marker",
            "e": [
              "basename($_SERVER["
            ],
            "i": "objectives/command-and-control/backdoor/webshell/ui::self-named-get-form--rx-1",
            "l": 1,
            "m": "B0030"
          },
          {
            "c": 0.800000011920929,
            "d": "Very short file (under 12 lines)",
            "e": [
              "text.total_lines = 1.00"
            ],
            "i": "metadata/file/text/metrics::file-under-12-lines",
            "l": 1
          },
          {
            "a": "T1505.003",
            "d": "PHP open tag",
            "e": [
              "\u003c?php"
            ],
            "i": "objectives/command-and-control/backdoor/webshell/request::php-tag",
            "l": 1,
            "m": "B0030"
          },
          {
            "c": 0.699999988079071,
            "d": "PHP error suppression operator usage",
            "e": [
              "@copy($_FILES['file']['tmp_name'],$_FILES['file']['name'])"
            ],
            "i": "micro-behaviors/os/stdio::error-suppress-prefix",
            "l": 3
          },
          {
            "c": 0.8600000143051147,
            "d": "Regex component marker",
            "e": [
              "PHP_SELF"
            ],
            "i": "objectives/command-and-control/backdoor/webshell/ui::self-named-get-form--rx-2",
            "l": 1,
            "m": "B0030"
          },
          {
            "a": "T1222",
            "c": 0.699999988079071,
            "d": "Changes file permissions via chmod()",
            "e": [
              "chmod"
            ],
            "i": "micro-behaviors/fs/chmod/modify::chmod-call",
            "l": 3
          },
          {
            "c": 0.949999988079071,
            "d": "Disables error reporting (error_reporting(0))",
            "e": [
              "error_reporting(0)"
            ],
            "i": "micro-behaviors/os/stdio::error-reporting-off",
            "l": 3
          },
          {
            "c": 0.8399999737739563,
            "d": "Regex component marker",
            "e": [
              "Upload",
              "\u003cform action=\"\" method=\"post\" enctype=\"multipart/form-data\" name=\"uploader\" id=\"uploader\"\u003e",
              "\u003cinput type=\"file\" name=\"file\" size=\"30\"\u003e\u003cinput name=\"_upl\" type=\"submit\" id=\"_upl\" value=\"Upload\"\u003e\u003c/form\u003e"
            ],
            "i": "micro-behaviors/data/text/llm/action::llm-send-action--rx-11",
            "l": 1
          },
          {
            "a": "T1505.003",
            "c": 0.4000000059604645,
            "d": "PHP $_POST parameter access",
            "e": [
              "$_POST["
            ],
            "i": "objectives/command-and-control/backdoor/webshell/request::php-post",
            "l": 1,
            "m": "B0030"
          },
          {
            "c": 0.75,
            "d": "Generic $_SERVER superglobal access",
            "e": [
              "$_SERVER"
            ],
            "i": "micro-behaviors/communications/http/request/params::server-dup",
            "l": 3
          },
          {
            "c": 0.699999988079071,
            "d": "AJAX request handler pattern",
            "e": [
              "$_POST['_upl']",
              "$_GET[\"u\"]"
            ],
            "i": "objectives/command-and-control/backdoor/webshell/ui::ajax-handler",
            "l": 4,
            "m": "B0030"
          },
          {
            "a": "T1071.001",
            "c": 0.6000000238418579,
            "d": "multipart/form-data content type",
            "e": [
              "multipart/form-data"
            ],
            "i": "micro-behaviors/communications/http/post::multipart-form",
            "l": 1,
            "m": "C0002"
          },
          {
            "c": 0.8999999761581421,
            "d": "PHP webshell which only writes an uploaded file to disk",
            "e": [
              "_POST[",
              "copy",
              "_GET[",
              "\"Upload\"",
              "\u003c?",
              "\u003c?php"
            ],
            "i": "third_party/SigBase/WEBSHELL/PHP/Writer",
            "l": 5
          }
        ],
        "sha": "5859d9193cf3c6661036155add42ce6811e9c710fb1e6aba42776913b6c323ac",
        "path": "db.php",
        "type": "php"
      }
    ],
    "tv": "bef72"
  }
}