TMAegis
Više pravila za aix

TMA-AIX-2.7

Ensure unused symbolic links are removed

SrednjaNivo 1Automatskaaix

Opis

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).

Kako se proverava

Metod provere: Komanda ljuske

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
Očekivani izlaz
compliant

Kako se ispravlja

Metod ispravke: Smernica ili zakrpa infrastrukture

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

Svojstva

Operativni sistemi
Bilo koji
Oznake
aixhardening
Referenca
CIS IBM AIX 7 Benchmark v1.2.0 - 2.7 Ensure unused symbolic links are removed

Proverite ovaj računar

Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.

shell
tmaegis scan --target aix