youraitools-api / tree / aiax-src/pr-pkgguard-scan.json ยท raw (this view has old GitHub links rewritten for the mirror; raw is byte-exact)
{
 "x402Version": 2,
 "error": "Payment required",
 "resource": {
  "url": "https://api.youraitools.co/pkgguard/v1/scan",
  "description": "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.",
  "mimeType": "application/json",
  "serviceName": "PkgGuard by AgentGate",
  "tags": [
   "security",
   "dependencies",
   "vulnerability-scan",
   "supply-chain",
   "malware"
  ],
  "iconUrl": "https://agentgate-source.pages.dev/icons/pkgguard.png"
 },
 "accepts": [
  {
   "scheme": "exact",
   "network": "eip155:8453",
   "amount": "3000",
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "payTo": "0x3c1A1E01e790Cd326495631B3b38Bd7068F08d6F",
   "maxTimeoutSeconds": 120,
   "extra": {
    "name": "USD Coin",
    "version": "2"
   }
  }
 ],
 "extensions": {
  "bazaar": {
   "info": {
    "input": {
     "type": "http",
     "bodyType": "json",
     "body": {
      "manifest": "{\"name\":\"demo\",\"dependencies\":{\"lodash\":\"4.17.15\",\"flatmap-stream\":\"0.1.1\",\"express\":\"^4.18.2\"}}",
      "filename": "package.json"
     },
     "method": "POST"
    },
    "output": {
     "type": "json",
     "example": {
      "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"
      }
     }
    }
   },
   "schema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
     "input": {
      "type": "object",
      "properties": {
       "type": {
        "type": "string",
        "const": "http"
       },
       "method": {
        "type": "string",
        "enum": [
         "POST"
        ]
       },
       "bodyType": {
        "type": "string",
        "enum": [
         "json",
         "form-data",
         "text"
        ]
       },
       "body": {
        "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)"
         }
        }
       }
      },
      "required": [
       "type",
       "method",
       "bodyType",
       "body"
      ],
      "additionalProperties": false
     },
     "output": {
      "type": "object",
      "properties": {
       "type": {
        "type": "string"
       },
       "example": {
        "type": "object"
       }
      },
      "required": [
       "type"
      ]
     }
    },
    "required": [
     "input"
    ]
   }
  }
 }
}

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