youraitools-api / tree / public/aiax/sections/pkgguard_scan.json ยท raw (this view has old GitHub links rewritten for the mirror; raw is byte-exact)
{
 "aiax_version": "0.1",
 "section_id": "pkgguard_scan",
 "purpose": "PkgGuard: Dependency security scan for agents and CI: send a package.json, lockfile, requirements.txt, go.mod, Cargo.lock, poetry.lock or composer.lock (or a package list, up to 500). Returns known vulnerabilities (CVE/GHSA ids, severity, CVSS, fixed-in versions) and confirmed-malicious packages per dependency, from OSV.dev.",
 "inputs": {
  "properties": {
   "manifest": {
    "type": "string",
    "description": "Manifest or lockfile contents (package.json, package-lock.json, requirements.txt, Pipfile.lock, poetry.lock, go.mod, Cargo.lock, composer.lock)"
   },
   "filename": {
    "type": "string",
    "description": "Optional file name, helps type detection"
   },
   "packages": {
    "type": "array",
    "items": {
     "type": "object"
    },
    "description": "Alternative to manifest: [{ecosystem, name, version}], up to 500"
   },
   "include_dev": {
    "type": "boolean",
    "description": "Include devDependencies (default true)"
   }
  },
  "type": "object"
 },
 "outputs": {
  "type": "object",
  "properties": {
   "tier": {
    "type": "string"
   },
   "manifest_type": {
    "type": "string"
   },
   "package_count": {
    "type": "integer"
   },
   "scanned_count": {
    "type": "integer"
   },
   "unpinned_count": {
    "type": "integer"
   },
   "vulnerable_count": {
    "type": "integer"
   },
   "malicious_count": {
    "type": "integer"
   },
   "advisory_count": {
    "type": "integer"
   },
   "verdict": {
    "type": "string"
   },
   "highest_severity": {
    "type": "string"
   },
   "by_severity": {
    "type": "object",
    "properties": {
     "CRITICAL": {
      "type": "integer"
     },
     "HIGH": {
      "type": "integer"
     },
     "MEDIUM": {
      "type": "integer"
     },
     "LOW": {
      "type": "integer"
     },
     "UNKNOWN": {
      "type": "integer"
     }
    }
   },
   "packages": {
    "type": "array",
    "items": {
     "type": "object",
     "properties": {
      "ecosystem": {
       "type": "string"
      },
      "name": {
       "type": "string"
      },
      "version": {
       "type": "string"
      },
      "version_source": {
       "type": "string"
      },
      "malicious": {
       "type": "boolean"
      },
      "highest_severity": {
       "type": "string"
      },
      "vuln_count": {
       "type": "integer"
      },
      "vulns": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string"
         },
         "malicious": {
          "type": "boolean"
         },
         "severity": {
          "type": "string"
         },
         "summary": {
          "type": "string"
         },
         "fixed_in": {
          "type": "array",
          "items": {}
         },
         "url": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   },
   "range_note": {
    "type": "string"
   },
   "source": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string"
     }
    }
   }
  }
 },
 "pricing": {
  "model": "per_call",
  "amount": "0.003",
  "currency": "USDC",
  "rail": "x402"
 },
 "examples": [
  {
   "description": "POST /pkgguard/v1/scan, paid over x402 (USDC on Base); an unpaid call answers 402 with the terms.",
   "request": {
    "method": "POST",
    "url": "https://api.youraitools.co/pkgguard/v1/scan",
    "body": {
     "manifest": "{\"name\":\"demo\",\"dependencies\":{\"lodash\":\"4.17.15\",\"flatmap-stream\":\"0.1.1\",\"express\":\"^4.18.2\"}}",
     "filename": "package.json"
    }
   },
   "response": {
    "tier": "full",
    "manifest_type": "package.json",
    "package_count": 3,
    "scanned_count": 3,
    "unpinned_count": 0,
    "vulnerable_count": 2,
    "malicious_count": 1,
    "advisory_count": 9,
    "verdict": "malicious",
    "highest_severity": "CRITICAL",
    "by_severity": {
     "CRITICAL": 3,
     "HIGH": 3,
     "MEDIUM": 3,
     "LOW": 0,
     "UNKNOWN": 0
    },
    "packages": [
     {
      "ecosystem": "npm",
      "name": "flatmap-stream",
      "version": "0.1.1",
      "version_source": "exact",
      "malicious": true,
      "highest_severity": "CRITICAL",
      "vuln_count": 3,
      "vulns": [
       {
        "id": "MAL-2025-20690",
        "malicious": true,
        "severity": "CRITICAL",
        "summary": "Malicious code in flatmap-stream (npm)",
        "fixed_in": [],
        "url": "https://osv.dev/vulnerability/MAL-2025-20690"
       }
      ]
     }
    ],
    "range_note": "For version ranges (e.g. ^4.17.0) the lowest allowed version was scanned.",
    "source": {
     "name": "OSV.dev"
    }
   }
  }
 ],
 "pact_mandate_template": null,
 "extensions": {
  "youraitools": {
   "endpoint": "https://api.youraitools.co/pkgguard/v1/scan",
   "network": "eip155:8453",
   "x402_versions": [
    2,
    1
   ],
   "mcp": "https://api.youraitools.co/pkgguard/mcp",
   "openapi": "https://api.youraitools.co/pkgguard/openapi.json"
  }
 }
}

agentgate-source: code mirror on Cloudflare Pages. All repos