Borehole · Project · free tier
deepfence/threatmapper
Free reading: not for reliance
657c7c1 · 7,898 commits · 1,946 files
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.

DimensionRating
Architecture & Codebase — including AI provenanceadequate
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot 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

adequate
01.2

The repository begins with most of itself already written

adequate

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

Evidence
2021-10-13T11:29:54+00:00; +1,663,624 across 6185 files; subject: 'initial commit'
01.6

deepfence_utils/postgresql/postgresql-db/queries.sql.go is 3,302 lines, 36× this codebase's median file

adequate

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

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

adequate
04.17

3 pinned runtimes are past end of life

adequate

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

Evidence
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
04.19

7% of bug fixes add or change a test

adequate

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

Evidence
4 of 55

Security & Reliability Posture

adequate
05.1

1 credential-shaped string in the tree sit in tests, examples, documentation or local development settings

adequate

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

Evidence
private key block, where fakes are usual
05.6

14 Dockerfiles run 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.

05.27

The build runs third-party code it does not pin

adequate

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

Evidence
ci-cd-integrations/github-actions/.github/workflows/malwares.yml:27 — action pinned by tag
deepfence_worker/Dockerfile:49 — download piped into a shell
05.13

5 outbound calls can wait forever

adequate

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

Evidence
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
05.26

56 locked dependencies have published vulnerabilities, 16 high or critical in what ships

adequate

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

Evidence
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
05.45

10 workload settings give a container the host

adequate

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

Evidence
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
05.49

The production build publishes source maps

adequate

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

Evidence
deepfence_frontend/packages/ui-components/vite.config.ts:48 — source maps in a production build

Observability & Operations

adequate
06.9

No error reporter is wired in

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

Readiness and liveness probes are identical in 4 of 7 workloads

adequate

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

Fit with the Acquirer

not assessable

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