Hacker Directory — Understand what you hack.Hacker Directory — Understand what you hack.
Continue learning
TR
Contents15 chapters · 82 lessons
LESSON 14.04DERİN TEKNİK İNCELEME

Protocol Hardening: Safely Enabling LDAP, NTLM, SMB, and Kerberos Controls.

LDAP, NTLM, SMB and Kerberos hardening is not a single “disable” switch. Signing, channel binding/EPA, SMB signing/encryption, NTLM auditing, and Kerberos time/SPN dependencies must be handled incrementally with visibility and compatibility; the side effects and rollback boundaries of each control must be verified separately.

1. Core mechanism

Protocol hardening is a migration problem: it changes which protocol, channel, and target identity an authentication exchange is bound to.

Interfaces and specifications

  • LDAP binds: evaluate non-TLS SASL signing/sealing, TLS-protected simple binds and channel binding for TLS with SASL under their respective conditions.
  • NTLM: account for the challenge-response and relay surface; move from audit to deny only after mapping dependencies.
  • SMB: signing provides message integrity; SMB 3 encryption provides confidentiality and integrity on encrypted traffic and can supersede separate signing protection on that path. Signing alone does not provide confidentiality; behavior depends on protocol/version and configuration.
  • Kerberos: SPN, DNS, time, and ticket flow are required for the correct target identity; monitor fallback behavior separately.

Tie the control to the threat

LDAP signing/channel binding and SMB signing are not the same control: one protects the directory bind channel, while the other targets SMB message integrity. SMB 3 encryption also provides integrity on an encrypted path and can change whether separate signing protection is needed; signing alone does not provide content confidentiality. NTLM auditing makes the remaining paths visible.

It is also wrong to treat Kerberos as “secure and automatic in every situation”: an incorrect SPN, DNS, or clock dependency can cause fallback or failure.

Roll out incrementally

Start with audit and inventory, then narrow enforcement, then remediate failing clients and services. Instead of changing policy across the entire domain at once, document the owner, protocol, target, and rollback conditions.

Connecting to the next mechanism

Record OS, installed build/update and effective-policy conditions for each control. 06.04 distinguishes RC4 default transitions from explicit configuration; 11.04 separates mapping Enforcement from historical Compatibility. 03.06 covers LDAP signing’s own release and policy conditions. Do not collapse these into a “modern Windows is secure” label.

State and data flow

  1. Inventory the protocols and callers.
  2. Enable audit signals and measure compatibility.
  3. Apply enforcement to a single service, OU, or segment.
  4. Remediate failed bind/logon/share patterns, then expand the scope.

2. Exploitation

Broken trust assumption

An attacker looks for an authentication path that is unsigned or not channel-bound; during a hardening migration, they may exploit an exposed fallback, relay, or downgrade surface.

Technical prerequisites

  • Client and service protocol capabilities are unknown.
  • LDAP/SMB/NTLM enforcement and Kerberos dependencies have not been tested together.
  • Log collection, clock visibility, and SPN/DNS visibility are incomplete.

Exploitation mechanism

The Red perspective does not stop at saying “the protocol is exposed”; it looks for where the control binding the call to its target and channel is missing: signing/channel binding for LDAP binds, signing/encryption for SMB, audit-to-deny for NTLM, and the correct SPN/DNS/time for Kerberos. A single path left outside enforcement during migration can remain an unprotected authentication path.

Relay and downgrade boundary

Signing or channel binding provides context that makes it harder to reuse a message on another connection; its effectiveness still depends on protocol/client support and the actual policy scope. “The policy is enabled” is not the same as “every caller is under enforcement.”

Kerberos fallback

Without failure and audit data, you cannot assume which caller fell back to NTLM when Kerberos failed. Correcting SPN and DNS is part of dependency work that precedes NTLM deny.

3. Defense & Detection

Telemetry scope

  • Measure LDAP signing/channel binding, SMB signing/encryption, and NTLM restriction policy outcomes by protocol; do not use one generic “secure” label.
  • Correlate 4624/4776 and LDAP/SMB server logs using caller, target, protocol, and time.
  • For Kerberos failure/fallback, observe SPN, DNS, and clock skew separately; do not make unsupported claims about ticket contents.
  • Record each enforcement change with its owner, scope, expected failure signal, and rollback condition.

Events and relevant fields

  • The 4624 artifact is a synthetic session record showing LogonType 3 and AuthenticationPackageName values; it does not by itself prove a protocol-hardening outcome.
  • Event fields show the authentication result; they do not claim byte-level verification of signing or channel binding.

Blue measurement order

First measure which caller uses which protocol; then verify that the policy is truly enforced for that caller. General events such as 4624 are supporting signals, not proof.

Hardening is a release

Enabling a control does not prove that compatible clients work. Do not expand without canary scope, failure telemetry, an owner-backed rollback, and a new measurement.

Detection logic · KQL

// Schema example; not run. Measures NTLM visibility before enforcement.
SecurityEvent
| where EventID == 4624
| where AuthenticationPackageName in ("NTLM", "Kerberos")
| summarize count() by Computer, AuthenticationPackageName, LogonType

Query assumptions

  • SecurityEvent field names and collection scope are assumed for this example.
  • AuthenticationPackageName in 4624 is a signal for the protocol path; it does not by itself decide signing/channel binding enforcement.

False positives

  • An application proxy or service account may hide the actual caller.
  • Different protocols on the same computer may appear under the same username.

