130n@calvinlai.com
  • About Calvin Lai (fkclai)
  • My Work
  • Cyber Security
    • Cyber Security Centre (CSC)
      • Why we need a CSC
      • CSC Team Structure: Roles, Functions, and Tools
        • Key Function & Role
        • Tools & Platforms
        • People
        • Outsource Strategy
      • HRMC Executive Paper
  • Detection and Response
    • Playbook: Threat Prioritization & Automated Response Strategies
      • Scenario: Detecting and Mitigating a Ransomware Attack
      • Scenario: DC Sync Attack Detected and Mitigated
      • Scenario: Pass-the-Hash (PtH) Attack Detected and Contained
      • Scenario: Phishing Campaign with Malware / Credential Theft Detected and Mitigated
  • Application Architecture
    • Comparison of MVC , N-tier and Microservice Architecture
  • Application Security
    • OAuth, SAML, and OpenID Connect: Key Differences and Use Cases
    • Secure Coding Principles
    • HTTP Header Security Principles
    • Mitigating Broken Object Level Authorization (BOLA)
    • Spring Boot Validation
    • Output Encoding in JavaServer Faces (JSF)
    • Session Management Security Issues
    • Common API Security Problems
      • Broken Authentication
      • Excessive Data Exposure
      • Lack of Resources & Rate Limiting
      • Broken Function Level Authorization
      • Unsafe Consumption of APIs
    • JAVA Exception Handling
    • File Upload Validation
    • OAuth 2.0 Security
      • Insecure Storage of Access Tokens
    • Microservice Security
      • Sample Coding Demo
        • Service Implementation
        • Client Interaction
      • Security Solution for Microservices Architecture
    • Modifying and Protecting Java Class Files
      • Modify a Class File Inside a WAR File
      • Direct Bytecode Editing
        • Steps to Directly Edit a Java Class File
          • Update: Java Bytecode Editing Tools
      • Techniques to Protect Java Class Files
        • Runtime Decryption in WebLogic
    • JAVA Program
      • Secure, Concurrent Web Access Using Java and Tor
      • Creating a Maven Java project in Visual Studio Code
  • Exploit/CVE PoC
    • ZeroLogon Exploit
    • Remote Retrieved Chrome saved Encrypted Password
    • Twitter Control an RCE attack
  • Hacking Report (HTB)
    • Hits & Summary
      • Tools & Cheat Sheet
    • Windows Machine
      • Love 10.10.10.239
      • Blackfield 10.10.10.192
      • Remote 10.10.10.180
      • Sauna 10.10.10.175
      • Forest 10.10.10.161
      • Sniper
      • Json
      • Heist
      • Blue
      • Legacy
      • Resolute
      • Cascade
    • Linux Machine
      • Photobomb 10.10.11.182
      • Pandora 10.10.11.136
      • BountyHunter 10.10.11.100
      • CAP 10.10.10.245
      • Spectra 10.10.10.229
      • Ready 10.10.10.220
      • Doctor 10.10.10.209
      • Bucket 10.10.10.212
      • Blunder 10.10.10.191
      • Registry 10.10.10.159
      • Magic
      • Tabby
  • Penetration Testing
    • Web Application PenTest
    • Network/System PenTest
    • Mobile Penetration Test
      • Certificate Pinning
        • Certificate Pinning Bypass (Android)
          • Root a Android Device
          • Setup Proxy Tool - Burp Suite
      • Checklist
  • Threat Intelligence
    • Advanced Persistent Threat (APT) groups
      • North Korean APT Groups
      • Chinese APT Groups
      • Russian APT Groups
      • Other APT
  • Red Team (Windows)
    • 01 Reconnaissance
    • 02 Privileges Escalation
    • 03 Lateral Movement
    • 04 AD Attacks
      • DCSync
    • 05 Bypass-Evasion
    • 06 Kerberos Attack
    • 99 Basic Command
  • Exploitation Guide
    • 01 Reconnaissance
    • 02 Port Enumeration
    • 03 Web Enumeration
    • 04 Windows Enum & Exploit
      • Windows Credential Dumping
        • Credential Dumping: SAM
        • Credential Dumping: DCSync
      • Kerberos Attack
      • RDP
    • 05 File Enumeration
    • 06 Reverse Shell Cheat Sheet
      • Windows Reverse Shell
      • Linux Reverse Shell
    • 07 SQL Injection
    • 08 BruteForce
    • 09 XSS Bypass Checklist
    • 10 Spring Boot
    • 11 WPA
    • 12 Payload list
  • Vuln Hub (Writeup)
    • MrRobot
    • CYBERRY
    • MATRIX 1
    • Node-1
    • DPwwn-1
    • DC7
    • AiWeb-2
    • AiWeb-1
    • BrainPan
  • CTF (Writeup & Tips)
    • CTF Tools & Tips
    • Hacker One
    • CTF Learn
    • P.W.N. University - CTF 2018
    • HITCON
    • Pwnable
      • 01 Start
  • Useful Command/Tools
    • Kali
    • Windows
    • Linux
  • Offensive Security Lab & Exam
    • Lab
    • Tools for an Offensive Certification
      • Strategy for an Offensive Exam Certification
        • CVEs
        • Privilege Escalation
        • Commands
        • Impacket
  • ISO 27001
    • Disclaimer
    • What is ISO 27001
      • Implementation
    • Documentation
    • Common Mistake
    • Q&A
      • Can internal audit to replace the risk assessment
      • Is it sufficient for only the IT department head to support the ISO 27001 program
      • Does the Business Continuity Plan (BCP) and a Disaster Recovery Plan (DRP) are the same?
    • ISO 27001 Controls and Domains
      • 1. Information Security Policies
      • 2. Organization of Information Security
      • 3. Human Resource Security
      • 4. Asset Management
      • 5. Access Control
      • 6. Cryptographic Controls
      • 7. Physical and Environmental Security
      • 8: Operational Security
      • 9. Communications Security
      • 10. System Acquisition, Development, and Maintenance
      • 11. Supplier Relationships
      • 12: Information Security Incident Management
      • 13. Information Security Aspects of Business Continuity Management
      • 14. Compliance
