--- # Generated by tools/hardened.py from ../t1. Edit t1 or the script; this file is regenerated. # # Starting values: Standard's defaults, role by role. Change them here, in # your copy. The rules in policy/ check this file before every run. # ---- wef_collector ---- # Every setting the role understands, with the value used when you say nothing. # Override in group_vars or host_vars. Do not edit this file. wef_collector_subscription_name: iac-baseline wef_collector_dir: C:\ProgramData\iac\wef # Which computers may send. The default is every member computer (DC is the # SDDL name for Domain Computers) and every domain controller (DD), which are # not members of Domain Computers and are usually the sources that matter # most. Narrow it by putting a group's SID in place of DC. wef_collector_allowed_sources_sddl: "O:NSG:BAD:P(A;;GA;;;DC)(A;;GA;;;DD)S:" # What to collect. Security and Sysmon in full; from the other logs, only the # events that answer investigation questions. Every log named here must exist # on every source. Check wecutil gr after a change for sources in error. wef_collector_selects: - { path: Security, query: "*" } - { path: Microsoft-Windows-Sysmon/Operational, query: "*" } # 7045: a new service was installed. 104: a log was cleared. - { path: System, query: "*[System[(EventID=7045 or EventID=104)]]" } # 4104: a PowerShell script block ran. - { path: Microsoft-Windows-PowerShell/Operational, query: "*[System[(EventID=4104)]]" } # 1116 and 1117: Defender found something, and what it did about it. - { path: Microsoft-Windows-Windows Defender/Operational, query: "*[System[(EventID=1116 or EventID=1117)]]" } # ForwardedEvents is small by default. The collector's own disk is the buffer # between the sources and whatever reads this log next, so size it for the # time that reader could be down. wef_collector_log_max_bytes: 4294967296 # ---- windows_audit ---- # Every setting the role understands, with the value used when you say nothing. # Override in group_vars or host_vars. Do not edit this file. # Advanced audit policy subcategories and what to record for each. These are # the ones investigations keep asking for. Names are the English ones auditpol # prints; a server installed in another language needs the local names. windows_audit_subcategories: - { name: Credential Validation, audit: [success, failure] } - { name: Kerberos Authentication Service, audit: [success, failure] } - { name: Logon, audit: [success, failure] } - { name: Special Logon, audit: [success] } - { name: Other Logon/Logoff Events, audit: [success, failure] } - { name: Process Creation, audit: [success] } - { name: User Account Management, audit: [success, failure] } - { name: Security Group Management, audit: [success] } - { name: Audit Policy Change, audit: [success] } - { name: Security System Extension, audit: [success] } - { name: Removable Storage, audit: [success, failure] } # Event 4688 records that a process started. This makes it record the full # command line too, which is usually the part that explains what happened. windows_audit_process_command_line: true # PowerShell writes every script block it runs to its own log (event 4104), # including code that was downloaded and never touched the disk. windows_audit_powershell_script_blocks: true # The default Security log size fills in minutes on a busy domain controller. # Size it to keep at least a day on the busiest host you run. windows_audit_security_log_max_bytes: 1073741824 # ---- sysmon ---- # Every setting the role understands, with the value used when you say nothing. # Override in group_vars or host_vars. Do not edit this file. # Where Sysmon comes from. The file at this address changes with every # release, so the checksum has no default and the role stops without it. sysmon_zip_url: https://download.sysinternals.com/files/Sysmon.zip sysmon_zip_sha256: "" sysmon_dir: C:\ProgramData\iac\sysmon # The Sysmon log is 64 MB by default, which a busy server fills in hours. # If forwarding stops for a day, this is what is left to read. sysmon_log_max_bytes: 1073741824 # Outbound connections are logged for these programs, and for anything run # from a user profile. Logging every connection from every program is usually # more than a collector can absorb. sysmon_network_images: - \powershell.exe - \pwsh.exe - \rundll32.exe - \regsvr32.exe - \mshta.exe - \certutil.exe - \bitsadmin.exe - \msbuild.exe - \wscript.exe - \cscript.exe sysmon_network_ports: [22, 3389, 5985, 5986] # Security software opens LSASS all day. Name those programs here, by full # path, once you have seen them in the log, so real reads stand out. sysmon_lsass_allowed_images: [] # DNS queries answer "what did this machine talk to", and they are the # largest source of volume. Off by default. Turn on where you can absorb it. sysmon_dns_queries: false # Downloads keep a Zone.Identifier stream naming the site they came from. # Recording it answers "where did this file come from" for these extensions. sysmon_download_extensions: [.exe, .dll, .msi, .ps1, .zip, .iso, .hta] # ---- wef_source ---- # Every setting the role understands, with the value used when you say nothing. # Override in group_vars or host_vars. Do not edit this file. # The collector's DNS name as the sources see it. Required. wef_source_collector_fqdn: "" # How often, in seconds, the source asks the collector for its subscriptions. wef_source_refresh_seconds: 60 # Logs the forwarder needs read access to. NETWORK SERVICE, which the # forwarder runs as, cannot read these by default. wef_source_readable_logs: - Security - Microsoft-Windows-Sysmon/Operational