Borehole · Project · free tier
deta/surf
Free reading: not for reliance
5e36a17 · 98 commits · 1,188 files
Read 2026-11-03

deta/surf: technical due diligence, read from its repository

What Borehole read in deta/surf's code and history at 5e36a17: 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.

DimensionRating
Architecture & Codebase — including AI provenanceadequate
Engineering Process & SDLC Maturityadequate
Product & Engineering Maturitystrong
Security & Reliability Posturestrong
Observability & Operationsnot assessable
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

adequate
01.2

The repository begins with most of itself already written

adequate

The first commit carries 164,321 lines — 98% of every line ever added. Whatever happened before that commit happened somewhere this repository cannot show you, so the early history is not available as evidence of how the system was designed.

Evidence
2025-10-22T06:53:45+00:00; +164,321 across 1180 files; subject: 'Initial commit'
01.6

app/src/renderer/Resource/components/TextResource.svelte is 2,830 lines, 49× this codebase's median file

adequate

The median source file here is 57 lines. 15 files exceed 1,000 lines, the largest being 2,830. 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.

Engineering Process & SDLC Maturity

adequate
02.3

Tests cover a thin slice of the codebase

adequate

15 test files against 929 source files (1.6%). This does not measure whether the tests are good, only whether enough of them exist for the codebase to be changed safely by someone who did not write it — which is exactly the situation after an acquisition.

Evidence
15 test files / 929 source files

Product & Engineering Maturity

strong

No finding.

Security & Reliability Posture

strong
05.27

The build runs third-party code it does not pin

adequate

3 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.

Evidence
.github/workflows/build_on_pr_label.yml:57 — action pinned by tag
.github/workflows/build_on_pr_label.yml:71 — action pinned by tag
05.21

2 shell commands built from strings

adequate

2 places run a command through a shell (`shell=True`, `os.system`, `exec` with a template) rather than passing arguments. Where any part comes from outside, it is command injection. Ask where each one's input comes from.

Evidence
app/src/main/surfBackend.ts:164 — command run through a shell
app/src/main/surfBackend.ts:166 — command run through a shell
05.26

69 locked dependencies have published vulnerabilities, 73 high or critical

adequate

69 of 2,043 locked dependencies match 168 published advisories in OSV, 73 of them rated high or critical. 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. None of the high or critical ones is in what the product ships: 2 apply only under a condition the advisory states, which a lockfile cannot settle. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.

Evidence
yarn.lock — tar 6.2.1: GHSA-23hp-3jrh-7fpw (critical), fixed in 7.5.19
yarn.lock — vitest 4.0.6: GHSA-5xrq-8626-4rwp (critical), fixed in 4.1.0
packages/backend/Cargo.lock — lopdf 0.32.0: GHSA-6fj4-rcr3-r7rr (high), fixed in 0.42.0
05.48

12 places insert HTML from a variable without sanitising it

adequate

12 places set HTML from a value that is neither a literal nor passed through a sanitiser. Where the value can come from a user, that is stored cross-site scripting, and it is the first thing a buyer's security review looks for in a frontend.

Observability & Operations

not assessable

Not rated: only 4 of 16 checks could reach a conclusion here; the rest do not apply to this repository or could not read it.

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on deta/surf: 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.