From 04acca70c6b2fefdc1bf3486c219d3fea5c0ad6b Mon Sep 17 00:00:00 2001 From: Watson Sato Date: Fri, 16 Aug 2024 10:42:49 +0200 Subject: [PATCH] Add PCI-DSS v4.0 reference parser This ensures the rules part of PCI-DSS v4 profile contains annotaions with supported requirement number. --- pkg/profileparser/profileparser.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/profileparser/profileparser.go b/pkg/profileparser/profileparser.go index 5ba7477ac..789d39990 100644 --- a/pkg/profileparser/profileparser.go +++ b/pkg/profileparser/profileparser.go @@ -830,6 +830,10 @@ func newStandardParser() *referenceParser { if pcidssperr != nil { log.Error(nciperr, "Could not register PCI-DSS reference parser") // not much we can do here.. } + pcidss4perr := p.registerStandard("PCI-DSS-4-0", `https://docs-prv\.pcisecuritystandards\.org/PCI%20DSS/Standard/PCI-DSS-v4_0\.pdf`) + if pcidss4perr != nil { + log.Error(nciperr, "Could not register PCI-DSS-4-0 reference parser") // not much we can do here.. + } stigperr := p.registerStandard("STIG", `^https://public\.cyber\.mil/stigs/downloads/\?_dl_facet_stigs=container-platform`) if stigperr != nil { log.Error(stigperr, "Could not register STIG reference parser") // not much we can do here..