Repositorydocument · docs/permissions-and-audit.md · Engels · Alle documentatie

Permissions and audit

The rights, ports, and the account script are in trust and permissions. This page is the audit-policy detail the coverage flags depend on. The tool does not enable these policies.

Account

Use a dedicated account, preferably a group managed service account on the management server. Do not put it in Domain Admins, Account Operators, or Server Operators. v1 never needs a write right in the directory.

Need Right Notes
Read the Security log and the operational channels below Local group Event Log Readers on each collected machine On current Windows this group can read the Security log. Do not grant “Manage auditing and security log” for a reader.
Read configuration over WinRM Remote Management Users, or an equivalent constrained endpoint Outbound from the management server only. Do not open a listener on the tool.
Read directory configuration Authenticated read Default for a domain user is enough for the attributes this catalog names. Do not request replication rights.
Read certificate public material Read on the relevant stores Do not grant read on private keys.
Later GPO deployment Separate account or a separate confirmation path Not this account’s everyday rights.

Do not collect msLAPS-Password, ms-Mcs-AdmPwd, or any attribute whose purpose is to hold a secret. LAPS-001, when it exists, looks at policy and expiration, not at the password.

Where the tool runs

Preferred: a management server that is not a domain controller, with the account above. Acceptable: a domain controller, same read rights, still no inbound port for PQC PRZM. The domain controller already has enough attack surface. The tool should not add a service that listens.

Audit policies the window depends on

Turn these on before the observation window, in audit, not enforce. The snapshot’s coverage flags must be true only when this was actually done. Lying in the coverage block makes a quiet log look like a pass. The engine trusts the flag. The operator owns that.

Security log

Advanced audit policy, success (and failure where you already collect it):

Without the Kerberos policies, KRB-001 stays inconclusive even if the Security log as a whole was copied.

NTLM

Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options

Policy Value during the window Later enforce value
Restrict NTLM: Audit Incoming NTLM Traffic Enable auditing for all accounts not an enforce knob
Restrict NTLM: Outgoing NTLM traffic to remote servers Audit all Deny all, with an exception list
Restrict NTLM: Audit NTLM authentication in this domain Enable all, on domain controllers not an enforce knob
Restrict NTLM: Incoming NTLM traffic leave at Allow while auditing Deny, after NTLM-002 is clean
Restrict NTLM: NTLM authentication in this domain leave at Disable / Allow while auditing Deny for domain accounts or domain servers, after the window is clean
LAN Manager authentication level do not jump to level 5 until NTLM-001 is clean Send NTLMv2 response only. Refuse LM and NTLM

Events land in Microsoft-Windows-NTLM/Operational:

Id Where Meaning
8001 The client Outgoing NTLM that an outgoing deny would block. Names the process.
8002 The server Incoming NTLM that does not need a DC (local accounts, loopback).
8003 The member server Incoming NTLM for a domain account.
8004 The domain controller NTLM credential validation for a member.

Published notes disagree on whether 8004 is still written on current domain controllers or only on older ones. 8003 is the member-server event. The check accepts 8001 through 8004 and records the computer that logged the event, so a mis-labeled note does not drop the flow.

SMB

On each file server and domain controller, before the window:

Set-SmbServerConfiguration -AuditSmb1Access $true -Force
Set-SmbServerConfiguration -AuditClientDoesNotSupportSigning $true -Force

The registry equivalents are AuditSmb1Access and AuditClientDoesNotSupportSigning under HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters. The signing audit also has a Group Policy (“Audit client does not support signing”) on current Windows. These switches log. They do not require signing and they do not turn SMB1 off.

Id Channel Meaning
3000 Microsoft-Windows-SMBServer/Audit A client attempted SMBv1. ClientName.
3021 same An SMB 2/3 client does not support signing.
3027 same An SMBv1 client does not have signing enabled. The protocol cannot always prove that. Treat it as a lead, not as a certainty.

SMB-001 will not say “safe to disable” unless every host that still has SMB1 enabled has auditSmb1Access: true and the snapshot says the SMB audit channel was collected. Same idea for signing and 3021/3027.

LDAP

On domain controllers:

TLS, certificates, OS

Protocol flags are registry under SCHANNEL\Protocols. Supported groups are the Schannel group list. Hybrid groups are disabled by default even on a build that has them. Enabling X25519MLKEM768 is not part of the observation window. TLS-003 only reports whether it is already on, and it does not mark that safe to force.

Certificate collection is the public certificate. AD CS ML-DSA issuance is a separate project: a new hierarchy on Server 2025 with the May 2026 update, not a checkbox on the current CA.

What “coverage”: true means

The person building the snapshot sets the flags. The engine will not detect a lie. For a hand-built fixture that is the point. For a future collector, the flag should be derived from the audit policy it observed, not from the fact that a log file existed and was empty.