top of page

What to Do After a Ransomware Attack


Ransomware attacks are among the most devastating incidents an organization can face. They can cripple your operations, lead to significant financial loss, and damage your reputation. When a ransomware campaign is in progress, the clock is ticking, and how you respond in those critical moments can determine the extent of the damage.


Immediate Response: The Clock Is Ticking

The first thing to understand is that ransomware incidents require immediate action. The sooner you detect the ransomware actor in your network, the better your chances of minimizing

damage. Here are the possible scenarios:


  1. Immediate Detection Upon Network Access:

    • GREAT! Work fast! This is the best-case scenario where you can potentially stop the attack before it causes significant harm.

  2. Detection After They’ve Been in Your Network for a While:

    • Work faster! At this point, the attacker may have already exfiltrated data or planted the encryption payload. Time is of the essence.

  3. Detection Pre- or Post-Exfiltration, But Before Encryption:

    • If you catch them in this window, you still have a chance to prevent encryption. However, be prepared for the possibility that encryption is imminent.

  4. Detection After Encryption:

    • Sadly, this is the most common scenario. At this stage, the focus shifts to damage control and recovery.


In all these scenarios, having a pre-incident response plan is crucial. Without it, your response will be too slow, leading to greater damage.


Initial Incident Scoping: Key Considerations

When you first identify a ransomware incident, you need to quickly assess the situation. Here's what to consider:


  • How was the incident identified?

    • Did someone notify you? Did you discover a ransom note or a service that stopped functioning?

  • Which hosts and services are impacted?

    • Identify all the systems that have been compromised to understand the scope of the attack.

  • What actions have already been taken?

    • Determine if any containment measures have been initiated and whether they were effective.

  • What are the organization’s expectations?

    • Communicate with leadership to understand their priorities and what they expect from the incident response.

  • What are the “crown jewels” of the organization?

    • Identify critical assets that need immediate protection.

  • Do backups exist, and are they unencrypted?

    • Confirm the availability and integrity of backups, as they will be key to recovery.

  • Do up-to-date network diagrams exist?

    • Accurate network diagrams are essential for understanding how the attack is spreading and for planning your response.

  • Is there an MSSP (Managed Security Service Provider) who can assist?

    • If available, leverage external expertise to enhance your response efforts.


Collecting and Preserving Evidence

Evidence preservation is critical in a ransomware investigation. Here’s how to approach it:

  • Physical Evidence:

    • Take a physical picture of the ransom note immediately, as it might be encrypted or deleted later.

  • Virtual Machines:

    • If possible, pause virtual machines rather than shutting them down. Pausing a VM typically saves its memory state, which can be valuable for investigation.

  • Memory Capture:

    • Capture a memory image from compromised systems to analyze for forensic evidence.


Backup Protocols: Review and Invoke

When ransomware hits, you may lose access to critical protocols needed for response. Here’s what to do:


  • Active Directory (AD) Availability:

    • Be prepared for AD to be down, which is common in ransomware cases. Have alternative methods to navigate the network and access machines.

  • Local Accounts and Cached Domain Credentials:

    • Ensure that machines have local accounts or cached credentials to maintain access.

  • Deployment Methods for Data Collection:

    • If you need to install tools for data collection, ensure you have a deployment method available.

  • Out-of-Band Communication:

    • Establish secure communication channels that are not dependent on the compromised network.


Securing Backups: Protecting the Crown Jewels

Your backup servers must be secured immediately:

  • On-Prem Backup:

    • Disconnect from the network to prevent ransomware from spreading to backups.

  • Cloud-Based Backup:

    • Consider disconnecting, depending on the situation, to protect your data.


“Going Dark” – Cutting Internet Access

If the threat actor is still active in your environment and you suspect imminent encryption, you may need to cut internet access:


  • Major Decision with Far-Reaching Consequences:

    • This decision is not to be taken lightly and should be made by top leadership. While it might prevent encryption, it will disrupt business operations.

  • Pre-Plan Policies:

    • Ensure you have pre-planned policies in place for such scenarios. Create pinholes for essential services like VPN, EDR, and remote IR connectivity.


Disabling Shares, Sync Agents, and Accounts



  • Admin Shares:

    • Disabling admin shares can thwart threat actors but may disrupt services. Conduct a risk analysis beforehand.

  • Network Shares and Distributed File Systems:

    • Consider taking these down to protect them from encryption.

  • Credential Remediation:

    • Reset credentials and disable accounts to prevent the threat actor from regaining access.


Recovery from Backup

Recovering from backups is a critical step, but timing is everything:


  • Hold Off Restoral Until You’re Sure:

    • Ensure you know the exact date(s) to fall back to for recovery. Restoring from a compromised backup could reinfect your network.

  • Edge Devices:

    • Firewalls and VPNs may have been exploited. Consider updating and restoring them to factory state to eliminate persistence mechanisms.


Post-Incident: Turning a Crisis into an Opportunity


A ransomware attack, while devastating, can also be an opportunity for your security team to gain the attention and support it needs:

  • Increased Support and Funding:

    • Use the incident as leverage to secure more resources for your security team.

  • Staff Augmentation:

    • Advocate for additional staffing to prevent future incidents.


Final Thoughts: Learn, Plan, and Prepare

Ransomware incidents are complex and require swift, decisive action. Preparation is key. Learn from each incident, refine your response plans, and ensure that your organization is better prepared for the next attack.


Akash patel

31 views0 comments

Comentários


bottom of page