pdf

NSA - Windows event log monitoring.pdf

Nsa Windows Event Log Monitoring

Resource covering Logging titled 'Nsa Windows Event Log Monitoring'.

Last updated:

This page contains AI generated content. Errors or omissions may be present. Use human level critical thinking.
  • Q: How can administrators disable Windows Remote Shell on domain sources?
    A: Administrators can disable Windows Remote Shell (WinRS) via Group Policy or command line to reduce attack surface. For domains, navigate to Computer Configuration > Policies > Administrative Templates > Windows Components > Windows Remote Shell and set the Allow Remote Shell Access policy to Disabled. Alternatively, use the command line on sources: winrm set winrm/config/winrs @{AllowRemoteShellAccess=”false”}. This policy enforcement applies to both collectors and sources within the domain environment. Disabling WinRS is recommended because event forwarding does not require it, and leaving it enabled provides an additional attack vector for lateral movement or reconnaissance by attackers present on the network.
    Level: Intermediate Topic: disabling Windows Remote Shell Updated:
  • Q: How can administrators increase storage capacity for the Forwarded Events log file beyond local disk limits?
    A: To increase storage capacity beyond local disk limits, administrators can move the Forwarded Events log file to a larger separate disk or a network mapped drive with ample space. Open Event Viewer, select Forwarded Events under Windows Logs, and right-click to access Properties. Change the Log Path to specify the absolute path to the new location. Network-mapped drives must be specified by their names (e.g., \\NetDrive\newdir\Fwd.evtx). This modification does not affect custom views or subscriptions already deployed but helps manage the 1GB recommended size limitation which may only hold a few hours to days of data depending on network size.
    Level: Advanced Topic: Forwarded Events log path Updated:
  • Q: What permissions should be assigned to the Administrators group for event log files according to DISA STIG?
    A: To ensure integrity of event logs against tampering, DISA STIGs recommend creating an auditor’s group with full permissions while reducing the Administrators group privileges to Read and Execute for Application, System, and Security log files. This prevents normal users or privileged groups from modifying logs accidentally or maliciously. Additionally, enable the Manage auditing and security log policy under Local Policies > User Rights Assignment to whitelist specific users or groups permitted to access the audit log. While no software guarantees prevention of modification, these Access Control List (ACL) measures provide a defense-in-depth approach to regulate who is permitted to operate on event log files locally.
    Level: Beginner Topic: ensuring integrity of event logs Updated:
  • Q: What command-line tool is used to create and verify event forwarding subscriptions on the collector?
    A: Administrators use the command-line tool wecutil.exe to create and verify event forwarding subscriptions on the collector server. To create a subscription, execute wecutil cs followed by the XML file path. To correct configuration permissions using Security Descriptor Definition Language (SDDL), use wecutil ss with the SubscriptionId and /adc parameter. Finally, verify no issues are present by executing wecutil rs SubscriptionId. These tools allow management of subscriptions without relying solely on the GUI, facilitating automation and verification of the event collection infrastructure defined in the guidance document.
    Level: Intermediate Topic: subscription management commands Updated:
  • Q: For which network profiles must WinRM firewall rules be enabled to prevent subscription errors?
    A: WinRM firewall rules must be applied to Domain, Private, and Public profiles to ensure successful communication between sources and collectors. Modifying this setting to select only the Domain profile will result in errors with subscriptions running and sources communicating with the subscription manager. The predefined rule Windows Remote Management (HTTP-In) allows traffic on port 5985 for WinRM 2.0, while the Compatibility rule allows port 80 for earlier versions. Enabling these rules via Group Policy or command line ensures the firewall does not block the necessary inbound connections required for event forwarding to function correctly across different network environments.
    Level: Beginner Topic: WinRM firewall profiles Updated:
  • Q: Which Event IDs indicate blocked applications via AppLocker or Software Restriction Policies?
    A: Administrators should collect Application Whitelisting events to identify blocked applications that may indicate malware or unapproved software usage. For AppLocker, monitor Event IDs 8003, 8004, 8006, and 8007 from the Microsoft-Windows-AppLocker log sources. For Software Restriction Policies (SRP), collect Event IDs 865, 866, 867, 868, and 882 from the Application log source. These events indicate when software execution is blocked based on configured policies. Collecting these logs allows administrators to review newly installed software or system services and verify they do not pose a risk to the network during normal operations.
    Level: Intermediate Topic: application whitelisting events Updated:
  • Q: How should administrators ensure the integrity of Windows event logs against tampering?
    A: To ensure the integrity of event logs against accidental tampering, administrators should implement Access Control Lists (ACLs). The Defense Information Systems Agency (DISA) Security Technical Implementation Guides recommend creating an auditor's group and granting members full permissions. Simultaneously, the Administrators group privileges must be reduced from Full to Read and Execute permissions for Application, System, and Security log files. Additionally, enable the 'Manage auditing and security log' policy under Local Policies > User Rights Assignment to whitelist specific users or groups permitted to access the audit log. This defense-in-depth approach helps regulate who is permitted to operate on event log files, though it does not guarantee an attacker could never modify logs.
    Level: Beginner Topic: hardening WinRM authentication methods Updated:
  • Q: What security requirements apply when collecting events from non-domain joined computers?
    A: Event Forwarding is not limited to domain-joined computers; non-domain members can utilize the feature under specific conditions. For these environments, Transport Layer Security (TLS) or Secure Sockets Layer (SSL) must be used to encrypt WinRM traffic between the collector and source. The general configuration steps involve setting up the listening port, creating certificates for both collectors and sources, configuring the subscription manager, and establishing subscriptions. Client certificate mapping is used to authenticate the collector and source in non-domain scenarios. This ensures secure communication channels where Windows Integrated Authentication methods like Kerberos or Negotiate are unavailable due to the lack of domain trust relationships.
    Level: Advanced Topic: configuring Windows Event Forwarding policies Updated:
  • Q: What are the recommended retention settings for the central Forwarded Events log file?
    A: Administrators should configure the Forwarded Events log file on the central collection server to a size of approximately 1GB. It is recommended to enable the 'Archive the log when full, do not overwrite events' policy to manage capacity behavior. While the theoretical maximum log file size on Windows Server 2008 R2 is 2 terabytes, larger files cause the Event Viewer UI to load slower. Due to storage limitations, logs should be reviewed daily and archived or fed into a Security Information Event Management (SIEM) system. For increased capacity, the log file path can be modified to reside on a separate disk or a network-mapped drive with ample space without affecting existing custom views or subscriptions.
    Level: Intermediate Topic: configuring Windows Event Forwarding policies Updated:
  • Q: How can administrators distinguish Remote Desktop logons from standard local logins in event logs?
    A: Remote Desktop Protocol (RDP) account activity is not easily identifiable using the standard Event Viewer GUI. Administrators should create a custom Query Filter to clarify logon types. Successful RDP logons generate Event ID 4624 with a LogonType value of 10, indicating a Remote Interactive logon. Logoffs are indicated by Event ID 4634 with the same LogonType. The authentication package is typically Negotiate. Since only specific administrators should use RDP from limited management workstations, any activity outside expected patterns warrants investigation. These XPath queries allow for precise monitoring of remote interactive sessions to detect unauthorized access attempts or lateral movement via Remote Desktop services.
    Level: Intermediate Topic: detecting pass the hash via event logs Updated:
  • Q: What specific event criteria should administrators monitor to detect Pass the Hash lateral movement?
    A: To detect Pass the Hash (PtH) attacks via lateral movement, administrators should configure custom views using XPath queries targeting specific event criteria. Successful PtH attempts trigger Event ID 4624 with an Information level from the Security log. The query must filter for LogonType 3 and NTLM authentication packages. Crucially, the TargetDomainName must not match the local domain name, and the TargetUserName must not be 'ANONYMOUS LOGON'. Failed attempts trigger Event ID 4625 with identical filtering parameters. These queries identify local accounts attempting remote connections outside the domain, which is a rarity and should be treated as suspicious activity requiring immediate investigation by security personnel.
    Level: Advanced Topic: detecting pass the hash via event logs Updated:
  • Q: Which WinRM authentication methods should be disabled during security hardening?
    A: During WinRM hardening, several authentication methods should be disabled to reduce attack surface. Setting Allow Basic Authentication to Disabled is recommended for both client and service configurations. Similarly, Disallow Digest Authentication should be Enabled on the client. Credential Security Support Provider (CredSSP) should be set to Disabled for both client and service. While Negotiate Authentication defaults to True, setting Disallow Negotiate Authentication to Enabled is recommended after configuration is complete to avoid local configuration issues. Client Certificate-Based Authentication should also be set to False. These settings are located in Administrative Templates > Windows Components > Windows Remote Management (WinRM) within Group Policy.
    Level: Intermediate Topic: WinRM authentication hardening Updated:
  • Q: What is the purpose of Windows Event Forwarding in a centralized monitoring environment?
    A: Windows Event Forwarding allows the Windows Collector Service to centrally collect specific events from domain and non-domain computers for viewing on a single computer. This feature operates in two modes: Collector-Initiated (pull) or Source-Initiated (push). A Source-Initiated subscription offers the advantage of not requiring the collector to know all remote computer names beforehand, whereas Collector-Initiated subscriptions require this information which is harder to maintain. The service uses Microsoft’s implementation of the Web Services-Management Protocol to communicate between sources and collectors. This guidance focuses on configuring event forwarding in domain environments only using built-in Windows tools without additional licensing costs.
    Level: Newbie Topic: Windows Event Forwarding definition Updated:
  • Q: How should administrators configure WinRM firewall rules to restrict access?
    A: To mitigate lateral movement attacks, administrators must customize predefined WinRM firewall rules to restrict connections strictly between collectors and sources. Default rules permit connections from any IP address. For source computers, navigate to the Scope tab of the predefined WinRM rule and select 'These IP addresses' to whitelist only the collector's IP. For the collector, setting the Predefined set of computers option to Local subnet is recommended. These configurations apply under Computer Configuration > Policies > Windows Settings > Security Settings > Windows Firewall with Advanced Security > Inbound Rules. This isolation limits an attacker from using WinRM services as a target for reconnaissance or lateral movement across the network.
    Level: Beginner Topic: WinRM firewall restriction Updated:
  • Q: How does Channel Binding Token prevent Man-in-the-Middle attacks in WinRM?
    A: Channel Binding Token (CBT) secures communication channels between client and server using Transport Layer Security to prevent Man-in-the-Middle attacks. In a MitM scenario, an attacker intercepts requests between client and server, generating two separate sessions with different tokens. A CBT-aware server detects this discrepancy between the server-to-attacker and client-to-attacker connections. Upon noticing the invalid channel token, the server refuses the authentication request. This option is available in WinRM 2.0 and later. Administrators should set the Specify channel binding token hardening level policy to Strict if using TLS; otherwise, set it to Disabled. This ensures that only valid, bound channels are accepted during authentication processes.
    Level: Advanced Topic: Channel Binding Token mitigation Updated:

Ask a question

Have a doubt or need clarification?

Share your question, and I’ll add it and the response to the page for this document.

Thank you!

I have received your message and I shall get back to you shortly.