Submit Search
[CSS×2.0 2014] Polyglotシェルコードの最高記録に挑戦しよう☆
0 likes
288 views
Asuka Nakajima
キャンドルスターセッション(CSS×2.0) の発表資料 https://www.iwsec.org/css/2014/css2.htm
Engineering
Read more
1 of 11
Download now
Download to read offline
1
2
3
4
5
6
7
8
9
10
11
More Related Content
PDF
Reverse Engineering Dojo: Enhancing Assembly Reading Skills
Asuka Nakajima
PDF
[Dagstuhl Seminar 17281] Similarity Calculation Method for Binary Executables
Asuka Nakajima
PDF
技術紹介: S2E: Selective Symbolic Execution Engine
Asuka Nakajima
PDF
[JPCERT/CC POC Meeting] 研究紹介 + DLLハイジャックの脆弱性
Asuka Nakajima
PDF
第二回CTF勉強会資料
Asuka Nakajima
PDF
[セキュリティ・キャンプフォーラム 2014] 卒業生プレゼンテーション 『私とセキュリティと過去と未来』
Asuka Nakajima
PDF
[ROOTCON13] Pilot Study on Semi-Automated Patch Diffing by Applying Machine-L...
Asuka Nakajima
PDF
[AsiaCCS2019] A Pilot Study on Consumer IoT Device Vulnerability Disclosure a...
Asuka Nakajima
Reverse Engineering Dojo: Enhancing Assembly Reading Skills
Asuka Nakajima
[Dagstuhl Seminar 17281] Similarity Calculation Method for Binary Executables
Asuka Nakajima
技術紹介: S2E: Selective Symbolic Execution Engine
Asuka Nakajima
[JPCERT/CC POC Meeting] 研究紹介 + DLLハイジャックの脆弱性
Asuka Nakajima
第二回CTF勉強会資料
Asuka Nakajima
[セキュリティ・キャンプフォーラム 2014] 卒業生プレゼンテーション 『私とセキュリティと過去と未来』
Asuka Nakajima
[ROOTCON13] Pilot Study on Semi-Automated Patch Diffing by Applying Machine-L...
Asuka Nakajima
[AsiaCCS2019] A Pilot Study on Consumer IoT Device Vulnerability Disclosure a...
Asuka Nakajima
Featured
(20)
PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
PDF
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
PDF
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
PDF
2024 State of Marketing Report – by Hubspot
Marius Sescu
PDF
Everything You Need To Know About ChatGPT
Expeed Software
PDF
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
PDF
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
PDF
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
PDF
Skeleton Culture Code
Skeleton Technologies
PDF
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
PDF
Content Methodology: A Best Practices Report (Webinar)
contently
PPTX
How to Prepare For a Successful Job Search for 2024
Albert Qian
PDF
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
PDF
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
PDF
5 Public speaking tips from TED - Visualized summary
SpeakerHub
PDF
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
PDF
Getting into the tech field. what next
Tessa Mero
PDF
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
PDF
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
2024 Trend Updates: What Really Works In SEO & Content Marketing
Search Engine Journal
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
OECD Directorate for Financial and Enterprise Affairs
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
SocialHRCamp
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Ad
[CSS×2.0 2014] Polyglotシェルコードの最高記録に挑戦しよう☆
1.
CSS×2.0 Polyglotシェルコードの 最高記録に挑戦しよう☆ ☆NTTセキュアプラットフォーム研究所 ☆中島明日香
2.
Polyglotシェルコードとは 複数のアーキテクチャ上で 動作するシェルコードのこと
3.
Polyglotシェルコードの仕組み[1/2] アーキテクチャ1の シェルコード アーキテクチャ2の シェルコード シェルコードの先頭で各アーキテクチャの シェルコードに分岐させる命令を置く 1への分岐命令 2への分岐命令
4.
Polyglotシェルコードの仕組み[2/2] あるアーキテクチャだと意味のない命令だが 別のアーキテクチャで分岐命令となる機械語を探す 1への分岐命令 ■3アーキテクチャの場合 3への分岐命令 2への分岐命令 意味のない命令 意味のない命令 意味のない命令 シェルコード1へ シェルコード2へ
シェルコード3へ
5.
挑戦☆ 過去のPolyglotシェルコードでは 4アーキテクチャが最高? 最低でも5アーキテクチャを目指す☆
6.
試行錯誤・・・ ‣遅延分岐するアーキテクチャは? ‣マイコン系は? ‣NOPに相当する命令は? ‣JMPに相当する命令は? ‣エンディアン違うとどうなるのか? ■振り分け処理生成補助 → radare2 +
objdump ■実行環境 → qemu
7.
結果☆ ¥x42¥x90¥x0f¥xa0¥x00¥xd2¥x90¥90 ¥xeb¥x00¥x00¥xea¥x48¥x31¥xc0¥x48 ¥x85¥xc0¥x75¥x1d x86, x86-64, armeb,armeb,powerpc,
sheb 6アーキテクチャで実現!
8.
シェルコードの詳細(先頭のみ) inc edx nop push fs add
dl, dl nop nop jmp 0xa add dl, ch dec eax xor eax, eax dec eax test eax, eax jne 0x31 rex.X xchg eax,eax push fs add dl,dl nop nop jmp 0xa add dl,ch xor rax,rax test rax,rax jne 0x31 ■x86 ■x86-64 REXプレフィックスの違いを利用して振り分ける
9.
andge r9, pc,
r2, asr 32 addsls sp, r0, r0, lsl 4 b 0x000003bc stmiami r0, {r3, r6, r8, ip, sp}^ wldrhne wr12, [r5, -133]! bc- 20, 4*cr4+lt, 0x00000fa0 lwa r24, 232(0) b 0x0031c054 lwzu r14, 29981(0) addsmi r0, r0, 160, 30 smullseq r9, r2, r0, r0 bl 0x000003b8 ldmdami r1!, {r3, r6, lr, pc} strbhi r7, [r0, 1309] mov.w 0x00000088,r0 ! 0x9042 bra 0x00000024 mov.l 0x00000008,r2 ! 0xd200 mov.w 0x0000012a,r0 ! 0x9090 .word 0x00eb mov #0,r10 sub r4,r1 .word 0x48c0 mov.b r0,@(133,gbr) mov.l r7,@(20,r13) ■ARM(リトルエンディアン) ■ARM(ビッグエンディアン) ■PowerPC(ビッグエンディアン) ■SuperH-4(ビッグエンディアン) ※エンディアン違いを上手く利用して振り分ける
10.
フィーリングで各アーキテクチャの アセンブリが読めるようになってくる 単一のシェルコードで全てのPCを 操れて楽しい。実用性は・・。 感想
11.
ご清聴ありがとうございました!
Download