Swimming in the Sea of ELF - AV Tokyo 2015 Workshop #MalwareMustDie

unixfreaxjp
unixfreaxjp DFIR Threat and Malware Analyst
Swimming in the
Sea of ELF
AVTOKYO 2015
WORKSHOP
© MalwareMustDie & AV Tokyo
written by: @unixfreaxjp
presenters:
@ucq / IDA reversing
@unixfreaxjp / slides & all in UNIX shell reversing
November 14th, Shibuya, Tokyo, Japan
Thank’s for directions from:
@tessy_jp, @moton, @sen_u @avtokyo
/ELF malware workshop
• WHY ELF?
/ELF malware by vuln top rank
(システム脆弱性のELF感染順)
• shellshock < still number #1
• weak service credential (ssh/ftp/telnet)
サービスの弱いログイン認証
• webapps remote injection vie vuln
service exploitation
コードインジェクション・ファイルアップロード
(CMS/php, ElasticSearch,cPanel, Struts)
• Malvertisement (droids)
• others
/ELF malware by source
• Cyber crime botnet / サイバー犯罪系
(cDorked, mayhem, moose, etc)
• China ddoser (xor.DDOS, IptabLeX, etc)
• Youth hackers (skids) < irc ddos/pwn
• Spy tools (Finsisher, HackTeam etc)
• others
/ELF malware by device
• servers / vps
• network device (routers, switch, network &
unmanaged security appliances)
• IoT (web camera, etc)
• Home/SOHO linux embedded devices
• droid phones
• desktop
Aimed target:
・DEFAULT CREDENTIALS
・OBSOLETE SECURITY
/ELF malware by platform
• x86 32bit
• x86 64bit
• ARM (and armel) 32bit
• MIPS (and mipsel) 32bit
• ARM (and armel) 64bit
• PPC 32bit
• SH 32bit
• Sparc
/ELF malware by function
• backdoor
• rootkit / pwn tool
• botnet (irc/shell or webshell)
FOR:
• ddoser
• infector to next linux nodes
• infector to clients
• bitcoin miner
• ransom
/workshop theme
• ELF malware analysis | ELFマルウェア調査
• Windows & UNIX shell | Windows上で調査 vs UNIX
shell上の調査
• All is about Tools|ツール紹介
• Point: Audience interaction | 質問・説明・見せる事
• Agenda base | アジェンダ通りで実行
• Offline DEMO | オフライン経由のデモ
/agenda
• 色んなELFマルウェアの作り方、普通のELFと違い、
隠せる方法とよく使われているのトリック、を説明す
る。
• ELFマルウェアバイナリーの調査やり方とツール紹
介 ・ツールの説明 ・UNIX shellの上でELFのstatic
vs dynamic調査連携方法 ・そしてリバースエンジ
ナリング vs debugging方法 ・ELFファイルとメモ
リーforensics (Linux xBSD).
/agenda
• リアルケースELFマルウェア調査、仕組み
TIPS/ヒント/トリック(デモ+説明)
・東ヨロッパ系ELFマルウェアPnScan,
darkleech, mayhem,cDorkなど
・中国タイプELFマルウェア種類+それぞ
れの種類の弱点
・skiddies系ELFマルウェア種類(なんでも
IRC ddos)
/agenda
• ELF signatureアドバイサ
リー ・ClamAV ・Yara ・IOC
• サンプルケース説明/デモ
(いくつかのリアル・ケースリバーシング) 
• 発見仕方・調査流れの説明・調査目的/レ
ポート・ヒント・TIPS・など
• Q & A
/BEFOREHAND...
• ELF malware does.. / ELFマルウェア目的
• ELF basics / ELFとは…w
• Linux execution basics / ELF実行仕組み
• Interception basics
• what needed to be noted in analyzing
ELF in / いくつか注意点
• using Windows tools
• using shell tools
• using online environments
/ELF malware does:
• module interceptor (kernel / apps)
• static
• symbol stripping
• EP point hijack
• encryption
• exploitation
• rootkit
• botnet
/ELF structure
/ELF exec w/link & libraries
/ELF execution (mostly)
/bad ELF: module_intercept.ko
/good guys: kernel interception
/tools
• readelf
• objdump
• gdb
• radare2 / IDA
• ptrace/ktrace/strace 何でもtrace
• emulators (disclosed in the workshop)
• kick em back toolset by: pots, traps,
baits, lure..
/workshop
•START
宜しくお願いします
/shell screenshots
static reverse vs dynamic reverse
/shell screenshots
Debug the ELF malware
/shell screenshots
dissecting mayhem infections
/shell screenshots
cracking a CNC
/shell screenshots
dissecting malware config
/workshop momento
1 of 26

