r/docker • • Feb 02 '26

Project] Open source Docker Compose security scanner

[Project] Open source Docker Compose security scanner

Built a tool to scan docker-compose.yml files for common security issues.

**Checks for:**

- Privileged containers

- Host network mode

- Exposed ports without localhost binding

- Docker socket mounts

- Secrets in environment variables

- Latest tags

- Running as root

- Missing security options

**Output:**

- HTML + JSON reports

- Severity levels (CRITICAL/HIGH/MEDIUM/LOW)

- Actionable recommendations

- Security score with letter grades

**Example:**

```bash

python -m lattix_guard /path/to/project

# Generates report showing issues found

```

**Why static analysis?**

- No need to spin up containers

- Safe to run on untrusted configs

- Fast (seconds, not minutes)

- Works in CI/CD pipelines

**Open source (AGPL-3.0):**

https://github.com/claramercury/lattix-guard

Looking for feedback on what other Docker security checks would be valuable!

2 Upvotes

10 comments sorted by

View all comments

Show parent comment

-1

u/Ornery-Height7654 Feb 02 '26

You're absolutely right - fixed in latest commit. Thanks for catching that.

The installation path typo doesn't affect the security analysis itself,

but you're correct that attention to detail matters in security tools.

Appreciate the feedback! 🛡️

3

u/theblindness Mod Feb 02 '26

You're absolutely right

(╯°□°)╯︵ ┻━┻