Skip to content

Commit

Permalink
feat: add classifier for chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
lem-onade committed Aug 16, 2024
1 parent a4cf3a4 commit d238549
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions syft/pkg/cataloger/binary/classifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,17 @@ func DefaultClassifiers() []Classifier {
PURL: mustPURL("pkg:generic/wp-cli@version"),
CPEs: singleCPE("cpe:2.3:a:wp-cli:wp-cli:*:*:*:*:*:*:*:*"),
},
{
Class: "chrome-binary",
FileGlob: "**/chrome",
EvidenceMatcher: FileContentsVersionMatcher(
// [NUL]127.0.6533.119[NUL]Default
`\x00(?P<version>[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\x00Default`,
),
Package: "chrome",
PURL: mustPURL("pkg:generic/chrome@version"),
CPEs: singleCPE("cpe:2.3:a:google:chrome:*:*:*:*:*:*:*:*"),
},
}
}

Expand Down

0 comments on commit d238549

Please sign in to comment.