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