Configure auditing for ADFS
Active Directory Federated Services (ADFS) is a software component that provides users with single sign-on (SSO) access to systems and applications located across organizational boundaries. You can enable auditing for ADFS and send audit logs to Arctic Wolf® using NXLog.
Note: Based on Microsoft best practices, all Group Policy Objects (GPOs) that apply to ADFS servers should not apply to other servers. If the ADFS server is not also a domain controller (DC), some items do not apply.
These resources are required:
-
A supported operating system:
- Windows Server 2012 R2
- Windows Server 2016
- Windows Server 2019
Optional: Adjust the level of auditing for ADFS
By default, basic auditing is enabled for ADFS. But, you can run these basic PowerShell commands to adjust the level of auditing for ADFS:
On the primary ADFS server, run one or more of these commands:
- Run this command to log no more than five events for a single request:
BASH
Set-AdfsProperties -AuditLevel Basic - Run this command to disable log audit events:
BASH
Set-AdfsProperties -AuditLevel None - Run this command to log a significant number of events:
BASH
Set-AdfsProperties -AuditLevel Verbose - Run this command to view or verify the current auditing level:
BASH
Get-AdfsProperties - Run this command to turn on Extranet Lockout:
BASH
Set-AdfsProperties -EnableExtranetLockout $true -ExtranetLockoutThreshold 8 -ExtranetObservationWindow (new-timespan -Minutes 15) - Run this command to add block IP addresses to ADFS:
BASH
Set-AdfsProperties -AddBannedIps "1.2.3.4", "::3", "1.2.3.4/16" - Run this command to use the Windows Internal Database (WID) as the storage method for the ADFS configuration database:
BASH
Set-AdfsProperties -LogLevel ` ((Get-AdfsProperties).LogLevel+'SuccessAudits','FailureAudits')
Enable the ADFS service account
The ADFS service account is disabled by default.
Note:
Events from the auditing levels above the service account are independent of the default options on the Events tab of the ADFS properties.