Skip to main content
notaffected logo

notaffected

Prove whether CVEs actually affect your Linux & Windows Server hosts — with deterministic proof and OpenVEX v0.2.0.

CI PyPI Python 3.10+ OpenVEX v0.2.0 License: MIT

Quick Start · Reference & Probes · Security · Changelog


notaffected — How It Works

Traditional vulnerability scanners (Trivy, Grype, Qualys, Nessus) only check package versions. They do not know whether the vulnerable module, service, port, or registry path is actually reachable on your host.

notaffected turns CVE alerts into deterministic runtime verdicts across Linux and Windows Server (local, SSH, Docker, Kubernetes):

  • Advisory preconditions: 25 curated Linux & Windows Server rules plus live OSV.dev, Red Hat Security Data API, Microsoft MSRC CVRF, MITRE CVE v5, CISA KEV, custom YAML rules (--rules), and an optional bring-your-own-model advisor.
  • 12 read-only, fail-closed probes: Checks kernel/package versions, loaded modules, sysctl, ss listeners, ufw/firewalld/nftables, systemd, processes, configs, and Windows builds/registry/services. Any ambiguity resolves to under_investigation; AI never decides verdicts or runs shell commands (Security model).
  • Actionable output: Pinpoints truly affected hosts with temporary mitigation commands, proves not_affected hosts, and exports standard OpenVEX v0.2.0 (.vex.json, ready for trivy --vex) and standalone HTML audit reports (--html).

Installation

# Instant run without installing globally (uv)
uvx notaffected ui

# Isolated CLI install (pipx) or standard pip
pipx install notaffected
pip install notaffected

From source: git clone https://github.com/KatsaounisThanasis/notaffected.git && cd notaffected && uv venv && uv pip install -e ".[dev]"


Quick Start

1. Local Web Dashboard

notaffected ui --port 8484
# Open http://127.0.0.1:8484

notaffected Web Dashboard

Discover Docker containers, load inventory.yaml, run Auto-Scan or upload a Trivy/Grype JSON report, test lab-only mitigations, and export OpenVEX v0.2.0 or HTML audit reports.

2. Zero-Argument Auto-Scan

# Try immediately with the built-in 5-host Linux + Windows Server demo fleet (100% offline)
notaffected scan --demo-fleet --offline --emit-vex demo.vex.json --html demo.html

# Or discover Docker targets and scan a real fleet
notaffected init --discover-docker -o inventory.yaml
notaffected scan -i inventory.yaml --emit-vex vex.json --html report.html
Auto-Scan Feed: 25 built-in rules | 0 live OSV package CVEs | 0 live CISA KEV CVEs
AFFECTED (4)            prod-edge-api-01 (CVE-2026-98432, CVE-2024-6387)
                        win-dc-01        (CVE-2024-38063, CVE-2021-34527)
NOT AFFECTED (112)      89.6% false-positive noise cut with OpenVEX v0.2.0 proof (9 under_investigation)
OpenVEX v0.2.0 written to: demo.vex.json (125 statement(s))

3. Check Specific CVEs or Filter Trivy / Grype Reports

# Inspect preconditions & mitigations for any CVE
notaffected spec CVE-2024-6387

# Check local, SSH (Linux/Windows), Docker, or Kubernetes targets
notaffected check CVE-2024-6387 CVE-2024-47176 --host local
notaffected check CVE-2024-6387 CVE-2024-38063 --ssh ubuntu@10.0.0.10 --win-ssh Administrator@10.0.1.50
notaffected check CVE-2024-6387 --docker lab-ssh-vuln --k8s prod/worker-pod-0

# Filter a Trivy/Grype JSON scan and feed the OpenVEX output back into Trivy (one VEX per host)
notaffected filter examples/trivy-scan.json -i lab/inventory.yaml --emit-vex vex.json --html report.html
trivy rootfs --vex vex.json /

Documentation

License

MIT

Metadata

Release files for notaffected 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for notaffected 1.0.1
File Size Uploaded Provenance Actions
notaffected-1.0.1.tar.gz 1.0 MB With provenance Details for notaffected-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for notaffected 1.0.1
File Interpreter ABI Platform Actions
notaffected-1.0.1-py3-none-any.whl Python 3 none any Details for notaffected-1.0.1-py3-none-any.whl

Total release size: 1.1 MB

Release files / notaffected-1.0.1.tar.gz

Download URL notaffected-1.0.1.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
16e278e4124497aef1e708b90eef127de5058efb3682cf148a3ecccd82333959
BLAKE2b-256 checksum
How to use checksums
31238ac87bdca6d4aa0e9d09ae3693c97b0604b4516f8571bdf372c80a75fb50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / notaffected-1.0.1-py3-none-any.whl

Download URL notaffected-1.0.1-py3-none-any.whl
Size 121.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b7f344af2cf634d13322af0402661e7b6c3db36484570ac9710d54fc6498b37
BLAKE2b-256 checksum
How to use checksums
833b382f55440f797356fb7a697339963aa4179bbc041ddee29c2610d4ec0cb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for notaffected 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for notaffected-1.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page