Read 2026-11-03
v2fly/v2ray-core: technical due diligence, read from its repository
What Borehole read in v2fly/v2ray-core's code and history at 99957b4: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | strong |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
strongapp/webrtc/webrtc.go is 1,888 lines, 25× this codebase's median file
adequateThe median source file here is 73 lines. 4 files exceed 1,000 lines, the largest being 1,888. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.
app/webrtc/webrtc.go:1 — 1,888 lines (25× median) |
transport/internet/rrpit/rriptMonoDirectionSession/monoSession.go:1 — 1,597 lines (21× median) |
common/natTraversal/stun/natTypeTest.go:1 — 1,053 lines (14× median) |
transport/internet/rrpit/rrpitTransport/runtime.go:1 — 1,003 lines (13× median) |
Engineering Process & SDLC Maturity
strongAlmost no process scaffolding exists in the repository
adequateOf five ordinary markers — CI workflows, CODEOWNERS, a pull-request template, pre-commit hooks, contribution guidance — 1 is present: CI workflows. Branch protection itself is a GitHub setting rather than a file, so this is a reading of proxies and not of the rules themselves. What it does establish is that the process is not written down anywhere a new engineer would find it.
| 1 of 5 markers present across 1,485 tracked files |
Product & Engineering Maturity
strong90 files still carry code deprecated more than two years ago
adequate90 files were marked deprecated over two years ago and still are, the oldest since May 2018. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
proxy/freedom/config.pb.go — deprecated since May 2018 |
common/net/network.pb.go — deprecated since May 2018 |
proxy/dokodemo/config.pb.go — deprecated since May 2018 |
proxy/shadowsocks/config.pb.go — deprecated since May 2018 |
proxy/socks/config.pb.go — deprecated since May 2018 |
Security & Reliability Posture
strongThe build runs third-party code it does not pin
adequate5 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.
.github/workflows/linter.yml:32 — action pinned by tag |
.github/workflows/release.yml:200 — action pinned by tag |
1 locked dependency has published vulnerabilities
adequate1 of 100 locked dependencies match 1 published advisories in OSV. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.
go.mod — github.com/pion/dtls/v2 v2.2.12: GHSA-9f3f-wv7r-qc8r (moderate) |
Observability & Operations
adequateNo telemetry or error reporting is wired in anywhere
adequateNone of 1,355 readable files references an instrumentation, metrics or error-reporting library. If this system is in production, nobody learns that it broke from the system itself — they learn it from a customer. That is a reliability finding before it is an observability one.
| searched 1,355 tracked text files for 16 known instrumentation libraries; manifests for metrics, tracing and error-reporting families; locked dependencies for the packages that emit; 0 matched |
No structured logging library is in use
adequateNothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.
| searched 1,355 files for 10 structured logging libraries; 0 matched |
The service logs with print: 80 calls against 0 logger calls
adequate80 `print` or `console.log` calls in the service's code, and 0 calls through a logger. Printed lines carry no level and no context, cannot be switched off, and are hard to find again in production.
common/errors/errorgen/main.go:12 — print used for logging |
common/errors/errorgen/main.go:22 — print used for logging |
common/natTraversal/stun/stuncli/stuncli.go:185 — print used for logging |
One request cannot be followed through the logs
adequateNothing in the service carries a request or correlation id, and there is no tracing. When a customer reports a failure, the log lines that belong to their request cannot be picked out from everyone else's.
| no request id, correlation id or tracing found |
No error reporter is wired in
adequateNothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.
| no error reporter initialised |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on v2fly/v2ray-core: every dimension, the questions for the room, and the audit log.
Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.