TMAegis
aix 관련 규칙 더 보기

TMA-AIX-2.7

Ensure unused symbolic links are removed

보통레벨 1자동aix

설명

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

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target aix