Giter Club home page Giter Club logo

win-audit-policy-settings's Introduction

Overview

This project addresses problems with the default Windows log settings. By default, Windows does not log many events that are necessary for detecting malicious activity and performing forensic investigations. To enhance visibility in your Windows environment, the audit policies must be configured properly.

Important

Make changes to your systems at your own risk! The suggestions in this project are based on my research from Microsoft documentation and other sources.

This is a work in progress; please check back periodically for updates.

Acknowledgements

This project's knowledge base is primarily drawn from Microsoft's "Advanced Security Audit Policy Settings" document. Special thanks to Michel de Crevoisier for the Windows-auditing-baseline project. Utilizing Michel de Crevoisier's Excel table, I have adapted some audit policy settings based on my research, added the number of Sigma rules per Event ID, and included descriptions for each subcategory (using GPT-3.5/4.0).

Additional thanks go to Yamato-Security for their "Security Log Audit Settings" guide, and the use of the Hayabusa tool in this project to count Sigma rules per Event ID.

Access to Document

You can access it through the following link: Access Document.

Custom Script Instructions

This section provides instructions on using the Hayabusa tool along with custom scripts to build a dictionary of statistics for each Event ID.

  1. Update Sigma Rules Using Hayabusa Tool:

    • For Linux:
      ./hayabusa-2.13.0-lin-x64-musl update-rules
      
    • For Windows:
      hayabusa.exe update-rules
      
  2. Place Scripts Inside the Hayabusa Directory

  3. Install PyYAML:

    • Run the following command to install PyYAML:
      pip install PyYAML
      
  4. Build the Dictionary:

    • Execute the script to generate statistics by Event ID:
      python3 win_sec_generate_stats_by_event_id.py
      
  5. Retrieve Statistics by Event ID:

    • Use the following command to get statistics for a specific Event ID:
      python3 win_sec_get_event_id_stats.py
      

win-audit-policy-settings's People

Contributors

celeroon 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.