Borehole · Project · free tier
hkuds/deeptutor
Free reading: not for reliance
f7aed07 · 3,512 commits · 4,471 files
Read 2026-11-03

hkuds/deeptutor: technical due diligence, read from its repository

What Borehole read in hkuds/deeptutor's code and history at f7aed07: 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 Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • LICENSE: Relicensed: AGPL-3.0 → Apache-2.0 (2026-04-04)

Architecture & Codebase — including AI provenance

adequate
01.6

deeptutor/api/routers/knowledge.py is 5,227 lines, 39× this codebase's median file

adequate

The median source file here is 133 lines. 50 files exceed 1,330 lines, the largest being 5,227. 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.

Evidence
deeptutor/api/routers/knowledge.py:1 — 5,227 lines (39× median)
deeptutor/services/session/sqlite_store.py:1 — 4,863 lines (36× median)
web/features/chat/ChatStateAdapter.tsx:1 — 4,355 lines (32× median)
deeptutor/capabilities/mastery/tools.py:1 — 3,862 lines (29× median)
deeptutor/learning/service.py:1 — 3,359 lines (25× median)
01.25

4 base images float: no version, or `latest`

adequate

4 of 9 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.

Evidence
Dockerfile:415 — base image without a version
Dockerfile:416 — base image without a version
Dockerfile:483 — base image without a version

Engineering Process & SDLC Maturity

adequate
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (web/playwright.config.ts). A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.

Evidence
web/playwright.config.ts:13 — test retry
02.24

6% of recent commits change more than 2,000 lines

adequate

128 of 2175 commits in the last 24 months changed over 2,000 lines of code, not counting reformatting, renames, vendored or generated code. A change that size is rarely reviewed line by line. Ask how they were reviewed, and what made them that large.

Evidence
128 commits over 2,000 lines

Product & Engineering Maturity

strong

No finding.

Security & Reliability Posture

adequate
05.6

1 Dockerfile runs the application as root

adequate

No USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.

Evidence
Dockerfile — runs as root
05.27

The build runs third-party code it does not pin

adequate

7 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; 1 step pipes a download straight into a shell. 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/desktop-release.yml:127 — action pinned by tag
.github/workflows/docker-release.yml:73 — action pinned by tag
Dockerfile:92 — download piped into a shell
05.22

2 deserialisers that can run code

adequate

2 places read data with a deserialiser that executes what it reads (pickle). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.

Evidence
deeptutor/runtime/isolated_worker.py:87 — code-executing deserialiser
deeptutor/runtime/worker_process.py:53 — code-executing deserialiser
05.26

14 locked dependencies have published vulnerabilities, 35 high or critical in what ships

adequate

14 of 567 locked dependencies match 81 published advisories in OSV, 35 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.

Evidence
web/package-lock.json — next 16.2.3: GHSA-2464-fhr4-w9xw (critical), fixed in 16.4.1
web/package-lock.json — brace-expansion 1.1.14: GHSA-3jxr-9vmj-r5cp (high), fixed in 1.1.16
web/package-lock.json — brace-expansion 2.1.1: GHSA-3jxr-9vmj-r5cp (high), fixed in 2.1.2
05.48

4 places insert HTML from a variable without sanitising it

adequate

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

Evidence
web/components/Mermaid.tsx:176 — HTML from a variable
web/components/ThemeScript.tsx:59 — HTML from a variable
web/components/partners/WeixinQrLogin.tsx:142 — HTML from a variable
05.9

2 vendored components with no licence

adequate

Third-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.

Evidence
deeptutor/services/cli_apps/vendor/build_snapshot.py — 1 tracked files, no licence file
deeptutor/services/mcp/catalog/vendor/curated.json — 1 tracked files, no licence file
05.60

Relicensed: AGPL-3.0 → Apache-2.0 (2026-04-04)

adequate

The root licence changed 1 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.

Evidence
LICENSE — AGPL-3.0 from 2025-12-28
LICENSE — Apache-2.0 from 2026-04-04
05.65

7 advisories against this project in the last 24 months, 6 high or critical

adequate

The newest was published on 2026-10-01. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 6 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 1.7.1. Answer lives in: the release you run, set against each fixed version.

Evidence
2026-10-01: CVE-2026-51876 (critical): DeepTutor 1.4.0 contains an authorization bypass vulnerability in the book confirmation flow. An unauthenticated or unauthorized caller can reuse a publicly exp
2026-10-01: CVE-2026-51878 (moderate): deeptutor 1.4.0 contains an authorization bypass through a user-controlled object identifier in TurnRuntimeManager.regenerate_last_turn. A remote caller can enu
2026-10-01: CVE-2026-51879 (critical): deeptutor 1.4.0 contains an authorization bypass through a user-controlled object identifier in TutorBotManager.write_bot_file. A remote caller can enumerate bo
2026-10-01: CVE-2026-51880 (critical): deeptutor 1.4.0 contains a path traversal issue in EditFileTool.execute. Through the live tutorbot WebSocket interface, a remote caller can induce the tool laye
2026-10-01: CVE-2026-51881 (critical): deeptutor 1.4.0 contains code injection in ExecTool.execute. Through the live tutorbot WebSocket interface, a remote caller can induce the tool layer to execute

Observability & Operations

adequate
06.2

No structured logging library is in use

adequate

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

Evidence
searched 4,238 files for 10 structured logging libraries; 0 matched
06.9

An error reporter is installed but never initialised

adequate

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

Evidence
no error reporter initialised
06.18

2 of 4 deployed images carry no version, or `latest`

adequate

2 images in the deployment configuration are named without a version or as `latest`. A redeploy can change the software without a commit, a rollback has nothing to roll back to, and nobody can say from the repository what is running.

Evidence
docker-compose.yml:51 — image without a version
docker-compose.ghcr.yml:60 — image without a version

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on hkuds/deeptutor: 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.