Skip to content

Commit 6aa4bf3

Browse files
committed
Remove CPE dictionary
One dummy record is required by the scanner to be present.
1 parent 3abb1e6 commit 6aa4bf3

File tree

3 files changed

+12
-1486
lines changed

3 files changed

+12
-1486
lines changed

cpe/README

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
11
This folder contains the default CPE dictionary and its associated OVAL file.
22

3-
Synchronized with the official NIST NVD CPE Dictionary v2.3
4-
from https://nvd.nist.gov/products/cpe with the following exceptions,
5-
that are kept for backward-compatibility:
6-
7-
cpe:/o:redhat:enterprise_linux:6 deprecated
8-
cpe:/o:redhat:enterprise_linux:7 no cover-all name for 7.x versions
9-
cpe:/o:redhat:enterprise_linux:8 no cover-all name for 8.x versions
10-
cpe:/o:centos:centos:7 no cover-all name for 7.x versions
11-
cpe:/o:centos:centos:8 no cover-all name for 8.x versions
12-
13-
In the next API-breaking version the internal CPE dictionary will be removed
14-
completely.
3+
It has only one dummy entry and can be customized by a distribution packager.

cpe/openscap-cpe-dict.xml

+4-53
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<cpe-list xmlns="http://cpe.mitre.org/dictionary/2.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4-
<cpe-item name="cpe:/o:redhat:enterprise_linux:-">
5-
<title xml:lang="en-us">Red Hat Enterprise Linux</title>
6-
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:1</check>
7-
</cpe-item>
8-
<cpe-item name="cpe:/o:redhat:enterprise_linux:5">
9-
<title xml:lang="en-us">Red Hat Enterprise Linux 5</title>
10-
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:5</check>
11-
</cpe-item>
12-
<cpe-item name="cpe:/o:redhat:enterprise_linux:6">
13-
<title xml:lang="en-us">Red Hat Enterprise Linux 6</title>
14-
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:6</check>
15-
</cpe-item>
16-
<cpe-item name="cpe:/o:redhat:enterprise_linux:7">
17-
<title xml:lang="en-us">Red Hat Enterprise Linux 7</title>
18-
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:7</check>
19-
</cpe-item>
20-
<cpe-item name="cpe:/o:redhat:enterprise_linux:8">
21-
<title xml:lang="en-us">Red Hat Enterprise Linux 8</title>
22-
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:8</check>
23-
</cpe-item>
24-
<cpe-item name="cpe:/o:centos:centos:5">
25-
<title xml:lang="en-us">Community Enterprise Operating System 5</title>
26-
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:1005</check>
27-
</cpe-item>
28-
<cpe-item name="cpe:/o:centos:centos:6">
29-
<title xml:lang="en-us">Community Enterprise Operating System 6</title>
30-
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:1006</check>
31-
</cpe-item>
32-
<cpe-item name="cpe:/o:centos:centos:7">
33-
<title xml:lang="en-us">Community Enterprise Operating System 7</title>
34-
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.rhel:def:1007</check>
35-
</cpe-item>
36-
<cpe-item name="cpe:/o:centos:centos:8">
37-
<title xml:lang="en-us">Community Enterprise Operating System 8</title>
38-
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.centos:def:8</check>
39-
</cpe-item>
40-
<cpe-item name="cpe:/o:fedoraproject:fedora:32">
41-
<title xml:lang="en-us">Fedora 32</title>
42-
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.fedora:def:32</check>
43-
</cpe-item>
44-
<cpe-item name="cpe:/o:fedoraproject:fedora:33">
45-
<title xml:lang="en-us">Fedora 33</title>
46-
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.fedora:def:33</check>
47-
</cpe-item>
48-
<cpe-item name="cpe:/o:fedoraproject:fedora:34">
49-
<title xml:lang="en-us">Fedora 34</title>
50-
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.fedora:def:34</check>
51-
</cpe-item>
52-
<cpe-item name="cpe:/o:fedoraproject:fedora:35">
53-
<title xml:lang="en-us">Fedora 35</title>
54-
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.fedora:def:35</check>
2+
<cpe-list xmlns="http://cpe.mitre.org/dictionary/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<cpe-item name="cpe:/o:linux:linux_kernel:-">
4+
<title xml:lang="en-us">Linux</title>
5+
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" href="openscap-cpe-oval.xml">oval:org.open-scap.cpe.linux:def:1</check>
556
</cpe-item>
567
</cpe-list>

0 commit comments

Comments
 (0)