Description

Several weeks ago, the Windows Defender Advanced Threat Protection (Windows Defender ATP) research team noticed security alerts that demonstrated an intriguing attack pattern. These early alerts uncovered a well-planned, finely orchestrated cyberattack that targeted several high-profile technology and financial organizations. An unknown attacker was taking advantage of a silent yet effective attack vector: the compromised update mechanism or software supply chain for a third-party editing tool. The software vendor that develops the editing tool was unaware of the issue. In fact, while their software supply chain served as a channel for attacking other organizations, they themselves were also under attack.

This cyberattack could have been much more problematic if it had gone undetected. Its early discovery allowed incident responders—a collaboration of security experts from the targeted industries and developers working for the third-party software vendor—to work with Microsoft security researchers to promptly identify and neutralize the activities associated with this cyberespionage campaign.

Thanks to the collaborative response, Microsoft was able to notify known affected parties as well as the third-party software vendor, who then worked around the clock to contain the attempted attack and mitigate potential risks.

Investigating alert timelines and process trees

Regardless of how an attack is executed, through sophisticated social engineering or a zero-day exploit, the first stage or the entry vector of a kill chain is often the most challenging aspect to understand about the attack. Windows Defender ATP initially called our attention to alerts flagging suspicious PowerShell scripts, self-deletion of executables, and other suspect activities. A quick check in the Windows Defender ATP console led us to the machine that was under attack. However, the source of the attack remained buried, requiring additional investigative effort to uncover.

By utilizing the timeline and process-tree views in the Windows Defender ATP console, we were able to identify the process responsible for the malicious activities and pinpoint exactly when they occurred. We traced these activities to an updater for the editing tool. We now had to look deeper into how this legitimate process might have been involved.

Third-party updaters as attack vectors

During forensic analysis, an incident responder has to consider every possible explanation about how an attack took place. After ruling out a series of options—a local man-in-the-middle (MITM) attack, malware injection, or malware-bundled installers—forensic examination of the Temp folder on the affected machine pointed us to a legitimate third-party updater running as service. The updater downloaded an unsigned, low-prevalence executable right before malicious activity was observed.

The downloaded executable turned out to be a malicious binary that launched PowerShell scripts bundled with the Meterpreter reverse shell, which granted the remote attacker silent control. The binary is detected by Microsoft as Rivit.

Although it did not utilize a zero-day exploit, this cyberattack effectively compromised an asset. It took advantage of the common trust relationship with software supply chains and the fact that the attacker has already gained control of the remote update channel. This generic technique of targeting self-updating software and their infrastructure has played a part in a series of high-profile attacks, such as unrelated incidents targeting Altair Technologies' EvLog update process, the auto-update mechanism for South Korean software SimDisk, and the update server used by ESTsoft's ALZip compression application.

Another interesting aspect of this attack was that it only affected certain machines and ignored most of the machines that it could have targeted. To an extent, this made the investigation simpler—it resulted in a security incident that was effectively limited in scope. However, it is indicative of the more sinister intent to selectively attack the most valuable targets while keeping a low profile.

Commodity tools in a sophisticated attack

While the attack itself, including the selection of targets, appear to have been carefully planned, the attacker toolset comprised commodity tools and simple malware. These commodity tools are the same tools used in typical penetration testing exercises. The malware binary, named by the cybercriminals ue.exe, was a small piece of code with the sole purpose of launching a Meterpreter shell—a common pen-test tool—from a Base64/Gzip encoded blob downloaded using PowerShell.

****

Figure 2. Encrypted PowerShell command launched by the attacker binary using the updater

The use of commodity tools and common methods allow advanced attackers to evade clear attribution and hide activities amidst typical detection noise. They hinder threat intelligence systems from associating attacks with specific actors, who are often personified by unique techniques, tactics, and procedures (TTPs).

A review of the kill chain activities detected and recorded by Windows Defender ATP—network exploration, credential dumping, and lateral movement—revealed that all these activities were performed using either native system commands or scripted tools executed only in memory through PowerShell. Such in-memory techniques are becoming an increasingly common method by which advanced attackers avoid leaving obvious traces on the disk.

During this attack, we observed the following TTPs:

Non-persistent, self-destructing initial binary

Memory-only payloads assisted by PowerShell and Meterpreter running in rundll32

Recon activities, including machine enumeration, using standard commands, such as NET, IPCONFIG, NETSTAT, NLTEST, and WHOAMI

Migration into long-living processes, such as the Windows Printer Spooler or spoolsv.exe

The indicators for the malicious sample downloaded through the third-party updater are:

Filename: ue.exe

Size: 132.096 bytes

SHA1: 75edd4ee11e7d3dabd191c316da637f939140e2f

MD5: a34c930506b64f98cdf3ec2a474f5b31

We believe that the activity group behind Operation WilySupply is motivated by financial gain. They compromise third-party software packages delivered through updaters and other channels to reach victims who are mostly in the finance and payment industries.

A response network in action

Windows Defender ATP researchers worked closely with the Microsoft Cyber Defense Operations Center and the Microsoft Security Response Center to drive this attack to remediation, coordinating with the affected third-party vendor and the broader security community. After gathering evidence that an unspecified flaw in the software supply chain was being used in the attacks, Microsoft immediately notified the third-party software vendor. Their team neutralized the updater issue, dedicating resources to analyze logs and forensic evidence, collect additional attack indicators, and notify potentially affected parties.

Once we validated the indicators associated with this attack through collaboration with the affected vendor, we immediately shared indicator information with the security industry though our MAPP partnerships. We also shared our findings with trusted security partners, empowering a community of defenders to quickly respond to and track activities associated with this cyberattack.

To protect customers and expose attackers and their techniques, coordinated responses to sophisticated attacks need to happen across the software industry and other affected industries. During this attack, the collaborative response enabled everyone to promptly protect partners and customers.

Reducing the attack surface in software supply chains

To help contain the use of updaters as an attack surface, we have enhanced Windows Defender ATP to detect updater hijacks, including the activities described as part of this attempted cyberattack. To do this, Windows Defender ATP analyzes large sets of data to learn normal updater behavior and alert for deviations. In the example below, Windows Defender ATP has detected an updater designed to download only signed binaries suddenly downloading an unsigned executable.

Place scripts and configuration files in signed containers. Unlike signed binaries, scripts and configuration files are often loaded unverified. Unless kept in signed containers, these files are prone to tampering.

Be aware that clean, signed binaries might still allow malicious commands to be executed through the command-line. Likewise, web content used in the update process might allow execution of scripts when rendered.

If your update process runs with higher privileges, don't let it trust folders that can be modified with lower privileges such as the Temp folder_._ An updater process might inadvertently elevate privileges of arbitrary code that an attacker has placed in scripts, configuration files, or DLL files in these folders.

All product names, logos, and brands are property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.If you are an owner of some content and want it to be removed, please mail to content@vulners.com Vulners, 2018

Protected by

