Using Windows Event Forwarding for Centralized Windows Monitoring – Part 3

HawkEye SOC Packages

Reading security logs requires a higher level of permission that other logs. Below are the steps to configure the right permissions for reading security logs.

Configuring permissions to allow reading security logs

  • Create a security string for access to security logs. Run the command wevutil gl security from cmd.

wevutil-gl

  • Copy the string from the channelAccess line that starts with O:BAG:SYD: and append it with the following string: (A;;0x1;;;NS)

  • From the Group Policy Management Editor, navigate to Computer Configuration>Policies>Admin Templates>Windows Components>Event Log Service>Security> Configure log access

Local-Group-Policy-Editor

  • Right click on ‘Configure log access’ and click edit
  • Click on “enabled”
  • In the “Log Access” text box, enter the string created by appending to the wevutil command output.

Configure-Log-Access

  • Click Ok

Configuring Windows Event Forwarding

First, we enable the Windows Event Collector service.

  • Open the ‘Run’ prompt by pressing the Windows Key + R.
  • Type in ‘services.msc’ and click ‘OK’

services-msc

  • In the ‘Services’ window, scroll down to ‘Windows Event Collector’, right click and select ‘Properties’.
  • Change the ‘Startup Type’ to Automatic (Delayed Start) and click the ‘Start’ button.

  • Click ‘OK’

The next step is to create a ‘Subscription’ in the ‘Event Viewer’

  • Open the run prompt again, type in ‘eventvwr’, and click ‘OK’. This opens the Event Viewer window.
  • In the Event Viewer window, right click on ‘Subscriptions’ and select ‘Create Subscription’.

Subscriptions

  • Give the subscription a name and select the ‘Source Computer Initiated’ radio button.

Subscription-Properties

  • Click ‘Select Computer Groups’ and select ‘Add Domain Computers’.

Computer-Groups

  • In the ‘Enter the object name to select’ text box, enter the computer name and click ‘Check Names’. Once the correct computer name is populated, click ‘OK’.

Select-Computer

  • This (unfortunately) needs to be repeated for each computer name from which events are to be forwarded.
  • In the ‘Subscription Properties’ dialog box, click ‘Select Events’. This opens the ‘Query Filter’ dialog box.
  • In the ‘Query Filter’ dialog box, select the Event Level and Event Log options as appropriate.

Query-Filter

  • Click ‘OK’ on the ‘Query Filter’ and ‘Subscription Properties’ dialog boxes.

The next step is to configure the WEF subscription server from Group Policy.

  • Open the Group Policy editor again. This can be done from Control Panel as discussed earlier or by typing ‘gpedit.msc’ into the ‘Run’ prompt.
  • From the Group Policy Management Editor, navigate to Computer Configuration > Policies > Administrative Templates > Windows Components > Event Forwarding > Configure Target Subscription Manager

Target-Subscription-Manager

  • Right click ‘Configure Target Subscription Manager’ and click ‘Edit’.
  • Change the radio button to enabled.
  • Under ‘Options’, click ‘Show’ and fill in the value in the below syntax.
    Server=

Configure-Target-Subscription-Manager

  • Click ‘OK’ on ‘Show Contents’ and ‘Configure target Subscription Manager’ dialogs.

Verifying that Event Forwarding is working

  • Open Event Viewer as discussed earlier in the article.
  • Click on Windows Logs > Forwarded Events
  • The forwarded events should be populated as below

Event-Viewer

Ready to get started?

Contact us to arrange a half day
Managed SOC and XDR workshop in Dubai

Ready to get started?

Contact us to arrange a half day Managed SOC and XDR workshop in Dubai

© 2024 HawkEye – Managed CSOC and XDR powered by DTS Solution. All Rights Reserved.
This is a staging environment