crypto-policies expects "DEFAULT" yet CIS Benchmark says "not LEGACY"
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- linux, shell
調査の方向性
まず、提供された oscap コマンドを使い、プロファイル xccdf_org.ssgproject.content_profile_cis_server_l1 と ssg-al2023-ds.xml を指定して、失敗を再現します。Configure System Cryptography Policy チェックを CIS 要件および AL2023 の FIPS 設定と比較します。完了条件は、プロファイルが LEGACY ではない FIPS 構成に正しく合格することです。
索引モデルが issue の本文から書いたものです。
説明
Description of problem:
I hardened my AL2023 instance, including enabling FIPS and then ran the openSCAP audit.
The audit says I failed the "Configure System Cryptography Policy" because /etc/crypto-policies/config is not "DEFAULT" (or DEFAULT:NO-SHA1).
It's set to "FIPS".
The CIS Benchmark clearly says that the expected value is "Not LEGACY". It doesn't expect it to be "DEFAULT" so I'm not sure why the check is looking for "DEFAULT".
SCAP Security Guide Version:
0.1.77
Operating System Version:
AL2023
Steps to Reproduce:
- Harden AL2023
- Enable FIPS
- Run audit: oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_cis_server_l1 --report ec2-al2023_oscap-ssg-report_2025-07-23-01-01-06.html scap-security-guide-0.1.77/ssg-al2023-ds.xml
Actual Results:
Failed "Configure System Cryptography Policy"
Expected Results:
Pass "Configure System Cryptography Policy"
Additional Information/Debugging Steps:
CIS_Amazon_linux_2023_Benchmark_v1.0.0.pdf
1.9 Ensure system-wide crypto policy is not legacy (Automated)
Profile Applicability:
• Level 1 - Server
Description:
The system-wide crypto-policies followed by the crypto core components allow
consistently deprecating and disabling algorithms system-wide.
The individual policy levels (DEFAULT, LEGACY, FUTURE, and FIPS) are included in
the crypto-policies(7) package.
Rationale:
If the Legacy system-wide crypto policy is selected, it includes support for TLS 1.0, TLS
1.1, and SSH2 protocols or later. The algorithms DSA, 3DES, and RC4 are allowed,
while RSA and Diffie-Hellman parameters are accepted if larger than 1023-bits.
These legacy protocols and algorithms can make the system vulnerable to attacks,
including those listed in RFC 7457
Impact:
Environments that require compatibility with older insecure protocols may require the
use of the less secure LEGACY policy level.
Audit:
Run the following command to verify that the system-wide crypto policy is not LEGACY
grep -E -i '^\sLEGACY\s(\s+#.*)?$' /etc/crypto-policies/config
Verify that no lines are returned
Remediation:
Run the following command to change the system-wide crypto policy
update-crypto-policies --set
Example:
update-crypto-policies --set DEFAULT
Run the following to make the updated system-wide crypto policy active
update-crypto-policies
Default Value:
DEFAULT
Page 196
References:
- CRYPTO-POLICIES(7)
- https://access.redhat.com/articles/3642912#what-polices-are-provided-1
- NIST SP 800-53 Rev. 5: SC-8
Additional Information:
To switch the system to FIPS mode, run the following command:
fips-mode-setup --enable
CIS Controls:
Controls
Version Control IG 1 IG 2 IG 3
v8
3.10 Encrypt Sensitive Data in Transit
Encrypt sensitive data in transit. Example implementations can include:
Transport Layer Security (TLS) and Open Secure Shell (OpenSSH).
● ●
v7 14.4 Encrypt All Sensitive Information in Transit
Encrypt all sensitive information in transit. ●
- 主要言語
- Shell
- スター
- 2.8k
- フォーク
- 842
- 平均マージ
- 3日 6時間
- マージ済み PR(30日)
- 66
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ComplianceAsCode/content のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ComplianceAsCode/content#15241 ·
メンテナーはふだん 2 日以内に返信
-
triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ComplianceAsCode/content#15172 ·
メンテナーはふだん 2 日以内に返信
-
Rules of audit_rules_dac_modification template are misaligned with DISA再び着手できるかも @macko1 が 35 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンproductization-issue RHEL10 STIG triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ComplianceAsCode/content#15135 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ComplianceAsCode/content#14994 · コメント 3 件 ·
メンテナーはふだん 2 日以内に返信
-
triaged
難易度 2/5 半日 初心者へのやさしさ 62/100
ComplianceAsCode/content#12264 ·
メンテナーはふだん 2 日以内に返信
ComplianceAsCode/content の issue をすべて見る
似ている issue
-
admission-deferred priority: medium status: ready work-class: scoped
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
melodic-software/claude-code-plugins#10887 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
allows image
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
DaoCloud/public-image-mirror#46272 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kubernetes-csi/csi-driver-iscsi#485 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
Euro-Office/DocumentServer#485 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信