{"cvss": {"score": 0.0, "vector": "NONE"}, "href": "https://blogs.technet.microsoft.com/mmpc/2017/05/04/windows-defender-atp-thwarts-operation-wilysupply-software-supply-chain-cyberattack/", "references": [], "enchantments_done": [], "_object_types": ["robots.models.rss.RssBulletin", "robots.models.base.Bulletin"], "id": "MMPC:E948BE7841CC8D594A264907989ACD46", "history": [], "modified": "2017-05-04T16:29:18", "lastseen": "2017-06-30T15:02:20", "published": "2017-05-04T16:29:18", "description": "Several weeks ago, the [Windows Defender Advanced Threat Protection](<https://www.microsoft.com/en-us/WindowsForBusiness/windows-atp>) (Windows Defender ATP) research team noticed security alerts that demonstrated an intriguing attack pattern. These early alerts uncovered a well-planned, finely orchestrated cyberattack that targeted several high-profile technology and financial organizations. An unknown attacker was taking advantage of a silent yet effective attack vector: the compromised update mechanism or software supply chain for a third-party editing tool. The software vendor that develops the editing tool was unaware of the issue. In fact, while their software supply chain served as a channel for attacking other organizations, they themselves were also under attack.\n\nThis cyberattack could have been much more problematic if it had gone undetected. Its early discovery allowed incident responders\u2014a collaboration of security experts from the targeted industries and developers working for the third-party software vendor\u2014to work with Microsoft security researchers to promptly identify and neutralize the activities associated with this cyberespionage campaign.\n\nThanks to the collaborative response, Microsoft was able to notify known affected parties as well as the third-party software vendor, who then worked around the clock to contain the attempted attack and mitigate potential risks.\n\n## Investigating alert timelines and process trees\n\nRegardless of how an attack is executed, through sophisticated social engineering or a zero-day exploit, the first stage or the entry vector of a kill chain is often the most challenging aspect to understand about the attack. Windows Defender ATP initially called our attention to alerts flagging suspicious PowerShell scripts, self-deletion of executables, and other suspect activities. A quick check in the Windows Defender ATP console led us to the machine that was under attack. However, the source of the attack remained buried, requiring additional investigative effort to uncover.\n\nBy utilizing the timeline and process-tree views in the Windows Defender ATP console, we were able to identify the process responsible for the malicious activities and pinpoint exactly when they occurred. We traced these activities to an updater for the editing tool. We now had to look deeper into how this legitimate process might have been involved.\n\n![Initial alerts triggered by PowerShell activities as detected by Windows Defender ATP](https://msdnshared.blob.core.windows.net/media/2017/04/1-Initial-alerts-triggered-by-PowerShell-activities-as-detected-by-Windows-Defender-ATP.png)\n\n_Figure 1. Initial alerts triggered by PowerShell activities as detected by Windows Defender ATP_\n\n## Third-party updaters as attack vectors\n\nDu![Updates](https://msdnshared.blob.core.windows.net/media/2017/04/updates_2.png)ring forensic analysis, an incident responder has to consider every possible explanation about how an attack took place. After ruling out a series of options\u2014a local man-in-the-middle (MITM) attack, malware injection, or malware-bundled installers\u2014forensic examination of the _Temp_ folder on the affected machine pointed us to a legitimate third-party updater running as service. The updater downloaded an unsigned, low-prevalence executable right before malicious activity was observed.\n\nThe downloaded executable turned out to be a malicious binary that launched PowerShell scripts bundled with the [Meterpreter](<https://github.com/rapid7/metasploit-framework/wiki/Meterpreter>) reverse shell, which granted the remote attacker silent control. The binary is detected by Microsoft as [Rivit](<https://www.microsoft.com/en-us/security/portal/threat/encyclopedia/Entry.aspx?Name=TrojanDownloader:Win32/Rivit.A!dha>).\n\nAlthough it did not utilize a zero-day exploit, this cyberattack effectively compromised an asset. It took advantage of the common trust relationship with software supply chains and the fact that the attacker has already gained control of the remote update channel. This generic technique of targeting self-updating software and their infrastructure has played a part in a series of high-profile attacks, such as unrelated incidents targeting [Altair Technologies' EvLog update process](<http://www.eventid.net/evlog/evlogsecnote.asp>), the auto-update mechanism for [South Korean software SimDisk](<http://blog.trendmicro.com/trendlabs-security-intelligence/compromised-auto-update-mechanism-affects-south-korean-users/>), and the update server used by [ESTsoft's ALZip compression application](<http://www.theregister.co.uk/2011/08/12/estsoft_korean_megahack/>).\n\nAnother interesting aspect of this attack was that it only affected certain machines and ignored most of the machines that it could have targeted. To an extent, this made the investigation simpler\u2014it resulted in a security incident that was effectively limited in scope. However, it is indicative of the more sinister intent to selectively attack the most valuable targets while keeping a low profile.\n\n## Commodity tools in a sophisticated attack\n\nWhile the attack itself, including the selection of targets, appear to have been carefully planned, the attacker toolset comprised commodity tools and simple malware. These commodity tools are the same tools used in typical penetration testing exercises. The malware binary, named by the cybercriminals _ue.exe_, was a small piece of code with the sole purpose of launching a Meterpreter shell\u2014a common pen-test tool\u2014from a Base64/Gzip encoded blob downloaded using PowerShell.\n\n![Encrypted PowerShell command launched by the attacker binary using the updater](https://msdnshared.blob.core.windows.net/media/2017/04/2b-Encrypted-PowerShell-command-launched-by-the-attacker-binary-using-the-updater.png)****\n\n_Figure 2. Encrypted PowerShell command launched by the attacker binary using the updater_\n\nThe use of commodity tools and common methods allow advanced attackers to evade clear attribution and hide activities amidst typical detection noise. They hinder threat intelligence systems from associating attacks with specific actors, who are often personified by unique techniques, tactics, and procedures (TTPs).\n\nA review of the kill chain activities detected and recorded by Windows Defender ATP\u2014network exploration, credential dumping, and lateral movement\u2014revealed that all these activities were performed using either native system commands or scripted tools executed only in memory through PowerShell. Such [in-memory techniques](<https://blogs.technet.microsoft.com/mmpc/2017/03/08/uncovering-cross-process-injection-with-windows-defender-atp/>) are becoming an increasingly common method by which advanced attackers avoid leaving obvious traces on the disk.\n\nDuring this attack, we observed the following TTPs:\n\n * Non-persistent, self-destructing initial binary\n * Memory-only payloads assisted by PowerShell and Meterpreter running in _rundll32_\n * Recon activities, including machine enumeration, using standard commands, such as NET, IPCONFIG, NETSTAT, NLTEST, and WHOAMI\n * Migration into long-living processes, such as the Windows Printer Spooler or _spoolsv_._exe_\n * Use of common tools like Mimikatz and Kerberoast to dump hashes\n * Lateral movement using Windows Management Instrumentation (WMI), specifically the _WMIC /node_ command\n * Persistence through scheduled tasks created using SCHTASKS and AT commands\n\n![Meterpreter payload used to open a reverse shell that gave control to the attacker](https://msdnshared.blob.core.windows.net/media/2017/04/3b-Meterpreter-payload-used-to-open-a-reverse-shell-that-gave-control-to-the-attacker.png)\n\n_Figure 3. Meterpreter payload used to open a reverse shell that gave control to the attacker_\n\n## Operation WilySupply attack indicators\n\nThe following network addresses were actively used by the attacker to perform initial network scanning and command-and-control (C&amp;C) communication:\n\n * hXXp://5.39.218.205/logo.png (used for initial infection and C&amp;C communication)\n * hXXp://176.53.118.131/logo.png (used for lateral movement and C&amp;C communication)\n\nThe same IP addresses were used with different URLs to download Meterpreter-based payloads. The _logo.png_ files in the initial URLs contained the PowerShell scripts in base64-gzip encoding.\n\n![PowerShell script in base64-gzip encoding contained in the PNG files](https://msdnshared.blob.core.windows.net/media/2017/04/4c-PowerShell-script-in-base64-gzip-encoding-contained-in-the-PNG-files.png)\n\n_Figure 4. PowerShell script in base64-gzip encoding contained in the PNG files_\n\nThe indicators for the malicious sample downloaded through the third-party updater are:\n\n * Filename: ue.exe\n * Size: 132.096 bytes\n * SHA1: 75edd4ee11e7d3dabd191c316da637f939140e2f\n * MD5: a34c930506b64f98cdf3ec2a474f5b31\n\nWe believe that the activity group behind Operation WilySupply is motivated by financial gain. They compromise third-party software packages delivered through updaters and other channels to reach victims who are mostly in the finance and payment industries.\n\n## A response network in action\n\nWindows Defender ATP researchers worked closely with the Microsoft Cyber Defense Operations Center and the Microsoft Security Response Center to drive this attack to remediation, coordinating with the affected third-party vendor and the broader security community. After gathering evidence that an unspecified flaw in the software supply chain was being used in the attacks, Microsoft immediately notified the third-party software vendor. Their team neutralized the updater issue, dedicating resources to analyze logs and forensic evidence, collect additional attack indicators, and notify potentially affected parties.\n\nOnce we validated the indicators associated with this attack through collaboration with the affected vendor, we immediately shared indicator information with the security industry though our [MAPP](<https://technet.microsoft.com/en-us/security/dn467918.aspx>) partnerships. We also shared our findings with trusted security partners, empowering a community of defenders to quickly respond to and track activities associated with this cyberattack.\n\nTo protect customers and expose attackers and their techniques, coordinated responses to sophisticated attacks need to happen across the software industry and other affected industries. During this attack, the collaborative response enabled everyone to promptly protect partners and customers.\n\n## Reducing the attack surface in software supply chains\n\nTo help contain the use of updaters as an attack surface, we have enhanced Windows Defender ATP to detect updater hijacks, including the activities described as part of this attempted cyberattack. To do this, Windows Defender ATP analyzes large sets of data to learn normal updater behavior and alert for deviations. In the example below, Windows Defender ATP has detected an updater designed to download only signed binaries suddenly downloading an unsigned executable.\n\n![Windows Defender ATP detecting anomalous updater behavior](https://msdnshared.blob.core.windows.net/media/2017/04/5b-Windows-Defender-ATP-detecting-anomalous-updater-behavior.png)\n\n_Figure 5. Windows Defender ATP detecting anomalous updater behavior_\n\nWindows Defender ATP is built into the core of Windows 10 Enterprise and can be [evaluated free of charge](<http://aka.ms/wdatp>).\n\nMicrosoft encourages software vendors providing automatic updaters to review their code using [SDL](<https://www.microsoft.com/en-us/sdl/>) best practices and apply these security and hardening measures:\n\n * Use strong encryption to protect update channels and to avoid being a target of attacks that use common pen-test tools like [Evil Grade](<https://github.com/infobyte/evilgrade>). Consider certificate pinning in the update protocol.\n * Before running binaries downloaded from the update channel, always validate their digital signatures against your own certificates. Don't allow blind execution.\n * Place scripts and configuration files in signed containers. Unlike signed binaries, scripts and configuration files are often loaded unverified. Unless kept in signed containers, these files are prone to tampering.\n * Be aware that clean, signed binaries might still allow malicious commands to be executed through the command-line. Likewise, web content used in the update process might allow execution of scripts when rendered.\n * If your update process runs with higher privileges, don't let it trust folders that can be modified with lower privileges such as the _Temp_ folder_._ An updater process might inadvertently elevate privileges of arbitrary code that an attacker has placed in scripts, configuration files, or DLL files in these folders.\n * Protect your update infrastructure from intrusion by applying regular security updates and getting critical mechanisms in place, such as a firewall, antimalware, 2FA authentication, and periodic log reviews.\n\n \n\n**Elia Florio** \n_Windows Defender ATP Research Team_", "title": "Windows Defender ATP thwarts Operation WilySupply software supply chain cyberattack", "cvelist": [], "_object_type": "robots.models.rss.RssBulletin", "viewCount": 0, "enchantments": {"score": {"value": 7.5, "vector": "NONE"}, "vulnersScore": 7.5}, "reporter": "msft-mmpc", "bulletinFamily": "blog", "objectVersion": "1.4", "type": "mmpc"}