alphagov / cyber-security-windows-sandbox

Build a windows domain in AWS with terraform with a DC and WEC event forwarding.
MIT License
3 stars 0 forks source link

Fix WEC subscriptions from DC ^^^^~(12) #21

Open danjoneslf opened 3 years ago

danjoneslf commented 3 years ago

Currently we are only getting logs into Splunk from the WEC instance We're not getting any events from the DC

danjoneslf commented 3 years ago

https://www.itprotoday.com/strategy/q-what-are-some-simple-tips-testing-and-troubleshooting-windows-event-forwarding-and

danjoneslf commented 3 years ago

I've found an error applying the GPO.

Computer policy could not be updated successfully. The following errors were encountered:

The processing of Group Policy failed. Windows could not apply the registry-based policy settings for the Group Policy object LDAP://CN=Machine,cn={017B1AD8-98EF-4D63-B4E3-62E8242D5B10},cn=policies,cn=system,DC=cdio-windows-sandbox-staging,DC=com. Group Policy settings will not be resolved until this event is resolved. View the event details for more information on the file name and path that caused the failure.
User Policy update has completed successfully.

To diagnose the failure, review the event log or run GPRESULT /H GPReport.html from the command line to access information about Group Policy results.

Unfortunately the GPRESULT /H GPReport.html fails saying the parameters are invalid and the help for GPRESULT uses exactly those params as its example!

danjoneslf commented 3 years ago

The GPO backups are full of non-printable null characters. I might try removing those. I guess the next plan is to try to create and backup a GPO manually.

danjoneslf commented 3 years ago

Notes for Monday:

Check if there's anything I've not tried on here: http://tutorial.programming4.us/windows_7/forwarding-events-(part-2)---how-to-troubleshoot-event-forwarding---how-to-configure-event-forwarding-in-workgroup-environments.aspx

alice-carr commented 3 years ago

To note:

danjoneslf commented 3 years ago

Plan is to pause this and pick it up later. We can still get the pipeline working validating that events are arriving from the WEC in the first instance and then iterate to improve it maybe when Ollie's back or maybe with some help from Krish. I've already tapped up Mo for how they setup the one in Defence. It's slightly different because they didn't do it in code and are using Windows Server 2019 - We're using Windows Server 2016 to match the current Official IT Platform.

danjoneslf commented 3 years ago

Time booked with Ollie to debug this on Friday afternoon