Skip to content

[Continuation of PR #179 ]Add SUSE parser for OVAL - #180

Closed
sbs2001 wants to merge 8 commits into
aboutcode-org:developfrom
sbs2001:suse_oval_parser
Closed

[Continuation of PR #179 ]Add SUSE parser for OVAL #180
sbs2001 wants to merge 8 commits into
aboutcode-org:developfrom
sbs2001:suse_oval_parser

Conversation

@sbs2001

@sbs2001 sbs2001 commented May 17, 2020

Copy link
Copy Markdown
Collaborator

This is extension of #179 so it includes OVAL parser for ubuntu as well as SUSE.

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
@sbs2001 sbs2001 changed the title [Merge after https://github.com/nexB/vulnerablecode/pull/179 ]Add SUSE parser for OVAL [Continuation of PR #179 ]Add SUSE parser for OVAL May 17, 2020
sbs2001 added 2 commits May 17, 2020 13:59
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
@sbs2001

sbs2001 commented May 17, 2020

Copy link
Copy Markdown
Collaborator Author

Here are results of running every OVAL file from http://ftp.suse.com/pub/projects/security/oval/ through the parser

passed  suse.linux.enterprise.server.15.xml
passed  suse.linux.enterprise.server.15-patch.xml
errored  suse.linux.enterprise.desktop.15.xml
errored  suse.linux.enterprise.desktop.15-patch.xml
passed  suse.linux.enterprise.15.xml
passed  suse.linux.enterprise.15-patch.xml
errored  suse.linux.enterprise.server.12.xml
errored  suse.linux.enterprise.server.12-patch.xml
passed  suse.linux.enterprise.desktop.12.xml
passed  suse.linux.enterprise.desktop.12-patch.xml
errored  suse.linux.enterprise.12.xml
errored  suse.linux.enterprise.12-patch.xml
errored  suse.linux.enterprise.server.11.xml
errored  suse.linux.enterprise.server.11-patch.xml
passed  suse.linux.enterprise.server.10.xml
passed  suse.linux.enterprise.desktop.11.xml
passed  suse.linux.enterprise.desktop.11-patch.xml
passed  suse.linux.enterprise.desktop.10.xml
passed  suse.openstack.cloud.7.xml
passed  suse.openstack.cloud.7-patch.xml
passed  suse.openstack.cloud.8.xml
passed  suse.openstack.cloud.8-patch.xml
passed  suse.openstack.cloud.9.xml
passed  suse.openstack.cloud.9-patch.xml
passed  opensuse.leap.15.1.xml
passed  opensuse.leap.15.1-patch.xml
passed  opensuse.leap.15.0.xml
passed  opensuse.leap.15.0-patch.xml
passed  opensuse.leap.42.3.xml
passed  opensuse.leap.42.3-patch.xml

Results obtained through https://colab.research.google.com/drive/1-NVbGwF80bYxzDYLXk5A4yvn0L-Qdgpe?usp=sharing

We would be ignoring the ....patch.xml files because they are same as the normal ones. They also don't work as expected for the parser(some data is not captured)

@sbs2001

sbs2001 commented May 19, 2020

Copy link
Copy Markdown
Collaborator Author

This parser is also working for CentOS OVAL files

sbs2001 added 5 commits May 19, 2020 18:03
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
…n oval_parser.py's getElementById method, also improve OvalExtractor's get_data method by checking for mathing_tests earlier

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
@sbs2001

sbs2001 commented May 19, 2020

Copy link
Copy Markdown
Collaborator Author

Closed in favour of #181

@sbs2001 sbs2001 closed this May 19, 2020
@sbs2001
sbs2001 deleted the suse_oval_parser branch May 21, 2020 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant