Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

crypto-policies expects "DEFAULT" yet CIS Benchmark says "not LEGACY"

オープン
#13,741 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 の本文から書いたものです。

説明

triaged
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:
  1. Harden AL2023
  2. Enable FIPS
  3. 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:

  1. CRYPTO-POLICIES(7)
  2. https://access.redhat.com/articles/3642912#what-polices-are-provided-1
  3. 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ComplianceAsCode/content のほかの issue

ComplianceAsCode/content の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。