TMAegisBeta
更多 cos 規則

Container-Optimized OS

TMA-COS-5.1.5

Ensure SSH LogLevel is appropriate

中等級 1人工審核cos

說明

INFO level is the basic level that only records login activity of SSH users. In many situations, such as Incident Response, it is important to determine when a particular user was active on a system. The logout record can eliminate those users who disconnected, which helps narrow the field. VERBOSE level specifies that login and logout activity as well as the key fingerprint for any SSH key used for login will be logged. This information is important for SSH key management, especially in legacy environments. SSH provides several logging levels with varying amounts of verbosity. DEBUG is specifically not recommended other than strictly for debugging SSH communications since it provides so much data that it is difficult to identify important security information.

檢查方式

稽核方法: 人工審核

此項建議無法自動檢查。當您傳入 --include-manual 時,掃描結果會列出此項目並附帶這些說明。

Run the following command and verify that output matches: # sshd -T | grep loglevel LogLevel VERBOSE OR loglevel INFO

修補方式

修補方法: 操作指南或基礎設施修補檔

Edit the /etc/ssh/sshd_config file to set the parameter as follows: LogLevel VERBOSE OR LogLevel INFO

屬性

作業系統
不限
標籤
container-optimized-oscosloggingssh
參考資料
CIS Google Container-Optimized OS Benchmark v1.2.0 - 5.1.5 Ensure SSH LogLevel is appropriate