Windows Event Logs for SIEM Your Servers Aren’t Writing

  • Home
  • Windows Event Logs for SIEM Your Servers Aren’t Writing
Windows Event Logs for SIEM Your Servers Aren’t Writing

Event 4688 is the record that tells you a program started on a Windows machine: which program, which account launched it, and which parent process spawned it. On a freshly built Windows Server it is never written. Microsoft ships the Audit Process Creation subcategory unconfigured and the command-line field switched off, so if your Windows event logs for SIEM come from servers nobody has touched since the build, your SOC is reading logons and not much else.

We see this in most estates we take over. The SIEM is licensed, the connector shows green, the dashboard has a tidy Windows panel. Then a real investigation starts, and the one question that matters (“what ran on the finance server at 2:14 in the morning?”) has no answer anywhere.

Why does this keep happening? Five comfortable beliefs, mostly. Here is what the logs actually show.

The short answer: switch on advanced audit policy through Group Policy (process creation with command line, PowerShell script block logging, account and group changes, service and scheduled task creation, Kerberos), enlarge the Security log, then forward a short list of event IDs from domain controllers, servers and admin workstations. Finally, prove every source keeps reporting.

Myth one: Windows already records what an attacker did

Part of this is true. Since Windows 10 version 1809, Audit Logon is enabled by default for success and failure, so 4624 and 4625 do show up. Microsoft’s own audit policy recommendations list the defaults side by side with its suggested baseline, and the gap is wide. Process creation has no default at all. PowerShell script block logging is off. Changes to security groups on member servers depend on whoever built the gold image.

So the default build tells you somebody logged on, and rarely what they did next.

Size is the second quiet problem. The default Security log on a busy domain controller can roll over in hours, and if the forwarder was down for a weekend the evidence is simply gone.

The fix lives in one Group Policy Object, applied to the right OUs in this order:

  1. Enable “Audit: Force audit policy subcategory settings to override audit policy category settings”, otherwise an old category-level policy can silently cancel your advanced settings.
  2. Under Advanced Audit Policy Configuration, set Process Creation, Security Group Management, User Account Management, Security System Extension, Other Object Access Events (for scheduled tasks), Kerberos Authentication Service and Kerberos Service Ticket Operations.
  3. Turn on “Include command line in process creation events” under System, Audit Process Creation.
  4. Turn on PowerShell Script Block Logging under Windows Components, Windows PowerShell.
  5. Raise the maximum Security log size and set retention to overwrite as needed, so the machine never stops logging when the file fills.

One honest trade-off. Microsoft’s command line process auditing page warns that command-line arguments can carry passwords and personal data. That is real: we have seen database connection strings with clear-text credentials land in 4688. Turn it on anyway, but restrict who can read the Security log and who can search those fields in the SIEM, and tell your DBA team to stop passing secrets on the command line.

Myth two: forward everything and filter it later in the SIEM

This sounds safe and costs a lot. Object access auditing (4663), Windows Filtering Platform connection events (5156) and handle-closed events (4658) can outnumber everything else on a file server or a busy terminal server. You pay for them in licensed events per second, in 180 days of storage, and in analyst attention.

Filter at the source instead. Windows Event Forwarding subscriptions accept XPath queries, and every serious collection agent supports an allow-list of event IDs per channel. Start narrow, measure the volume per host for a week, and widen only where a detection actually needs the data. Our EPS sizing method for Indian IT teams walks through how to measure before you buy.

Funnel showing how Windows event logs for SIEM are filtered at the source
Filter by host role at the source so the SIEM receives the short list, not every channel.

Where does this usually go wrong? The opposite direction. Someone gets a scary licence quote, filters out 4688 because it is the noisiest useful event, and leaves the SIEM blind to execution. If you must cut, cut by host role (skip process creation on kiosk PCs before you skip it on servers), never by dropping the event everywhere. Tuning noise belongs in the rules, as we argued in our piece on cutting SIEM false positives without going blind.