Hardening

  • For a SASL bind without TLS, verify the client’s signing or sealing support together with the DC’s signing requirement.
  • Use TLS and server-certificate validation for simple binds; do not treat cleartext simple binds as secure. TLS with a simple bind carries no CBT.
  • For a SASL bind over TLS, evaluate channel binding and client support separately. TLS supplies message protection on this path; do not depict SASL signing/sealing as an additional layer over TLS.
  • For LDAP TLS with SASL, CBT implements EPA channel binding; do not choose between TLS and EPA as alternatives. Evaluate EPA policies in other services within their own scope. Roll out incrementally after checking versions, updates and client compatibility, and first collect bind-failure causes.
  • Audit NTLM use first, remediate dependencies with their owners, then apply narrowly scoped restriction/deny.
  • Require SMB signing on the servers and clients that need it; determine the need for encryption through separate data classification and performance measurement.
  • Maintain SPN, DNS, and clock synchronization for Kerberos; make the NTLM fallback signal a migration gate.
  • Publish every enforcement change with its rollback condition, expected event schema, and responsible owner.

Read the examples

READ THE EXAMPLE TOGETHER

SYNTHETIC TEACHING EXAMPLE

Which protection does a logon package not establish?

4624 synthetic session: authentication package signal

01
Recording logon targetDC01.outreason.example

DC01 is the record target host, not the client or full protocol inventory.

02
Authentication packageKerberos

Kerberos is a logon-package signal. This field has no LDAP signing/CBT or SMB signing/encryption evidence.

03
Network logon3

3 means network logon, not negotiated wire protection or NTLM-deny outcome.

04
Session accountsvc-ldap

svc-ldap is an account name, not proof of LDAP bind/security choice.

What to take away

Policy, effective setting, negotiated path and compatibility need separate evidence. 4624 does not establish success of all of them.

This guide explains selected fields of the synthetic fixture. Editing returns to generic reading; no Windows operation or event authenticity is verified.

Scope of this example

Synthetic Event 4624 XML. The parser tests the EventID and field structure; it does not prove LDAP/NTLM/SMB/Kerberos hardening or a real Windows session.

Open the raw record · EVENT-XML
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"><System><Provider Name="Microsoft-Windows-Security-Auditing"/><EventID>4624</EventID><Version>0</Version><Level>0</Level><Task>12289</Task><Opcode>0</Opcode><Keywords>0x8020000000000000</Keywords><TimeCreated SystemTime="2026-10-01T10:00:00.0000000Z"/><EventRecordID>12001</EventRecordID><Channel>Security</Channel><Computer>DC01.outreason.example</Computer></System><EventData><Data Name="SubjectUserSid">S-1-5-18</Data><Data Name="TargetUserName">svc-ldap</Data><Data Name="LogonType">3</Data><Data Name="LogonProcessName">Kerberos</Data><Data Name="AuthenticationPackageName">Kerberos</Data><Data Name="IpAddress">10.20.30.40</Data></EventData></Event>

Two reality checks

Assumption: Enabling LDAP signing, SMB signing, NTLM deny, and Kerberos settings at the same time is a one-step, risk-free hardening change.
In fact: These are different protocol/channel controls; caller compatibility, audit, canary scope, and rollback conditions must be verified separately.
Assumption: Seeing AuthenticationPackageName=Kerberos in 4624 proves that signing and channel binding are definitely working.
In fact: 4624 is a signal for the authentication package; it does not by itself prove channel binding or message signing. That requires policy and telemetry evidence from the relevant protocol.

YOUR TURN

Work through this story.

Go beyond recall: change a condition, read evidence, explain the reason for a decision.

1 / 3 · PREDICT

SMB signing is verified on the FS01 path. Which result is not established by that fact alone?

Choose an answer

A hint

Separate message integrity from content confidentiality.

Read the answer reasoning

Encryption of the report contents

Correct. Signing alone does not provide content confidentiality; encryption is a separate assessment.

2 / 3 · ORDER THE EVENTS

Order these stages before expanding a control in IYELABS.

  1. Remediate failing paths and expand only after measurement.
  2. Choose a narrow service/OU pilot with rollback conditions.
  3. Establish a baseline using audit and compatibility measurements.
  4. Inventory callers, protocols and owners.

A hint

Discover dependencies before disruption rather than searching for callers afterward.

Read the answer reasoning
  1. Inventory callers, protocols and owners.
  2. Establish a baseline using audit and compatibility measurements.
  3. Choose a narrow service/OU pilot with rollback conditions.
  4. Remediate failing paths and expand only after measurement.

LDAP, SMB, NTLM and Kerberos paths have different protection and policy requirements. A staged rollout keeps effects on the relevant callers and channels visible.

3 / 3 · EXPLAIN

Why does 4624 AuthenticationPackageName=Kerberos not establish that hardening is complete?

A hint

Separate the authentication package from negotiated channel protection.

Read the answer reasoning

4624 identifies Kerberos authentication context; it does not alone establish signing or channel binding on the relevant LDAP/SMB path. Verify effective policy and negotiated protection on the specific protocol separately.

  • I identified the authentication context observed by 4624.
  • I requested protocol-specific policy and runtime evidence for signing/channel binding.

Your explanation is not automatically graded. Compare the checkpoints with your answer.

Open the case terminal · PowerShell / CMD

Training simulation · Commands and outputs belong to this case.

Read the selected logon event envelope on WS01; it does not prove file access.

Run the prepared script as supplied, or try the everyday commands below.

WS01 · Windows PowerShell 5.1SAMPLE SESSION
IYELABS\tunahanstudent1404 · lesson workspace

Ctrl / ⌘ + Enter: run · Shift + Enter: new line

Curious? Try everyday commands

Tap a command, then Run. User and network details follow the selected sample computer.

These are learning practices; they do not affect certification exam scores.

Sources