Read 2026-11-03
deepfence/threatmapper: technical due diligence, read from its repository
What Borehole read in deepfence/threatmapper's code and history at 657c7c1: 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 | adequate |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
What the repository says
.gitmodules:1: 8 submodule(s) this survey does not read: deepfence_agent/plugins/agent-plugins-grpc, deepfence_agent/plugins/package-scanner, deepfence_agent/plugins/SecretScanner
Architecture & Codebase — including AI provenance
adequateThe repository begins with most of itself already written
adequateThe first commit carries 1,663,624 lines — 41% 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.
| 2021-10-13T11:29:54+00:00; +1,663,624 across 6185 files; subject: 'initial commit' |
deepfence_utils/postgresql/postgresql-db/queries.sql.go is 3,302 lines, 36× this codebase's median file
adequateThe median source file here is 90 lines. 21 files exceed 1,000 lines, the largest being 3,302. 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.
deepfence_utils/postgresql/postgresql-db/queries.sql.go:1 — 3,302 lines (36× median) |
deepfence_server/handler/scan_reports.go:1 — 2,657 lines (29× median) |
deepfence_frontend/apps/dashboard/src/features/vulnerabilities/pages/VulnerabilityScanResults.tsx:1 — 2,402 lines (26× median) |
deepfence_frontend/apps/dashboard/src/features/malwares/pages/MalwareScanResults.tsx:1 — 2,136 lines (23× median) |
deepfence_frontend/apps/dashboard/src/features/secrets/pages/SecretScanResults.tsx:1 — 2,112 lines (23× median) |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
adequate3 pinned runtimes are past end of life
adequateThe code is pinned to Go 1.23 (end of life 2025-08-12); Python 3.6 (end of life 2021-12-23); Python 3.9 (end of life 2025-10-31). None of these receives security fixes any more; the first stopped on 2021-12-23. Moving off an unsupported runtime is rarely a one-line change, so a buyer should ask whether the upgrade is planned and what it touches.
haproxy/Dockerfile — Go 1.23, end of life 2025-08-12 |
ci-cd-integrations/github-actions/Dockerfile — Python 3.6, end of life 2021-12-23 |
deployment-scripts/sample-applications/flask-echo-server/Dockerfile — Python 3.9, end of life 2025-10-31 |
7% of bug fixes add or change a test
adequateOf 55 fixes in the last 24 months, 4 touched a test. A fix without the test that would have caught the bug can quietly come back, and the suite never learns from what went wrong.
| 4 of 55 |
Security & Reliability Posture
adequate1 credential-shaped string in the tree sit in tests, examples, documentation or local development settings
adequateStrings shaped like credentials appear only where fakes are usual: test fixtures, examples, documentation, placeholders and local stacks. They are almost always fakes. Ask someone to confirm that none of them works anywhere, because a real key in a development file is still a real key.
| private key block, where fakes are usual |
14 Dockerfiles run the application as root
adequateNo 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.
ci-cd-integrations/circleci/Dockerfile — runs as root |
ci-cd-integrations/github-actions/Dockerfile — runs as root |
ci-cd-integrations/gitlab/Dockerfile — runs as root |
ci-cd-integrations/jenkins/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate1 third-party CI action is referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day; 2 steps pipe 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.
ci-cd-integrations/github-actions/.github/workflows/malwares.yml:27 — action pinned by tag |
deepfence_worker/Dockerfile:49 — download piped into a shell |
5 outbound calls can wait forever
adequate5 HTTP calls use a client with no timeout (Python `requests` without `timeout=`, or Go's default client). When a dependency slows down, each one holds a worker until the connection gives up, and enough of them take the service down with the dependency.
deepfence_bootstrapper/supervisor/process.go:273 — outbound call without a timeout |
deepfence_bootstrapper/supervisor/process.go:299 — outbound call without a timeout |
deepfence_server/pkg/registry/ecr/client.go:60 — outbound call without a timeout |
56 locked dependencies have published vulnerabilities, 16 high or critical in what ships
adequate56 of 1,577 locked dependencies match 152 published advisories in OSV, 77 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. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.
deepfence_server/go.mod — golang.org/x/crypto v0.46.0: GHSA-5cgq-3rg8-m6cv (critical), fixed in 0.52.0 |
deepfence_agent/plugins/deepfence_shipper/go.mod — golang.org/x/crypto v0.45.0: GHSA-5cgq-3rg8-m6cv (critical), fixed in 0.52.0 |
deepfence_frontend/pnpm-lock.yaml — @storybook/core 8.6.15: GHSA-f2ph-cmg5-wxc8 (critical), fixed in 8.6.19; a development dependency |
10 workload settings give a container the host
adequate10 places in the deployment configuration run a container privileged or in the host's network, process or IPC namespace. A compromise of that container is a compromise of the machine, and most acquirers' security reviews block it. Node agents (network, storage, monitoring) are excluded.
deployment-scripts/bottlerocket/kubernetes-agent.yml:134 — privileged or host namespace |
deployment-scripts/bottlerocket/kubernetes-agent.yml:135 — privileged or host namespace |
deployment-scripts/bottlerocket/kubernetes-agent.yml:165 — privileged or host namespace |
The production build publishes source maps
adequateThe build configuration emits source maps for production, so the original source, with its comments and structure, is downloadable by every visitor. Upload them to an error tracker and keep them off the public server instead.
deepfence_frontend/packages/ui-components/vite.config.ts:48 — source maps in a production build |
Observability & Operations
adequateNo 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 |
Readiness and liveness probes are identical in 4 of 7 workloads
adequateBoth probes call the same endpoint. When a dependency slows down, the liveness probe fails with the readiness probe, so the platform restarts pods that only needed taking out of rotation, and a partial outage becomes a full one. Liveness should ask whether the process is alive; readiness whether it can serve.
deployment-scripts/helm-charts/deepfence-console/templates/database/fileserver/fileserver.yaml — same probe endpoint twice |
deployment-scripts/helm-charts/deepfence-console/templates/deepfence-router.yaml — same probe endpoint twice |
deployment-scripts/helm-charts/deepfence-console/templates/deepfence-server.yaml — same probe endpoint twice |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on deepfence/threatmapper: 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.