The Windows event logs for SIEM we actually forward

This is the list our SOC asks for on day one. Every row answers a question an analyst asks during a real incident, and most are cheap in volume.

Event ID Channel What it tells the analyst Collect from
4624, 4625 Security Successful and failed logons, with logon type (3 for network, 10 for RDP) and source address All Windows hosts
4672 Security Admin-equivalent privileges assigned to a new logon Domain controllers, servers
4688 Security New process, its command line and its parent Servers, admin and VIP workstations
4104 PowerShell Operational Script block content, including code that was decoded at run time Servers, workstations
4697, 7045 Security, System A new service was installed All Windows hosts
4698 Security A scheduled task was created All Windows hosts
4720, 4738 Security User account created or changed Domain controllers, member servers (local accounts)
4728, 4732, 4756 Security Member added to a security-enabled global, local or universal group Domain controllers, member servers
4740 Security Account locked out Domain controllers
4768, 4769, 4771, 4776 Security Kerberos ticket requests, pre-authentication failures, NTLM validation Domain controllers
1102 Security The audit log was cleared All Windows hosts
5140, 5145 Security Network share and file access over SMB File servers, filtered to sensitive shares

If you can only build alerts on three of these this quarter, take 1102, the group-membership trio, and 7045. Log clearing outside a change window almost never has an innocent explanation, a new Domain Admin at midnight deserves a phone call, and a fresh service install names the binary that remote-execution tools drop.

Picture a hypothetical 300-seat pharma distributor in Ahmedabad with one domain and a dozen servers. A user opens a booby-trapped invoice, Word spawns PowerShell, the attacker creates a local account, installs a service, hops to the file server over RDP and clears the log on the way out. Every step writes an event from the table above, if the audit policy was in place beforehand.

Animated attack chain showing the Windows event ID written at each attacker step
A hypothetical intrusion where each step, from PowerShell to a cleared log, writes a Windows event if audit policy is on.

Myth three: the domain controllers are the only logs that matter

Domain controllers see authentication: Kerberos tickets, account changes, lockouts. What they do not see is execution. A 4688 or a 4104 is written on the machine where the code ran, which is usually a laptop or an application server, nowhere near a DC.

Lateral movement makes the same point. When an attacker reuses a stolen credential to reach the file server, the most useful record is the 4624 type 3 or type 10 on the destination, with the source address in it. Collect only from DCs and you see that a ticket was issued, with no reliable view of where it was used. We covered the detection side in detail in lateral movement detection with the logs you already keep.

Diagram of domain controllers, servers and workstations sending Windows events to a SIEM
Identity events live on domain controllers, while execution events are written where the code ran.

Do you need every laptop on day one? No. Our order is domain controllers, then every server, then jump hosts and admin workstations, then the laptops of people who approve payments, and only then the general fleet.

Myth four: the EDR agent makes Windows logs redundant

We like EDR. Sophos Intercept X, CrowdStrike Falcon and Microsoft Defender for Endpoint build process trees far richer than 4688, and where an agent runs it is usually the faster view.

But three gaps remain. First, coverage: the Windows Server 2012 R2 box running the old payroll system often has no supported agent, and appliances built on Windows rarely allow one. Second, identity: Kerberos, NTLM and group-membership events on domain controllers are where account abuse shows up, and many EDR tools summarise rather than keep them. Third, retention and residency: the CERT-In directions of April 2022 ask service providers and body corporates to keep logs of all ICT systems for a rolling 180 days within Indian jurisdiction, and EDR telemetry retention is set by the vendor’s plan and hosting region. Our note on why log retention in India starts at 180 days covers the firewall side of the same rule.

If the budget only stretches to one, we would rather have EDR on endpoints plus the short list from DCs and servers in the SIEM than full Windows forwarding with no EDR. Both together is the right answer for anyone regulated by RBI, SEBI or IRDAI.

