Security-X

Forum Security-X => News => Discussion démarrée par: igor51 le mars 25, 2017, 18:00:50

Titre: [FireEye]Cerber: Analyzing a Ransomware Attack Methodology To Enable Protection
Posté par: igor51 le mars 25, 2017, 18:00:50
Cerber: Analyzing a Ransomware Attack Methodology To Enable Protection

[html]

Ransomware is a common method of cyber extortion for financial gain
  that typically involves users being unable to interact with their
  files, applications or systems until a ransom is paid. Accessibility
  of cryptocurrency such as Bitcoin has directly contributed to this
  ransomware model. Based on data from FireEye Dynamic Threat
  Intelligence (DTI), ransomware activities have been     href="https://www.fireeye.com/blog/threat-research/2016/05/ransomware_activity.html">rising
    fairly steadily since mid-2015.


 

On June 10, 2016, FireEye’s HX detected a Cerber ransomware campaign
  involving the distribution of emails with a malicious Microsoft Word
  document attached. If a recipient were to open the document a
  malicious macro would contact an attacker-controlled website to
  download and install the Cerber family of ransomware.


 

Exploit Guard, a major new feature of     href="https://www.fireeye.com/products/hx-endpoint-security-products.html">FireEye
    Endpoint Security (HX), detected the threat and alerted HX
  customers on infections in the field so that organizations could
  inhibit the deployment of Cerber ransomware. After investigating
  further, the FireEye research team worked with security agency
  CERT-Netherlands, as well as web hosting providers who unknowingly
  hosted the Cerber installer, and were able to shut down that instance
  of the Cerber command and control (C2) within hours of detecting the
  activity. With the attacker-controlled servers offline, macros and
  other malicious payloads configured to download are incapable of
  infecting users with ransomware.


 

FireEye hasn’t seen any additional infections from this attacker
  since shutting down the C2 server, although the attacker could
  configure one or more additional C2 servers and resume the campaign at
  any time. This particular campaign was observed on six unique
  endpoints from three different FireEye endpoint security customers. HX
  has proven effective at detecting and inhibiting the success of Cerber malware.


 
Attack Process

 

The Cerber ransomware attack cycle we observed can be broadly broken
  down into eight steps:


 
  1. Target receives and opens a Word document.
  2. Macro in
        document is invoked to run PowerShell in hidden mode.

  3.    
  4. Control is passed to PowerShell, which connects to a malicious
        site to download the ransomware.
  5. On successful connection,
        the ransomware is written to the disk of the victim.

  6.    
  7. PowerShell executes the ransomware.
  8. The malware
        configures multiple concurrent persistence mechanisms by creating
        command processor, screensaver, startup.run and runonce registry
      entries.
  9. The executable uses native Windows utilities such as
        WMIC and/or VSSAdmin to delete backups and shadow copies.

  10.    
  11. Files are encrypted and messages are presented to the user
        requesting payment.

 

Rather than waiting for the payload to be downloaded or started
  around stage four or five of the aforementioned attack cycle, Exploit
  Guard provides coverage for most steps of the attack cycle – beginning
  in this case at the second step.


 

The most common way to deliver ransomware is via Word documents with
  embedded macros or a Microsoft Office exploit. FireEye Exploit Guard
  detects both of these attacks at the initial stage of the attack cycle.


 
PowerShell Abuse

 

When the victim opens the attached Word document, the malicious
  macro writes a small piece of VBScript into memory and executes it.
  This VBScript executes PowerShell to connect to an attacker-controlled
  server and download the ransomware (profilest.exe), as seen in Figure
    1.


 


  Figure 1. Launch sequence of Cerber – the macro
    is responsible for invoking PowerShell and PowerShell downloads and
    runs the malware


 

It has been increasingly common for threat actors to use malicious
  macros to infect users because the majority of organizations permit
  macros to run from Internet-sourced office documents.


 

In this case we observed the macrocode calling PowerShell to bypass
  execution policies – and run in hidden as well as encrypted mode –
  with the intention that PowerShell would download the ransomware and
  execute it without the knowledge of the victim.


 

Further investigation of the link and executable showed that every
  few seconds the malware hash changed with a more current compilation
  timestamp and different appended data bytes – a technique often used
  to evade hash-based detection.


 

Cerber in Action


 
Initial payload behavior

 

Upon execution, the Cerber malware will check to see where it is
  being launched from. Unless it is being launched from a specific
  location (%APPDATA%\&#60GUID&#62), it creates a copy of itself
  in the victim's %APPDATA% folder under a filename chosen randomly and
  obtained from the %WINDIR%\system32 folder.


 

If the malware is launched from the specific aforementioned folder
  and after eliminating any blacklisted filenames from an internal list,
  then the malware creates a renamed copy of itself to
  “%APPDATA%\&#60GUID&#62” using a pseudo-randomly selected name
  from the “system32” directory. The malware executes the malware from
  the new location and then cleans up after itself.


 
Shadow deletion

 

As with many other ransomware families, Cerber will bypass UAC
  checks, delete any volume shadow copies and disable safe boot options.
  Cerber accomplished this by launching the following processes using
  respective arguments: