macOS
TMA-MACOS15-2.3.3.7
Ensure Internet Sharing Is Disabled
높음레벨 1자동macos
설명
Internet Sharing uses the open source natd process to share an internet connection with other computers and devices on a local network. This allows the Mac to function as a router and share the connection to other, possibly unauthorized, devices. Audit: Passes when com.apple.nat has no "Enabled = 1" entry or a profile sets forceInternetSharingOff.
점검 방법
감사 방식: 셸 명령
shell
[ -x /usr/bin/defaults ] || exit 1
f=$(/usr/bin/osascript -l JavaScript <<'EOS'
$.NSUserDefaults.alloc.initWithSuiteName('com.apple.MCX').objectForKey('forceInternetSharingOff').js
EOS
)
n=$(/usr/bin/defaults read /Library/Preferences/SystemConfiguration/com.apple.nat 2>/dev/null | /usr/bin/grep -c "Enabled = 1;")
if [ "$f" = true ] || [ "${n:-0}" -eq 0 ]; then echo compliant; else echo "Internet Sharing enabled"; fi- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
Profile (preferred): com.apple.MCX forceInternetSharingOff = <true/>. Terminal: usr/bin/sudo /usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict Enabled -int 0. GUI: System Settings > General > Sharing > Set Internet Sharing to disabled.
속성
- 운영 체제
- macos-15
- 태그
- macossystem-settings
- 참고 자료
- CIS Apple macOS 15.0 Sequoia Benchmark v2.1.0 - 2.3.3.7 Ensure Internet Sharing Is Disabled
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target macos