Repository navigation
Releases
v0.7.1
What's fixed
Evidence and monthly reports (#20)
- A flaw that Hejnal only ever matched by product name, and that
-checksthen ruled out by reading the version, is now listed as "Ruled out by version". Before, the reports counted it as an exploited flaw found and fixed in 0.0 days. - Such an item counts neither as found nor as fixed, and stays out of the median days to fix.
- The evidence JSON gives these items the status
ruled-outand aruledOutdate. - An item that was seen with an affected version and then upgraded still counts as fixed.
Built with Go 1.26.11 (#24)
- The release binaries are built with the newest Go 1.26 patch. It fixes GO-2026-6859 (CVE-2026-97054), a crash in Go's HTTP/1 server.
hejnal servereads a request's body before it responds, so we know of no way to trigger the crash in 0.7.0; upgrade anyway if you runhejnal serve.
GitHub Action
- uses: Legatia/hejnal@v0.7.1
with:
fail-on: highInstall
See Install in the README. Each archive comes with an SBOM, and checksums.txt is signed with Sigstore.
Full Changelog: v0.7.0...v0.7.1
v0.7.0
What's new
A first run without editing a file (#17)
hejnal init -domain your-domain.pl -by "Your name, role"writes a scope that is ready to run.- Hejnal refuses a scope that still has the example's entries, so nobody scans example.com by accident.
- A run without
-checkssays when-checkswould shorten the list. - The run summary names each flaw once.
Fewer false alarms (#17)
- Next.js. With
-checks, Hejnal reads the version from the scripts the page loads and compares it with NVD's ranges. Before, every exploited Next.js flaw stayed open, because the front page doesn't show the version. - Redirects. A port that only redirects, such as 80 to HTTPS, takes the version read at the service it leads to.
- Secrets. A value that only names an environment variable, such as
"$DB_PASSWORD", is no longer reported.
-exclude (#17)
hejnal code scan -exclude testdata .leaves directories such as test fixtures out.hejnal leaks scantakes the same flag.- A name matches anywhere; a path with a slash matches only under the scanned directory.
- The GitHub Action has an
excludeinput.
GitHub Action
- uses: Legatia/hejnal@v0.7.0
with:
fail-on: high
exclude: testdataOther changes
- crt.sh is asked up to three times. If it still fails, the message says what the run misses. (#17)
- The Linux packages name hello@legatia.solutions as the maintainer address, and SECURITY.md gives it for reports from people who can't use GitHub. (#16)
- Issue forms, a pull request template and a code of conduct. (#16)
Install
See Install in the README. Each archive comes with an SBOM, and checksums.txt is signed with Sigstore.
Full Changelog: v0.6.0...v0.7.0
v0.6.0
What's new
hejnal code scan: check what you build, from your CI (#14)
- Dependencies. It reads the lockfiles of npm, Yarn, pnpm, pip, Pipenv, Poetry, uv, PDM, Cargo, Go, Bundler, Composer, Gradle, Maven and NuGet, and checks each package against OSV.
- Container images. It reads images saved with
docker save, and OCI archives and layouts. It covers:- Debian and Ubuntu packages;
- Alpine packages;
- Go programs;
- Python packages;
node_modules.
- Secrets in the working tree, and in the Git history with
-history. - Infrastructure code. It reads Terraform files and plans, CloudFormation, Kubernetes, Compose and Helm output. It flags:
- admin ports open to the internet;
- public buckets and databases;
- wildcard IAM policies;
- privileged containers;
- host namespaces and host mounts.
- Exploited first. Malicious packages come first, then flaws on CISA's or ENISA's exploited lists, then flaws likely to be exploited soon (high EPSS). Everything else is low.
- Every item carries:
- how sure Hejnal is;
- a command to see it yourself;
- the version that fixes it.
- Output: text, JSON, or SARIF for GitHub code scanning.
- Flags:
-fail-onstops a build at the severity you choose; the default is high.- Items accepted with
hejnal acceptdon't stop it. -saveadds the results to the daily fix list, scored again each day.
- Privacy: only package names, ecosystems and versions leave the machine, to OSV. Never code, file names or secrets.
GitHub Action
- uses: Legatia/hejnal@v0.6.0
with:
fail-on: highThe action downloads this release and checks it against checksums.txt. See the README for the SARIF upload.
Other changes (#15)
- Binaries installed with
go installnow report their real version instead of0.1.0-dev. hejnal helplists every report.
Install
See Install in the README. Each archive comes with an SBOM, and checksums.txt is signed with Sigstore.
v0.5.0
What's new
New checks (#12)
- Subdomain takeovers: a name of yours whose DNS points at a service that answers "nothing here", such as GitHub Pages, Heroku or S3.
- Open bucket listings and "Index of /" pages. The evidence never includes file names.
- Staging and test sites reachable from the internet.
- Server-side secrets in your site's own JavaScript. Hejnal names the kind of secret, never the value.
- Missing or weak SPF and DMARC records.
- A name in your scope whose HTTPS certificate covers none of your names (
foreign-host). This usually means a cloud address you gave back that someone else now rents. (#13)
Every item says how sure Hejnal is (#13)
- Each item gets a verdict: confirmed, likely or check it.
- It lists the steps behind the verdict: what Hejnal saw, and what it could not check from outside.
- It gives the
curl,opensslordigcommand that shows the same thing without Hejnal.
Where to start (#13)
- The fix list opens with the urgent items, then quick wins of 30 minutes or less.
- Each item comes with a rough effort.
Evidence for audits (#12)
- The evidence report maps to SOC 2 CC7.1 and CC4.1, ISO 27001:2022 A.8.8 and A.5.7, and NIS2 Art. 21(2)(e).
hejnal evidence -format jsonexports a versioned record for GRC tools.
Recognition and fixes
- RouterOS 7.25's login page is recognised. Next.js static exports no longer get a known-exploited finding meant for Next.js servers.
- A parent domain's DMARC policy now counts for its subdomains.
- Heroku DNS targets are no longer reported as takeovers.
- Staging sites are flagged only when the page says so too.
- Example keys and key fragments in scripts are ignored.
Known issue
Binaries installed with go install report version 0.1.0-dev. Release archives and packages report the right version. This is fixed in the next release.
Install
See Install in the README. Each archive comes with an SBOM, and checksums.txt is signed with Sigstore.
v0.4.0
What's new
- ENISA's list of exploited vulnerabilities. Hejnal now reads ENISA's list from the European Vulnerability Database next to CISA's KEV catalog.
- Every flaw carries its EUVD ID.
- Flaws only ENISA lists are reported too.
- The fix list says when ENISA listed a flaw before CISA did.
hejnal feedsshows both lists. (#6)
- Overview report for decision-makers:
hejnal report overview -o overview.html.- It's one A4 page of self-contained HTML, in English or Polish.
- It gives a verdict, the key numbers and the five items to fix first. (#7)
- Evidence report for insurers, auditors and security questionnaires:
hejnal report evidence -o evidence.html.- It's built from your saved runs.
- It shows how regularly you check, how long each exploited flaw was exposed and how fast it was fixed. (#8)
- Fuzzing. Every parser of untrusted input has fuzz tests, and CI runs them on every change: fingerprints, KEV, EUVD, NVD, scope and leaked secrets. (#10)
Install
See Install in the README. Each archive comes with an SBOM, and checksums.txt is signed with Sigstore.
v0.3.0
Changelog
- fb035d4: Add a REST API and an MCP server (Claude noreply@anthropic.com)
- 3718a96: Add developer, data, AI, CMS and monitoring rules (Claude noreply@anthropic.com)
- 08d8e34: Add email and Microsoft Teams alerts and a monthly report (Claude noreply@anthropic.com)
- d735b29: Add opt-in checks for exposed files and product versions (Claude noreply@anthropic.com)
- b44efd7: Add signed release builds (Claude noreply@anthropic.com)
- b69c056: Add the Hejnal v0.1 core: discovery, KEV matching and fix lists (Claude noreply@anthropic.com)
- 3e6e602: Compare versions with NVD's affected ranges (Claude noreply@anthropic.com)
- 67e2cce: Find leaked secrets and breached accounts (Claude noreply@anthropic.com)
- 4e978a4: Fix findings from an independent security review (Claude noreply@anthropic.com)
- e983fb7: Fix findings from the second security review (Claude noreply@anthropic.com)
- aeb1ffb: Initial commit: license and project stub (Claude noreply@anthropic.com)
- 3e46b54: Leave the plain-HTTP warning to the API server (Claude noreply@anthropic.com)
- 951e96a: Let people accept findings they have checked (Claude noreply@anthropic.com)
- 06346d1: Make the core importable and add an engine package (Claude noreply@anthropic.com)
- afc9a1f: Merge pull request #2 from Legatia/v0.2 (Legatia legatia.icp@gmail.com)
- 61a6aa1: Merge pull request #3 from Legatia/coverage (Legatia legatia.icp@gmail.com)
- 75ec14c: Merge pull request #4 from Legatia/accept (Legatia legatia.icp@gmail.com)
- c628f76: Merge pull request #5 from Legatia/packaging (Legatia legatia.icp@gmail.com)
- 4a2f21f: Recognise about 150 more products, including non-web services (Claude noreply@anthropic.com)
- a401513: Report leaked secrets and breached accounts, and refresh the examples (Claude noreply@anthropic.com)
- c94f3d9: Require Go 1.26 (Claude noreply@anthropic.com)
- a1c2a29: Ship Linux packages with a daily timer, and a container image (Claude noreply@anthropic.com)
- 8776a67: Stop pull requests waiting for a macOS runner (Claude noreply@anthropic.com)
- d3a5d1f: Tighten scope enforcement after an independent safety review (Claude noreply@anthropic.com)