Myth five: the GPO went out, so collection works

Group Policy reports success when it applies. It won’t tell you that an OU blocks inheritance, that a legacy local policy wins on three old servers, or that the forwarding service on the ERP box stopped after last month’s patching.

Verification takes an afternoon; we repeat it quarterly:

  • Run auditpol /get /category:* on a sample of DCs, servers and workstations and compare against the baseline you wrote down.
  • Create a test user, add it to a test group and delete it, then time how long until the SIEM shows 4720, 4732 and 4726.
  • Run a harmless encoded PowerShell command on a test machine and confirm 4688 and 4104 both arrive with the command line intact.
  • Clear the Security log on a throwaway VM and check the 1102 alert reaches the on-call analyst and does not sit unread in an index.
  • Check clock drift on the sources, because a timeline built on skewed clocks misleads everyone. Our guide to CERT-In NTP time synchronisation has the checks.
  • Set an alert for any Windows source that stops reporting for longer than its normal gap.

That last item saves you. A server that goes quiet on a Saturday night is either broken or in someone else’s hands.

What changes when Windows logs land in PrahiX Uni

PrahiX Ora is a unified SecOps platform built by PrahiX Tech Pvt Ltd, and PrahiX Uni is the product on top of it that we deploy and operate for clients who want detection, response and network operations in one place. For this problem the relevant piece is its SIEM and SOAR on one engine: Windows events, firewall logs, identity, cloud audit logs and network telemetry share one data model, so the short list above is read in context instead of in a separate index. Your existing firewalls, EDR and Active Directory stay exactly where they are.

What Sophos Central covers, and the gap PrahiX fills

Plenty of mid-market estates run Sophos end to end, for good reason: Sophos Central manages Sophos firewalls, switches, access points and endpoints from one console, and Sophos XDR builds investigations on that telemetry with very little setup. The limits show up once the Windows evidence trail crosses into things Sophos did not make.

With Sophos alone With PrahiX
Sophos XDR and MDR are built on Sophos telemetry first; third-party sources such as another vendor’s firewall need integration licences Windows events, FortiGate, Palo Alto, Check Point and Sophos firewall logs, DNS and NetFlow arrive through pre-built connectors into one data model
Sophos Central manages Sophos devices; the console covers its own estate first Servers, switches, routers, wireless and ISP links from any vendor sit in one console, with topology discovered automatically
Alert storms from one failed uplink are reported per device Topology-aware correlation groups symptoms under the real cause, with up to 70% less alert noise
India-specific evidence, such as CERT-In 6-hour reporting packs, is assembled by hand CERT-In 2022, RBI, SEBI CSCRF and IRDAI mappings with submission-ready reports, and CERT-In advisories ingested automatically
Comparison of Windows log correlation with Sophos alone versus with PrahiX
Sophos devices stay in place; PrahiX reads their telemetry beside every other vendor and Windows source.

Six OEMs, one shared gap in Windows telemetry

Every major vendor sells a strong product for its own devices; Windows correlation across the estate is usually a separate product, module or volume-priced ingestion.

OEM What you get, and where it stops
Fortinet FortiAnalyzer stores Fortinet logs, with retention set by storage and licensed volume; full Windows correlation and response means FortiSIEM, FortiSOAR and FortiEDR, each a separate product and licence
Palo Alto Networks Panorama manages and logs PAN-OS firewalls; Cortex XDR, XSOAR and XSIAM are separate products, and Strata Logging Service retention depends on the storage purchased
Check Point SmartEvent correlation is a separately licensed blade sized in correlation units; Infinity XDR/XPR is another subscription
Sophos Strong on Sophos telemetry; third-party sources need integration licences
CrowdStrike Deep endpoint visibility through the Falcon agent; Falcon Next-Gen SIEM is a module with third-party ingestion licensed by volume, and firewalls and switches cannot run the agent
Trellix ePO manages Trellix agents; Helix and Trellix EDR are separate products under the XDR umbrella, and network device health is outside their scope
PrahiX Windows events beside every vendor’s firewall, EDR, identity and network telemetry on one engine, kept 180 days with tiered hot, cold and archive storage
Six OEM tiles showing where each vendor sells Windows correlation separately
Each major OEM covers its own devices well and sells cross-estate correlation as another product or licence.

