{
  "ml": {
    "v": "4",
    "fs": [
      {
        "id": 0,
        "prob": 0.8675273060798645,
        "class": 0
      }
    ],
    "prob": 0.8675273,
    "class": 0,
    "models": [
      {
        "m": "az",
        "prob": 0.24305873,
        "class": 0
      },
      {
        "m": "az/scripts",
        "prob": 0.039523963,
        "class": 0
      },
      {
        "m": "az/javascript",
        "prob": 0.8675273,
        "class": 0
      }
    ],
    "version": "v16.16",
    "thresholds": [
      0.9961138,
      0.99909174
    ],
    "analyzed_at": "2026-05-08T23:28:03Z"
  },
  "path": "per.js",
  "raw": {
    "v": "4",
    "fs": [
      {
        "f": "O₄(C₂CaErS₃)H₂(UCm)Md₂(Pa)",
        "k": {
          "source.imports[0]": "document.write",
          "source.imports[1]": "escape",
          "source.strings[0]": " width=0 heigth=0 border=0\u003e",
          "source.strings[1]": "\" width=0 heigth=0 border=0\u003e",
          "source.strings[2]": "\u003cimg src=\"http://privshells.com/blabla/per.php?url=",
          "source.has_imports": true
        },
        "x": 2,
        "id": 0,
        "is": [
          "document.write",
          "escape"
        ],
        "ms": {
          "file": {
            "size": 124.0
          },
          "text": {
            "digit_ratio": 0.03,
            "space_count": 4.0,
            "total_lines": 1.0,
            "char_entropy": 4.89,
            "unique_chars": 36.0,
            "import_density": 200.0,
            "string_density": 4.0,
            "avg_line_length": 123.0,
            "max_line_length": 123.0,
            "last_line_length": 123.0,
            "most_common_char": "e",
            "whitespace_ratio": 0.04,
            "most_common_ratio": 0.07,
            "identifier_density": 3.0,
            "normalized_import_count": 2.0,
            "normalized_string_count": 4.0,
            "max_inline_whitespace_run": 1.0
          },
          "imports": {
            "total": 2.0,
            "unique_modules": 2.0,
            "third_party_count": 2.0,
            "third_party_ratio": 1.0
          },
          "strings": {
            "total": 4.0,
            "avg_length": 39.25,
            "max_length": 51.0,
            "avg_entropy": 4.04,
            "total_bytes": 157.0,
            "entropy_stddev": 0.32
          },
          "comments": {},
          "functions": {},
          "identifiers": {
            "total": 3.0,
            "avg_length": 7.33,
            "max_length": 8.0,
            "min_length": 6.0,
            "avg_entropy": 2.67,
            "reuse_ratio": 1.0,
            "unique_count": 3.0,
            "length_stddev": 0.94,
            "all_lowercase_ratio": 1.0
          }
        },
        "ss": [
          [
            15,
            "\u003cimg src=\"http://privshells.com/blabla/per.php?url="
          ],
          [
            16,
            "\u003cimg src=\"http://privshells.com/blabla/per.php?url="
          ],
          [
            91,
            "\" width=0 heigth=0 border=0\u003e"
          ],
          [
            92,
            " width=0 heigth=0 border=0\u003e"
          ]
        ],
        "sz": 124,
        "ts": [
          {
            "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
          },
          {
            "c": 0.8999999761581421,
            "d": "Tiny JavaScript loader file",
            "e": [
              "per.js"
            ],
            "i": "objectives/supply-chain/hidden-payload/encoding::tiny-loader-size",
            "l": 1
          },
          {
            "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
          },
          {
            "c": 0.800000011920929,
            "d": "Short sidecar-sized source",
            "e": [
              "text.total_lines = 1.00"
            ],
            "i": "metadata/package/config::short-sidecar-file",
            "l": 1
          },
          {
            "c": 1.0,
            "d": "JavaScript file basename",
            "e": [
              "per.js"
            ],
            "i": "metadata/lang/encoded/unicode-escape::javascript-or-dll-basename",
            "l": 2
          },
          {
            "c": 0.8999999761581421,
            "d": "Regex component marker",
            "e": [
              "location.href"
            ],
            "i": "micro-behaviors/communications/http/url/path::browser-location-host-ref--rx-1",
            "l": 1
          },
          {
            "a": "T1056",
            "c": 0.8999999761581421,
            "d": "Regex component marker",
            "e": [
              "document"
            ],
            "i": "objectives/credential-access/email/webmail/hidden-autofill::username-password-read--rx-5",
            "l": 1
          },
          {
            "c": 0.8999999761581421,
            "d": "Blocks or redirects targeted pages",
            "e": [
              "location.href"
            ],
            "i": "objectives/supply-chain/hidden-payload/extensions/browser::extension-page-block",
            "l": 1
          },
          {
            "c": 0.800000011920929,
            "d": "Small sidecar-sized file",
            "e": [
              "identifiers.total = 3.00"
            ],
            "i": "metadata/package/config::small-sidecar-file",
            "l": 1
          },
          {
            "c": 0.7799999713897705,
            "d": "Writes HTML into document",
            "e": [
              "document.write"
            ],
            "i": "micro-behaviors/ui/window/manage/dom::browser-document-write",
            "l": 3
          },
          {
            "a": "T1071",
            "c": 0.6000000238418579,
            "d": "URL with .php endpoint",
            "e": [
              "http://privshells.com/blabla/per.php"
            ],
            "i": "objectives/command-and-control/infrastructure/domain/tld::php-endpoint-url",
            "l": 1
          },
          {
            "a": "T1036.008",
            "c": 0.949999988079071,
            "d": "Filename has .js extension",
            "e": [
              "per.js"
            ],
            "i": "objectives/evasion/masquerade/extension/shebang::js-extension-name",
            "l": 1,
            "m": "F0008"
          },
          {
            "c": 0.8999999761581421,
            "d": "Tiny JavaScript sidecar loader",
            "e": [
              "text.total_lines = 1.00"
            ],
            "i": "objectives/supply-chain/hidden-payload/encoding::tiny-loader-lines",
            "l": 1
          },
          {
            "c": 1.0,
            "d": "DOM or CSS size property",
            "e": [
              "width"
            ],
            "i": "micro-behaviors/ui/window/manage/dom::size-prop",
            "l": 1
          },
          {
            "c": 0.699999988079071,
            "d": "Small file under 5KB",
            "e": [
              "per.js"
            ],
            "i": "objectives/supply-chain/metadata-anomaly/package/npm::small-file-5k",
            "l": 1
          },
          {
            "a": "T1071",
            "c": 0.75,
            "d": "URL ending in PHP endpoint",
            "e": [
              "http://privshells.com/blabla/per.php?"
            ],
            "i": "objectives/command-and-control/infrastructure/domain/heuristic::php-url",
            "l": 3,
            "m": "C0002"
          }
        ],
        "sha": "32c7fc0f4f7399d9e6bba4962df15525c2e48cbae75364c42cf046bb1d8c8a2c",
        "path": "/data/samples/bad/datasets/php-malware-analysis/webshells/95.10.253.55-2018-01-25a/per.js",
        "type": "javascript"
      }
    ],
    "tv": "bef72"
  }
}