Skip to content
Lab Project · Infrastructure Security
Ref: YLG-AUD-2026-084 · Distribution: Public excerpt

Container Environment Baseline & CIS-Aligned Audit

A read-only baseline of 13 CIS-aligned controls plus one connectivity check, run against a hardened reference container and a deliberately weak companion environment — with findings, remediation and reproducible evidence.

Baseline Controls
9/13
CIS-aligned PASS · 1 open finding · 3 N/A · connectivity PASS
Weak-Env Failures
6
Caught across two deliberately weak containers
Control Coverage
13 + 1
CIS-aligned controls + one connectivity check
Execution Footprint
Zero-Agent
Stateless POSIX CLI · no agents installed
01 // CONTEXT

Operational profile and challenge

Target Infrastructure
Linux host · Docker 29.9.3
Hardened reference container + deliberately weak companion
Engagement Horizon
Fixed-scope baseline audit
13 CIS-aligned controls + one connectivity check
Primary Risk Area
Privilege escalation exposure
Unchecked socket mounts, remote API and default capabilities

The measurement problem

Container hardening is easy to claim and hard to evidence. A one-off shell check or a semi-annual spreadsheet cannot show whether a running host still matches its intended configuration, and ad-hoc checks rarely survive from one environment to the next.

This lab treats the audit as a measurement. The same read-only harness runs against a hardened reference container and a deliberately weak companion, so every control reports PASS, FAIL, WARN or N/A with the evidence string that produced the state.

What was built

I wrote a standalone, zero-dependency validation harness for the CIS-aligned control set. It is POSIX shell and runs entirely out-of-band: no daemon agents, no sidecars, no elevated network permissions.

The harness produces deterministic, machine-readable JSON plus a plain-language terminal summary, and it is read-only — it inspects the host and every running container but never writes to them. The controls are grouped by the areas the CIS Docker Benchmark covers and carry our own AUD-01 to AUD-13 identifiers. They are not verified CIS rule numbers; this is CIS-aligned work, not a certifying CIS assessment.

02 // FRAMEWORK

CIS-aligned audit scoping and assessment

The control set is segmented into five areas and executed via read-only introspection. It is mapped to the areas the CIS Docker Benchmark covers, using our own AUD-01 to AUD-13 identifiers rather than asserted CIS rule numbers.

Section 1

Host configuration

auditd rules covering the Docker daemon, a separate partition for container storage (/var/lib/docker), and the daemon configuration file permissions.

Section 2

Daemon configuration

Whether the daemon declares default ulimits for containers, and whether the remote API is protected by TLS with client certificate verification.

Section 3

Daemon file permissions

POSIX permission audits of the Docker socket handle and the docker.service systemd unit file.

Section 4

Container images and builds

Verification that running containers declare an explicit non-root user rather than inheriting root from the image.

Section 5

Container runtime

AppArmor profile enforcement, read-only root filesystems, privileged flags, memory and CPU limits, and docker-socket mounts into containers.

Operating Protocol

Zero agent overhead

No long-running daemons, sidecars, or elevated RPC calls. Audits can be injected cleanly into GitHub Actions, GitLab CI, or air-gapped staging nodes via sh pipelines.

POSIX.1-2008 compliant

Disclosure policy: Detailed test harnesses, customer infrastructure topology, and vulnerability reproduction code are withheld from this public brief. Verified prospective clients may request the unredacted technical annex.

03 // EVALUATION MATRIX

Representative CIS-aligned verification matrix

Sample controls from the 13-control CIS-aligned baseline
IDControlAreaBaselineWeak
AUD-01Host filesystem auditingauditd rules covering the docker daemon and its filesHostN/AN/A
AUD-04Default ulimit enforcementCore-dump and open-file defaults in the daemon configDaemonFAILFAIL
AUD-08Non-root user declarationContainer manifest designates an unprivileged userImagesPASSFAIL
AUD-09AppArmor profile enforcementdocker-default or tailored security profile activeRuntimeN/AN/A
AUD-10Read-only root filesystemWrite operations routed to mounted tmpfsRuntimePASSFAIL
* CIS-aligned controls with our own AUD-xx identifiers, grouped by CIS Docker Benchmark area. They are not verified CIS rule numbers and this is not a certifying CIS assessment. Measured 18 Nov 2026.
N/A is reported explicitly and never counted as a pass.
04 // ARTIFACTS

Deliverables transferred

Following Yalgar's fixed-scope model, code and technical governance frameworks become perpetual client property upon engagement sign-off.

Executive briefing folio

Synthesized, plain-language legal and risk summary tailored for the CISO, VP Engineering, and Board Audit Committee. Features prioritized residual risk ratings, compliance delta mappings, and audit-defensibility metrics.

Format: board-ready PDF

Prioritized remediation backlog

Jira-compatible and Markdown-native ticket backlog containing copy-pasteable configuration stanzas, kernel parameter overrides, and exact Dockerfile refactoring instructions organized by operational severity.

Format: Jira JSON + Markdown

Continuous audit runner

Zero-dependency shell runner that executes as a continuous pre-deployment gate. Halts unhardened images and flags regressions immediately with automated PR commentary.

Format: POSIX shell + GitHub Action
Controlled Release

Request the full write-up and evidence dossier

Reference engagements, sanitized vulnerability logs, and the complete CIS-aligned automated harness codebase are available directly to vetted corporate leaders and prospective clients.

Includes the 13-control CIS-aligned harness specification plus the connectivity check
Includes sanitized Dockerfile remediation diffs
Delivered through a signed, expiring download link

Prefer direct correspondence? Reach out via inquiry@yalgar.com.

Strictly non-commercial distribution
Return to Selected WorkPage ID: CS-084-CIS // Yalgar Advisory Lab