Skip to content

Commit 604dc82

Browse files
authored
Merge pull request #28 from sonukapoor/docs/network-privacy
docs: add network behavior and privacy documentation
2 parents 3462573 + ab779fd commit 604dc82

5 files changed

Lines changed: 109 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,22 @@ Its role is narrower and workflow-focused:
154154

155155
This section is here to make the scope clear. CVE Lite CLI aims to complement the broader security ecosystem by being a practical, low-friction option for JS/TS dependency checks close to release time.
156156

157+
## Network behavior and privacy
158+
159+
CVE Lite CLI is a local-first scanner. It parses dependency information locally, uses local caching to reduce repeated lookups, and in standard mode queries OSV for advisory data needed for matching.
160+
161+
It does not require a hosted account, cloud dashboard, or source code upload.
162+
163+
For the full explanation, see [Network Behavior and Privacy](./docs/network-and-privacy.md).
164+
165+
### Planned support for stricter environments
166+
167+
Support for stricter network-controlled environments is planned on the roadmap, including:
168+
169+
- offline scanning mode with zero outbound calls
170+
- custom advisory endpoint support for internal mirrors or proxies
171+
- local advisory database input for controlled or air-gapped workflows
172+
157173
## How it works
158174

159175
### Architectural Philosophy
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/docs/network-and-privacy.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Network Behavior and Privacy
2+
3+
CVE Lite CLI is a local-first dependency vulnerability scanner for JavaScript and TypeScript projects. This document explains what it does locally, when it makes external calls, and how support for stricter environments is planned.
4+
5+
## Overview
6+
7+
CVE Lite CLI scans project dependency data on the machine where you run it. It is intended for developers and teams who want a practical vulnerability check close to release time, without adopting a larger hosted security platform.
8+
9+
The tool does not require a hosted account or external dashboard.
10+
11+
## What happens locally
12+
13+
When you run CVE Lite CLI, the following work happens locally:
14+
15+
- reading supported lockfiles
16+
- extracting dependency package information
17+
- classifying findings as direct or transitive
18+
- prioritizing fix candidates
19+
- generating CLI, JSON, or SARIF output
20+
- using local cache data where available
21+
22+
This local-first design keeps the workflow simple and helps teams understand what the tool is doing.
23+
24+
## External calls in standard mode
25+
26+
In its standard mode, CVE Lite CLI queries OSV for advisory data used in vulnerability matching.
27+
28+
This means the scanner may make outbound network requests during a scan in order to retrieve vulnerability information for the dependencies it is checking.
29+
30+
## Current outbound destination
31+
32+
In standard mode, CVE Lite CLI retrieves advisory data from OSV over HTTPS.
33+
34+
Current base URL:
35+
- https://api.osv.dev/
36+
37+
This is the default public advisory service used by the tool today.
38+
39+
## What is not uploaded
40+
41+
CVE Lite CLI is not designed as a source-code upload service.
42+
43+
- application source code is not uploaded
44+
- the tool does not require a hosted dashboard
45+
- the tool does not require a user account
46+
47+
## Local cache behavior
48+
49+
CVE Lite CLI uses local caching to reduce repeated advisory lookups and improve scan speed.
50+
51+
This helps keep repeat scans fast and reduces unnecessary network activity.
52+
53+
## Why this documentation exists
54+
55+
Some teams, especially in enterprise, regulated, or restricted CI environments, need to understand exactly when a tool makes outbound calls.
56+
57+
This document exists to make that behavior explicit and reviewable.
58+
59+
## Planned support for stricter environments
60+
61+
CVE Lite CLI is being extended to better support environments with stricter network controls.
62+
63+
Planned capabilities include:
64+
65+
### Offline mode
66+
67+
A future offline mode is intended to allow scans with zero outbound network calls, using only locally available advisory data or cache content.
68+
69+
Example target workflow:
70+
71+
cve-lite scan --offline
72+
73+
### Custom advisory endpoint support
74+
75+
A future custom endpoint option is intended to allow organizations to route advisory lookups through an internal proxy or mirrored service.
76+
77+
Example target workflow:
78+
79+
cve-lite scan --osv-url https://security.company.internal/osv
80+
81+
### Local advisory database input
82+
83+
A future local advisory database option is intended to support controlled environments where advisory data is supplied from an approved internal source.
84+
85+
Example target workflow:
86+
87+
cve-lite scan --advisory-db ./internal-advisories.json
88+
89+
## Roadmap note
90+
91+
These stricter execution modes are planned so teams can adopt CVE Lite CLI even when direct outbound access to public services is limited or disallowed.
92+
93+
The goal is to preserve the same local-first developer experience while giving security-conscious organizations clearer deployment options.

0 commit comments

Comments
 (0)