{
  "ml": {
    "v": "4",
    "fs": [
      {
        "id": 0,
        "prob": 0.9997847676277161,
        "class": 2
      }
    ],
    "prob": 0.99978477,
    "class": 2,
    "models": [
      {
        "m": "az",
        "prob": 0.98072684,
        "class": 0
      },
      {
        "m": "az/scripts",
        "prob": 0.99945503,
        "class": 1
      },
      {
        "m": "az/php",
        "prob": 0.99978477,
        "class": 2
      }
    ],
    "version": "v16.16",
    "thresholds": [
      0.9961138,
      0.99909174
    ],
    "analyzed_at": "2026-05-09T06:19:08Z"
  },
  "path": "lock.php",
  "raw": {
    "v": "4",
    "fs": [
      {
        "f": "O₃(C₆DyI)H₅(CmCrF₄OsPo)",
        "k": {
          "source.imports[0]": "chmod",
          "source.imports[1]": "error_reporting",
          "source.imports[2]": "file_exists",
          "source.imports[3]": "file_get_contents",
          "source.imports[4]": "file_put_contents",
          "source.imports[5]": "hash",
          "source.imports[6]": "ignore_user_abort",
          "source.imports[7]": "set_time_limit",
          "source.imports[8]": "sleep",
          "source.imports[9]": "strtotime",
          "source.strings[0]": "-400 days",
          "source.strings[1]": "/index.php",
          "source.strings[2]": "DOCUMENT_ROOT",
          "source.has_imports": true,
          "source.imports[10]": "touch",
          "source.imports[11]": "unlink"
        },
        "x": 44,
        "id": 0,
        "is": [
          "error_reporting",
          "set_time_limit",
          "ignore_user_abort",
          "unlink",
          "file_get_contents",
          "hash",
          "file_exists",
          "file_put_contents",
          "touch",
          "strtotime",
          "chmod",
          "hash",
          "file_get_contents",
          "unlink",
          "file_put_contents",
          "touch",
          "strtotime",
          "chmod",
          "sleep"
        ],
        "ms": {
          "file": {
            "size": 621.0
          },
          "text": {
            "digit_ratio": 0.06,
            "space_count": 133.0,
            "total_lines": 24.0,
            "char_entropy": 4.88,
            "unique_chars": 62.0,
            "import_density": 79.17,
            "string_density": 0.5,
            "avg_line_length": 23.87,
            "max_line_length": 56.0,
            "last_line_length": 5.0,
            "most_common_char": "e",
            "whitespace_ratio": 0.29,
            "most_common_ratio": 0.05,
            "identifier_density": 1.63,
            "line_length_stddev": 14.32,
            "normalized_import_count": 3.88,
            "normalized_string_count": 2.45,
            "repeated_char_sequences": 4.0,
            "max_inline_whitespace_run": 1.0,
            "suspicious_identifier_ratio": 0.17,
            "normalized_unique_identifiers": 3.93
          },
          "imports": {
            "total": 19.0,
            "unique_modules": 12.0,
            "third_party_count": 19.0,
            "third_party_ratio": 1.0
          },
          "strings": {
            "total": 12.0,
            "avg_length": 8.17,
            "max_length": 13.0,
            "path_count": 2.0,
            "avg_entropy": 2.7,
            "total_bytes": 98.0,
            "entropy_stddev": 0.5
          },
          "comments": {},
          "functions": {},
          "identifiers": {
            "total": 39.0,
            "avg_length": 8.33,
            "max_length": 17.0,
            "min_length": 1.0,
            "avg_entropy": 2.1,
            "reuse_ratio": 0.46,
            "unique_count": 18.0,
            "length_stddev": 5.44,
            "sequential_names": 3.0,
            "single_char_count": 3.0,
            "single_char_ratio": 0.17,
            "all_lowercase_ratio": 0.83,
            "all_uppercase_ratio": 0.17,
            "double_underscore_count": 1.0,
            "underscore_prefix_count": 2.0
          }
        },
        "ss": [
          [
            114,
            "DOCUMENT_ROOT"
          ],
          [
            115,
            "DOCUMENT_ROOT"
          ],
          [
            133,
            "/index.php"
          ],
          [
            134,
            "/index.php"
          ],
          [
            187,
            "sha1"
          ],
          [
            188,
            "sha1"
          ],
          [
            302,
            "-400 days"
          ],
          [
            303,
            "-400 days"
          ],
          [
            376,
            "sha1"
          ],
          [
            377,
            "sha1"
          ],
          [
            517,
            "-400 days"
          ],
          [
            518,
            "-400 days"
          ]
        ],
        "sz": 621,
        "ts": [
          {
            "c": 0.8500000238418579,
            "d": "Ignores client abort (webshell indicator)",
            "e": [
              "ignore_user_abort"
            ],
            "i": "objectives/command-and-control/backdoor/webshell/session::ignore-abort",
            "l": 4
          },
          {
            "a": "T1505.003",
            "c": 0.8999999761581421,
            "d": "PHP source imports file_put_contents",
            "e": [
              "[chmod, error_reporting, file_exists, file_get_contents, file_put_contents, hash, ignore_user_abort, set_time_limit, sleep, strt"
            ],
            "i": "objectives/command-and-control/backdoor/webshell/stager::source-import-file-put-contents",
            "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": [
              "@chmod($c, 0444)",
              "@touch($c, strtotime(\"-400 days\"))",
              "@unlink($c)",
              "@unlink(__FILE__)",
              "@file_put_contents($c, $d)"
            ],
            "i": "micro-behaviors/os/stdio::error-suppress-prefix",
            "l": 3
          },
          {
            "c": 0.8500000238418579,
            "d": "Removes PHP script execution time limit",
            "e": [
              "set_time_limit(0)"
            ],
            "i": "objectives/command-and-control/backdoor/webshell/session::unlimited-runtime-call",
            "l": 4
          },
          {
            "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"
          },
          {
            "a": "T1059",
            "c": 0.800000011920929,
            "d": "Self-reference via __FILE__",
            "e": [
              "__FILE__"
            ],
            "i": "micro-behaviors/fs/read/self::self-file-reference",
            "l": 3
          },
          {
            "a": "T1105",
            "c": 0.800000011920929,
            "d": "Creates or overwrites a local file",
            "e": [
              "file_put_contents"
            ],
            "i": "micro-behaviors/fs/write/file/direct::file-put-contents",
            "l": 3,
            "m": "C0052"
          },
          {
            "c": 0.8999999761581421,
            "d": "Ignores client disconnects for background PHP execution",
            "e": [
              "ignore_user_abort(true)"
            ],
            "i": "objectives/command-and-control/backdoor/webshell/session::ignore-abort-true-call",
            "l": 4
          },
          {
            "c": 1.0,
            "d": "PHP unlink function symbol",
            "e": [
              "unlink"
            ],
            "i": "micro-behaviors/fs/delete/file::php-unlink",
            "l": 3
          },
          {
            "a": "T1222",
            "c": 0.699999988079071,
            "d": "Changes file permissions via chmod()",
            "e": [
              "chmod"
            ],
            "i": "micro-behaviors/fs/chmod/modify::chmod-call",
            "l": 3
          },
          {
            "a": "T1546",
            "c": 1.0,
            "d": "Writes data to a file via functions",
            "e": [
              "file_put_contents("
            ],
            "i": "micro-behaviors/fs/file/write/direct::php-file-write-func",
            "l": 2
          },
          {
            "a": "T1505.003",
            "c": 0.9399999976158142,
            "d": "Regex component marker",
            "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 dropper self-delete",
            "e": [
              "unlink(__FILE__)"
            ],
            "i": "objectives/command-and-control/backdoor/webshell/upload::php-dropper-self-delete",
            "l": 4,
            "m": "B0030"
          },
          {
            "c": 0.6499999761581421,
            "d": "Generic hash function usage",
            "e": [
              "hash"
            ],
            "i": "micro-behaviors/crypto/hash/digest::hash-generic",
            "l": 3,
            "m": "C0029"
          },
          {
            "a": "T1505.003",
            "c": 1.0,
            "d": "Inequality check in WordPress user list",
            "e": [
              "!="
            ],
            "i": "objectives/command-and-control/backdoor/webshell/hide::wp-user-hiding-not-trait",
            "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
          },
          {
            "a": "T1082",
            "c": 0.6000000238418579,
            "d": "Accesses DOCUMENT_ROOT variable",
            "e": [
              "$_SERVER['DOCUMENT_ROOT']"
            ],
            "i": "objectives/discovery/system/fingerprint/info::document-root-access",
            "l": 3,
            "m": "E1082"
          },
          {
            "c": 0.699999988079071,
            "d": "Remove execution time limit",
            "e": [
              "set_time_limit"
            ],
            "i": "micro-behaviors/process/control/signal::set-time-limit",
            "l": 3
          },
          {
            "c": 0.9200000166893005,
            "d": "Detects delete-and-recreate file pattern",
            "e": [
              "unlink",
              "file_put_contents"
            ],
            "i": "objectives/impact/infect/script::php-unlink-recreate-pattern",
            "l": 3
          }
        ],
        "sha": "82c1ff73733a8fea8cf6df08a40710cb43e6ff22b4e7cc2d4acc8c1d91a10ff9",
        "path": "/data/samples/bad/datasets/awesome-malware/PHP/lock.php",
        "type": "php"
      }
    ],
    "tv": "a9555"
  }
}