The short list, matched to detections that ship with the platform

The event table earlier in this post maps closely to what Uni already detects. Its detections are Sigma-based and mapped to MITRE ATT&CK, with kill chain tracking and UEBA risk scoring, and they can be kept as version-controlled code alongside your own rules. Logs arrive within about ten seconds and are deduplicated on arrival. The Ahmedabad chain (Word spawning PowerShell, a new local account, a service install, RDP to the file server, a cleared log) becomes one graph-based storyline from initial access to impact rather than five unrelated alerts in five queues.

Myth five’s silent sources, and the 1102 alert, put to work

Servers are monitored in the same console that holds their logs, so a machine that goes quiet can be checked against its own health in one view instead of being discovered a month later. When 1102 fires, a drag-and-drop playbook can isolate the host through your EDR connector (CrowdStrike, SentinelOne, Carbon Black or Microsoft Defender), open the ServiceNow or Jira ticket and page the on-call analyst on Teams, with an approval gate where you want a human to decide. Every action lands in an immutable audit trail. Canary files and honeypots can trigger the same playbooks, a cheap way to catch the hop to the file server. More detail is on the PrahiX SIEM and SOAR integration page.

Eight PrahiX Uni capabilities fed by the Windows event short list
What the Windows short list feeds inside PrahiX Uni, from Sigma detections to CERT-In reports.

How the rest of the PrahiX family touches Windows logging

RAYA AI, the agent inside ORA, reads the storyline, writes the incident narrative and the executive summary, and sends a morning summary of what changed overnight. PrahiX Data Protection finds Aadhaar, PAN and bank details sitting on the file shares that 5145 events show being read in bulk. The camera monitoring system, PrahiX video surveillance (VMS), puts the server-room camera and the access controller on the same timeline as a console logon. And PrahiX Guest keeps visitor devices off the domain entirely, with versioned consent and login records held on premises.

Frequently asked questions

Which Windows event IDs should go to a SIEM first?

Start with the ones that are rare and almost always meaningful: 1102 (log cleared), 4728, 4732 and 4756 (privileged group changes), 7045 (service installed) and 4720 (account created). Add 4688 and 4104 next, once you have budgeted for their volume on busy servers.

How much extra log volume does Windows auditing create?

It depends far more on server role than on headcount. Domain controllers and terminal servers produce the most; a quiet application server produces very little. Enable the policy on a sample of each role for a week, count events per host, then multiply by the number of hosts in that role.

Do we still need Sysmon if advanced audit policy is on?

Not on day one. Sysmon, from Microsoft Sysinternals, adds process hashes, per-process network connections and DNS queries, which help threat hunting. It also needs a maintained configuration file. Get the built-in audit policy right first, then add Sysmon on servers and admin machines where the extra detail earns its upkeep.

Do CERT-In rules require us to keep Windows event logs?

The April 2022 directions ask covered entities to keep logs of all ICT systems for a rolling 180 days within India and to share them with CERT-In on request. Windows servers are ICT systems, so most legal teams read that as including their logs. Confirm scope with counsel; this is not legal advice.

Before Friday, run auditpol on three machines

Pick one domain controller, one application server and one admin laptop. Run auditpol /get /category:* on each, write down what comes back, and compare it with the table above. One of the three usually surprises people, and that gap becomes your first change request.

If you would like a second pair of eyes, our team runs Windows audit baselining within our managed SIEM services and will happily review the auditpol output with you.

Leave a Reply

Your email address will not be published. Required fields are marked *