Recommended

hello waf, hello phoenix by
hello waf, hello phoenixhello waf, hello phoenix
hello waf, hello phoenixTsunenori Oohara
2.5K views27 slides
Fn project爆誕 by
Fn project爆誕Fn project爆誕
Fn project爆誕Hiroshi Hayakawa
1.1K views15 slides
SELinuxによる攻撃防止の例 by
SELinuxによる攻撃防止の例SELinuxによる攻撃防止の例
SELinuxによる攻撃防止の例Hiroki Ishikawa
1.9K views9 slides
TOMOYO Linuxへの道 by
TOMOYO Linuxへの道TOMOYO Linuxへの道
TOMOYO Linuxへの道Toshiharu Harada, Ph.D
1.6K views52 slides
DelphiでWin/Macクロスコンパイル by
DelphiでWin/MacクロスコンパイルDelphiでWin/Macクロスコンパイル
DelphiでWin/MacクロスコンパイルTomonori Ohba
6.8K views47 slides
【特別編】【第七回 ゼロから始める Solaris 11.X】03 セキュリティ関連アップデート ~改ざんからシステムを守る!~ by
【特別編】【第七回 ゼロから始める Solaris 11.X】03 セキュリティ関連アップデート ~改ざんからシステムを守る!~【特別編】【第七回 ゼロから始める Solaris 11.X】03 セキュリティ関連アップデート ~改ざんからシステムを守る!~
【特別編】【第七回 ゼロから始める Solaris 11.X】03 セキュリティ関連アップデート ~改ざんからシステムを守る!~SolarisJP
8.6K views31 slides

More Related Content

Recently uploaded

GP11.pdf by
GP11.pdfGP11.pdf
GP11.pdfMasato FUKUHARA
170 views23 slides
基礎強化数学 第4回 by
基礎強化数学 第4回基礎強化数学 第4回
基礎強化数学 第4回studyplace0
11 views8 slides
基礎強化数学 第18回 by
基礎強化数学 第18回基礎強化数学 第18回
基礎強化数学 第18回studyplace0
12 views10 slides
基礎強化数学 第2回 by
基礎強化数学 第2回基礎強化数学 第2回
基礎強化数学 第2回studyplace0
9 views10 slides
基礎強化数学 第6回 by
基礎強化数学 第6回基礎強化数学 第6回
基礎強化数学 第6回studyplace0
13 views7 slides
基礎強化数学 第19回 by
基礎強化数学 第19回基礎強化数学 第19回
基礎強化数学 第19回studyplace0
13 views7 slides

Recently uploaded(20)

