Event Forwarding - Security Log Permissions

reuvygroovy 776 Reputation points
2021-06-08T13:53:12.057+00:00

We are trying to do event log forwarding.

On my computer, Windows 10, before I changed anything, this is what I see:

C:\WINDOWS\system32>wevtutil gl security
name: security
enabled: true
type: Admin
owningPublisher:
isolation: Custom
channelAccess: O:BAG:SYD:(A;;0xf0005;;;SY)(A;;0x5;;;BA)(A;;0x1;;;S-1-5-32-573)
logging:
logFileName: %SystemRoot%\System32\Winevt\Logs\security.evtx
retention: false
autoBackup: false
maxSize: 102367232
publishing:
fileMax: 1

But in this article, https://learn.microsoft.com/en-us/troubleshoot/windows-server/system-management-components/security-event-log-forwarding-fails-error-0x138c-5004
they mention another access identifier:
Value: O:BAG:SYD:(D;; 0xf0007;;;AN)(D;; 0xf0007;;;BG)(A;; 0xf0007;;;SY)(A;; 0x7;;;BA)(A;; 0x7;;;SO)(A;; 0x3;;;IU)(A;; 0x2;;;BA)(A;; 0x2;;;LS)(A;; 0x2;;;NS)(A;; 0x7;;;DA)(A;; 0x1;;;S-1-5-21-xxx-xxx-xxx-xxx)

Questions:

  1. How does one interpret these identifiers?
  2. What should be deployed to computers for auditing to work - the default value, the value mentioned in the article, both? Can you give me a complete string?
  3. Is there / should there, be any difference between workstations and servers?
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,767 questions
{count} votes

Accepted answer
  1. Andy YOU 3,071 Reputation points
    2021-07-08T14:08:50.98+00:00

    HI reuvygroovy,

    "Still not clear how to intepret this string:"
    There is answer:

    O:BAG:SYD:(D;;0xf0007;;;AN)(D;;0xf0007;;;BG)(A;;0xf0007;;;SY)(A;;0x5;;;BA)(A;;0x7;;;SO)(A;;0x3;;;IU)(A;;0x2;;;BA)(A;;0x2;;;LS)(A;;0x2;;;NS)

    Entry meanings:
    O:BA Object owner is Built-in Admin (BA).
    G:SY Primary group is System (SY).
    D: It's a discretionary access control list (DACL), rather than an audit entry or SACL.
    (D;;0xf0007;;;AN) Deny Anonymous (AN) all access. (1=Read + 2=Write + 4=Clear) (First ACE string in this SDDL).
    (D;;0xf0007;;;BG) Deny Built-in Guests (BG) all access.
    (A;;0xf0005;;;SY) Allow System Read and Clear (1=Read + 4=Clear), including DELETE, READ_CONTROL, WRITE_DAC, and WRITE_OWNER (indicated by the 0xf0000).
    (A;;0x7;;;BA) Allow Built-in Admin READ, WRITE, and CLEAR.
    (A;;0x7;;;SO) Allow Server Operators READ, WRITE, and CLEAR.
    (A;;0x3;;;IU) Allow Interactive Users READ and WRITE.
    (A;;0x3;;;SU) Allow Service accounts READ and WRITE.

    2.How do you break up each group (permission, user, etc.)?

    The Security Descriptor Definition Language of Love (Part 1)
    https://techcommunity.microsoft.com/t5/ask-the-directory-services-team/the-security-descriptor-definition-language-of-love-part-1/ba-p/395202

    The Security Descriptor Definition Language of Love (Part 2)
    https://techcommunity.microsoft.com/t5/ask-the-directory-services-team/the-security-descriptor-definition-language-of-love-part-2/ba-p/395258

    Fail to write to the Windows event log from an ASP.NET or ASP application
    https://learn.microsoft.com/en-us/troubleshoot/aspnet/fail-write-event-log

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


2 additional answers

Sort by: Most helpful
  1. Andy YOU 3,071 Reputation points
    2021-06-24T10:25:57.27+00:00

    HI reuvygroovy,

    1.Are both win10 and server 2019 joined to the same AD domain?

    2.How does one interpret these identifiers?
    You can see below an example of the SDDL you’ll need for the Security event log. The channelAccess line represents the permissions set on the event log
    109316-11.png

    3.What should be deployed to computers for auditing to work - the default value, the value mentioned in the article, both? Can you give me a complete string?
    Do you add the host name of w2019 and NT network service account to "event log readers" group on win10?

    Security Descriptor Definition Language
    https://learn.microsoft.com/en-us/windows/win32/secauthz/security-descriptor-definition-language

    There are 2 documents for your reference, I still work on this issue.

    How To Set Up Windows Event Log Forwarding In Windows Server 2016
    https://adamtheautomator.com/windows-event-collector/

    How to set event log security locally or by using Group Policy
    https://learn.microsoft.com/en-us/troubleshoot/windows-server/group-policy/set-event-log-security-locally-or-via-group-policy


  2. Rob Mulder 231 Reputation points
    2023-02-16T14:02:33.7866667+00:00

    The SDDL in this article (https://learn.microsoft.com/en-us/troubleshoot/windows-server/system-management-components/security-event-log-forwarding-fails-error-0x138c-5004) is wrong:

    The SID at the end cannot be there: S-1-5-20

    ConvertFrom-SddlString -Sddl "O:BAG:SYD:(A;;0xf0007;;;SY)(A;;0x7;;;BA)(A;;0x7;;;SO)(A;;0x3;;;IU)(A;;0x2;;;BA)(A;;0x2;;;LS)(A;;0x2;;;NS)(A;;0x7;;;DA)(A;;0x1;;;S-1-5-32-573);;; S-1-5-20"

    Gives: Exception calling ".ctor" with "3" argument(s): "The SDDL form of a security descriptor object is invalid.

    You should first read your current SDDL and then add (A;;0x1;;;S-1-5-32-573). That's it.

    Default that would result in:

    O:BAG:SYD:(A;;0xf0005;;;SY)(A;;0x5;;;BA)(A;;0x1;;;S-1-5-32-573)(A;;0x1;;;S-1-5-20)

    OR: O:BAG:SYD:(A;;0xf005;;;SY)(A;;0x5;;;BA)(A;;0x1;;;S-1-5-32-573)(A;;0x1;;;NS)

    Explain:

    (A;;0xf0005;;;SY)              Allow System Read and Clear (1=Read + 4=Clear)

    (A;;0x5;;;BA)                      Allow Built-in Admin READ and CLEAR (geen WRITE meer)

    (A;;0x1;;;S-1-5-32-573)  Allow Builtin\Event Log Readers READ

    (A;;0x1;;;S-1-5-20)           Allow NetworkService READ

    (A;;0x1;;;NS)                      Allow NetworkService READ

    0 comments No comments