Lafke

Privacy

What leaves your machine when you use Lafke, what does not, and how to control it.

Your source code stays on your machine

Lafke analyzes your source code locally. Your source code is never uploaded.

Lafke may send public dependency names and versions to third parties when it looks up vulnerabilities and package evidence. For npm capability and behavior scanning it may also download public package tarballs from the registry, and for PyPI it may query the Integrity API for public file provenance.

Network modes

You choose how much Lafke may contact.

Mode What it does
public-only The default. Queries only the public sources below, and only for artifacts from a known public registry.
offline Skips all remote lookups. --offline is the same. Remote evidence is then recorded as unknown.
allow-all Sends every dependency name and version to OSV and, for supported collectors, to registry evidence endpoints. Use it only when that disclosure is acceptable.

A policy file can set the same mode with network.mode.

What public-only contacts

  • OSV (api.osv.dev): a batch query by package name and version, and the advisory record of each advisory that matched.
  • The npm registry and Yarn’s default registry: package metadata and evidence.
  • deps.dev: only to date an npm release whose package document is too large to read, and only for packages from the public npm registry.
  • PyPI: the Integrity API for file provenance, and the JSON API for license, release date, and yanked status, for public PyPI artifacts.

Other ecosystems use their own public registries. Private registries and sources whose registry cannot be proven public are recorded in lafke.lock, but are not sent off your machine. Their vulnerability state is unknown, not trusted.

Lookups you opt into

Two audit flags contact more services, and only when you pass them.

  • --prioritize sends the CVE identifiers of advisories that OSV matched, never package names or versions, to OSV, CISA, and FIRST.
  • --scorecard and --min-scorecard send the ecosystem, package name, and version of packages from public registries to api.deps.dev, to read OpenSSF Scorecards.

Nothing from these lookups is written to lafke.lock.

Local cache

Responses from OSV, the registries, and the other lookups are kept for one hour in your user cache directory, readable only by you, so repeated runs do not ask again. They hold the same public data that was already sent, and never credentials: a request that carries Authorization, Proxy-Authorization, or Cookie is not cached.

Use --no-cache to skip the cache for one run, --cache-ttl to change how long it is used, and lafke cache clear to delete it.

Commands that contact services you name

A few commands contact services only when you pass explicit flags, and they require --network allow-all: live application checks (dast), cloud collection (cspm --aws-region and the Azure and GCP flags), container image scans (container), webhook notifications (watch --webhook-env), and publishing a fix (fix-pr --publish). They refuse to run offline.


The full details, command by command, are in the documentation and in docs/privacy.md.