Borehole · Project · free tier
aimhubio/aim
Free reading: not for reliance
6e098e3 · 2,265 commits · 2,092 files
Read 2026-11-03

aimhubio/aim: technical due diligence, read from its repository

What Borehole read in aimhubio/aim's code and history at 6e098e3: 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 provenancestrong
Engineering Process & SDLC Maturityadequate
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed

Architecture & Codebase — including AI provenance

strong
01.6

aim/ext/pynvml.py is 4,560 lines, 114× this codebase's median file

adequate

The median source file here is 40 lines. 10 files exceed 1,000 lines, the largest being 4,560. 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

101 test files against 1,676 source files (6.0%). 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
101 test files / 1,676 source files

Product & Engineering Maturity

adequate
04.17

Python 3.9 is past end of life

adequate

The code is pinned to Python 3.9 (end of life 2025-10-31). None of these receives security fixes any more; the first stopped on 2025-10-31. 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
docker/Dockerfile — Python 3.9, end of life 2025-10-31
04.19

5% of bug fixes add or change a test

adequate

Of 60 fixes in the last 24 months, 3 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
3 of 60
04.14

2 jobs are each done by more than one library

adequate

Within a single package: CSS-in-JS: stitches, styled-components; UI component kits: antd, material-ui. Each duplicate is bundle size, two ways of doing the same thing in one codebase, and two upgrade paths to maintain. It is usually the residue of a migration that stopped halfway.

Evidence
aim/web/ui/package.json — several libraries per job
04.62

Releases are cut from another branch than the one surveyed

adequate

The newest release, v4.0.3, is not on the branch this survey read; the newest release on it is v3.29.1. The shipped product may differ from what this report describes. Survey the release branch too.

Evidence
tag v4.0.3

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
docker/Dockerfile — runs as root
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
aim/cli/manager/manager.py:43 — outbound call without a timeout
aim/ext/notifier/slack_notifier.py:18 — outbound call without a timeout
aim/ext/notifier/workplace_notifier.py:20 — outbound call without a timeout
05.20

1 SQL statement built from strings

adequate

1 places in product code build SQL by formatting or joining strings rather than passing parameters. In each, what the code shows going in is a table or column name, a constant, or something the line does not show, not a request's value. Ask whether any value reaches these strings, rather than a parameter.

Evidence
aim/storage/structured/sql_engine/utils.py:49 — SQL built from a string
05.21

6 shell commands built from strings

adequate

6 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
aim/web/ui/tasks/cli/commands/createComponent.js:77 — command run through a shell
setup.py:115 — command run through a shell
setup.py:118 — command run through a shell
05.26

90 locked dependencies have published vulnerabilities, 84 high or critical in what ships

adequate

90 of 2,541 locked dependencies match 159 published advisories in OSV, 94 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
aim/web/ui/package-lock.json — @babel/traverse 7.20.1: GHSA-67hx-6x53-jw92 (critical), fixed in 7.23.2
aim/web/ui/package-lock.json — cipher-base 1.0.4: GHSA-cpq7-6gpm-g9rc (critical), fixed in 1.0.5
aim/web/ui/package-lock.json — immer 8.0.1: GHSA-33f9-j839-rf8h (critical), fixed in 9.0.6
05.48

5 places insert HTML from a variable without sanitising it

adequate

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

05.65

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

adequate

The newest was published on 2026-09-04. 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 3.29.1. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 38 records name aim with nothing tying them to this repository (CVE-2004-0279, CVE-2007-4901, CVE-2010-1374, …).

Evidence
2026-09-04: CVE-2026-85663 (critical): Aim 3.29.1 remote tracking server fails to authenticate requests and dispatches arbitrary methods through getattr without allowlist validation. Unauthenticated
2025-07-22: CVE-2025-51463 (high): Path Traversal in restore_run_backup() in AIM 3.28.0 allows remote attackers to write arbitrary files to the server's filesystem via a crafted backup tar file s
2025-07-22: CVE-2025-51464 (high): Cross-site Scripting (XSS) in aimhubio Aim 3.28.0 allows remote attackers to execute arbitrary JavaScript in victims browsers via malicious Python code submitte
2025-05-29: CVE-2025-5321 (moderate): A vulnerability classified as critical was found in aimhubio aim up to 3.29.1. This vulnerability affects the function RestrictedPythonQuery of the file /aim/st
2024-09-14: CVE-2024-8863 (moderate): A vulnerability, which was classified as problematic, was found in aimhubio aim up to 3.24. Affected is the function dangerouslySetInnerHTML of the file textbox

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 1,793 files for 10 structured logging libraries; 0 matched
06.8

One request cannot be followed through the logs

adequate

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

Evidence
no request id, correlation id or tracing found
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

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on aimhubio/aim: 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.