Powered by GitBook
On this page
  • 1. Initial Threat Detection
  • 2. Data Collection & Correlation
  • 3. Automated Response Actions
  • 4. Investigation & Remediation
  • Outcome

Was this helpful?

  1. Detection and Response
  2. Playbook: Threat Prioritization & Automated Response Strategies

Scenario: Pass-the-Hash (PtH) Attack Detected and Contained

April 2025

A Pass-the-Hash (PtH) attack occurs when an attacker uses stolen password hashes to authenticate as a user without needing the plaintext password. This technique exploits the NTLM authentication protocol and enables lateral movement across a network. Early detection and response are critical to prevent privilege escalation and data theft.


1. Initial Threat Detection

  • Endpoint security sensors detect a privileged user account making rapid authentication attempts across multiple devices.

  • Network intrusion detection systems (IDS) flag unusual NTLM authentication traffic originating from an admin workstation targeting domain controllers.

  • XDR correlates these activities, identifying the behavior as a Pass-the-Hash (PtH) attack, where an attacker exploits stolen password hashes instead of plaintext credentials.

Detection Sources

  1. Endpoint Logs:

    • Suspicious authentication requests using NTLM hashes instead of traditional passwords.

    • Unexpected access attempts by privileged accounts on unfamiliar machines.

  2. Network Traffic Analysis:

    • Lateral movement inside the network without conventional authentication.

    • SMB and WMI connections initiated from non-administrative endpoints.

  3. Identity Access Logs:

    • Privileged accounts authenticating on multiple systems without prior logon history.

    • Sudden escalation of privileges without an associated authorization request.

  4. Domain Controller Logs:

    • Track NTLM authentication events, specifically:

      • Event ID 4624: Successful logon.

      • Event ID 4648: Logon using explicit credentials.

      • Event ID 4672: Privileged account logon.

  5. Threat Intelligence Integration:

    • Matches detected behavior against known PtH attack patterns in external intelligence feeds.


2. Data Collection & Correlation

  • XDR aggregates logs across multiple security domains:

    • Endpoint activity: Tracks NTLM authentication attempts, account behaviors, and execution of credential dumping tools.

    • Network logs: Detects SMB and WMI usage patterns related to lateral movement.

    • Identity logs: Identifies anomalies in privileged access attempts.

    • Threat intelligence feeds: Cross-references detected behaviors with known PtH attack indicators.

  • Machine learning-based threat correlation helps reconstruct the attack timeline, pinpointing the source of credential compromise.


3. Automated Response Actions

  1. Block Further Authentication Attempts:

    • Prevents the compromised credentials from being used to escalate access.

  2. Endpoint Isolation:

    • Disconnects affected machines to contain lateral movement.

  3. Account Lockdown & Reset:

    • Disables the compromised privileged accounts and enforces an immediate password reset.

  4. Security Team Alert:

    • XDR generates high-fidelity forensic alerts, providing detailed remediation steps.


4. Investigation & Remediation

Steps:

  1. Trace the attack source:

    • Identify how credential hashes were stolen (e.g., Mimikatz execution, LSASS memory scraping).

  2. Forensic Analysis:

    • Examine affected endpoints for remnants of credential-dumping tools.

  3. Privilege Audit:

    • Review account escalation paths and authentication anomalies.

  4. Network Review:

    • Analyze SMB/WMI communication logs for additional compromised machines.

Mitigation & Hardening:

  1. Implement Strong Authentication Mechanisms:

    • Enforce Kerberos authentication and multifactor authentication (MFA) for privileged accounts.

  2. Enable Credential Guard:

    • Protect LSASS.exe from unauthorized memory access.

  3. Restrict NTLM Usage:

    • Disable NTLM authentication where possible to eliminate PtH risks.

  4. Deploy Advanced Monitoring:

    • Configure real-time detection rules for abnormal NTLM authentication patterns.


Outcome

✅ PtH attack detected and neutralized before domain-wide compromise. ✅ Compromised credentials revoked, preventing further unauthorized access. ✅ Security policies hardened to eliminate future PtH vulnerabilities. ✅ XDR delivers real-time insights to enhance detection strategies.


PreviousScenario: DC Sync Attack Detected and MitigatedNextScenario: Phishing Campaign with Malware / Credential Theft Detected and Mitigated

Last updated 28 days ago

Was this helpful?