Event ID 4697 – Ransomware Related Event

As you know, Ransomware often attempts to gain persistence on a compromised system by modifying or creating system services. This allows the malware to automatically run on system startup or at regular intervals to encrypt files. The addition of the service will obviously trigger the Event ID 4697 and hence it is important for SOC team to set SIEM rules for this event. Microsoft also has specific recommendations for security monitoring (Read Here) which makes this event an important monitoring target.

Below are some ways ransomware can trigger Event ID 4697:

  • Creating a new malicious service to execute the ransomware payload
  • Modifying an existing legitimate service to run the ransomware instead of its normal functionality
  • Changing the binary path of a service to point to the ransomware executable

Detecting Ransomware via Event ID 4697

Mentioned below is the list of actions that Security analysts can take while reviewing the Event ID 4697 logs for any potential ransomware activity:

  • Look for service installations with unusual binary paths, like those in the %APPDATA% folder, ransomware groups typically add new services under %APPDATA% folder as no admin rights are needed.
  • Monitor for services with suspicious names or descriptions that don’t match legitimate Windows services.
  • Check if the service is configured to automatically start, which is common for ransomware persistence
  • Identify services running under user accounts rather than the standard LocalSystem, LocalService or NetworkService accounts

Analysts can use free tools like

Note that Event ID 4697 alone does not pinpoint towards a ransomware attack, SOC team needs to correlate this with other suspicious events like process creations, network connections, and file changes to arrive at a conclusion.

Windows Security Events For SOC – Part 3

Event monitoring plays a crucial role in determining whether the 5 pillars of Cybersecurity – confidentiality, integrity, availability, authenticity, and non-repudiation are intact or not. Events enablement, capturing and safe storage is another aspect which we will discuss later however in any enterprise and particularly for the ones that have regulatory requirements, feeding the events to a SIEM solution and setting the rules basis deviation would only provide useful actionable information. If rules are not defined properly, finding a relevant and actionable security event is like finding a needle in haystack. Continuing from the previous two articles in this series, this is the third one in line to help the Blue Teams and SOC to determine how they want to set the rules in their log monitoring environments.

Windows Security Events For SOC and Blue Teams
Windows Security Events For SOC and Blue Teams

Event ID 4697 is commonly triggered in Ransomware Attacks, and I have written another dedicated blog here <Click to Read>.

 

#Ransomware Attacks

#SOC Monitoring