After a Cyberattack: What Really Happened Inside Your Systems?

When an organization detects a cyberattack, such as ransomware on a server, unauthorized access to a Microsoft 365 account, or a data breach, IT and Security teams must act quickly to contain the incident and minimize its impact on business operations. At the same time, several critical questions need to be addressed to assess the extent of the damage.

When did the attackers first gain access? How did they enter the environment? Did they move to other systems? Was sensitive data accessed or exfiltrated? Could the attackers still have a way to regain access?

Answering these questions is essential for assessing the scope of the compromise and determining an appropriate response. The initial signs of an attack may represent only a portion of the activities carried out within the organization’s environment.

Digital Forensics and Incident Response (DFIR) plays a critical role in investigating and analyzing security incidents through digital evidence. It helps identify the root cause, reconstruct the attack timeline, and determine which systems have been affected. These findings support informed decisions regarding incident containment, threat eradication, and system recovery.

Table of Contents

What Is DFIR, and How Does It Support Cyberattack Response?

DFIR stands for Digital Forensics and Incident Response. It combines digital forensic investigation with cybersecurity incident response to help organizations understand what occurred within their systems and establish a structured approach to managing security incidents.

DFIR consists of two key components:

Digital Forensics (DF) involves the collection, examination, and analysis of digital evidence from relevant systems to identify the cause of an incident, investigate attacker activities, and assess the extent to which systems or data may have been compromised.

Incident Response (IR) focuses on managing security incidents, including incident assessment, containment, damage limitation, threat eradication, system recovery, and improvements to security measures following an incident.

Together, these capabilities provide Security teams with the information needed to determine which systems require further investigation, which accounts or devices need remediation, and what risks must be addressed before restoring normal operations.

For example, if ransomware is detected on a server, an investigation may reveal that attackers initially gained access through stolen VPN credentials and subsequently used the compromised account to access several other servers before deploying ransomware. These findings allow the Incident Response team to expand the investigation to related systems and address the compromised accounts and access paths involved in the attack.

Read more: Incident Response: 6 Steps for Handling Cyber Incidents Based on NIST and SANS

What Does DFIR Investigate After a Cyberattack?

Investigating a cyberattack requires examining activities throughout the incident and correlating information from multiple systems to identify the initial point of compromise, reconstruct attacker activities, and assess the resulting damage.

Investigations can be guided by the MITRE ATT&CK Framework, which documents common attacker tactics and techniques, including Initial Access, Credential Access, Lateral Movement, Persistence, and Exfiltration. This framework helps investigation teams identify relevant activities and correlate evidence across different systems.

1. Root Cause Investigation: How Did the Attackers Gain Initial Access?

Identifying the root cause is a critical part of DFIR because organizations need to understand where the attack originated and which conditions allowed the attackers to gain access.

For example, attackers may enter an environment using stolen VPN credentials, exploit vulnerabilities in systems exposed to the internet, or use malware installed on an endpoint to gain access to internal resources.

A DFIR team analyzes information associated with the early stages of the incident to identify potential entry points and establish connections with subsequent activities. This may require examining evidence from multiple systems to evaluate different possible attack paths.

If the incident originated from a compromised account, the organization may need to investigate related accounts and determine which systems the attacker could have accessed using that account’s privileges.

The findings help organizations develop remediation plans that address the underlying cause, such as securing compromised credentials, closing exploited remote access paths, or remediating relevant vulnerabilities.

However, some incidents may involve limited or incomplete evidence, making it difficult to confirm the initial access method. Root cause conclusions should therefore be supported by available evidence, with any investigative limitations clearly documented.

2. Attack Timeline: When Did the Attack Begin, and What Did the Attackers Do?

Some cyberattacks are detected only after visible damage occurs, such as widespread file encryption or the disruption of critical services. However, attacker activities may have started well before the incident was discovered.

Attack timeline reconstruction involves arranging verified events in chronological order to determine when attackers initially accessed the environment and what actions they performed during different stages of the attack.

Potential activities include logging in with stolen credentials, conducting internal reconnaissance, escalating privileges, accessing additional servers, and collecting information before executing the final stage of an attack.

By correlating information from endpoints, servers, identity systems, and network infrastructure, DFIR teams can establish relationships between events and identify periods that require further investigation.

An attack timeline also helps organizations estimate how long attackers may have maintained access before detection. This information is valuable when determining which servers, accounts, and data may have been affected during the compromise.

3. Scope of Compromise: Which Systems Were Affected by the Attack?

When a security incident is identified on one system, the DFIR team must assess whether the attackers were able to extend their access to other parts of the organization’s infrastructure, particularly within interconnected environments.

