[[email protected] ~]# yum install scap-security-guide -y
- 修改配置
如果使用的是 redhat 则可以跳过此步
[[email protected] ~]# sed -i -e "s#<platform>Red Hat Enterprise Linux 6</platform>#<platform>CentOS 6</platform>##g" /usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-oval.xml
[[email protected] ~]# sed -i -e "s#cpe:/o:redhat:enterprise_linux:6#cpe:/o:centos:centos:6##g" /usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-oval.xml
[[email protected] ~]# sed -i -e "s#cpe:/o:redhat:enterprise_linux#cpe:/o:centos:centos##g" /usr/share/xml/scap/ssg/content/ssg-rhel6-xccdf.xml
- 评估PCI DSS合规的内容
oscap xccdf eval --results results.xml --profile xccdf_org.ssgproject.content_profile_pci-dss /usr/share/xml/scap/ssg/content/ssg-rhel6-ds.xml
- 生成HTML的报告
oscap xccdf generate report --output report.html results.xml
原文地址:http://blog.51cto.com/41084/2132580
时间: 2024-10-08 00:46:19