Skip to content

Commit 880f5db

Browse files
committed
feat: add classifier for chrome
Signed-off-by: Stijn Taelemans <[email protected]>
1 parent 96ad0b7 commit 880f5db

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: syft/pkg/cataloger/binary/classifiers.go

+11
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,17 @@ func DefaultClassifiers() []Classifier {
525525
PURL: mustPURL("pkg:generic/wp-cli@version"),
526526
CPEs: singleCPE("cpe:2.3:a:wp-cli:wp-cli:*:*:*:*:*:*:*:*"),
527527
},
528+
{
529+
Class: "chrome-binary",
530+
FileGlob: "**/chrome",
531+
EvidenceMatcher: FileContentsVersionMatcher(
532+
// [NUL]127.0.6533.119[NUL]Default
533+
`\x00(?P<version>[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\x00Default`,
534+
),
535+
Package: "chrome",
536+
PURL: mustPURL("pkg:generic/chrome@version"),
537+
CPEs: singleCPE("cpe:2.3:a:google:chrome:*:*:*:*:*:*:*:*"),
538+
},
528539
}
529540
}
530541

0 commit comments

Comments
 (0)