Skip to content

Docker · Compose · Kubernetes · GitHub pull requests

Vulnerability notifications and remediation PRs, resolution checks after deployment

KestreLynx is open-source software that reports vulnerabilities in images used by running containers, compares update candidates, and creates remediation PRs on GitHub. After you merge and deploy, the next scan carries history forward to check for resolution.

Setup GitHub

Open source · AGPL-3.0 · Scans with Trivy · Prioritizes with CISA KEV and EPSS

Fix plan notification from the demo

# security-alerts

KestreLynx APP 9:00 AM

🔧 Fix plan
Pull requests: 3 created


Image: nginx:1.27.0
File to change: compose.yml in kitsunetrail/kestrelynx-demo
Pull request: #1 (opened now)
Update: nginx 1.27.0 → 1.27.5


Image: kestrelynx-demo-api
File to change: api/requirements.txt in kitsunetrail/kestrelynx-demo
Pull request: #2 (opened now)
Update: Werkzeug 3.0.1 → 3.0.3, urllib3 2.2.2 → 2.8.0
File to change: api/Dockerfile in kitsunetrail/kestrelynx-demo
Update candidate: base image python 3.12.3-slim → 3.12.15-slim
Needs a decision: the candidate brings new findings


Image: kestrelynx-demo-web
File to change: web/package-lock.json in kitsunetrail/kestrelynx-demo
Pull request: #3 (opened now)
Update: body-parser 1.20.1 → 1.20.8 (with express 4.18.2 → 4.22.3), path-to-regexp 0.1.7 → 0.1.13 (with express 4.18.2 → 4.22.3)


Details in the generic webhook payload.

The fix plan actually produced by the demo repository.
  • Created PRs “Pull request” #1, #2, and #3 and “File to change” identify where the changes go.
  • A candidate without a PR The python 3.12.15-slim candidate introduces vulnerabilities and is marked “Needs a decision”; you decide whether to update or wait for another tag.
  • Updates to dependent packages Updating body-parser and path-to-regexp also updates express, which depends on them, from 4.18.2 to 4.22.3.

How it works

Remediation PRs and resolution checks

Comparing update candidates

Rescans before and after an update use the same conditions to compare resolved, remaining, and newly introduced findings.

Creating remediation PRs

KestreLynx creates PRs in GitHub repositories mapped to running containers, updating existing files. Version specifications can stay where they are.

Checking resolution

After you merge a PR and deploy the new image, the next scan carries history forward to check for resolution.

Published image tags
Compose files · plain Kubernetes manifests · Kustomize images[].newTag · Helm values
Base image tags
Dockerfile
Dependency files
npm · pnpm · pip · uv · Go · Maven (pom.xml) · Gradle (gradle.lockfile) · Rust (Cargo.lock)

Demo remediation example (experimental)

One PR, from proposal to resolution check

Actual output in English from the demo repository, which pins older images and dependencies. The generated PRs are also public.

GitHub PR body showing 94 out-of-scope vulnerabilities remaining and none newly introduced

Remediation pull request

nginx 1.27.0 → 1.27.5

The candidate scan comparison records 17 targeted vulnerabilities resolved and 86 remaining.

Open PR #1 on GitHub →

Slack notification showing the nginx update and resolved vulnerabilities in libabsl20220623, libavif15, libfreetype6, and liblzma5
After merge and deployment After PR #1 was merged and the running proxy container was replaced with nginx 1.27.5, the next scan reported resolutions for four packages with history carried over.

Creating a candidate or PR does not fix the running image. Checking the comparison scope and running CI are required before merging. You rebuild and deploy the image.

GitHub is the only supported source host, and language packages are retrieved only from public registries. Remediation plans and pull requests (experimental) →

Scanning and notifications

Vulnerability changes and priorities

Changes since the last scan

Notifications show changes in findings since the previous scan.

Remediation priorities

Priorities combine severity, known exploitation (KEV), and predicted exploitation probability (EPSS).

Scanning with Trivy

Trivy scans report HIGH and CRITICAL vulnerabilities by default, including findings without available fixes.

Setup

Steps with Docker Compose

Setup requires a Docker host with Docker Compose and at least one notification destination: Slack Incoming Webhook, a Slack bot and channel, email, or a generic webhook.

# 1. Clone the repository and enter its directory
git clone https://github.com/kitsunetrail/kestrelynx.git
cd kestrelynx

# 2. Copy the example; set a notification destination
cp config.example.yml config.yml
${EDITOR:-vi} config.yml

# 3. Start KestreLynx and check startup and scans in the logs
docker compose up -d
docker compose logs -f

The example configuration runs one scan at startup, then scans daily at 09:00. Remediation planning and PR creation are disabled by default.