ccleanup: a vast number of machines at risk ccleaner ... · ccleaner command and control causes...

43
CCleanup: A Vast Number of Machines at Risk CCleaner Command and Control Causes Concern Paul Rascagneres – Security Researcher at Cisco Talos

Upload: others

Post on 30-Sep-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

CCleanup: A Vast Number of Machines at Risk

CCleaner Command and Control Causes Concern

Paul Rascagneres – Security Researcher at Cisco Talos

Page 2: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

About Me

Page 3: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

whoami

• Paul Rascagneres – [email protected] // @r00tbsd• Security Researcher at Cisco Talos• Worked on several Cisco Talos inverstigations:

• Wannacry• Nyetya / MEDoc• BadRabbit• Ccleaner• Group123 / ROKRAT• …

• Malware & APT hunter for more than 7 years…• Co-Organizer of Botconf https://www.botconf.eu/

Page 4: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Agenda• CCleaner backdoor• CCleaner Command and Control• Conclusion

Page 5: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Backdoor Analysis

Page 6: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

What i s CC leaner?

Page 7: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

What i s CC leaner?

Page 8: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Backdoor Detect ion

• Beta testing new engine in AMP

• New exploit detection technology identified an executable triggering our advanced malware protection systems

Page 9: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

• “Yet another patched legit binary” … BUT

• likely an attacker compromised a portion of development or build environment

• Leveraged access to insert malware into the CCleaner build that was released and hostedby the organization

Page 10: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Backdoor Ana lys is – Stage 1

• Backdoored software• CCleaner v5.33• Ccleaner Cloud v1.07.3191

• CCleaner version history

Page 11: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Backdoor Ana lys is – Stage 1

• Backdoor location: runtime modification…

Page 12: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •
Page 13: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Backdoor Ana lys is – Stage 1

Page 14: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Backdoor Ana lys is – Stage 1

Page 15: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Backdoor Ana lys is – Stage 1

Page 16: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Backdoor Ana lys is – Stage 1

• Machines registration: guid, IP address, MAC address…

Installed Programs Process List

Page 17: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Backdoor Ana lys is – Stage 2

• Some selected compromised systems received a stage 2: GeeSetup_x86.dll

• GeeSetup_x86.dll:• Drops TSMSISrv.dll

• x86 : trojanized VirtCDRDrv.dll (VirtCDRDrv Corel tool)• x64 : trojanized EFACli64.dll (SymEFA Symantec Endpoint)• Not signed

• Creates registry keys (encoded PE)

Page 18: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Backdoor Ana lys is – Stage 2

• Trojanized binary: runtime patching• x64 : __security_init_cookie

• Display limitation with IDA Pro• More information:

http://blog.talosintelligence.com/2017/10/disassembler-and-runtime-analysis.html

Page 19: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Backdoor Ana lys is – Stage 2

• Trojanized binary: runtime patching• x64 : __security_init_cookie

• Display limitation with IDA Pro

Page 20: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Backdoor Ana lys is – Stage 2

• Trojanized binary: runtime patching• x64 : __security_init_cookie

• Display limitation with IDA Pro

Page 21: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Backdoor Ana lys is – Stage 2

• The purpose additional malicious code:• Decode a PE stored in registry

HKLM\Software\Microsoft\Windows NT\CurrentVersion\WbemPerf\001HKLM\Software\Microsoft\Windows NT\CurrentVersion\WbemPerf\002HKLM\Software\Microsoft\Windows NT\CurrentVersion\WbemPerf\003HKLM\Software\Microsoft\Windows NT\CurrentVersion\WbemPerf\004

• The purposes of this new PE:• Call a new CC (IP generated from Github & wordpress)• Get a new PE and execute it from memory…

Page 22: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

• Missl backdoor –APT17/Group 72

• Ccleanerstage 1 dll

Page 23: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

What is Group 72Operation SMN

https://blogs.cisco.com/security/talos/threat-spotlight-group-72

APT 17

Axiom

Page 24: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Control Investigation

Page 25: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• PHP panel with MySQL database

Page 26: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• If the requests don’t look good

Page 27: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• Configuration file

Page 28: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• Compromised machine registration

Page 29: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• Shellcodes

Page 30: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• Targets list

Page 31: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• Targets list

Page 32: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• Database investigation: 3 tables• Server – Main table with all the data concerning stage 1 compromised

machines• OK – table with selected machines / Stage 2 payload delivered• GET – Empty table

• Only 4 days of data…• Only 1/5 CC

Page 33: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• Server table:

Page 34: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• Server table:

Page 35: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• OK table:

Page 36: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• OK table:

Page 37: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• Let’s play with statistics…

Page 38: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• Let’s play with statistics…

Win 10

Win 7

Win XP

Page 39: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• Let’s play with statistics…

Page 40: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Command and Contro l Invest igat ion

• Let’s play with statistics…

• Machines from• FR: > 50.000• BE: > 6.000• CH: > 3.000• LU: > 250

Page 41: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

Conclusion

Page 42: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •
Page 43: CCleanup: A Vast Number of Machines at Risk CCleaner ... · CCleaner Command and Control Causes Concern Paul Rascagneres –Security Researcher at Cisco Talos. About Me. whoami •

www.talosintelligence.comblog.talosintel.com

@talossecurity

@r00tbsd