For example, compromising a user account with access to multiple servers may allow attackers to move between systems using the same credentials. If attackers gain access to a privileged administrator account, a much larger number of resources may become exposed.

Assessing the scope of compromise requires examining relationships between systems, user accounts, and recorded activities to distinguish systems with confirmed evidence of compromise from those potentially exposed or requiring additional investigation.

For instance, if attackers are found to have used a privileged account to access a Domain Controller, the DFIR team may need to expand its investigation to servers and accounts managed within that environment. This helps determine whether additional unauthorized activities or configuration changes occurred.

These findings directly support incident response decisions by helping organizations define the appropriate scope of containment and reduce the risk of overlooking affected systems.

4. Data Impact Assessment: Was Sensitive Data Accessed or Exfiltrated?

In incidents involving data breaches or ransomware, organizations need to assess which information attackers may have accessed and whether evidence indicates that data was transferred outside the environment.

For example, if a compromised account had access to a file server or cloud storage containing customer information, the DFIR team may need to determine whether files were accessed, downloaded, or transferred during the period when the attacker controlled the account.

This analysis helps organizations distinguish between systems that were potentially exposed, systems with confirmed unauthorized access, and incidents where evidence indicates that information was exfiltrated.

For instance, detecting unusually large volumes of file access may provide important investigative clues. However, additional activities, such as file downloads, data collection, or connections to external destinations, must also be examined to assess whether data was actually transferred outside the organization.

Data impact assessments require correlation across multiple evidence sources, and any limitations should be clearly documented, particularly when relevant logs are unavailable or do not cover the entire incident period.

The findings can support business impact assessments, evaluations of potential data breach notification obligations under applicable regulations, and communication planning with customers, partners, and other stakeholders.

5. Persistence Investigation: Do the Attackers Still Have Access to the Environment?

Some attackers establish persistence mechanisms while they have control over systems or accounts, allowing them to maintain access and potentially return to the environment later.

These mechanisms may include unauthorized accounts, backdoors, scheduled tasks, remote access tools, or modifications to permissions and configurations within cloud environments.

DFIR teams therefore investigate whether any activities or system changes could allow attackers to retain access after initial containment measures have been implemented.

For example, if a newly created account with elevated privileges is discovered during the incident period, the Security team may need to determine whether the account was created by an authorized administrator or as part of the attack.

If evidence of persistence is identified, the findings can guide the Security team in removing unauthorized access mechanisms and checking whether similar changes exist across other systems.

This investigation is particularly important for recovery planning, as organizations need to assess the risk of attackers regaining access before restoring critical services.

Examples of Cyberattack Investigation and Analysis Using DFIR

The scope of a DFIR engagement varies depending on the type of attack, the affected systems, and the availability of digital evidence. The following hypothetical scenarios illustrate how investigation findings can support cyberattack response and recovery decisions.

Case 1: Ransomware Attack on a Server with an Unknown Initial Entry Point

Consider an organization that discovers ransomware on a file server, making critical business data inaccessible. The IT team isolates the affected server from the network to limit further damage.

However, the organization has yet to determine how the attackers entered the environment or whether additional servers have been compromised.

The DFIR team begins investigating activities associated with the incident, analyzing potential access times, the accounts involved, and relationships between affected systems.

Suppose the investigation reveals that the attackers used stolen VPN credentials to access the network before moving between several servers. Evidence also indicates that information was collected from certain shared folders before the ransomware attack.

These findings require the organization to expand its investigation beyond the encrypted file server to include the compromised VPN account, previously accessed systems, and data potentially involved in the attack.

The DFIR team can also use the available evidence to assess whether data exfiltration occurred or whether unauthorized access mechanisms remain within the environment before determining appropriate threat eradication and recovery measures.

The investigation findings help the organization define the scope of remediation more accurately and identify risks that must be addressed before restoring normal operations.

Case 2: Microsoft 365 Account Compromise Involving Unauthorized Access to an Employee Account

Another scenario involves an organization discovering that an employee’s Microsoft 365 account has been accessed by an unauthorized individual who subsequently performed activities within the environment.

Even after the account has been disabled or its password changed, the organization still needs to determine which resources or information may have been accessed during the compromise and whether any unauthorized configuration changes occurred.

The DFIR team may examine login activity alongside Microsoft Entra ID and Microsoft 365 audit logs to analyze access to email, SharePoint, and other associated resources.

Suppose the investigation identifies an email forwarding rule created by the attacker to send copies of messages to an external address, along with evidence of access to certain SharePoint data.

