TMAegis
cos のその他のルール

TMA-COS-1.5.1.2

Ensure local login warning banner is configured properly

中レベル 1自動cos

説明

The contents of the /etc/issue file are displayed to users prior to login for local terminals. Unix-based systems have typically displayed information about the OS release and patch level upon logging in to the system. This information can be useful to developers who are developing software for a particular OS platform. If mingetty(8) supports the following options, they display operating system information: \m - machine architecture \r - operating system release \s - operating system name \v - operating system version - or the operating system's name Warning messages inform users who are attempting to login to the system of their legal status regarding the system and must include the name of the organization that owns the system and any monitoring policies that are in place. Displaying OS and patch level information in login banners also has the side effect of providing detailed syst...

チェック方法

監査方法: シェルコマンド

shell
os=$(grep "^ID=" /etc/os-release | cut -d= -f2 | tr -d '"'); [ -s /etc/issue ] && ! grep -Eiq "(\\v|\\r|\\m|\\s|$os)" /etc/issue && echo compliant || echo noncompliant
期待される出力
compliant

修正方法

修正方法: ガイダンスまたは IaC パッチ

Edit the /etc/issue file with the appropriate contents according to your site policy, remove any instances of \m , \r , \s , \v or references to the OS platform # echo "Authorized uses only. All activity may be monitored and reported." > /etc/issue /etc is stateless on Container-Optimized OS. Therefore, the steps mentioned above needs to be performed after every boot.

プロパティ

オペレーティングシステム
すべて
タグ
container-optimized-oscoslogging
参照
CIS Google Container-Optimized OS Benchmark v1.2.0 - 1.5.1.2 Ensure local login warning banner is configured properly

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target cos