On Aug 10, 2026, at 1:27rC>PM, Dan Langille <dan@langille.org> wrote:--
Hello,
I use periodic/security/410.pkg-audit as part of a Nagios reporting tool. This monitoring check lets me know when a particular host has a vuln. I have used it, or something like it, for years.
Alert fatigue is a real issue. Sometimes it takes months for given known vuln to be fixed. In the meantime, a sea of red covers the Nagios page making it difficult to see new / other vulns.
My goal: selectively silence a vuln.
Background: Back in April, I posted about this issue on Mastodon. One solution, for ignoring vulns on a given port, worked. https://bsd.network/web/@ax6761@freeradical.zone/115925654143396302
However, now I want to modify this approach and ignore a list of vulns.
In short, alter 410.pkg-audit to use a user-specified file and to ignore upon any vulns specified in that file.
My short idea:
1 - use the --file option on pkg-audit
2 - using /var/db/pkg/vuln.xml as input, remove the vuln you don't want to see
3 - output the results to a new file, say: /var/db/pkg/vuln-filtered.xml
4 - run pkg-audit -f /var/db/pkg/vuln-filtered.xml
For step 2, the file is XML and I'm sure there are many tools to choose from which will delete based on vid in this:
6d3488ae-2e0f-11f1-88c7-00a098b42aeb
0be929a5-2e0f-11f1-88c7-00a098b42aeb
I'm posting in the hopes that someone takes up this challenge and codes something up. I'm happy to test, but can't do the coding.
--
Dan Langille
dan@langille.org
Dan,A solution which is simple (and optional for the user) is likely to be accepted.
This feels worthwhile. We also run a daily pkg-audit on our whole
fleet at the dayjob.
I think this is something that should be possible to continue to use
the existing functionality in pkg, but add an additional knob to the
shipped periodic-script to specify a post-process filter that you'd
specify in periodic.conf, that way you don't add any additional
dependencies to pkg itself, if you want to add in an xmlparser or just
a simple grep script, or whatnot.
If that feels reasonable to you, and you think bapt would be interested
in picking up the fairly simple change to the periodic script, this is probably the most base-compatible way to do everything?
On the actual filter, ideally you'd want to filter based on either port name, or a specific vuln-id (either the CVE number or the FreeBSD XML entry). This is a few lines of perl but possibly also sed or awk.I will use the names contained within /var/db/pkg/vuln.xml:
-Dan--
On Aug 10, 2026, at 1:27rC>PM, Dan Langille <dan@langille.org> wrote:
Hello,
I use periodic/security/410.pkg-audit as part of a Nagios reporting tool. This monitoring check lets me know when a particular host has a vuln. I have used it, or something like it, for years.
Alert fatigue is a real issue. Sometimes it takes months for given known vuln to be fixed. In the meantime, a sea of red covers the Nagios page making it difficult to see new / other vulns.
My goal: selectively silence a vuln.
Background: Back in April, I posted about this issue on Mastodon. One solution, for ignoring vulns on a given port, worked. https://bsd.network/web/@ax6761@freeradical.zone/115925654143396302
However, now I want to modify this approach and ignore a list of vulns.
In short, alter 410.pkg-audit to use a user-specified file and to ignore upon any vulns specified in that file.
My short idea:
1 - use the --file option on pkg-audit
2 - using /var/db/pkg/vuln.xml as input, remove the vuln you don't want to see
3 - output the results to a new file, say: /var/db/pkg/vuln-filtered.xml
4 - run pkg-audit -f /var/db/pkg/vuln-filtered.xml
For step 2, the file is XML and I'm sure there are many tools to choose from which will delete based on vid in this:
6d3488ae-2e0f-11f1-88c7-00a098b42aeb
0be929a5-2e0f-11f1-88c7-00a098b42aeb
I'm posting in the hopes that someone takes up this challenge and codes something up. I'm happy to test, but can't do the coding.
--
Dan Langille
dan@langille.org
Hello,
I use periodic/security/410.pkg-audit as part of a Nagios reporting
tool. This monitoring check lets me know when a particular host has a
vuln. I have used it, or something like it, for years.
Alert fatigue is a real issue. Sometimes it takes months for given
known vuln to be fixed. In the meantime, a sea of red covers the
Nagios page making it difficult to see new / other vulns.
My goal: selectively silence a vuln.
Background: Back in April, I posted about this issue on Mastodon.
One solution, for ignoring vulns on a given port, worked. https://bsd.network/web/@ax6761@freeradical.zone/115925654143396302
However, now I want to modify this approach and ignore a list of
vulns.
In short, alter 410.pkg-audit to use a user-specified file and to
ignore upon any vulns specified in that file.
My short idea:
1 - use the --file option on pkg-audit
2 - using /var/db/pkg/vuln.xml as input, remove the vuln you don't
want to see 3 - output the results to a new file, say: /var/db/pkg/vuln-filtered.xml 4 - run pkg-audit -f /var/db/pkg/vuln-filtered.xml
For step 2, the file is XML and I'm sure there are many tools to
choose from which will delete based on vid in this:
6d3488ae-2e0f-11f1-88c7-00a098b42aeb
0be929a5-2e0f-11f1-88c7-00a098b42aeb
I'm posting in the hopes that someone takes up this challenge and
codes something up. I'm happy to test, but can't do the coding.
On Mon, 10 Aug 2026 16:27:41 -0400
"Dan Langille" <dan@langille.org> wrote:
Hello,
I use periodic/security/410.pkg-audit as part of a Nagios reporting
tool. This monitoring check lets me know when a particular host has a
vuln. I have used it, or something like it, for years.
Alert fatigue is a real issue. Sometimes it takes months for given
known vuln to be fixed. In the meantime, a sea of red covers the
Nagios page making it difficult to see new / other vulns.
My goal: selectively silence a vuln.
Background: Back in April, I posted about this issue on Mastodon.
One solution, for ignoring vulns on a given port, worked.
https://bsd.network/web/@ax6761@freeradical.zone/115925654143396302
However, now I want to modify this approach and ignore a list of
vulns.
In short, alter 410.pkg-audit to use a user-specified file and to
ignore upon any vulns specified in that file.
My short idea:
1 - use the --file option on pkg-audit
2 - using /var/db/pkg/vuln.xml as input, remove the vuln you don't
want to see 3 - output the results to a new file, say:
/var/db/pkg/vuln-filtered.xml 4 - run pkg-audit -f
/var/db/pkg/vuln-filtered.xml
For step 2, the file is XML and I'm sure there are many tools to
choose from which will delete based on vid in this:
6d3488ae-2e0f-11f1-88c7-00a098b42aeb
0be929a5-2e0f-11f1-88c7-00a098b42aeb
I'm posting in the hopes that someone takes up this challenge and
codes something up. I'm happy to test, but can't do the coding.
Hi Dan,
I've been using something like this locally for a while. I polished it
a bit and added[0] it as security/periodic-filter-vuxml to the ports
tree. It's intentionally simple, testing is welcome, see pkg-message
for usage.
It basically adds a periodic job that runs prior to 405/410.pkg-audit,
which downloads the vulnerability database if needed and removes entries
as configured. No component/code of pkg is modified.
On Tue, Aug 18, 2026, at 9:17 AM, Michael Gmelin wrote:
On Mon, 10 Aug 2026 16:27:41 -0400
"Dan Langille" <dan@langille.org> wrote:
Hello,
I use periodic/security/410.pkg-audit as part of a Nagios reporting
tool. This monitoring check lets me know when a particular host
has a vuln. I have used it, or something like it, for years.
Alert fatigue is a real issue. Sometimes it takes months for given
known vuln to be fixed. In the meantime, a sea of red covers the
Nagios page making it difficult to see new / other vulns.
My goal: selectively silence a vuln.
Background: Back in April, I posted about this issue on Mastodon.
One solution, for ignoring vulns on a given port, worked.
https://bsd.network/web/@ax6761@freeradical.zone/115925654143396302
However, now I want to modify this approach and ignore a list of
vulns.
In short, alter 410.pkg-audit to use a user-specified file and to
ignore upon any vulns specified in that file.
My short idea:
1 - use the --file option on pkg-audit
2 - using /var/db/pkg/vuln.xml as input, remove the vuln you don't
want to see 3 - output the results to a new file, say:
/var/db/pkg/vuln-filtered.xml 4 - run pkg-audit -f
/var/db/pkg/vuln-filtered.xml
For step 2, the file is XML and I'm sure there are many tools to
choose from which will delete based on vid in this:
6d3488ae-2e0f-11f1-88c7-00a098b42aeb
0be929a5-2e0f-11f1-88c7-00a098b42aeb
I'm posting in the hopes that someone takes up this challenge and
codes something up. I'm happy to test, but can't do the coding.
Hi Dan,
I've been using something like this locally for a while. I polished
it a bit and added[0] it as security/periodic-filter-vuxml to the
ports tree. It's intentionally simple, testing is welcome, see
pkg-message for usage.
It basically adds a periodic job that runs prior to
405/410.pkg-audit, which downloads the vulnerability database if
needed and removes entries as configured. No component/code of pkg
is modified.
I like the independent-of-pkg approach, and the idea of running the
script just before is a good idea.
At https://cgit.freebsd.org/ports/tree/security/periodic-filter-vuxml/files/400.filter-vuxml.in#n80
how does that for-loop work? I had anticipated some kind of xml /
perl script for that. This seems to be entirely bourne shell. What
magic is that?
On Mon, 10 Aug 2026 16:27:41 -0400
"Dan Langille" <dan@langille.org> wrote:
Hello,
I use periodic/security/410.pkg-audit as part of a Nagios reporting
tool. This monitoring check lets me know when a particular host has
a vuln. I have used it, or something like it, for years.
Alert fatigue is a real issue. Sometimes it takes months for given
known vuln to be fixed. In the meantime, a sea of red covers the
Nagios page making it difficult to see new / other vulns.
My goal: selectively silence a vuln.
Background: Back in April, I posted about this issue on Mastodon.
One solution, for ignoring vulns on a given port, worked. https://bsd.network/web/@ax6761@freeradical.zone/115925654143396302
However, now I want to modify this approach and ignore a list of
vulns.
In short, alter 410.pkg-audit to use a user-specified file and to
ignore upon any vulns specified in that file.
My short idea:
1 - use the --file option on pkg-audit
2 - using /var/db/pkg/vuln.xml as input, remove the vuln you don't
want to see 3 - output the results to a new file, say: /var/db/pkg/vuln-filtered.xml 4 - run pkg-audit -f /var/db/pkg/vuln-filtered.xml
For step 2, the file is XML and I'm sure there are many tools to
choose from which will delete based on vid in this:
6d3488ae-2e0f-11f1-88c7-00a098b42aeb
0be929a5-2e0f-11f1-88c7-00a098b42aeb
I'm posting in the hopes that someone takes up this challenge and
codes something up. I'm happy to test, but can't do the coding.
I've been using something like this locally for a while. I polished it
a bit and added[0] it as security/periodic-filter-vuxml to the ports
tree. It's intentionally simple, testing is welcome, see pkg-message
for usage.
It basically adds a periodic job that runs prior to 405/410.pkg-audit,
which downloads the vulnerability database if needed and removes
entries as configured. No component/code of pkg is modified.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 76 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 59:03:43 |
| Calls: | 1,265 |
| Calls today: | 1 |
| Files: | 1,362 |
| D/L today: |
4 files (9,632K bytes) |
| Messages: | 285,989 |