Borehole · Project · free tier
astrbotdevs/astrbot
Free reading: not for reliance
f926af9 · 5,495 commits · 1,926 files
Read 2026-11-03

astrbotdevs/astrbot: technical due diligence, read from its repository

What Borehole read in astrbotdevs/astrbot's code and history at f926af9: 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 Maturitystrong
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

strong
01.6

astrbot/core/config/default.py is 5,040 lines, 30× this codebase's median file

adequate

The median source file here is 168 lines. 17 files exceed 1,680 lines, the largest being 5,040. 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
astrbot/core/config/default.py:1 — 5,040 lines (30× median)
dashboard/src/components/chat/Chat.vue:1 — 2,945 lines (17× median)
dashboard/src/components/extension/SkillsSection.vue:1 — 2,895 lines (17× median)
astrbot/core/db/sqlite.py:1 — 2,747 lines (16× median)
dashboard/src/layouts/full/vertical-header/VerticalHeader.vue:1 — 2,716 lines (16× median)

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

adequate
04.20

Fixes are 64% of recent work, up from 34%

adequate

In the last two quarters 64% of commits were fixes, against 34% in the quarters before. Rising fix work usually means quality debt is coming due, and it takes time that new work would have had.

Evidence
66%, 61%, 47%, 33%, 33%, 32%, 33%, 24%

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

9 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; 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
.github/workflows/build-docs.yml:16 — action pinned by tag
.github/workflows/build-docs.yml:32 — action pinned by tag
.github/workflows/release.yml:99 — download piped into a shell
05.20

10 SQL statements built from strings

adequate

10 places in product code build SQL by formatting or joining strings rather than passing parameters. 3 of them put a value into the string; in the rest, what the code shows going in is a table or column name, a constant, or something the line does not show. Ask whether any value reaches these strings, rather than a parameter.

Evidence
astrbot/core/utils/trace_store.py:564 — SQL built from a string
astrbot/core/utils/trace_store.py:577 — SQL built from a string
astrbot/core/utils/trace_store.py:592 — SQL built from a string
05.34

1 of 2 Kubernetes workloads declare no resource limits

adequate

1 workload manifests set no CPU or memory limits. One pod that leaks memory or spins can starve everything else on its node, and the scheduler cannot plan capacity for what it cannot see.

Evidence
k8s/astrbot/02-deployment.yaml — workload with no limits
05.26

34 locked dependencies have published vulnerabilities, 26 high or critical in what ships

adequate

34 of 742 locked dependencies match 136 published advisories in OSV, 69 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
dashboard/pnpm-lock.yaml — handlebars 4.7.8: GHSA-2w6w-674q-4c4q (critical), fixed in 4.7.9; a development dependency
dashboard/pnpm-lock.yaml — tar 6.2.1: GHSA-23hp-3jrh-7fpw (critical), fixed in 7.5.19; a development dependency
dashboard/pnpm-lock.yaml — @intlify/core-base 11.2.8: GHSA-83rm-6c8r-g728 (high), fixed in 11.4.14
05.48

22 places insert HTML from a variable without sanitising it

adequate

22 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

13 advisories against this project in the last 24 months, 3 high or critical

adequate

The newest was published on 2026-07-27. 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 3 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 4.29.4. Answer lives in: the release you run, set against each fixed version. The record is incomplete: NVD: 14 records name astrbot with nothing tying them to this repository (CVE-2025-57697, CVE-2025-57698, CVE-2026-10210, …).

Evidence
2026-07-27: CVE-2026-17529 (low): A vulnerability was identified in AstrBotDevs AstrBot up to 4.25.5. Affected is an unknown function of the file astrbot/core/astr_main_agent.py. The manipulatio
2026-07-27: CVE-2026-17530 (low): A security flaw has been discovered in AstrBotDevs AstrBot up to 4.25.5. Affected by this vulnerability is the function _build_handoff_toolset of the file AstrB
2026-06-01: GHSA-r6vm-4xwg-w69h (low): AstrBot: Manipulation of astr_main_agent's session_id parameter leads to authorization bypass
2026-05-17: GHSA-f63h-wc26-pmvc (low), fixed in 4.23.6: AstrBot: File upload vulnerability in the function post_file of the file astrbot/dashboard/routes/chat.py
2026-05-01: GHSA-mq9q-25hm-g4gp (moderate): AstrBot Makes Use of Hard-coded Password

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,820 files for 10 structured logging libraries; 0 matched
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.18

2 of 3 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
k8s/astrbot_with_napcat/02-deployment.yaml:87 — image without a version
k8s/astrbot_with_napcat/02-deployment.yaml:48 — image without a version
06.33

2 of 2 deployments run a single replica

adequate

2 deployments set `replicas: 1`, and nothing (an autoscaler, a disruption budget) adds more. Every deploy and every node drain is downtime, and the availability the buyer inherits has a ceiling.

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on astrbotdevs/astrbot: 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.