Disclosure
People who find a vulnerability in your product need a way to report it to you.
Witnyx looks for a security policy with a contact, SECURITY.md, and for a security.txt file as RFC 9116 describes it.
What Witnyx found
Section titled “What Witnyx found”Every check looks at the repository in --repo-dir, the current folder by default.
The text report prints one “Disclosure:” line with what it found, then one line per finding.
Here the software bill of materials (SBOM) scores 100%, and the folder has neither file:
$ witnyx check bom.jsonWitnyx release security check — my-device 3.1.0
[PASS] No actively exploited vulnerabilities found
SBOM quality EU legal minimum: pass Completeness: 100% against [email protected] (42 of 42 required values filled) SBOM creator: present · Timestamp: present Our reading of the EU Cyber Resilience Act; not legal advice.
Disclosure: SECURITY.md missing · security.txt missing [WARN] SECURITY.md missing -> add one with a security contact (email address or URL) [WARN] security.txt missing -> publish .well-known/security.txt with Contact and Expires (RFC 9116)
Checked 2026-11-18T09:12:03Z · 3 componentsContinuous monitoring and 24-hour reporting alerts → witnyx.devWhat the “Disclosure:” line can say, and whether it is a finding:
| The line says | Finding |
|---|---|
SECURITY.md found (PATH) |
none |
SECURITY.md has no contact (PATH) |
[WARN] |
SECURITY.md could not be read (PATH) |
none |
SECURITY.md missing |
[WARN] |
security.txt valid until DATE (SOURCE) |
none |
security.txt expires on DATE (SOURCE) |
[INFO]: it expires within 30 days |
security.txt expired on DATE (SOURCE) |
[WARN] |
security.txt invalid (SOURCE) |
[WARN], with the problems |
security.txt not checked (SOURCE could not be fetched) |
none; a note gives the error |
security.txt not checked (SOURCE) |
none; a note says why |
security.txt missing |
[WARN] |
An invalid security.txt has one or more of these problems: no Contact field, no Expires field, more than one Expires field, Expires is not an RFC 3339 date-time and larger than 32 KiB.
The report never prints the files’ contents.
The JSON report has the same states in its disclosure section, and at most two findings: disclosure:security-md and disclosure:security-txt.
Their severity is medium, or info for a security.txt that expires within 30 days.
Their fix names the file to add or edit, and most hold a template to start from in their details.
In SARIF they use the rule disclosure.
Where the data comes from
Section titled “Where the data comes from”From your repository, and from a URL when you give one.
SECURITY.md
Section titled “SECURITY.md”Witnyx looks in .github/, then the repository root, then docs/, and accepts the name in any letter case.
A contact is an email address or an http or https URL anywhere in the file.
The first file with a contact wins.
When no file has one, the first file that can be read is reported as having no contact.
At most the first 64 KiB of each file are read.
Only files inside the repository count.
A symbolic link that leads outside it counts as no file; a link that stays inside, such as .github/SECURITY.md pointing to ../SECURITY.md, is followed.
security.txt
Section titled “security.txt”Without a URL, Witnyx reads .well-known/security.txt in the repository.
With a URL, it fetches the file from there instead, and the report names the URL as the source.
The file is valid when it has at least one Contact field and exactly one Expires field holding an RFC 3339 date-time, and that time is in the future.
Field names ignore letter case, and comments are skipped.
A PGP-signed file is unwrapped, but its signature is not verified.
A file in the repository that is larger than 32 KiB is invalid; a fetched one that large counts as a failed fetch.
A security.txt URL
Section titled “A security.txt URL”Give the URL with --security-txt-url, or as securityTxtUrl in .witnyx.yml (see securityTxtUrl). The option wins over the file.
- The URL must be an absolute
httpsURL. Plainhttpis accepted only forlocalhost,127.0.0.1and[::1], for local tests. Any other URL is aWX-CONFIGerror (see Error codes): the check stops with exit code 2 before any network request. - The request is a plain GET that sends nothing about you, the SBOM or the repository. Redirects are not followed: a redirect counts as a failed fetch.
- A URL given with
--security-txt-urlis your own input, and is fetched. - A URL from
.witnyx.ymlis repository content that a pull request can change. It is fetched only when every address its host resolves to is public and no proxy stands in the way, since a proxy resolves the host itself. Otherwise it is not fetched, and a note says why. For the same reason, a plainhttpURL in the file is never fetched. --offlinenever fetches the URL.
When the file is not fetched, or the fetch fails, there is no security.txt finding, and the check stays complete.
The note names the reason, for example offline mode; security.txt not checked.
How to fix it
Section titled “How to fix it”For SECURITY.md, run witnyx init in the repository.
It creates a SECURITY.md template, together with .witnyx.yml and a GitHub Actions workflow, and never overwrites a file that exists (see init):
$ witnyx initcreated .witnyx.ymlcreated SECURITY.mdcreated .github/workflows/release-security-check.ymlnext: Add a security contact (email address or URL) to SECURITY.mdThen replace (add your security contact here) in the template with the address that receives your security reports.
A file that has no contact yet is reported as SECURITY.md has no contact.
For security.txt, publish a file like this as /.well-known/security.txt on your website, over https:
Contact: mailto:[email protected]Expires: 2027-10-31T00:00:00ZPreferred-Languages: enUse your own contact, and an Expires date-time less than a year ahead, as RFC 9116 recommends.
When the file is missing, invalid or expired, the JSON report’s disclosure:security-txt finding holds the same template, dated a year from the day of the check.
When your website is built from this repository, keep the file in its .well-known/security.txt, where the check reads it; otherwise point --security-txt-url or securityTxtUrl at the published file.
Before Expires passes, set a new date: the report warns 30 days ahead.
When it fails the build
Section titled “When it fails the build”Never.
No rule of --fail-on covers disclosure, so these findings stay warnings: [WARN], or [INFO] for a security.txt that is about to expire.
They are in the next steps of the Markdown and JSON reports, such as Add SECURITY.md with a security contact (email address or URL); witnyx init creates a template.
See also: Configure .witnyx.yml for witnyx init and securityTxtUrl, Work offline and Choose when the build fails.
Witnyx is a record-keeping and workflow tool. It does not certify compliance. Nothing on this site is legal advice.