TMAegis베타
macos 관련 규칙 더 보기

macOS

TMA-MACOS15-5.1.5

Ensure Appropriate Permissions Are Enabled for System Wide Applications

높음레벨 1자동macos

설명

Applications in the System Applications Directory (/Applications) should be world- executable since that is their reason to be on the system. They should not be world- writable and allow any process or user to alter them for other processes or users to then execute modified versions. Some application vendors use a world-writable folder for their applications. This is against the standard practice on POSIX systems.

점검 방법

감사 방식: 셸 명령

shell
[ -d /System/Volumes/Data/Applications ] || exit 1
/usr/bin/find /System/Volumes/Data/Applications -iname "*.app" -type d -perm -2 -ls 2>/dev/null | /usr/bin/grep -v Xcode.app | /usr/bin/wc -l | /usr/bin/xargs
예상 출력
0

조치 방법

조치 방식: 가이드 또는 인프라 패치

Terminal: IFS=$'\n' for apps in $( sudo /usr/bin/find /System/Volumes/Data/Applications -iname "*\.app" -type d -perm -2 | grep -v Xcode.app ); do sudo /bin/chmod -R o-w "$apps" done.

속성

운영 체제
macos-15
태그
macossystem-access
참고 자료
CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 5.1.5 Ensure Appropriate Permissions Are Enabled for System Wide Applications

이 호스트 점검하기

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

shell
tmaegis scan --target macos