Investigation playbook · endpoint
Endpoint detection playbook
For detections on a computer: suspicious processes, scripts, persistence, credential access.
Answer these before you decide
- What ran, and what started it? Read the parent-child chain (Office or a browser spawning a shell is a red flag).
- Decode what you can: base64 command lines, download cradles, LOLBins such as rundll32, regsvr32, certutil.
- Was it blocked or did it run? "Quarantined" and "Executed" are very different nights.
- Is it expected: an admin tool by an admin from the jump host, a test file, a software rollout in the handover?
- Did it talk to the network or touch credentials (LSASS access, new services, scheduled tasks)?
When it is an incident: first containment
Isolate the host when something is executing; escalate with the process tree.
A playbook says what to check. Whether this alert is real is what the logs tell you.
Events to read
- Event ID 18454: Login succeeded for user. Connection made using SQL Server authentication.
- Event ID 18456: Login failed for user.
- Event ID 4624: An account was successfully logged on.
- Event ID 4661: A handle to an object was requested.
- Event ID 4672: Special privileges assigned to new logon.
- Event ID 4688: A new process has been created.
- Event ID 4698: A scheduled task was created.
- Event ID 5136: A directory service object was modified.
- Sysmon event 1: Process creation
- Sysmon event 3: Network connection
- Sysmon event 10: ProcessAccess
- Sysmon event 11: FileCreate
- Event ID 7045: A service was installed in the system.
ATT&CK techniques these alerts carry
- T1003.001 OS Credential Dumping: LSASS Memory
- T1018 Remote System Discovery
- T1021.001 Remote Services: Remote Desktop Protocol
- T1021.002 Remote Services: SMB/Windows Admin Shares
- T1021.004 Remote Services: SSH
- T1027 Obfuscated Files or Information
- T1047 Windows Management Instrumentation
- T1053.005 Scheduled Task/Job: Scheduled Task
- T1059.001 Command and Scripting Interpreter: PowerShell
- T1071.001 Application Layer Protocol: Web Protocols
- T1078 Valid Accounts
- T1078.002 Valid Accounts: Domain Accounts
- T1087.002 Account Discovery: Domain Account
- T1105 Ingress Tool Transfer
- T1110 Brute Force
- T1110.001 Brute Force: Password Guessing
- T1204.002 User Execution: Malicious File
- T1218.010 System Binary Proxy Execution: Regsvr32
- T1219.002 Remote Access Tools: Remote Desktop Software
- T1484.001 Domain or Tenant Policy Modification: Group Policy Modification
- T1486 Data Encrypted for Impact
- T1490 Inhibit System Recovery
- T1505.003 Server Software Component: Web Shell
- T1548.003 Abuse Elevation Control Mechanism: Sudo and Sudo Caching
- T1555.003 Credentials from Password Stores: Credentials from Web Browsers
- T1569.002 System Services: Service Execution
Practise it
- A CAPTCHA that asked you to paste something Beginner · Endpoint
- The Adobe update that came with remote access Intermediate · Endpoint
- The coding assistant read an SSH key Advanced · Endpoint
- Mass file modification on file server Beginner · Endpoint
- Certutil and PowerShell bypass on many machines at night Intermediate · Endpoint
- Fake PDF viewer installs a hidden scheduled task Intermediate · Endpoint
- Aggressive scanning and a blocked LSASS access Intermediate · Endpoint
- Exposed RDP, credential dumping and shadow copies deleted Advanced · Endpoint
Alerts in the shift that use this playbook
- Admin network logon, then a new service on that host
- certutil downloaded a file from the internet
- Credential-store access (LSASS)
- Domain and share enumeration from one host
- Encoded PowerShell command line
- Encoded PowerShell spawned by Office
- Files being encrypted on a laptop
- Installer child process created a scheduled task and an outbound connection
- LOLBin executed: certutil
- LOLBin: regsvr32 execution
- Malware detected and quarantined
- Mass file modification on a server
- New service installed
- Potentially unwanted app quarantined
- Privilege escalation via sudo
- RDP logon to server
- Remote command execution via WMI
- Repeated database login failures
- Scheduled task created
- Scheduled task created by a user
- Scheduled task pushed to the domain via GPO
- SSH login to Linux server
- Volume shadow copies deleted
- Web server process spawned a shell
In the glossary
- Event ID
- Sysmon
- Logon type
- Process tree
- LOLBin
- Encoded command
- LSASS
- Lateral movement
- Persistence
- C2
- Beaconing
- Web shell
- Ransomware precursor