{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "google-osv-scanner--scan-dependencies-offline-with-osv-scanner",
 "repo": "google/osv-scanner",
 "repo_url": "https://github.com/google/osv-scanner",
 "repo_slug": "google-osv-scanner",
 "title": "Scan dependencies without a network connection",
 "page_title": "How to scan dependencies without a network connection with Osv Scanner",
 "summary": "Download the vulnerability database once, then scan locally with no calls to OSV.dev.",
 "who": "An engineer on an air-gapped or privacy-sensitive build machine.",
 "problem": "Sending dependency lists to an external API is not always allowed.",
 "outcome": "A vulnerability scan that runs against a local database.",
 "steps": [
  "Install OSV-Scanner from the releases page",
  "Run `osv-scanner --offline --download-offline-databases ./path/to/your/dir` once with network access",
  "Rerun the same command later without a connection",
  "Review the findings"
 ],
 "agent_prompt": "Using google/osv-scanner, run `osv-scanner --offline --download-offline-databases ./path/to/your/dir` on <my project> and report the vulnerabilities found.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The database can also be downloaded manually per the README.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "go",
 "requirements": [
  "A prebuilt binary from the releases page, or Go to run go install",
  "A project directory with lockfiles or manifests, or a container image",
  "Network access to OSV.dev, unless you use offline mode"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/google-osv-scanner/scan-dependencies-offline-with-osv-scanner/",
 "md": "https://dedupedai.com/use-cases/google-osv-scanner/scan-dependencies-offline-with-osv-scanner/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/google-osv-scanner--scan-dependencies-offline-with-osv-scanner.json",
 "api_version": "v1"
}
