Read 2026-10-22
elastic/beats: technical due diligence, read from its repository
What Borehole read in elastic/beats's code and history at 35964a8: 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 | strong |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
LICENSE.txt:1: The licence is Elastic-2.0: source available, not open sourceLICENSE: Relicensed: MIT → GPL-2.0 (2014-03-03) → Apache-2.0 (2015-05-27)AGENTS.md:147: states a policy on AI-generated contributions
Architecture & Codebase — including AI provenance
adequatefilebeat/input/syslog/rfc5424_parser.go is 10,993 lines, 108× this codebase's median file
adequateThe median source file here is 101 lines. 23 files exceed 1,010 lines, the largest being 10,993. 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.
filebeat/input/syslog/rfc5424_parser.go:1 — 10,993 lines (108× median) |
x-pack/filebeat/processors/decode_cef/cef/parser_recover.go:1 — 4,846 lines (47× median) |
filebeat/input/syslog/rfc3164_parser.go:1 — 3,010 lines (29× median) |
x-pack/filebeat/input/cel/input.go:1 — 1,862 lines (18× median) |
metricbeat/module/kubernetes/util/kubernetes.go:1 — 1,689 lines (16× median) |
3 base images float: no version, or `latest`
adequate3 of 61 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.
metricbeat/module/nats/_meta/Dockerfile:6 — base image without a version |
x-pack/metricbeat/module/coredns/_meta/Dockerfile:6 — base image without a version |
x-pack/metricbeat/module/stan/_meta/Dockerfile:12 — base image without a version |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
adequate267 direct dependencies in a single manifest
adequatego.mod declares 267 direct dependencies. Each one is a maintenance obligation, a supply-chain surface and a potential licence question that transfers with the asset. The count says nothing about whether any given dependency was a good choice; it says how many such choices a buyer inherits.
go.mod — 267 declared |
metricbeat/module/kubernetes/_meta/terraform/eks/requirements.txt — 12 declared |
dev-tools/requirements.txt — 3 declared |
x-pack/osquerybeat/ext/osquery-extension/cmd/gentables/go.mod — 3 declared |
Python 3.9 is past end of life
adequateThe 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.
.python-version — Python 3.9, end of life 2025-10-31 |
16 files still carry code deprecated more than two years ago
adequate16 files were marked deprecated over two years ago and still are, the oldest since Jul 2020. A deprecation is a promise to remove. Ask what still depends on these, and whether removing them is scheduled.
filebeat/input/journald/input.go — deprecated since Jul 2020 |
x-pack/filebeat/input/o365audit/input.go — deprecated since Jul 2020 |
filebeat/input/winlog/input.go — deprecated since Jul 2020 |
filebeat/input/unix/input.go — deprecated since Jul 2020 |
x-pack/filebeat/input/cloudfoundry/input.go — deprecated since Jul 2020 |
Releases are cut from another branch than the one surveyed
adequateThe newest release, v9.5.5, is not on the branch this survey read; the newest release on it is v0.5.0. The shipped product may differ from what this report describes. Survey the release branch too.
| tag v9.5.5 |
Security & Reliability Posture
adequate26 credential-shaped strings 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.
| 5 cited: AWS access key, where fakes are usual |
45 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.
auditbeat/Dockerfile — runs as root |
dev-tools/packaging/templates/ironbank/packetbeat/Dockerfile — runs as root |
heartbeat/Dockerfile — runs as root |
metricbeat/Dockerfile — runs as root |
The build runs third-party code it does not pin
adequate42 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/backport-active.yml:26 — action pinned by tag |
.github/workflows/buildkite-test-flaky.yml:16 — action pinned by tag |
.buildkite/scripts/install_macos_tools.sh:86 — 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.
libbeat/dashboards/importer.go:282 — outbound call without a timeout |
metricbeat/module/uwsgi/status/status.go:77 — outbound call without a timeout |
x-pack/filebeat/input/cel/config.go:169 — outbound call without a timeout |
4 SQL statements built from strings
adequate4 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.
x-pack/metricbeat/module/mssql/transaction_log/transaction_log.go:127 — SQL built from a string |
x-pack/metricbeat/module/mssql/transaction_log/transaction_log.go:153 — SQL built from a string |
x-pack/osquerybeat/ext/osquery-extension/pkg/hooks/views.go:39 — SQL built from a string |
1 locked dependency has published vulnerabilities, 4 high or critical
adequate1 of 572 locked dependencies match 9 published advisories in OSV, 4 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.
go.mod — github.com/containerd/containerd/v2 v2.2.4: GHSA-33vj-92qq-66hc (high), fixed in 2.2.5 |
18 workload settings give a container the host
adequate18 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.
deploy/kubernetes/auditbeat-kubernetes.yaml:207 — privileged or host namespace |
deploy/kubernetes/auditbeat-kubernetes.yaml:208 — privileged or host namespace |
deploy/kubernetes/auditbeat/auditbeat-daemonset.yaml:20 — privileged or host namespace |
The licence is Elastic-2.0: source available, not open source
adequateLICENSE.txt grants Elastic-2.0: source available, not open source; offering it as a managed service is not allowed. The reading comes from the licence's own title and clauses. Whether the terms fit the buyer's intended use, and whether any paid licence transfers with the code, is a question for counsel and the licensor.
LICENSE.txt:1 — 13 lines, Elastic-2.0 |
Relicensed: MIT → GPL-2.0 (2014-03-03) → Apache-2.0 (2015-05-27)
adequateThe root licence changed 2 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.
5 advisories against this project in the last 24 months, 1 high or critical
adequateThe newest was published on 2026-03-19. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. GHSA-27qj-9gvp-8rh9 (moderate), GHSA-w2gr-585j-r428 (moderate) are fixed in the surveyed commit; which release carries them cannot be told from this history, which does not place the release users run. Answer lives in: the version you run. The record is incomplete: NVD: 3 records name beats with nothing tying them to this repository (CVE-2006-2537, CVE-2024-27867, CVE-2025-41739).
| 2026-03-19: GHSA-27qj-9gvp-8rh9 (moderate), fixed in 7.0.0-alpha2.0.20260126223743-dec1b31111ec: Packetbeat does not properly validate an array index in multiple protocol parser components |
| 2026-03-19: GHSA-5vrw-qjxw-89r5 (moderate), fixed in 7.0.0-alpha2.0.20260112100137-de072c4e371e: Metricbeat Allocates Memory with Excessive Size Value Leading to Denial of Service |
| 2026-01-13: GHSA-w2gr-585j-r428 (moderate), fixed in 7.0.0-alpha2.0.20251217054608-6e42552a23ce: Metricbeat affected by multiple denial of service vulnerabilities |
| 2025-12-19: GHSA-2mj3-6grc-px38 (moderate), fixed in 7.0.0-alpha2.0.20251204214633-dd3af18220bf: Filebeat Beats has Buffer Overflow via Malformed Syslog Message or Malicious Tokenizer Pattern in Dissect Configuration |
| 2025-12-19: GHSA-fj69-23m4-ccvv (high), fixed in 7.0.0-alpha2.0.20251209162832-28cfc80d2f4e: Elasticsearch Packetbeat has Excessive Allocation of Memory and CPU via Malicious IPv4 Fragments |
Observability & Operations
strongNo 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 |
7 of 17 deployed images carry no version, or `latest`
adequate7 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.
dev-tools/kubernetes/filebeat/manifest.debug.yaml:189 — image without a version |
dev-tools/kubernetes/filebeat/manifest.run.yaml:189 — image without a version |
dev-tools/kubernetes/heartbeat/manifest.debug.yaml:180 — image without a version |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on elastic/beats: 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.