These findings help the organization estimate the period during which the attacker controlled the account, identify potentially affected information, and determine whether other accounts or applications were involved.

The analysis can support decisions regarding session and token revocation, removal of unauthorized mailbox rules, access permission management, and additional investigations to evaluate remaining security risks.

This scenario demonstrates how DFIR helps organizations analyze activities that occurred after an attacker successfully accessed an account, particularly when the compromise may affect multiple connected applications and information resources.

How Do DFIR Findings Support Incident Response and System Recovery?

One of the primary outcomes of DFIR is actionable information that organizations can use to make informed incident response decisions, particularly when an attack involves multiple systems or the extent of the damage remains unclear.

Investigation findings are typically documented in an Incident Investigation Report, which may cover the following areas:

  • Root Cause:The underlying cause or attack entry point supported by available evidence.
  • Attack Timeline:A chronological reconstruction of attacker activities and relevant events.
  • Affected Systems and Accounts:Systems, devices, and user accounts that were compromised or require further investigation.
  • Data Impact:Information that may have been accessed or for which evidence suggests possible exfiltration.
  • Recommended Actions:Remediation measures, risk mitigation recommendations, and security checks to support safe system recovery.


The report should also distinguish confirmed findings from assumptions supported by evidence and clearly document any investigative limitations. This helps organizations evaluate the reliability of the findings and use them appropriately when making decisions.

For example, if the investigation identifies that attackers used a privileged account, the organization may need to expand its assessment to all systems accessible through that account before finalizing its recovery plan.

Similarly, if persistence mechanisms are discovered on certain servers, the responsible teams can use these findings to guide threat eradication and verify system security before bringing affected services back online.

Investigation results can also support improvements to security controls, monitoring rules, access management, and incident response playbooks, strengthening the organization’s ability to detect and respond to similar attacks in the future.

The level of detail available from an investigation depends on the type of attack, the agreed scope of work, and the availability of digital evidence. Incidents with limited evidence may prevent investigators from confirming every stage of attacker activity.

When Should Organizations Consider DFIR Services?

DFIR services are particularly relevant when an organization needs to establish the facts surrounding a cyberattack, especially when the root cause, scope of compromise, or remaining security risks have yet to be clearly identified.

Examples include organizations that have experienced ransomware and need to determine whether the attack spread across additional systems, organizations dealing with compromised accounts that require further analysis of attacker activities, and businesses concerned that sensitive information may have been accessed or exfiltrated.

DFIR may also be appropriate when an organization has already contained the initial incident but needs to identify the root cause and assess security risks before restoring critical systems. This is especially relevant for complex incidents involving multiple interconnected systems.

Beginning an investigation while relevant evidence is still available increases the likelihood of developing a more complete understanding of the incident, particularly when logs have limited retention periods or data may change during normal system operations.

Organizations should therefore evaluate the need for DFIR based on the nature and severity of the incident, as well as the capabilities and availability of their internal IT and Security teams. This helps determine an appropriate investigation scope and response strategy.

Investigate and Respond to Cyberattacks with BMSP’s DFIR Services

When organizations face cyberattacks such as ransomware, data breaches, or account compromise, identifying the root cause, reconstructing attacker activities, and assessing the scope of damage provide critical information for effective incident response and system recovery.

BMSP provides comprehensive Digital Forensics and Incident Response (DFIR) services, covering both active incident response and retrospective investigations. Our services help organizations identify the root cause, reconstruct the attack timeline, and assess the scope of compromise. Clients receive detailed investigation reports, actionable recommendations, and remediation consulting to support recovery planning, strengthen security controls, and reduce the risk of recurring attacks.

BMSP’s DFIR team works directly with our Security Operations Center (SOC), enabling coordinated activities across threat detection, incident response, and digital forensic investigation. With cybersecurity specialists based in Thailand, BMSP also provides assistance at client sites and investigation reports in both Thai and English.

Suspect a cyberattack or need assistance investigating a security incident? Contact BMSP for a free initial consultation and preliminary assessment.

References

  1. NIST SP 800-61 Rev. 3: Incident Response Recommendations and Considerations for Cybersecurity Risk Management
  2. MITRE ATT&CK: Enterprise Tactics
  3. CISA: StopRansomware Guide
  4. Microsoft Learn: Respond to a Compromised Email Account in Microsoft 365

Contact BMSP

Contact BMSP for expert Cybersecurity consultation tailored to your organization.

Share

Related Content

Get in touch with us. We’re here to assist you.

08. Home Bottom (EN)

Learn how we helped 100 top brands gain success