TMAegis
sharepoint 관련 규칙 더 보기

TMA-SHAREPOINT-2.2

Ensure the SharePoint farm service account (database access account) is configured with the minimum privileges for the local server.

높음레벨 1자동sharepoint

설명

The SharePoint farm service account (database access account) must be configured with the minimum privileges for the local server. Prints the number of local groups on this server, other than WSS_RESTRICTED_WPG, WSS_ADMIN_WPG and WSS_WPG, that directly contain the farm service account (expected 0). Only direct membership is evaluated; nested domain groups need manual review. Run on every farm server. Run on a SharePoint farm server as a farm administrator; the audit loads the Microsoft.SharePoint.PowerShell snap-in and fails if it cannot.

점검 방법

감사 방식: 셸 명령

shell
$ErrorActionPreference = 'Stop'; if (-not (Get-Command Get-SPFarm -ErrorAction SilentlyContinue)) { Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction Stop }; if (-not (Get-Command Get-SPFarm -ErrorAction SilentlyContinue)) { throw 'SharePoint cmdlets are not available' }; $acct = "$((Get-SPFarm -ErrorAction Stop).DefaultServiceAccount.Name)"; if ($acct -notmatch '\\') { throw 'farm account not found' }; $dom, $sam = $acct.Split('\', 2); $re = '/' + [regex]::Escape($dom) + '/' + [regex]::Escape($sam) + '$'; $allowed = @('WSS_RESTRICTED_WPG','WSS_ADMIN_WPG','WSS_WPG'); $pc = [ADSI]("WinNT://" + $env:COMPUTERNAME + ",computer"); $bad = @($pc.Children | Where-Object { $_.SchemaClassName -eq 'group' } | Where-Object { $allowed -notcontains "$($_.Name)" } | Where-Object { $paths = @($_.Invoke('Members') | ForEach-Object { $_.GetType().InvokeMember('ADsPath', 'GetProperty', $null, $_, $null) }); @($paths | Where-Object { $_ -match $re }).Count -gt 0 }); $bad.Count
예상 출력
0

조치 방법

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

Remove the farm account from every local group except WSS_RESTRICTED_WPG, WSS_ADMIN_WPG and WSS_WPG (Server Manager > Local Users and Groups, or Remove-LocalGroupMember -Group <group> -Member <DOMAIN\farmaccount>), and remove any other rights/services assigned to it.

속성

운영 체제
모두
태그
sharepointservice-accountsleast-privilege
참고 자료
CIS Microsoft SharePoint 2019 Benchmark v1.0.0 - 2.2 Ensure the SharePoint farm service account (database access account) is configured with the minimum privileges for the local server.

이 호스트 점검하기

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

shell
tmaegis scan --target sharepoint