NXLog for auditing ADFS
Active Directory Federation 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.
These operating systems are supported:
- Windows Server 2012 R2
- Windows Server 2016
- Windows Server 2019
PowerShell commands for auditing 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:
You must run these commands on the primary ADFS server.
- 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')
ADFS audit configuration in Group Policy
Based on Microsoft best practices, all Group Policy Objects (GPOs) that apply to ADFS servers should not apply to other servers. See Configure an Arctic Wolf GPO Advanced Audit Policy for more information. If the ADFS server is not also a domain controller (DC), some items do not apply.
Enable the ADFS service account
The ADFS service account is disabled by default.
Events from the auditing levels above the service account are independent of the default options on the Events tab of the ADFS properties.
ADFS logs for troubleshooting
These are the primary logs used for ADFS troubleshooting:
- Administrative log — Provides high-level information for issues. This logging is enabled by default.
- Trace log — Generates in a short amount of time. This logging is disabled by default.