Event ID 4674: An operation was attempted on a privileged object
Event ID 4674 records an attempt to perform a privileged operation on an object that is already open, such as taking ownership of a folder with SeTakeOwnershipPrivilege. It has Success and Failure forms, and its AccessMask is decimal, unlike 4663. Read PrivilegeList, AccessMask and ObjectName together.
What Triggers Event 4674 and Why Its AccessMask Is Decimal
Event 4674 records an attempt to perform a privileged operation on an object that is already open. Microsoft's wording is "a protected subsystem object after the object is already opened", and its examples are SeShutdownPrivilege, SeRemoteShutdownPrivilege and SeSecurityPrivilege. A Failure form exists for operations that did not go through. Like 4673 it sits in Audit Sensitive Privilege Use and Audit Non Sensitive Privilege Use, so the privilege involved decides which subcategory has to be switched on.
The sibling to compare is 4673, which reports a call to a service and names no object. This one has an object, and the Win32 function that matches it says so. ObjectPrivilegeAuditAlarm lets a protected server log a client's use of privileges "with an open handle to a private object". It takes the handle, the access mask wanted, the privileges and a success flag, which map onto HandleId, AccessMask and PrivilegeList. It does not check the client's token or its access to the object. The caller reports what it decided.
Microsoft marks ObjectServer, ObjectType and ObjectName as optional. Its sample is the LSA, running as LOCAL SERVICE, using SeSecurityPrivilege, with a hyphen in ObjectType and ObjectName and a HandleId of 0x0. The list of object types in the same page is much wider: File, Key, Process, Token, Thread, SC_MANAGER OBJECT and more. So one event ID covers a service-side operation with no object name at all and a privilege used on a file path, and your rules have to say which one they mean.
Then comes the decimal trap. Microsoft states that Desired Access in this event is in decimal format, and its sample shows 16777216. Event 4656 and event 4663 print AccessMask in hexadecimal. Convert 16777216 and you get 0x1000000, which Microsoft's access right table names ACCESS_SYS_SEC, the right to get or set the SACL of an object. That fits the privilege in the same sample, because SeSecurityPrivilege is what lets a caller set object auditing options. A filter written for 0x80000 never matches 524288, and it is an easy way to end up with a query that returns nothing.
HandleId can be joined to a 4656 for the same object, but Microsoft says it may be captured as 0x0, as in its own sample, and then no join exists. ProcessId is hexadecimal and matches the new process ID in a 4688.
Volume deserves a plan. Microsoft rates Sensitive Privilege Use as High volume and recommends Success and Failure auditing on every computer type. Use of the Backup and Restore privileges only generates events when the policy "Audit: Audit the use of Backup and Restore privilege" is enabled, and Microsoft advises against enabling it because of the number of events. A 2020 Microsoft Q&A thread, whose answers did not explain it, describes a non-admin laptop logging large numbers of 4674 events that name SeBackupPrivilege on files such as firefox.exe under Program Files. We cannot tell the cause from that thread. The first place to check on your own estate is that policy.
Event 4674 Fields
| Field | What it tells you | Simulated value |
|---|---|---|
SubjectUserSid | SID of the account that attempted the operation. | S-1-5-21-424242-1162 |
SubjectUserName | Name of the account that attempted the operation. | a.chen |
SubjectDomainName | Domain or computer name of the account. | CORP |
SubjectLogonId | Logon session ID; correlates to the 4624 that opened the session. | 0x71d4a8 |
ObjectServer | Optional Windows subsystem that owns the object, such as Security or LSA. | Security |
ObjectType | Optional type of the object, such as File, Key or Process. | File |
ObjectName | Optional name of the object. A hyphen when none applies. | D:\Shares\Legal\Contracts |
HandleId | Handle to the object; may appear as 0x0. Correlates with 4656. | 0x2f8 |
AccessMask | Desired access in decimal format, not hexadecimal. 524288 is WRITE_OWNER. | 524288 |
PrivilegeList | Privileges the caller tried to use. | SeTakeOwnershipPrivilege |
ProcessId | Hexadecimal ID of the process; matches the new process ID in a 4688. | 0x1f64 |
ProcessName | Full path of the executable that attempted the operation. | C:\Windows\System32\takeown.exe |
Inspect Event 4674 Values
Click a field to inspect the full simulated value, the way you would expand it in a SIEM event view.
Example Event 4674 Log
A representative Security entry for Event 4674, generated deterministically by our telemetry engine so every field holds a realistic, internally consistent value.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" />
<EventID>4674</EventID>
<Version>0</Version>
<Level>0</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8020000000000000</Keywords>
<TimeCreated SystemTime="2025-06-27T20:13:57.000Z" />
<EventRecordID>423564</EventRecordID>
<Channel>Security</Channel>
<Computer>WS-SIM-001.corp.socsimulator.example</Computer>
<Security />
</System>
<EventData>
<Data Name="SubjectUserSid">S-1-5-21-424242-1162</Data>
<Data Name="SubjectUserName">a.chen</Data>
<Data Name="SubjectDomainName">CORP</Data>
<Data Name="SubjectLogonId">0x71d4a8</Data>
<Data Name="ObjectServer">Security</Data>
<Data Name="ObjectType">File</Data>
<Data Name="ObjectName">D:\Shares\Legal\Contracts</Data>
<Data Name="HandleId">0x2f8</Data>
<Data Name="AccessMask">524288</Data>
<Data Name="PrivilegeList">SeTakeOwnershipPrivilege</Data>
<Data Name="ProcessId">0x1f64</Data>
<Data Name="ProcessName">C:\Windows\System32\takeown.exe</Data>
</EventData>
</Event>Detecting Event 4674
Ownership taken on an object: SeTakeOwnershipPrivilege with WRITE_OWNER
AccessMask in 4674 is decimal. 524288 is WRITE_OWNER (0x80000) and 786432 is WRITE_DAC plus WRITE_OWNER. Add the other sums you see. The SPL is for XmlWinEventLog:Security data.
index=wineventlog sourcetype=XmlWinEventLog:Security EventCode=4674 PrivilegeList="*SeTakeOwnershipPrivilege*" AccessMask IN ("524288", "786432")
| table _time, host, SubjectUserName, ProcessName, ObjectType, ObjectName, AccessMaskSeSecurityPrivilege with ACCESS_SYS_SEC from anything but the LSA
16777216 is ACCESS_SYS_SEC (0x1000000), the right to get or set a SACL. Microsoft's own sample is lsass.exe doing this as LOCAL SERVICE, so exclude it and review what is left. Add your audit and backup agents to the exclusion.
index=wineventlog sourcetype=XmlWinEventLog:Security EventCode=4674 PrivilegeList="*SeSecurityPrivilege*" AccessMask="16777216" | where NOT match(ProcessName, "(?i)\\\\lsass\\.exe$") | stats count by host, SubjectUserName, ProcessName, ObjectType
File or key touched with a sensitive privilege by an executable outside the usual install paths
Microsoft's advice for this event is to compare ProcessName with the process you expect and to flag executables outside System32 and Program Files.
index=wineventlog sourcetype=XmlWinEventLog:Security EventCode=4674 ObjectType IN ("File", "Key")
| where NOT (like(ProcessName, "C:\\Windows\\%") OR like(ProcessName, "C:\\Program Files%"))
| table _time, host, SubjectUserName, ProcessName, ObjectName, PrivilegeList, AccessMaskRefused privileged operations repeating for one user and process
Microsoft says to monitor Failure events especially. Audit Failure is not in the raw Splunk event. The Splunk Add-on for Microsoft Windows writes it from the Keywords value 0x8010000000000000. With no add-on, search the hex. Sentinel keeps the hex in the KQL, and Elastic maps it to event.outcome.
index=wineventlog sourcetype=XmlWinEventLog:Security EventCode=4674 Keywords="Audit Failure" | bin _time span=1h | stats count as failures by _time, host, SubjectUserName, ProcessName, PrivilegeList, ObjectType | where failures >= 3
Which privilege, object type and process produce the volume
Run this over a week first. A Microsoft Q&A thread reports a non-admin account logging large numbers of 4674 events that name SeBackupPrivilege. The Backup and Restore policy gates those events, so check it before you read the PrivilegeList column. Lucene is the base filter; the count runs in your SIEM.
index=wineventlog sourcetype=XmlWinEventLog:Security EventCode=4674 | stats count by Keywords, PrivilegeList, ObjectType, ProcessName | sort - count | head 25
True Positive vs False Positive
Microsoft's own monitoring advice for this event is the best starting filter. Look at events where the subject is not LOCAL SYSTEM, NETWORK SERVICE or LOCAL SERVICE and is not an administrative account expected to hold the listed privileges, and watch Failure events especially. Narrow by ObjectServer (LSA or the Security Account Manager, for example) or by ObjectType (File or Key). If a subject should only use a short list of privileges, alert on any other. Rights that should never be used, with SeDebugPrivilege as the example, deserve an alert on every occurrence.
Rules for this event fall into four groups. The first is ownership being taken: SeTakeOwnershipPrivilege with AccessMask 524288 (WRITE_OWNER) against a protected tree, by a person. MITRE's Windows permissions technique names takeown and icacls as the tools adversaries use to reset ACLs on files and folders, and lists ransomware such as WastedLocker among its examples. The second is SeSecurityPrivilege with 16777216 from anything that is not the LSA, which means somebody is reading or setting audit settings on an object. The third is a run of Failure events for the same user, process and privilege, which shows an attempt that the system refused. The fourth is any sensitive privilege used on a file or key by a process from outside the Windows and Program Files folders.
Plenty of legitimate software lands in the same queries. IT staff run takeown during permission clean-ups, installers and database setup programs need rights such as SeSecurityPrivilege, and backup agents use SeBackupPrivilege and SeRestorePrivilege when the policy above is on. The difference is who and when, not which privilege. Ask for the ticket.
Pivot from the object. ObjectName and the time lead to a 4670, the permissions-changed event, which carries the old and the new security descriptor in SDDL. Microsoft says 4670 only generates when the SACL includes Change Permissions or Take Ownership for a file object, and it does not fire when the SACL itself is changed, so a missing 4670 proves little. Look for a 4663 with DELETE or write rights on the same path afterward. ProcessId leads to the 4688 and the parent process. Because the subject here is a real user session, SubjectLogonId does lead cleanly to the 4624 and shows where the session came from.
Be straight about the limits. 4674 says an operation was attempted and whether it went through. It does not say what changed, and it carries no command line. When the follow-up events are missing, treat the result as a question for the person, not a finding.
Decimal AccessMask Reference
| Decimal | Hex | Right (Microsoft's name) | Privileges that go with it |
|---|---|---|---|
| 65536 | 0x10000 | DELETE | SeRestorePrivilege |
| 131072 | 0x20000 | READ_CONTROL | SeBackupPrivilege |
| 262144 | 0x40000 | WRITE_DAC | SeRestorePrivilege |
| 524288 | 0x80000 | WRITE_OWNER | SeRestorePrivilege |
| 16777216 | 0x1000000 | ACCESS_SYS_SEC | SeBackupPrivilege, SeRestorePrivilege, SeSecurityPrivilege |
Masks add up. A request for WRITE_DAC and WRITE_OWNER together is 786432, so match the sums you see, not only the single values.
The Simulated Takeown Event
In the simulated event a.chen runs takeown.exe from System32 against D:\Shares\Legal\Contracts. ObjectType is File, HandleId is 0x2f8 so the handle can be joined, PrivilegeList is SeTakeOwnershipPrivilege and AccessMask is 524288. Microsoft's table says that mask is the right to change the owner in the security descriptor.
The process path is clean, so a rule that flags executables outside System32 stays silent. What gives this one away is the account and the object. A person took ownership of a legal share. Check whether a change ticket exists, then look for the 4670 that should follow with the old and new SDDL.
Practice Investigating Event 4674
No published room targets Event 4674 directly yet. The detection skills transfer, though: practice alert triage on realistic consoles across 73 free rooms in SOCSimulator Operations.
Browse free operationsFrequently Asked Questions
- What is event ID 4674?
- It records an attempt to perform a privileged operation on a protected object after the object was already opened. The event names the account, the optional subsystem and object, a handle, the decimal access mask, the privileges requested and the process, in a Success or a Failure form.
- Why am I getting thousands of event 4674 entries an hour?
- Sensitive Privilege Use is a high-volume subcategory. Check first whether the policy 'Audit: Audit the use of Backup and Restore privilege' is on, since Microsoft says it records a very large number of events. Then group by ProcessName, PrivilegeList and ObjectType and exclude the known pairs at the collector.
- What does AccessMask 16777216 or 524288 mean in a 4674 event?
- The value is decimal. 524288 is 0x80000, WRITE_OWNER, the right to change an object's owner. 16777216 is 0x1000000, ACCESS_SYS_SEC, the right to get or set the SACL. Convert to hex before you compare with the access right table in Microsoft's 4656 page.
- Does event 4674 show who changed a folder's permissions?
- No. 4674 shows a privileged operation, not the change. Event 4670 records a permissions change with the old and new security descriptor, and it needs a SACL entry for Change Permissions or Take Ownership on files. Pair the two on ObjectName and time.
Sources
“4674 description, fields, decimal Desired Access, sample (LSA, SeSecurityPrivilege, 16777216), object type list, monitoring recommendations”
“Access right table with hex values (WRITE_OWNER 0x80000, ACCESS_SYS_SEC 0x1000000) and the rights granted by SeBackupPrivilege and SeRestorePrivilege”
“4670 permissions-changed event: OldSd and NewSd, SACL conditions, does not fire when the SACL changes”
“Sensitive privilege list, Backup and Restore policy dependency and the advice against enabling it, volume High, Success and Failure recommended”
“ObjectPrivilegeAuditAlarm logs a client's use of privileges with an open handle to a private object and does not check the token or the object access”
“Windows File and Directory Permissions Modification (T1222.001), ATT&CK v20: takeown and icacls used to reset ACLs, ransomware examples”
“Unresolved report of a non-admin account logging large numbers of 4674 events naming SeBackupPrivilege”
“Sentinel Windows Audit Checker workbook derives outcome from SecurityEvent Keywords 0x8020000000000000 (Success) and 0x8010000000000000 (Failure)”
“Winlogbeat sets event.outcome from the audit keyword and was fixed (#20564) to use the raw keyword value, because the translated text broke on non-English systems”
“SecurityEvent columns used in the KQL (AccessMask, PrivilegeList, ObjectType, ObjectName, Keywords)”
“Splunk Add-on for Microsoft Windows (Splunk_TA_windows, package v9.0.1): default/props.conf, stanza [source::XmlWinEventLog:Security], EVAL-Keywords maps 0x8020000000000000 to Audit Success and 0x8010000000000000 to Audit Failure; read in the package, the listing page does not show it”
“Official add-on documentation: the add-on's default configuration files, props.conf among them, live in Splunk_TA_windows/default; the page does not itself list the Keywords EVAL”
“ACCESS_SYSTEM_SECURITY controls getting or setting the SACL and is granted only if the SE_SECURITY_NAME (SeSecurityPrivilege) privilege is enabled in the token”
“SeBackupPrivilege grants READ_CONTROL and ACCESS_SYSTEM_SECURITY; SeRestorePrivilege grants WRITE_DAC, WRITE_OWNER, ACCESS_SYSTEM_SECURITY and DELETE; SeTakeOwnershipPrivilege is described only as taking ownership without discretionary access, with no access-right list”
Related SOC Training Resources
Event ID 4673: Privileged Service Called & How to Detect It
Event ID 4673 logs a privileged service call. See who writes it, how it differs from 4672 and 4674, why Edge triggers fa…
Read more GlossaryWhat is Privilege Escalation? SOC Glossary
Privilege escalation is an attacker gaining rights they were never given, after they already have a foothold. Vertical e…
Read more GlossaryWhat is Least Privilege? SOC Glossary
The principle of least privilege states that users, processes, and systems should hold only the minimum access rights re…
Read more GlossaryWhat is EDR? SOC Glossary
EDR (endpoint detection and response) is security software that puts an agent on each laptop, server and workstation, re…
Read more Career PathSecurity Engineer Career Guide: Salary & Skills
Security Engineers build and maintain the infrastructure that SOC analysts depend on. You deploy SIEMs, configure firewa…
Read more Career PathIncident Responder Career Guide: Salary & Skills
Incident Responders lead the technical response when confirmed breaches happen. You coordinate containment, run forensic…
Read more ComparisonSOCSimulator vs. LetsDefend: Platform Comparison
SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…
Read more Event IDWindows Event ID Library: SOC Reference
Windows Security and Sysmon event IDs with simulated log samples, field tables, and tested detection queries.
Read more FeatureShift Mode: Real-Time SOC Simulation
Practice alert triage under realistic time pressure with SLA timers and noise injection.
Read more FeatureOperations: Guided Training Operations
Structured CTF-style investigation operations covering real-world attack scenarios.
Read more BlogSOCSimulator Blog: Security Training Insights
Articles on SOC analyst skills, detection engineering, and career development.
Read more FeatureSOCSimulator Pricing: Free Plan Available
Compare free and Pro tiers.
Read more