Borehole · Project · free tier
ossec/ossec-hids
Free reading: not for reliance
0696657 · 6,524 commits · 1,683 files
Read 2026-11-03

ossec/ossec-hids: technical due diligence, read from its repository

What Borehole read in ossec/ossec-hids's code and history at 0696657: 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 Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed
  • LICENSE: Relicensed: GPL-2.0 → GPL-with-exception (2012-08-13)

Architecture & Codebase — including AI provenance

strong
01.6

src/external/zlib-1.3.1/crc32.h is 9,447 lines, 66× this codebase's median file

adequate

The median source file here is 142 lines. 20 files exceed 1,420 lines, the largest being 9,447. 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
src/external/zlib-1.3.1/crc32.h:1 — 9,447 lines (66× median)
src/external/cJSON/cJSON.c:1 — 3,144 lines (22× median)
src/analysisd/rules.c:1 — 2,275 lines (16× median)
src/shared/file_op.c:1 — 2,173 lines (15× median)
src/external/zlib-1.3.1/deflate.c:1 — 2,140 lines (15× median)

Engineering Process & SDLC Maturity

strong
02.6

Almost no process scaffolding exists in the repository

adequate

Of five ordinary markers — CI workflows, CODEOWNERS, a pull-request template, pre-commit hooks, contribution guidance — 1 is present: CI workflows. Branch protection itself is a GitHub setting rather than a file, so this is a reading of proxies and not of the rules themselves. What it does establish is that the process is not written down anywhere a new engineer would find it.

Evidence
1 of 5 markers present across 1,683 tracked files

Product & Engineering Maturity

strong
04.62

Releases are cut from another branch than the one surveyed

adequate

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

Evidence
tag 4.4.1

Security & Reliability Posture

adequate
05.5

1 credential-shaped string exists in the history

adequate

Matches for AWS access key were committed at some point across 4,943 commits examined. Some of the files that held them are still in the working tree. What matters is whether each was rotated after it was committed. The code cannot tell whether any of them is live, and that decides whether this matters: none sits in production configuration, and none is in a format its provider keeps for live keys. Is any of these live? Show that each was rotated after it was committed, and when. Every match is in CI configuration, where the usual reason is a throwaway service container's credential. Worth confirming; not a leak on its own.

Evidence
AWS access key pattern added here
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
.oss-scanner/Dockerfile — runs as root
05.9

3 vendored components with no licence

adequate

Third-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.

Evidence
src/external/compat — 8 tracked files, no licence file
src/external/lua — 1 tracked files, no licence file
src/external/lua-5.4.7 — 75 tracked files, no licence file
05.60

Relicensed: GPL-2.0 → GPL-with-exception (2012-08-13)

adequate

The root licence changed 1 time(s). Code taken under earlier terms stays under them; check which terms any fork or customer relied on.

Evidence
LICENSE — GPL-2.0 from 2006-09-04
LICENSE — GPL-with-exception from 2012-08-13

Observability & Operations

adequate
06.1

No telemetry or error reporting is wired in anywhere

adequate

None of 1,161 readable files references an instrumentation, metrics or error-reporting library. If this system is in production, nobody learns that it broke from the system itself — they learn it from a customer. That is a reliability finding before it is an observability one.

Evidence
searched 1,161 tracked text files for 16 known instrumentation libraries; manifests for metrics, tracing and error-reporting families; locked dependencies for the packages that emit; 0 matched
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
C source is not searched: C programs log through printf-style calls unless they take a library, and none of the 10 searched for is referenced
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 ossec/ossec-hids: 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.