Reticulum: Advanced Cloud Infrastructure Security Scanner
Update (15 Oct 2026): this post was rewritten for Reticulum v2.0.0, released on 2 July 2026, which reimplements the tool in Rust. The previous version described an earlier implementation and included
pip install reticulum, which does not work: Reticulum is not published on PyPI. Everything below comes from the repository’s README, documentation and v2.0.0 release.
Reticulum is an open-source Plexicus project, MIT-licensed, that I maintain. Despite the title, it is not a scanner: it does not look for vulnerabilities. It takes what Trivy, Semgrep or any other tool that emits SARIF has already found, and re-scores each finding based on how the affected service is deployed: whether it is reachable from the internet, whether it runs privileged, whether it has dangerous capabilities or a cloud identity.
The problem: severity does not know where the code runs
A scanner scores the package or the code pattern, not the deployment. The same CVE gets the same severity in a public API and in an internal worker with no Ingress. The README puts it this way: a MEDIUM vulnerability in a public, privileged authentication service can be critical, and a HIGH one in a locked-down internal worker can wait.
The scoring documentation illustrates this with a case you can reproduce using the repository’s fixtures. CVE-2023-37920 (certifi) has a severity of 9.8, which means a base score of 98:
| Service | Detected context | Calculation | Result |
|---|---|---|---|
admin-api | Ingress (×1.3), LoadBalancer (×1.3), privileged (+20), service account token mounted (+5) | 98 × 1.3 × 1.3 + 25 = 190.6, clamped to 100 | 100, P0_BLEEDING |
internal-worker | ClusterIP only (×0.5) | 98 × 0.5 | 49, P3_MEDIUM |
Same CVE, a 51-point difference.
How it works
Reticulum processes the repository in three phases (architecture).
1. Discovery. Every Dockerfile (also Dockerfile.<name> and <name>.Dockerfile) defines a service, which is the unit findings are attached to. It also reads Helm charts (Chart.yaml and the values variants: values.yaml, values-*.yaml, prod.yaml…), plain Kubernetes manifests (Deployment, StatefulSet, DaemonSet, ReplicaSet, Job, CronJob, Pod) and docker-compose files. It then links each service to its configuration unit by name, by directory, or because the values.yaml mentions the service (sources).
2. Exposure. A YAML rule engine evaluates Helm values, chart metadata, manifests and Compose services, and builds a risk profile per unit with five flags: isPublic, isPrivileged, hasDangerousCaps, hasInternetEgress and mountServiceToken. For Kubernetes manifests it does not just match strings: it resolves label selectors and backend references to trace the full path. This is the actual output for the tests/monorepo-08 fixture:
Ingress/web-ingress → Service/web-svc → Deployment/web-frontend
Service/postgres-svc (LoadBalancer) → StatefulSet/postgres-db
NetworkPolicy/batch-egress egress 0.0.0.0/0 ← Deployment/internal-batch
In Compose, a port published as "8080:80" counts as public; one bound to 127.0.0.1 does not.
3. Scoring. Each finding’s base severity comes from the SARIF properties.security-severity (0–10) or, failing that, from the rule or result level, multiplied by 10. The profile’s multipliers (exposure) are applied to that base, then the boosts (privileges, capabilities, IAM); 10 points are subtracted if no fixed version exists (the finding is less actionable, not less real), and the result is clamped to 0–100 (full calculation).
| Priority | Score | Meaning per the documentation |
|---|---|---|
| P0_BLEEDING | 90–100 | Critical public exposure |
| P1_CRITICAL | 70–89 | High risk |
| P2_HIGH | 50–69 | Moderate risk |
| P3_MEDIUM | 30–49 | Internal or mitigated |
| P4_LOW | 0–29 | Informational |
Installation
The v2.0.0 release ships binaries for Linux and macOS (amd64 and arm64), each with its own .sha256 file and the default rules bundled. On Linux amd64:
PKG=reticulum-v2.0.0-linux-amd64
curl -fsSLO "https://github.com/plexicus/reticulum/releases/download/v2.0.0/${PKG}.tar.gz"
curl -fsSLO "https://github.com/plexicus/reticulum/releases/download/v2.0.0/${PKG}.tar.gz.sha256"
sha256sum -c "${PKG}.tar.gz.sha256"
tar -xzf "${PKG}.tar.gz"
"./${PKG}/reticulum" --help
On macOS, change the suffix to darwin-arm64 or darwin-amd64 and verify with shasum -a 256 -c.
To build from source you need the stable Rust toolchain; the README also describes how to build the Docker image:
git clone --branch v2.0.0 --depth 1 https://github.com/plexicus/reticulum.git
cd reticulum
cargo build --release # binary at target/release/reticulum
docker build -t reticulum . # image with the rules in /app/rules
Reticulum loads its rules from ./rules or, if that does not exist, from the rules directory next to the binary. Use --rules <dir> to point it elsewhere.
First run
Reticulum needs an input SARIF file. With Trivy in filesystem mode:
trivy fs --format sarif --output trivy.sarif .
reticulum -p . -s trivy.sarif -o report.json \
--sarif-output enriched.sarif --graph exposure.mmd
With the Docker image, mount the repository at /data:
docker run --rm -v "$PWD:/data" reticulum \
-p /data -s /data/trivy.sarif -o /data/report.json
If you only want the exposure map, without findings, use --scan-only:
reticulum -p . --scan-only -o exposure.json --graph exposure.mmd
Each run can produce four outputs:
- The console, with each finding, its original score, the Reticulum score and the rules that changed it.
- A JSON report (
-o): per service, the risk profile withexposurePathsand the findings withbaseScore,reticulumScoreandpriority. - The enriched SARIF (
--sarif-output): the original SARIF withproperties.reticulumadded to each result (score,priority,serviceId,exposure), so GitHub code scanning and other SARIF consumers receive the context. - A Mermaid diagram (
--graph) of the exposure surface, which you can paste into a README or a PR.
To see the example from the table above, from the root of the cloned repository:
./target/release/reticulum -p tests/monorepo-06 -s tests/fixtures/synthetic-trivy.sarif -o report.json
./target/release/reticulum -p tests/monorepo-08 --scan-only --graph exposure.mmd
Custom rules
Rules are YAML files under rules/, loaded in this order: exposure/, security/, scoring/, manifest/ and, last, custom/. Each rule states where it looks (target: values, chart_metadata, manifest or finding), which conditions must hold and what it does when they do (DSL reference). This cookbook example raises the score of anything that is both public and privileged:
id: "custom-crown-jewel"
target: "values"
match:
- key: "ingress.enabled"
op: "eq"
value: true
- key: "securityContext.privileged"
op: "eq"
value: true
action:
risk_profile:
score_boost: 30
tags: ["crown-jewel"]
finding rules let you accept risk in a reviewable way, inside the repository itself. This one suppresses a specific CVE in a specific package:
id: "accept-CVE-2023-4863-on-thumbnailer"
target: "finding"
match:
- key: "cve_id"
op: "eq"
value: "CVE-2023-4863"
- key: "package_name"
op: "eq"
value: "libwebp"
action:
finding:
suppress: true
A malformed rule does not stop the run: the engine prints a warning and carries on with the rest.
CI integration
The integrations documentation includes a GitHub Actions workflow. This version installs the release binary with its hash pinned in the workflow itself, pins the third-party action by SHA (the reason is in the pipeline hijacking post), uploads the enriched SARIF to code scanning and fails if any P0 or P1 finding remains:
name: contextual-security
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
security-events: write # required to upload SARIF
# actions: read # private repositories only
jobs:
reticulum:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Trivy (filesystem)
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
scan-type: fs
format: sarif
output: trivy.sarif
- name: Install Reticulum v2.0.0
run: |
cd "$RUNNER_TEMP"
PKG=reticulum-v2.0.0-linux-amd64
curl -fsSLO "https://github.com/plexicus/reticulum/releases/download/v2.0.0/${PKG}.tar.gz"
echo "289da9b2688e7c78eb7482845836504a792cec383c97355cbbb637bfd9d858c6 ${PKG}.tar.gz" | sha256sum -c -
tar -xzf "${PKG}.tar.gz"
echo "RETICULUM_HOME=$RUNNER_TEMP/${PKG}" >> "$GITHUB_ENV"
- name: Prioritize
run: |
test -s trivy.sarif
"$RETICULUM_HOME/reticulum" --rules "$RETICULUM_HOME/rules" \
-p . -s trivy.sarif -o report.json \
--sarif-output enriched.sarif --graph exposure.mmd
- name: Upload to code scanning
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: enriched.sarif
- name: Fail on P0 or P1
run: |
jq -e '[.services[].findings[]? | select(.priority | test("P0|P1"))] | length == 0' \
report.json || { echo "P0/P1 findings present"; exit 1; }
The test -s trivy.sarif line is there for a reason: in v2.0.0, if the SARIF file does not exist, Reticulum exits with code 0 and a report with no findings, so the gate would pass without having evaluated anything. The explicit --rules keeps it from loading a rules/ directory your repository might have for another tool. If you write custom rules, copy them into $RETICULUM_HOME/rules/custom/ before that step.
What it does not cover
- It does not find vulnerabilities. It re-ranks the ones in the SARIF; if the scanner misses something, so does Reticulum.
- It works from the configuration declared in the repository, not from the cluster’s state. It does not render Helm templates: it analyzes the values files. In v2.0.0 it evaluates every variant together, so something enabled only in
values-dev.yamlalso counts for production. Themasterbranch already has--envto pick one environment, but it is not in a release yet. - Unsupported sources: Kustomize, Terraform and CloudFormation appear on the roadmap as sources under consideration; v2.0.0 does not read them.
- Findings with no service. In v2.0.0, a result whose path does not fall inside any known service is dropped without a warning. Commit c7b7ae0 on
mastercounts them in the report and makes a missing SARIF file exit with an error; it is not in a release yet either. - Scores are heuristics. The multipliers and boosts are defaults you can change; P4 means “later”, not “safe”. The README itself asks you to validate findings.
References
- Reticulum repository (MIT license).
- Release v2.0.0 and CHANGELOG.
- Architecture, sources, scoring and integrations.
- Rule DSL reference (RULES.md).
- AUDIT.md: the defects in the earlier implementation that were fixed during the Rust migration.
- SARIF 2.1.0, OASIS.
- Trivy: reporting formats.
- GitHub Docs: uploading a SARIF file to GitHub.