20
大大 大大 Anti Virus JohnThunder

UCCU Anti Virus overview

Embed Size (px)

Citation preview

Page 1: UCCU Anti Virus overview

大家一起看 Anti VirusJohnThunder

Page 2: UCCU Anti Virus overview

自我介紹• 姜尚德 aka John Thunder

• UCCU 戰隊

• 聯絡資訊:[email protected]

Page 3: UCCU Anti Virus overview

一場戰爭病毒與反病毒

Page 4: UCCU Anti Virus overview
Page 5: UCCU Anti Virus overview

防守策略• Signature Based Detection• Static Program Analyze

• Dynamic Program Analyze• Sandbox• Heuristic Analysis• Entropy

Page 6: UCCU Anti Virus overview

攻守一體• Obfuscation

• Packers

• Crypters

Page 7: UCCU Anti Virus overview

Windows Load PE File Address Space Layout Randomization Crypters With PE Injection

“NtUnmapViewOfSection” and “ZwUnmapViewOfSection”

PE Injection

Page 8: UCCU Anti Virus overview

見招拆招

Page 9: UCCU Anti Virus overview

meterpreter reverse tcp shellcode(Before)

Page 10: UCCU Anti Virus overview

meterpreter reverse tcp shellcode(After)

Page 11: UCCU Anti Virus overview

– Decryption loop detected – Reads active computer name – Reads the cryptographic machine GUID – Contacts random domain names – Reads the windows installation date – Drops executable files – Found potential IP address in binary memory – Modifies proxy settings

Heuristic Engines – Installs hooks/patches the running process – Injects into explorer – Injects into remote process – Queries process information – Sets the process error mode to suppress error box – Unusual entrophy – Possibly checks for the presence of antivirus engine – Monitors specific registry key for changes – Contains ability to elevate privileges – Modifies software policy settings

Page 12: UCCU Anti Virus overview

解密過程 Avoid Decryption loop

detected

Decrypt Shellcode

Page 13: UCCU Anti Virus overview

Is Debugger ? Load Fake Library Get Tick Count Number Of Cores Huge Memory Allocations Trap Flag Manipulation Mutex Triggered WinExec

Dynamic Analysis Detection/Anti Detection

Page 14: UCCU Anti Virus overview

Is Debugger ?

Page 15: UCCU Anti Virus overview

Is Debugger ?

Page 16: UCCU Anti Virus overview

Load Fake Library/Get Tick Count

Page 17: UCCU Anti Virus overview

Trap Flag

Page 18: UCCU Anti Virus overview

Mutex Triggered WinExec

Page 19: UCCU Anti Virus overview

DEP機制 使用Windows API 讓 shellcode 包含讀、寫、執行的

address memeory

正確的執行 shellcodes

Page 20: UCCU Anti Virus overview

結論 許多保護機制同時也是可以拿來利用的 (visual studio) Trick 要結合成 Combo 技才能發揮作用