是否可以使用OpenSCAP裁剪/自定义文件更改规则的严重性?
更新(2022-04-13):
refine-rule似乎可以解决这个问题,但无法找到任何文档来说明您是否可以在自定义文件中使用该文件。
发布于 2022-04-12 20:21:38
概要文件在存储库中定义:代码/内容
您可以将所需的配置文件复制到新文件(或从GitHub下载最新版本),然后根据需要编辑规则的严重性。
如果auditd服务在macOS上禁用,下面的示例将编辑严重性:
ssg-macos10-15-ds.xml上,可以找到下面一行:high更改为low注意,严重度值可以是unknown、info、low、medium或high。
oscap xccdf eval --profile xccdf_org.ssgproject.content_benchmark_macOS-1015 --results-arf results.xml --report report.html /path/to/new/edited/ssg-macos10-15-ds.xml其中:xccdf_org.ssgproject.content_benchmark_macOS-1015是配置文件:上定义的基准测试的id
更新
实际上,refine-rule可以用于更改规则的weight、severity和role。
在保存“只定制”之后,您可以根据需要为每个规则添加refine-rule,从而编辑XML文件中的规则:
1
Unclassified Information in Non-federal Information Systems and Organizations (NIST 800-171) [CUST$
From NIST 800-171, Section 2.2:
Security requirements for protecting the confidentiality of CUI in nonfederal
information systems and organizations have a well-defined structure that
consists of:
(i) a basic security requirements section;
(ii) a derived security requirements section.
...
"<#>结果


更多信息可在可扩展配置检查列表描述格式(XCCDF)版本1.2的规范中6.5.3部分找到。
Testing配置文件
oscap info --profile xccdf_org.ssgproject.content_profile_cui_customized ./ssg-rl8-ds-tailoring.xml
Document type: XCCDF Tailoring
Imported: 2022-04-18T06:04:53
Benchmark Hint: /tmp/scap-workbench-FGmUva/ssg-rl8-ds.xml
Profiles:
Title: Unclassified Information in Non-federal Information Systems and Organizations (NIST 800-171) [CUSTOMIZED]
Id: xccdf_org.ssgproject.content_profile_cui_customized其中xccdf_org.ssgproject.content_profile_cui_customized是裁剪文件ssg-rl8-ds-tailoring.xml上的Profile-id。
Generating指南
oscap xccdf generate guide --verbose INFO --fetch-remote-resources --profile xccdf_org.ssgproject.content_profile_cui_customized --output guide-profile_cui_customized.html --tailoring-file ./ssg-rl8-ds-tailoring.xml ./ssg-rl8-ds-tailoring.xml在生成的指南上,您可以验证规则是否与预期的一样,并且也可以用作自定义裁剪配置文件的引用。

https://security.stackexchange.com/questions/261004
复制相似问题