{"id":15029984,"url":"https://github.com/openscap/openscap","last_synced_at":"2026-03-05T06:31:43.449Z","repository":{"id":16525994,"uuid":"19279199","full_name":"OpenSCAP/openscap","owner":"OpenSCAP","description":"NIST Certified SCAP 1.2 toolkit","archived":false,"fork":false,"pushed_at":"2024-04-03T09:26:04.000Z","size":31546,"stargazers_count":1259,"open_issues_count":73,"forks_count":358,"subscribers_count":74,"default_branch":"main","last_synced_at":"2024-04-03T10:33:52.079Z","etag":null,"topics":["compliance","cpe","data-stream","openscap","oval","scanning","scap","xccdf"],"latest_commit_sha":null,"homepage":"https://www.open-scap.org/tools/openscap-base","language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenSCAP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null}},"created_at":"2014-04-29T14:23:34.000Z","updated_at":"2024-04-15T15:58:11.668Z","dependencies_parsed_at":"2023-02-19T05:46:22.938Z","dependency_job_id":"baed48f1-7b6b-4a02-ae11-f929523bdc3c","html_url":"https://github.com/OpenSCAP/openscap","commit_stats":null,"previous_names":[],"tags_count":99,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSCAP%2Fopenscap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSCAP%2Fopenscap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSCAP%2Fopenscap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSCAP%2Fopenscap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenSCAP","download_url":"https://codeload.github.com/OpenSCAP/openscap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245206532,"owners_count":20577582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compliance","cpe","data-stream","openscap","oval","scanning","scap","xccdf"],"created_at":"2024-09-24T20:12:09.705Z","updated_at":"2026-03-05T06:31:43.414Z","avatar_url":"https://github.com/OpenSCAP.png","language":"XSLT","readme":"# OpenSCAP\n\n[![Gating](https://github.com/OpenSCAP/openscap/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/OpenSCAP/openscap/actions/workflows/build.yml)\n[![Join the chat at https://gitter.im/OpenSCAP/openscap](https://badges.gitter.im/OpenSCAP/openscap.svg)](https://gitter.im/OpenSCAP/openscap?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nOpen Source Security Compliance Solution\n\n## About\n\nThe `oscap` program is a command line tool that allows users to load, scan,\nvalidate, edit, and export SCAP documents.\n\n * Homepage of the project: [www.open-scap.org](http://www.open-scap.org)\n * User Manual: [OpenSCAP User Manual](docs/manual/manual.adoc)\n * Compilation, testing and debugging: [OpenSCAP Developer Manual](docs/developer/developer.adoc)\n * For new contributors: [How to contribute](docs/contribute/contribute.adoc)\n\n## Contributing\n\nWe welcome all contributions to the OpenSCAP project.\nIf you would like to contribute, either by fixing existing issues or adding new features, please check out our [contribution guide](docs/contribute/contribute.adoc) to get started.\nIf you would like to discuss anything, ask questions, or if you need additional help getting started, you can either send a message to our libera.chat IRC channel, **#openscap**, or to our [mailing list](https://www.redhat.com/mailman/listinfo/open-scap-list).\n\n## Microsoft Windows Support\n\nThe Microsoft Windows support [is officially void](docs/windows.md) as of Febuary 1, 2022.\n\n## Use cases\n\n### SCAP Content Validation\n\n * The following example shows how to validate a given source data stream; all components within the data stream are validated (XCCDF, OVAL, OCIL, CPE, and possibly other components):\n```\noscap ds sds-validate scap-ds.xml\n```\n\n\n### Scanning\n\n * To evaluate all definitions within the given OVAL Definition file, run the following command:\n```\noscap oval eval --results oval-results.xml scap-oval.xml\n```\n*where scap-oval.xml is the OVAL Definition file and oval-results.xml is the OVAL Result file.*\n\n * To evaluate all definitions from the OVAL component that are part of a particular data stream within a SCAP data stream collection, run the following command:\n```\noscap oval eval --datastream-id ds.xml --oval-id xccdf.xml --results oval-results.xml scap-ds.xml\n```\n*where ds.xml is the given data stream, xccdf.xml is an XCCDF file specifying the OVAL component, oval-results.xml is the OVAL Result file, and scap-ds.xml is a file representing the SCAP data stream collection.*\n\n * To evaluate a specific profile in an XCCDF file run this command:\n```\noscap xccdf eval --profile Desktop --results xccdf-results.xml --cpe cpe-dictionary.xml scap-xccdf.xml\n```\n*where scap-xccdf.xml is the XCCDF document, Desktop is the selected profile from the XCCDF document, xccdf-results.xml is a file storing the scan results, and cpe-dictionary.xml is the CPE dictionary.*\n\n * To evaluate a specific XCCDF benchmark that is part of a data stream within a SCAP data stream collection run the following command:\n```\noscap xccdf eval --datastream-id ds.xml --xccdf-id xccdf.xml --results xccdf-results.xml scap-ds.xml\n```\n*where scap-ds.xml is a file representing the SCAP data stream collection, ds.xml is the particular data stream, xccdf.xml is ID of the component-ref pointing to the desired XCCDF document, and xccdf-results.xml is a file containing the scan results.*\n\n\n### Document generation\n\n * without XCCDF rules\n```\noscap xccdf generate guide XCCDF-FILE \u003e XCCDF-GUIDE-FILE\n```\n\n * with XCCDF rules\n```\noscap xccdf generate guide --profile PROFILE XCCDF-FILE \u003e XCCDF-GUIDE-FILE\n```\n\n *  generate report from scanning\n```\noscap xccdf generate report XCCDF-RESULT-FILE \u003e XCCDF-REPORT-FILE\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenscap%2Fopenscap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenscap%2Fopenscap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenscap%2Fopenscap/lists"}