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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
strongastrbot/core/config/default.py is 5,040 lines, 30× this codebase's median file
adequateThe 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.
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
strongNo finding.
Product & Engineering Maturity
adequateFixes are 64% of recent work, up from 34%
adequateIn 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.
| 66%, 61%, 47%, 33%, 33%, 32%, 33%, 24% |
Security & Reliability Posture
adequate1 Dockerfile runs 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.
Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate9 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.
.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 |
10 SQL statements built from strings
adequate10 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.
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 |
1 of 2 Kubernetes workloads declare no resource limits
adequate1 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.
k8s/astrbot/02-deployment.yaml — workload with no limits |
34 locked dependencies have published vulnerabilities, 26 high or critical in what ships
adequate34 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.
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 |
22 places insert HTML from a variable without sanitising it
adequate22 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.
astrbot/core/utils/t2i/template/astrbot_powershell.html:186 — HTML from a variable |
astrbot/core/utils/t2i/template/astrbot_vitepress.html:432 — HTML from a variable |
astrbot/core/utils/t2i/template/base.html:456 — HTML from a variable |
13 advisories against this project in the last 24 months, 3 high or critical
adequateThe 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, …).
| 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
adequateNo structured logging library is in use
adequateNothing 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.
| searched 1,820 files for 10 structured logging libraries; 0 matched |
No 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 |
2 of 3 deployed images carry no version, or `latest`
adequate2 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.
k8s/astrbot_with_napcat/02-deployment.yaml:87 — image without a version |
k8s/astrbot_with_napcat/02-deployment.yaml:48 — image without a version |
2 of 2 deployments run a single replica
adequate2 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.
k8s/astrbot/02-deployment.yaml — replicas: 1 |
k8s/astrbot_with_napcat/02-deployment.yaml — replicas: 1 |
Fit with the Acquirer
not assessableNot 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.