Coder Social home page Coder Social logo

rakhithjk / windows-auditing-baseline Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mdecrevoisier/windows-auditing-baseline

0.0 1.0 0.0 227 KB

Provides an advanced baseline to implement a secure Windows auditing strategy on Windows OS.

License: MIT License

windows-auditing-baseline's Introduction

Windows-auditing-baseline

Project purpose

Defining a security audit baseline is a very challenging project, no matter the size of your organization. Indeed, it requires a very good understanding regarding how event logging works, knowledge about the value of hidden or unknown Windows logs and the meaning and impact of each event ID. In order to address this challenge, Windows-auditing-baseline project provides an advanced baseline that can be applied to any Active Directory environment in order to increase visibility on suspicious activities with a minimum of effort.

Project description

At the following you will find the different auditing steps to configure on your Windows assets. We advised to create 3 group policies (domain controllers, member servers and workstations) for granularity and flexibility purposes. In detail, the following points will be covered:

  • 1-Auditing baseline: configure auditing settings to increase visibility on your assets
  • 2-Disabled event logs: enable disabled but valuable event logs to increase visibility
  • 3-Log sizing: increase log retention to reduce the risk of data being overwritten and not forwarded

1-Auditing baseline

The security auditing baseline is defined in the following document. It highlights the different subcategories to audit (success and/or failure) together with the related MITRE TTPs that it can cover (if applicable). We also recommend to apply additional steps from Palantir for PowerShell auditing, command line auditing and WinRM client.

2-Disabled event logs

Windows operating system is provided with several event log that, despite of being disabled, can provide valuable information. The table at the following resume these events logs together with the advised action to perform (enable or manual activation).

Activation

To enable a disabled event log, edit the following registry key using the Group Policy Preferences (GPP) feature on the concerned Group Policy object (DC, SRV, WS):

  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\
  • Value "Enabled" = 1

Event logs list

Event log name Default status New advised status Host scope
Microsoft-Windows-Crypto-NCrypt/Operational Disabled Disabled (manual activation) All
Microsoft-Windows-CAPI2/Operational Disabled Enabled All
Microsoft-Windows-LSA/Operational Disabled Enabled All
Microsoft-Windows-PrintService/Admin Disabled Enabled All
Authentication/ProtectedUser-Client Disabled Enabled All
Microsoft-Windows-PrintService/Operational Disabled Enabled All
Microsoft-Windows-DriverFrameworks-UserMode/Operational Disabled Enabled All
Microsoft-Windows-DNS-Client/Operational Disabled Disabled (manual activation) Workstations
Authentication/AuthenticationPolicyFailures-DomainController Disabled Enabled Domain controllers
Authentication/ProtectedUserFailures-DomainController Disabled Enabled Domain controllers
Authentication/ProtectedUserSuccesses-DomainController Disabled Enabled Domain controllers
Microsoft-IIS-Configuration/Administrative Disabled Disabled (manual activation) Servers: web (IIS)
Microsoft-IIS-Configuration/Operational Disabled Disabled (manual activation) Servers: web (IIS)
Microsoft-IIS-Logging/Logs Disabled Disabled (manual activation) Servers: web (IIS)
Microsoft-Windows-Base-Filtering-Engine-Connections/Operational Disabled Disabled (manual activation) Servers: VPN
Microsoft-Windows-Base-Filtering-Engine-Resource-Flows/Operational Disabled Disabled (manual activation) Servers: VPN
Microsoft-Windows-WinNat/Oper Disabled Disabled (manual activation) Servers: VPN
Microsoft-Windows-Iphlpsvc Disabled Disabled (manual activation) Servers: VPN
Microsoft-Windows-Dhcp-Client/Operational Disabled Enabled Workstations
Microsoft-Windows-BitLocker/BitLocker Operational Disabled Enabled Workstations

3-Log sizing

Windows event logs are per default defined with a very limited size (between 15 et 20 MB). Having such limited size introduce the risk of data being overwritten and not collected in the case of, for example, limited connectivity due to network outage, VPN unreachable โ€ฆ Therefore we advise to increase the size for the following event logs:

  • Security event log: in the group policy settings (see picture below), go to Computer > Policies > Admin Templates > Windows Components > Event Log Service > Security > Specific the maximum log file size (KB) > 2 GB
  • Application event log: in the group policy settings (see picture below), go to Computer > Policies > Admin Templates > Windows Components > Event Log Service > Application > Specific the maximum log file size (KB) > 256 MB
  • System event log: in the group policy settings (see picture below), go to Computer > Policies > Admin Templates > Windows Components > Event Log Service > System > Specific the maximum log file size (KB) > 256 MB
  • Others event logs: follow the steps explained in step 2 by defining the MaxSize (KB) to 128 MB for Microsoft-Windows-PowerShell/Operational and Windows PowerShell event logs.

Sources

The following sources were used to elaborate the auditing baseline:

windows-auditing-baseline's People

Contributors

mdecrevoisier avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.