基礎強化数学 第4回 by studyplace0
基礎強化数学 第4回基礎強化数学 第4回
基礎強化数学 第4回
studyplace011 views
基礎強化数学 第18回 by studyplace0
基礎強化数学 第18回基礎強化数学 第18回
基礎強化数学 第18回
studyplace012 views
基礎強化数学 第2回 by studyplace0
基礎強化数学 第2回基礎強化数学 第2回
基礎強化数学 第2回
studyplace09 views
基礎強化数学 第6回 by studyplace0
基礎強化数学 第6回基礎強化数学 第6回
基礎強化数学 第6回
studyplace013 views
基礎強化数学 第19回 by studyplace0
基礎強化数学 第19回基礎強化数学 第19回
基礎強化数学 第19回
studyplace013 views
基礎強化数学 第20回 by studyplace0
基礎強化数学 第20回基礎強化数学 第20回
基礎強化数学 第20回
studyplace013 views
基礎強化数学 2次関数のグラフ by studyplace0
基礎強化数学 2次関数のグラフ基礎強化数学 2次関数のグラフ
基礎強化数学 2次関数のグラフ
studyplace014 views
古文基礎テキスト by studyplace0
古文基礎テキスト古文基礎テキスト
古文基礎テキスト
studyplace018 views
現代文の解法100 by studyplace0
現代文の解法100現代文の解法100
現代文の解法100
studyplace019 views
基礎強化数学 第10回 by studyplace0
基礎強化数学 第10回基礎強化数学 第10回
基礎強化数学 第10回
studyplace013 views
基礎強化数学 第17回 by studyplace0
基礎強化数学 第17回基礎強化数学 第17回
基礎強化数学 第17回
studyplace012 views
課題文型小論文 by studyplace0
課題文型小論文課題文型小論文
課題文型小論文
studyplace015 views
慶應義塾文学部2014 by studyplace0
慶應義塾文学部2014慶應義塾文学部2014
慶應義塾文学部2014
studyplace012 views
基礎強化数学 第7回 by studyplace0
基礎強化数学 第7回基礎強化数学 第7回
基礎強化数学 第7回
studyplace09 views
基礎強化数学 第1回 計算の基礎① by studyplace0
基礎強化数学 第1回 計算の基礎①基礎強化数学 第1回 計算の基礎①
基礎強化数学 第1回 計算の基礎①
studyplace014 views

Featured

ChatGPT and the Future of Work - Clark Boyd by
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
28K views69 slides
Getting into the tech field. what next by
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
6.6K views22 slides
Google's Just Not That Into You: Understanding Core Updates & Search Intent by
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
6.9K views99 slides
How to have difficult conversations by
How to have difficult conversations How to have difficult conversations
How to have difficult conversations Rajiv Jayarajah, MAppComm, ACC
5.6K views19 slides
Introduction to Data Science by
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data ScienceChristy Abraham Joy
82.6K views51 slides
Time Management & Productivity - Best Practices by
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
169.8K views42 slides

Featured(20)

ChatGPT and the Future of Work - Clark Boyd by Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd28K views
Getting into the tech field. what next by Tessa Mero
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero6.6K views
Google's Just Not That Into You: Understanding Core Updates & Search Intent by Lily Ray
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray6.9K views
Time Management & Productivity - Best Practices by Vit Horky
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky169.8K views
The six step guide to practical project management by MindGenius
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius36.7K views
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright... by RachelPearson36
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson3612.7K views
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... by Applitools
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools55.5K views
12 Ways to Increase Your Influence at Work by GetSmarter
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter401.7K views
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G... by DevGAMM Conference
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference3.6K views
Barbie - Brand Strategy Presentation by Erica Santiago
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago25.1K views
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well by Saba Software
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software25.3K views
Introduction to C Programming Language by Simplilearn
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn8.5K views
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr... by Palo Alto Software
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
Palo Alto Software88.4K views
9 Tips for a Work-free Vacation by Weekdone.com
9 Tips for a Work-free Vacation9 Tips for a Work-free Vacation
9 Tips for a Work-free Vacation
Weekdone.com7.2K views
How to Map Your Future by SlideShop.com
How to Map Your FutureHow to Map Your Future
How to Map Your Future
SlideShop.com275.1K views

Swimming in the Sea of ELF - AV Tokyo 2015 Workshop #MalwareMustDie