TMAegisBeta
更多 cos 規則

Container-Optimized OS

TMA-COS-5.3.5

Ensure default user shell timeout is 900 seconds or less

低等級 2人工審核cos

說明

The default TMOUT determines the shell timeout for users. The TMOUT value is measured in seconds. Having no timeout value associated with a shell could allow an unauthorized user access to another user's shell session (e.g. user walks away from their computer and doesn't lock the screen). Setting a timeout value at least reduces the risk of this happening.

檢查方式

稽核方法: 人工審核

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

Run the following commands and verify all TMOUT lines returned are 900 or less and at least one exists in each file. # grep "^TMOUT" /etc/bash/bashrc TMOUT=900 # grep "^TMOUT" /etc/profile TMOUT=900

修補方式

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

Edit the /etc/bash/bashrc and /etc/profile files (and the appropriate files for any other shell supported on your system) and add or edit any umask parameters as follows: TMOUT=900

屬性

作業系統
不限
標籤
container-optimized-oscos
參考資料
CIS Google Container-Optimized OS Benchmark v1.2.0 - 5.3.5 Ensure default user shell timeout is 900 seconds or less