"Lab 18 — Ransomware Incident Investigation"
Mission Information
Section titled “Mission Information”| Item | Details |
|---|---|
| Lab | 18 |
| Lab Name | Ransomware Incident Investigation |
| Track | CompTIA CySA+ |
| Difficulty | Intermediate–Advanced |
| Estimated Time | 150–180 minutes |
| Primary Role | SOC Analyst / Incident Response Analyst |
| Environment | CySA+ Incident Response Lab |
| Primary Systems | SIEM + Windows Endpoint + Linux Server + Analyst Workstation |
| Primary Data Sources | Windows Logs, PowerShell Logs, Endpoint Telemetry, Zeek, Suricata, DNS, Authentication Logs |
| Skills | Ransomware Investigation, Incident Scoping, Timeline Analysis, IOC Analysis, Lateral Movement Detection, Containment Planning |
Lab Safety: This mission uses simulated ransomware artifacts and telemetry. Do not download, execute, or deploy real ransomware.
Mission Scenario
Section titled “Mission Scenario”You are working as a Cybersecurity Analyst at GHC Enterprise.
At approximately:
09:42the SOC receives several high-severity alerts from:
CYSA-WIN0110.10.10.20Initial telemetry shows:
Suspicious Authentication ↓PowerShell Execution ↓Unknown Process ↓Rapid File Modifications ↓Outbound Network ActivityMinutes later, a user reports:
“My documents will not open, several filenames have changed, and there is a strange text file on my desktop.”
The security team suspects ransomware.
However, before declaring a ransomware incident, you must determine:
-
what happened
-
how access was obtained
-
which process initiated the activity
-
whether encryption actually occurred
-
whether credentials were compromised
-
whether lateral movement occurred
-
how many systems are affected
-
whether data exfiltration may have occurred
-
what evidence must be preserved
-
what must be contained immediately
Mission Objective: Investigate a simulated ransomware incident from initial access through impact, determine its scope, preserve relevant evidence, identify indicators of compromise, and recommend prioritized containment actions.
Mission Objectives
Section titled “Mission Objectives”By completing this lab, you will be able to:
-
identify ransomware indicators
-
validate ransomware-related alerts
-
determine potential initial access
-
investigate suspicious authentication
-
analyze process execution
-
investigate PowerShell activity
-
identify suspicious parent-child process relationships
-
detect mass file modifications
-
identify ransomware-note artifacts
-
investigate persistence
-
identify credential-access indicators
-
detect lateral-movement indicators
-
investigate suspicious network activity
-
identify affected systems and users
-
build a ransomware incident timeline
-
collect and enrich ransomware IOCs
-
assess potential data exfiltration
-
determine incident severity
-
recommend emergency containment
-
document an incident-response assessment
1. Understand the Ransomware Attack Lifecycle
Section titled “1. Understand the Ransomware Attack Lifecycle”A ransomware incident is rarely limited to:
Malware ↓Encrypt FilesModern incidents may follow:
Initial Access ↓Execution ↓Persistence ↓Privilege Escalation ↓Credential Access ↓Discovery ↓Lateral Movement ↓Data Collection ↓Possible Exfiltration ↓Encryption / ImpactYour investigation must therefore look before the encryption event.
2. Understand Double Extortion
Section titled “2. Understand Double Extortion”Some ransomware operations may attempt:
Data Theft +EncryptionThe attacker may threaten to:
Publish Dataeven if systems are later restored from backups.
Therefore, an investigation must consider both:
Availability Impactand:
Confidentiality Impact3. Start the Lab Environment
Section titled “3. Start the Lab Environment”Start:
CYSA-ANALYST10.10.10.10
CYSA-WIN0110.10.10.20
CYSA-LINUX0110.10.10.30
CYSA-SIEM10.10.10.40Verify that the SIEM contains:
Windows Security LogsPowerShell LogsProcess EventsDNSZeekSuricataAuthentication Events4. Create the Investigation Workspace
Section titled “4. Create the Investigation Workspace”On CYSA-ANALYST:
mkdir -p ~/CySA-Lab/Investigations/LAB18/{Evidence,Logs,Network,IOCs,Timeline,Screenshots,Reports}Create investigation notes:
touch ~/CySA-Lab/Investigations/LAB18/investigation-notes.mdUse:
Incident ID:LAB18-RANSOM-0015. Record the Initial Alert
Section titled “5. Record the Initial Alert”Document:
Incident:LAB18-RANSOM-001
Initial Host:CYSA-WIN01
IP:10.10.10.20
Detection:Potential Ransomware Activity
Initial Alert Time:09:42
Initial Severity:CriticalCapture the original SIEM alert before beginning deeper analysis.
6. Define the Initial Investigation Window
Section titled “6. Define the Initial Investigation Window”If encryption-like activity occurred at:
09:42begin with a window such as:
08:42–10:00Then expand backward as evidence requires.
Why?
Because:
Encryption Event ≠Initial CompromiseThe attacker may have gained access significantly earlier.
7. Validate the Ransomware Alert
Section titled “7. Validate the Ransomware Alert”Determine what triggered the alert.
Look for:
Rapid File ChangesUnusual File ExtensionsSuspicious ProcessesRansom Note CreationBackup Deletion AttemptsShadow Copy ActivitySecurity Tool InterferenceDo not classify the incident solely from the alert name.
Validate the underlying evidence.
8. Identify File-Encryption Indicators
Section titled “8. Identify File-Encryption Indicators”Look for unusual changes such as:
report.docx ↓report.docx.lockedor multiple files being renamed rapidly.
Review:
FilenameOriginal ExtensionNew ExtensionModification TimeProcess ResponsibleUser Context9. Detect Mass File Modification
Section titled “9. Detect Mass File Modification”Look for:
One Process ↓Hundreds of Files ↓Short Time WindowThis pattern is significantly different from normal user activity.
Document:
ProcessFiles ModifiedDirectoriesTime RangeUser10. Identify the Ransom Note
Section titled “10. Identify the Ransom Note”Search for newly created files such as:
README.txtRECOVER_FILES.txtRESTORE_FILES.txtHOW_TO_RECOVER.txtUse only the simulated artifact provided in your lab.
Record:
FilenamePathCreation TimeCreating ProcessSHA-256Do not interact with any external contact information contained in a ransom note.
11. Preserve the Ransom Note
Section titled “11. Preserve the Ransom Note”Copy the simulated artifact to:
LAB18/Evidence/Calculate:
sha256sum <ransom-note-file>Record the hash in your evidence inventory.
12. Identify the Suspected Ransomware Process
Section titled “12. Identify the Suspected Ransomware Process”Search process telemetry around the encryption time.
Look for:
Unknown ExecutableUnexpected ScriptPowerShellcmd.exewscript.execscript.exerundll32.exeRecord:
Process NamePIDParent PIDParent ProcessCommand LineUserTimestamp13. Analyze Process Lineage
Section titled “13. Analyze Process Lineage”Build:
Parent ↓Child ↓GrandchildFor example:
Email Client ↓Office Application ↓PowerShell ↓Unknown Executableor:
Browser ↓Downloaded File ↓PowerShellProcess lineage can help identify the initial execution vector.
14. Investigate Windows Process Events
Section titled “14. Investigate Windows Process Events”Search:
Event ID 4688for the affected host.
Focus on the period before encryption.
Identify:
Suspicious CommandsUnusual ExecutablesTemporary PathsEncoded CommandsScript InterpretersAdministrative Utilities15. Investigate PowerShell Activity
Section titled “15. Investigate PowerShell Activity”Search PowerShell Operational telemetry.
Where available, review:
Event ID 4104Look for suspicious activity such as:
Encoded or Obfuscated CommandsUnexpected DownloadsSystem DiscoveryCredential-Related CommandsSecurity Configuration ChangesThe presence of PowerShell alone is not malicious.
Context matters.
16. Search for Suspicious Execution Locations
Section titled “16. Search for Suspicious Execution Locations”Review execution from locations such as:
DownloadsTempAppDataPublicUser ProfileUnexpected binaries executing from user-writable locations deserve additional investigation.
17. Determine Potential Initial Access
Section titled “17. Determine Potential Initial Access”Now move backward in the timeline.
Investigate whether activity originated from:
PhishingStolen CredentialsExposed Remote ServiceMalicious DownloadCompromised AccountExisting MalwareUse evidence from previous labs where appropriate.
18. Investigate Phishing Evidence
Section titled “18. Investigate Phishing Evidence”Search for:
Suspicious EmailAttachmentURLSenderDomainDetermine whether:
Email Delivered ↓User Interaction ↓Process Executioncan be supported by evidence.
19. Investigate Authentication Activity
Section titled “19. Investigate Authentication Activity”Search:
462446254672Review:
Failed LoginsSuccessful LoginsSource IPUsernameLogon TypePrivilegeTimestampLook for suspicious sequences such as:
Multiple Failures ↓Successful Authentication ↓Privileged Activity20. Identify Potential Credential Abuse
Section titled “20. Identify Potential Credential Abuse”Ask:
Was the account expected to authenticate?
Was the source expected?
Was privileged access obtained?
Was the account used on additional systems?
Did authentication occur at unusual times?Record all affected accounts.
21. Investigate Credential Access Indicators
Section titled “21. Investigate Credential Access Indicators”Look for telemetry suggesting attempts to access:
CredentialsAuthentication TokensBrowser CredentialsSaved PasswordsCredential StoresDo not perform credential-dumping activity yourself.
This lab focuses on detection and investigation.
22. Identify Privileged Account Usage
Section titled “22. Identify Privileged Account Usage”Search for privileged authentication activity.
Review:
4672where relevant.
Determine whether:
Administrative Privilegeswere obtained before encryption.
Privileged access can dramatically increase ransomware impact.
23. Investigate Persistence
Section titled “23. Investigate Persistence”Look for suspicious changes involving:
Scheduled TasksServicesStartup LocationsRegistry Run KeysNew AccountsThe attacker may establish persistence before deploying ransomware.
24. Investigate Scheduled Tasks
Section titled “24. Investigate Scheduled Tasks”Review:
Get-ScheduledTaskLook for:
Unexpected Task NamesUnusual ExecutablesUser-Writable PathsSuspicious Trigger TimesRecord suspicious findings.
25. Investigate Services
Section titled “25. Investigate Services”Review:
Get-ServiceLook for unexpected recently created or modified services based on your lab telemetry.
Do not disable anything until evidence has been preserved and containment is authorized.
26. Investigate New Accounts
Section titled “26. Investigate New Accounts”Review security telemetry for account creation.
Look for:
Event ID 4720Determine:
AccountCreatorTimestampPrivilegesAn unexpected administrative account can indicate persistence.
27. Investigate Security Control Interference
Section titled “27. Investigate Security Control Interference”Ransomware operators may attempt to weaken defenses.
Look for evidence involving:
Security Tool StoppingLogging ChangesFirewall ChangesBackup Service InterferenceEndpoint Protection ChangesDo not reproduce destructive commands.
Your task is to identify the telemetry.
28. Investigate Backup and Recovery Interference
Section titled “28. Investigate Backup and Recovery Interference”Look for evidence suggesting attempts to affect:
Shadow CopiesBackup ServicesRecovery FeaturesRestore PointsDocument:
ProcessCommand ContextUserTimestampOutcomeThese activities can strongly support a ransomware assessment.
29. Investigate System Discovery
Section titled “29. Investigate System Discovery”Before ransomware deployment, attackers may identify:
HostnameUsersDomainNetwork ConfigurationSharesProcessesServicesLook for unusual discovery commands in process telemetry.
30. Investigate Network Share Discovery
Section titled “30. Investigate Network Share Discovery”Look for activity related to:
SMBNetwork SharesMapped DrivesAdministrative SharesDetermine whether the compromised endpoint accessed other systems shortly before encryption.
31. Investigate Lateral Movement
Section titled “31. Investigate Lateral Movement”Search for connections from:
CYSA-WIN01to other internal systems.
Review:
SMBRDPWinRMRemote AdministrationAuthentication EventsYour goal is not to reproduce lateral movement.
Your goal is to identify evidence that it occurred.
32. Pivot on the Compromised User
Section titled “32. Pivot on the Compromised User”Search the affected username across the SIEM.
Determine:
Which hosts?
Which timestamps?
Which source IPs?
Which authentication types?
Which privileged sessions?33. Pivot on CYSA-WIN01
Section titled “33. Pivot on CYSA-WIN01”Search:
10.10.10.20across all network telemetry.
Identify connections to:
Internal SystemsExternal SystemsDNS ServersWeb Services34. Investigate Zeek Connections
Section titled “34. Investigate Zeek Connections”Search Zeek conn.log data.
Review:
SourceDestinationPortProtocolDurationBytes SentBytes ReceivedLook for:
Unusual External DestinationsLarge TransfersInternal SMB ActivityRepeated Connections35. Investigate DNS Activity
Section titled “35. Investigate DNS Activity”Search DNS telemetry generated by:
CYSA-WIN01Look for:
Newly Observed DomainsUnusual DomainsKnown Malicious DomainsHigh Query FrequencyEnrich suspicious domains using the workflow from Lab 16.
36. Investigate Suricata Alerts
Section titled “36. Investigate Suricata Alerts”Search for alerts associated with:
10.10.10.20Record:
SignatureCategorySeveritySourceDestinationTimestampCorrelate alerts with endpoint activity.
37. Investigate Possible Command-and-Control Activity
Section titled “37. Investigate Possible Command-and-Control Activity”Look for:
Repeated Outbound ConnectionsPeriodic ConnectionsRare DestinationsUnexpected PortsSuspicious DNSDo not classify traffic as C2 based only on periodic behavior.
Combine:
Network Evidence+Endpoint Evidence+Threat Intelligence38. Investigate Potential Data Exfiltration
Section titled “38. Investigate Potential Data Exfiltration”Review outbound activity before encryption.
Ask:
Was a large amount of data transmitted?
Was unusual archive creation observed?
Were external destinations contacted?
Was cloud storage unexpectedly accessed?
Did outbound traffic increase significantly?Record findings as:
ConfirmedSuspectedNo Evidence IdentifiedUnable to DetermineDo not claim data theft without supporting evidence.
39. Identify Suspicious Archive Activity
Section titled “39. Identify Suspicious Archive Activity”Review process telemetry for unexpected archive creation.
Possible legitimate tools may include:
7-ZipWinRARPowerShell CompressionTheir presence alone is not malicious.
Look for:
Large Archive +Sensitive Directories +Suspicious Timing +External Transfer40. Identify the Ransomware File Hash
Section titled “40. Identify the Ransomware File Hash”Calculate SHA-256 only on the safe simulated ransomware artifact provided for the lab:
sha256sum <simulated-sample>Record:
SHA-256:<hash>Never execute the artifact during investigation.
41. Enrich the Hash
Section titled “41. Enrich the Hash”Using approved threat-intelligence sources, determine:
Known / UnknownClassificationAssociated FamilyFirst SeenRelated InfrastructureConfidenceFor a purpose-built lab sample, external intelligence may return:
Unknownwhich is acceptable.
42. Build the IOC Inventory
Section titled “42. Build the IOC Inventory”Create:
| Type | Indicator | Source | Confidence |
|---|---|---|---|
| Hash | <SHA-256> |
Endpoint | High |
| Domain | <domain> |
DNS | High |
| IP | <IP> |
Zeek | Medium/High |
| File | <filename> |
Endpoint | High |
| Extension | <extension> |
File telemetry | Contextual |
| Ransom Note | <filename> |
Endpoint | High |
43. Search Every IOC Across the Environment
Section titled “43. Search Every IOC Across the Environment”For each:
HashIPDomainFilenameUsersearch the SIEM.
Determine:
Number of HostsNumber of UsersFirst SeenLast SeenEvent Sources44. Identify Additional Affected Hosts
Section titled “44. Identify Additional Affected Hosts”Suppose:
Ransomware Hashappears on:
CYSA-WIN01and:
CYSA-LINUX01The incident scope has changed dramatically.
Document every affected system separately.
45. Distinguish Compromised and Exposed Systems
Section titled “45. Distinguish Compromised and Exposed Systems”Do not classify every contacted system as compromised.
Use categories:
Confirmed Compromised
Suspected Compromised
Exposed / Contacted
Unaffected
UnknownThis prevents unnecessary escalation of scope.
46. Build the Incident Scope Table
Section titled “46. Build the Incident Scope Table”| Asset | Evidence | Status | Criticality |
|---|---|---|---|
| CYSA-WIN01 | Encryption + Process | Confirmed | Medium |
| CYSA-LINUX01 | Network Contact | Exposed | High |
| CYSA-SIEM | No Evidence | Unaffected | Critical |
Update this table as new evidence appears.
47. Identify Affected Users
Section titled “47. Identify Affected Users”Create:
| User | Host | Evidence | Status |
|---|---|---|---|
| user01 | CYSA-WIN01 | Interactive session | Affected |
| admin01 | CYSA-WIN01 | Privileged logon | Investigate |
Identify whether credentials may need to be reset or sessions revoked.
48. Build the Ransomware Timeline
Section titled “48. Build the Ransomware Timeline”Example:
| Time | Stage | Evidence |
|---|---|---|
| 08:54 | Initial Access | Suspicious authentication |
| 09:02 | Execution | PowerShell |
| 09:08 | Discovery | Host/network enumeration |
| 09:15 | Credential Activity | Privileged access |
| 09:21 | Lateral Movement | SMB connection |
| 09:28 | Network Activity | External destination |
| 09:37 | Impact Preparation | Recovery interference |
| 09:42 | Encryption | Mass file modification |
| 09:43 | Ransom Note | Note created |
| 09:44 | Detection | SIEM alert |
Your actual timeline should be based on collected evidence.
49. Map Evidence to the Attack Lifecycle
Section titled “49. Map Evidence to the Attack Lifecycle”Create:
Initial Access ↓<evidence>
Execution ↓<evidence>
Persistence ↓<evidence>
Credential Access ↓<evidence>
Discovery ↓<evidence>
Lateral Movement ↓<evidence>
Possible Exfiltration ↓<evidence>
Impact ↓<evidence>If no evidence exists for a stage, record:
Not Observedrather than inventing activity.
50. Preserve Critical Evidence
Section titled “50. Preserve Critical Evidence”Prioritize:
SIEM EventsWindows LogsProcess TelemetryPowerShell LogsNetwork LogsPCAPSuspicious FilesRansom NoteIOC ListTimelineUse the evidence-handling process from Lab 17.
51. Hash Preserved Evidence
Section titled “51. Hash Preserved Evidence”Calculate SHA-256 hashes for preserved files.
Example:
sha256sum <evidence-file>Create:
LAB18/IOCs/evidence-hashes.txtRecord:
Evidence IDFilenameSHA-256Collection TimeCollector52. Determine Ransomware Impact
Section titled “52. Determine Ransomware Impact”Assess:
Confidentiality
Section titled “Confidentiality”Was data accessed?
Was data staged?
Was exfiltration observed?Integrity
Section titled “Integrity”Were files changed?
Were configurations modified?
Were accounts changed?Availability
Section titled “Availability”Were files encrypted?
Were systems unavailable?
Were business services disrupted?53. Determine Incident Severity
Section titled “53. Determine Incident Severity”A ransomware incident involving confirmed encryption should generally be treated as a significant incident.
Consider:
Number of SystemsAsset CriticalityPrivilege CompromiseEncryptionPotential ExfiltrationLateral MovementBusiness DisruptionRecovery ImpactFor this lab, classify:
LowMediumHighCriticaland justify your selection.
54. Determine Whether the Incident Is Active
Section titled “54. Determine Whether the Incident Is Active”Ask:
Is encryption continuing?
Are suspicious processes running?
Are malicious connections active?
Are additional hosts being affected?
Are attacker sessions still active?If yes:
Active Incidentrequires immediate containment consideration.
55. Prioritize Containment
Section titled “55. Prioritize Containment”For a confirmed active ransomware incident, potential priorities include:
1. Isolate Confirmed Compromised Hosts
2. Restrict Known Malicious Infrastructure
3. Disable or Secure Compromised Accounts
4. Revoke Active Sessions
5. Prevent Lateral Movement
6. Protect Critical Systems
7. Preserve Evidence
8. Hunt for Additional CompromiseActual response actions must follow organizational incident-response procedures.
56. Isolate the Endpoint Conceptually
Section titled “56. Isolate the Endpoint Conceptually”Containment may involve:
EDR Network IsolationSwitch Port IsolationNetwork SegmentationFirewall RestrictionThe objective is:
Compromised Host XRest of EnvironmentDo not power off a system automatically if volatile evidence still needs to be collected.
57. Contain Compromised Accounts
Section titled “57. Contain Compromised Accounts”Possible actions include:
Disable AccountReset CredentialsRevoke SessionsRotate Privileged CredentialsReview MFAPrioritize privileged identities.
58. Block Validated Malicious Indicators
Section titled “58. Block Validated Malicious Indicators”Potential controls:
FirewallDNS SecurityProxyEDREmail SecuritySIEM DetectionOnly block indicators after considering false-positive and shared-infrastructure risk.
59. Protect Backups
Section titled “59. Protect Backups”During a ransomware incident, ensure backup infrastructure is not accessible to the attacker.
Security teams should verify:
Backup IntegrityBackup IsolationAdministrative AccessRecovery CredentialsRecent Successful BackupsDo not begin restoration until the environment is considered safe.
60. Do Not Rush to Recovery
Section titled “60. Do Not Rush to Recovery”The sequence should not be:
Encryption ↓Immediately Restore EverythingInstead:
Detect ↓Contain ↓Scope ↓Preserve Evidence ↓Eradicate ↓Validate ↓RecoverRestoring systems before removing attacker access can result in reinfection.
61. Create Immediate Response Recommendations
Section titled “61. Create Immediate Response Recommendations”Example:
P1 — Immediate
Isolate CYSA-WIN01Secure affected user accountPreserve volatile evidenceBlock validated malicious infrastructureSearch for IOC matches across all endpoints
P2 — Urgent
Review privileged account usageInvestigate lateral movementValidate backup securityInvestigate potential exfiltration
P3 — Follow-Up
Determine root causeRemove persistencePatch initial access vectorRestore affected systemsIncrease monitoring62. Identify the Root Cause
Section titled “62. Identify the Root Cause”Do not stop at:
Ransomware ExecutedDetermine:
How did the attacker get in?Potential conclusions:
PhishingCompromised CredentialsUnpatched ServiceMalicious DownloadUnknownIf evidence is insufficient, record:
Root Cause:Undetermined63. Identify the Initial Compromise Time
Section titled “63. Identify the Initial Compromise Time”The first encryption event is not necessarily the first compromise.
Compare:
Initial Suspicious AuthenticationPowerShell ActivityNetwork ConnectionsPersistenceEncryptionDetermine the earliest defensible point of compromise.
64. Create a Ransomware Incident Summary
Section titled “64. Create a Ransomware Incident Summary”Use:
Incident ID:LAB18-RANSOM-001
Classification:Simulated Ransomware Incident
Severity:Critical
Initial Host:CYSA-WIN01
Affected User:<user>
Initial Access:<finding>
Execution:<finding>
Persistence:<finding>
Credential Activity:<finding>
Lateral Movement:<finding>
Data Exfiltration:Confirmed / Suspected / Not Observed / Unknown
Impact:File encryption confirmed
Affected Systems:<number>
Containment:Immediate
Escalation:Incident Response / Security Leadership65. Create an Executive Summary
Section titled “65. Create an Executive Summary”Keep the executive summary focused on:
What happened?
What is affected?
Is the threat contained?
Was data potentially exposed?
What is the business impact?
What actions are underway?Avoid unnecessary technical details.
66. Create the Technical Incident Summary
Section titled “66. Create the Technical Incident Summary”Technical responders need:
TimelineProcess TreeCommand LinesUsersAuthenticationHashesDomainsIPsNetwork ConnectionsAffected HostsPersistenceLateral MovementContainment Status67. Mission Challenge — Ransomware Investigation
Section titled “67. Mission Challenge — Ransomware Investigation”The SOC asks:
Determine how the ransomware activity began, what systems are affected, whether the attacker moved laterally or potentially accessed data, and what must be contained immediately.
Answer:
-
When was the first suspicious event?
-
What triggered the ransomware alert?
-
Was encryption confirmed?
-
Which files were affected?
-
Was a ransom note created?
-
Which process performed the suspicious activity?
-
What was its parent process?
-
Was PowerShell involved?
-
What was the likely initial access vector?
-
Which user account was involved?
-
Was privileged access obtained?
-
Were credentials potentially abused?
-
Was persistence established?
-
Was security tooling affected?
-
Was backup/recovery functionality targeted?
-
Was system discovery performed?
-
Was network-share discovery observed?
-
Did lateral movement occur?
-
Which systems were contacted?
-
Which systems are confirmed compromised?
-
What external infrastructure was contacted?
-
What IOCs were identified?
-
Does threat intelligence provide additional context?
-
Was archive creation observed?
-
Is there evidence of data exfiltration?
-
What is the earliest defensible compromise time?
-
Is the incident still active?
-
What is the incident severity?
-
What should be contained first?
-
What should the organization investigate next?
68. Document Your Findings
Section titled “68. Document Your Findings”Update:
~/CySA-Lab/Investigations/LAB18/investigation-notes.mdUse:
# LAB18 Ransomware Incident Investigation
## Incident ID
LAB18-RANSOM-001
## Initial Detection
Document:- alert- host- user- timestamp- severity
## Initial Access
Document evidence supporting the likely entry vector.
## Authentication
Document:- failed logins- successful logins- source IP- user- privilege
## Execution
Document:- process- parent- command line- timestamp
## PowerShell Activity
Document relevant script telemetry.
## Persistence
Document any persistence evidence.
## Credential Activity
Document potential credential abuse.
## Discovery
Document system and network discovery.
## Lateral Movement
Document:- source- destination- protocol- user- evidence
## Network Activity
Document:- DNS- IPs- domains- ports- Zeek- Suricata
## Ransomware Impact
Document:- file modifications- encryption indicators- extension changes- ransom note
## Potential Exfiltration
Confirmed / Suspected / Not Observed / Unknown
Document supporting evidence.
## Indicators of Compromise
Document:- hashes- domains- IPs- filenames- users
## Incident Scope
Classify systems as:- Confirmed Compromised- Suspected- Exposed- Unaffected- Unknown
## Timeline
Build the complete sequence of events.
## Evidence
Document preserved evidence and SHA-256 hashes.
## Severity
Low / Medium / High / Critical
## Containment
Document immediate containment priorities.
## Root Cause
Confirmed / Suspected / Undetermined
## Final Assessment
Summarize what happened and what should happen next.69. Example Analyst Findings
Section titled “69. Example Analyst Findings”A simulated investigation may conclude:
Incident:LAB18-RANSOM-001
Classification:Confirmed Simulated Ransomware Incident
Initial Host:CYSA-WIN01
Initial Access:Evidence suggests the incident began with suspicious user activity before the encryption event.
Execution:PowerShell activity was followed by execution of an unknown simulated ransomware artifact.
Credential Activity:Suspicious privileged activity was identified and requires additional investigation.
Network Activity:The endpoint contacted suspicious external infrastructure.
Lateral Movement:Internal network activity was observed; additional hosts require validation before being classified as compromised.
Impact:Mass file modifications and simulated encryption indicators were confirmed.
Ransom Note:Simulated ransom-note artifact identified.
Data Exfiltration:Insufficient evidence to confirm exfiltration.
Scope:One endpoint confirmed compromised with additional systems requiring investigation.
Severity:Critical
Immediate Priority:Isolate the confirmed endpoint, secure affected identities, preserve evidence, protect backup infrastructure, block validated malicious indicators, and perform enterprise-wide IOC hunting.70. Evidence to Capture
Section titled “70. Evidence to Capture”Capture:
01-initial-ransomware-alert.png02-file-encryption-indicators.png03-mass-file-modifications.png04-ransom-note.png05-ransom-note-hash.png06-ransomware-process.png07-process-tree.png08-powershell-events.png09-initial-access-evidence.png10-authentication-events.png11-privileged-access.png12-persistence-evidence.png13-security-control-events.png14-backup-interference.png15-discovery-activity.png16-lateral-movement.png17-zeek-network-activity.png18-dns-activity.png19-suricata-alerts.png20-threat-intelligence.png21-ioc-inventory.png22-affected-hosts.png23-incident-scope.png24-ransomware-timeline.png25-evidence-hashes.png26-containment-plan.png27-executive-summary.png28-final-assessment.png71. Validation Checklist
Section titled “71. Validation Checklist”-
Initial ransomware alert was preserved
-
Investigation window was established
-
Alert telemetry was validated
-
File-encryption indicators were investigated
-
Mass file modifications were identified
-
Ransom-note artifact was investigated
-
Ransom-note hash was calculated
-
Suspected ransomware process was identified
-
Process lineage was analyzed
-
Windows process events were reviewed
-
PowerShell telemetry was reviewed
-
Suspicious execution locations were investigated
-
Potential initial access was investigated
-
Authentication activity was analyzed
-
Credential abuse was considered
-
Privileged activity was investigated
-
Persistence mechanisms were investigated
-
New accounts were reviewed where relevant
-
Security-control interference was investigated
-
Backup/recovery interference was investigated
-
Discovery activity was reviewed
-
Network-share activity was reviewed
-
Lateral movement was investigated
-
User activity was correlated
-
Zeek telemetry was investigated
-
DNS activity was analyzed
-
Suricata alerts were correlated
-
Potential C2 activity was assessed
-
Potential exfiltration was investigated
-
Suspicious archive activity was considered
-
File hashes were collected
-
Threat intelligence was reviewed
-
IOC inventory was created
-
IOCs were searched across the environment
-
Confirmed and exposed systems were distinguished
-
Affected users were identified
-
Complete incident timeline was built
-
Attack lifecycle was reconstructed
-
Evidence was preserved
-
Evidence hashes were recorded
-
Confidentiality impact was assessed
-
Integrity impact was assessed
-
Availability impact was assessed
-
Incident severity was assigned
-
Incident activity status was determined
-
Containment priorities were documented
-
Backup protection was considered
-
Root cause was investigated
-
Executive summary was created
-
Technical incident summary was created
72. Mission Review
Section titled “72. Mission Review”In this mission, you investigated ransomware as an incident lifecycle, rather than treating file encryption as an isolated event.
You moved backward from:
Encrypted Filesto reconstruct:
Initial Access ↓Execution ↓Persistence ↓Credential Activity ↓Discovery ↓Lateral Movement ↓Possible Data Collection ↓Possible Exfiltration ↓Encryption ↓Business ImpactYou then moved forward into response:
Detection ↓Validation ↓Scoping ↓Evidence Preservation ↓Containment ↓Eradication ↓RecoveryThe key lesson is:
The encryption event is often the visible end of a much longer intrusion. A ransomware investigation must determine what happened before encryption and how far the attacker reached.
Skills Developed
Section titled “Skills Developed”After completing this mission, you should be able to:
-
investigate ransomware-related alerts
-
identify encryption indicators
-
analyze mass file modifications
-
investigate ransomware artifacts
-
analyze suspicious process lineage
-
investigate PowerShell activity
-
determine potential initial access
-
investigate credential abuse
-
identify persistence indicators
-
detect security-control interference
-
investigate recovery interference
-
identify discovery behavior
-
detect lateral-movement indicators
-
analyze network telemetry
-
investigate possible command-and-control activity
-
assess potential data exfiltration
-
enrich ransomware IOCs
-
scope affected systems and users
-
reconstruct ransomware timelines
-
preserve incident evidence
-
assess ransomware impact
-
prioritize containment
-
investigate root cause
-
produce technical and executive incident reports
What’s Next?
Section titled “What’s Next?”Lab 19 — Web Application Attack Investigation
Section titled “Lab 19 — Web Application Attack Investigation”You have investigated endpoint, authentication, malware, vulnerability, threat-intelligence, and ransomware incidents.
The next mission shifts the investigation toward an application exposed to users and potentially the Internet.
You will investigate:
-
suspicious HTTP requests
-
web access logs
-
HTTP methods
-
status codes
-
source IP behavior
-
authentication attacks
-
suspicious parameters
-
SQL injection indicators
-
cross-site scripting indicators
-
path traversal
-
command injection indicators
-
web shells and suspicious files
-
WAF/security alerts
-
server-side evidence
-
network telemetry
-
threat-intelligence enrichment
-
affected accounts
-
attack timelines
-
incident scoping
-
containment recommendations
The workflow progresses from:
Endpoint Incident ↓Host Investigationto:
HTTP Request ↓Web Application ↓Server Logs ↓Application Behavior ↓Security Telemetry ↓Potential Compromise➡️ Next: Lab 19 — Web Application Attack Investigation