IBM AIX
TMA-AIX-2.7
Ensure unused symbolic links are removed
說明
This recommendation finds and removes symbolic links whose targets are missing. Symbolic Links that do not have a valid target are a risk to system integrity. The recommendation is to scan frequently (weekly or daily) for symbolic links without a valid target object and remove them. Do not assume that anyone responsible for maintaining system integrity is (actively) monitoring unknown software. Symbolic links - pointing at nothing - are, by definition, unauthorized and/or belong on a blocklist. Audit: lists dangling symbolic links on local JFS/JFS2 filesystems (long running).
檢查方式
稽核方法: Shell 指令
command -v find >/dev/null 2>&1 || exit 1; out=$( { find -L / \( -fstype jfs -o -fstype jfs2 \) -type l -ls ; } 2>/dev/null ); [ -z "$out" ] && echo compliant || printf '%s\n' "$out" | head -n 20- 預期輸出
compliant
修補方式
修補方法: 操作指南或基礎設施修補檔
The following command will remove all symbolic links that lack a valid target object: find -L / \( -fstype jfs -o -fstype jfs2 \) -type l | xargs rm
屬性
- 作業系統
- 不限
- 標籤
- aixhardening
- 參考資料
- CIS IBM AIX 7 Benchmark v1.2.0 - 2.7 Ensure unused symbolic links are removed
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
tmaegis scan --target aix