TMAegisベータ
aix のその他のルール

IBM AIX

TMA-AIX-4.6.3.18

Ensure sshd ClientAliveInterval and ClientAliveCountMax are configured

中レベル 1自動aix

説明

Note: To clarify, the two settings described below are only meant for idle connections from a protocol perspective and are not meant to check if the user is active or not. An idle user does not mean an idle connection. SSH does not and never had, intentionally, the capability to drop idle users. In order to prevent resource exhaustion, appropriate values should be set for both ClientAliveInterval and ClientAliveCountMax. Audit: evaluates the effective configuration from `sshd -T` (Match blocks must be reviewed separately).

チェック方法

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

shell
command -v sshd >/dev/null 2>&1 || exit 1; out=$(sshd -T 2>/dev/null) || exit 1; r=compliant; for p in '^clientaliveinterval[[:blank:]]+[1-9][0-9]*$' '^clientalivecountmax[[:blank:]]+[1-9][0-9]*$'; do printf '%s\n' "$out" | grep -Eiq -- "$p" || r="not matched: $p"; done; echo "$r"
期待される出力
compliant

修正方法

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

Edit the /etc/ssh/sshd_config file to set the ClientAliveInterval and ClientAliveCountMax parameters above any Include and Match entries according to site policy. Example: ClientAliveInterval 15 ClientAliveCountMax 3 Note: First occurrence of a option takes precedence, Match set statements withstanding. If Include locations are enabled, used, and order of precedence is understood in your environment, the entry may be created in a file in Include location.

プロパティ

オペレーティングシステム
すべて
タグ
aixssh
参照
CIS IBM AIX 7 Benchmark v1.2.0 - 4.6.3.18 Ensure sshd ClientAliveInterval and ClientAliveCountMax are configured

このホストをチェック

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

shell
tmaegis scan --target aix