Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
The ~~Ten~~ Three Most Critical Security Risks ...
Search
Koji Nakayama
April 26, 2018
Technology
1.6k
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
The ~~Ten~~ Three Most Critical Security Risks in Serverless Architectures
Ruby開発様の姫島オフィスにて発表した資料です
Koji Nakayama
April 26, 2018
Transcript
19 slides
The Ten Three Most Critical Security Risks in Serverless Architectures
2018/04/26 Ӿઊ ଛလ@䆠䎦 1
ᛔ૩奧Օ • Ӿઊ ଛလ • μ϶φϮϊϐϖ ϯϝαϸίϤϷςЄϠ φ᮱ • AWSϊϷϲЄτϴЀίЄκϓμϕ
• ςЄϝЄςαϖεЀυϘί • GitHub: knakayama 2
ψϐτϴЀٖͺ͚ͼ • αφ϶εϸ΄PureSecᐒ1 ͢ڊͭ͵White Paper΄ٖΨ䝏壧ͭͼͪ奧Օ • ͩ΄White Paper΅ςЄϝЄϹφίϤϷξЄτϴЀͽ䶲ΨͺͧΡΏͣψ κϲϷϓΰΨ10㮆奧Օͭ͵Θ΄ •
ᇙ岉ޱႮ͡͵3ͺΨ奧Օ • ΞΠ托ͭͥ΅ܻ݇ᆙ2 2 https://www.puresec.io/resource-download 1 https://www.puresec.io/ 3
ίυδЀύ 1. ςЄϝЄϹφίϤϷξЄτϴЀᇙํ΄ψκϲϷϓΰ 2. Function Event-Data Injection 3. Broken Authentication
4. Functions Execution Flow Manipulation 4
ίυδЀύ 1. ςЄϝЄϹφίϤϷξЄτϴЀᇙํ΄ψκϲϷϓΰ 2. Function Event-Data Injection 3. Broken Authentication
4. Functions Execution Flow Manipulation 5
ςЄϝЄϹφίϤϷξЄ τϴЀ;ψκϲϷϓΰ • ϳЄσ͢ᓕቘͯΡ᮱ړ͚͢ݍᶎ̵ͽͣΡ ͩ;Θ͚ • ͺΔΠ̵䕪ጱψκϲϷϓΰ΄ᘍ͞ො͢ͳ ΄ΔΔၞአͭͻΟ͚ • εЄυδЀϕαЀφϕЄϸ僻ቘ
• ψκϲϷϓΰ΄ϓφϕͿ͜ΚΡҘ • ͫΟΔͶΔͶ咲Ӿ΄ದ悬ړᰀ΄ͽ̵ϔ ϢήμϕφόЀύЄϖጱ枣䯤౮Θͫͳ ͜ 6
ΕΩͿ͜ψκϲίͯΡ͡ ಋറΠᇫ䙪Γ͚ 7
͵ͶဳͯΏͣᅩ΅ ͩ΄White Paper͡Ο憎͞Ρ͡Θ 8
ίυδЀύ 1. ςЄϝЄϹφίϤϷξЄτϴЀᇙํ΄ψκϲϷϓΰ 2. Function Event-Data Injection ! 3. Broken
Authentication 4. Functions Execution Flow Manipulation 9
Function Event-Data Injection • ςЄϝЄϹφίϤϷξЄτϴЀ΅αϦЀϕϖϷϣЀ㳌ቘ͢ᤈΥΡ • ֺ: S3 -> Lambda
-> DynamoDB • ͩ΄檭̵ڹྦྷ΄αϦЀϕ͡ΟჁͫ͵ఘ䁭Ψ͚Σ͚ΣےૡͭͼOutputͯ Ρ̵;͚͜΄͢ΞֵͥΥΡϞόЄЀ • ͵Ͷ̵ͭͩ΄ϔЄόΨͳ΄ΔΔֵͼͭΔ͜;ψκϲϷϓΰ΄㺔氂 ΠΡ • ᥝͯΡ̵فێ㮔Ψͭ͡ΠϝϷϔЄτϴЀͭΔͭΝ͜;͚͜扖 10
S3 Event Notification΄ֺ { "Records": [ { ... "s3": {
"s3SchemaVersion": "1.0", "configurationId": "testConfigRule", "bucket": { "name": "example-bucket", "ownerIdentity": { "principalId": "EXAMPLE" }, "arn": "arn:aws:s3:::example-bucket" }, "object": { "key": "example-object", "size": 1024, "eTag": "0123456789abcdef0123456789abcdef", "sequencer": "0A1B2C3D4E5F678901" } } } ] } 11
ύϮύϮֺ • ηϣυδμϕ΄Ӿͩ͢ΩͶ͵Ο {"username":"foobar"+require('child_process').exec('uname -a')} 12
ίυδЀύ 1. ςЄϝЄϹφίϤϷξЄτϴЀᇙํ΄ψκϲϷϓΰ 2. Function Event-Data Injection 3. Broken Authentication
! 4. Functions Execution Flow Manipulation 13
Broken Authentication • API Gateway + CognitoͽϳЄσ扯戣䌙فͭͼͼΘ՜΄᮱ړͽᑩ ᑮ͚ͼ͵Οޱ͚ͽͯΞ • S3ϝξϐϕΨ僻洏ϞϣϷϐμͭͼ͚ͽͯ͡Ҙ
• ϔϤϺαϮЀϕϞϐξЄυل樄ͭͷΙͼ͚ͽͯ͡Ҙ • ͷΙΩ;IAM戔ਧͭΞ͜ 14
ύϮύϮֺ 15
ίυδЀύ 1. ςЄϝЄϹφίϤϷξЄτϴЀᇙํ΄ψκϲϷϓΰ 2. Function Event-Data Injection 3. Broken Authentication
4. Functions Execution Flow Manipulation 16
Functions Execution Flow Manipulation • ίϤϷξЄτϴЀ΄ϺυϐμΨͼ䘂ͫͯΡ;͚͜Θ΄ • ςЄϝЄϹφίϤϷξЄτϴЀ΄䁰ݳ̵愢හ΄AWSϷϊЄφ͢ 奲ΕݳΥͫͼ㵕ͥ;͚͜ᇙӤ̵1ͺͽΘᑩ͘͢Ρ;䘂ͫͭ Κ͚ͯ᮱ړ΅͵ͭ͘͡Πͳ͜
• ͩͷΘݶͮΞ͜IAM΄戔ਧͭͼ䘂ͫͽ͚ͣΞͭ͜Δ ͭΝ͜;͚͜͠扖 17
Manipulation΄ֺ 18
Δ;Η • White Paper䨗͚ͼ͘Ρͩ;΅奾䯤୮͵Πڹ΄ͩ;ͭ͡䨗͚ͼ ͚ • ͵Ͷ̵ͭ୮͵Πڹ΄ͩ;Ψ୮͵ΠڹͯΡ΄΅क़;櫞͚ͭ • ͘͞ͼݷڹΨͺͧΡͩ;ͽͳ΄㺔氂Ψ扯挷̵ͭ挷ͭΚͯͥͯ Ρ΄΅᯿ᥝ
• 䌏ᒽΘͷΙΩ;䨗͚ͼ͘Ρ΄ͽӞଶ抎ΩͽΕͼ΅ 19
More Decks by Koji Nakayama
See All by Koji Nakayama
Software Testing in AWS IoT with The Power of Python
knakayama
0
1.8k
サーバーレス x IoT 〜我々はどういった課題に直面してそれをどのように解決したのか〜
knakayama
0
1.5k
Bloxが切り開くECSの世界
knakayama
1
1.4k
AWS Serverless Application Modelのデプロイ戦略
knakayama
4
2.6k
github-classmethod-study-20170426
knakayama
1
4k
サーバレスアーキテクチャはじめの一歩
knakayama
1
1.6k
Other Decks in Technology
See All in Technology
新規事業開発でのAWS活用成功談&失敗談! 〜新規事業開発を専門に行うRelicならではのAWS活用〜
amixedcolor
1
170
社内アプリ基盤「Quartz」による、 非エンジニアとAIに本番デプロイを 任せても壊れないプラットフォームの設計
staka121
PRO
1
420
LLMごとの文章力を測ってみた話
yoshimura_datam
0
130
Welcome JXL!
dynamis
0
1.3k
Well, that’s weird…
csswizardry
3
270
フルTypeScript × AI駆動開発で開発量が数倍に (JSConf JP 2026 スポンサーLT:NCDC株式会社)
keitaibaraki
0
760
Terraform 0 to 100:100個以上のリポジトリを常に最新にし続けるための自動化
sue445
3
1.5k
Is the Website Dying?
miriamschwab
0
280
AWS re:Invent 2026 FSI Pre-Event Networking Night
junjikoide
0
380
New Relicのアラート対応をClaude Codeで自動修正するワークフローを作った話
manabuseki
3
760
ワークフローからハーネスへ — Web フレームワークの作者たちが AI エージェントに向かう理由
azukiazusa1
4
3.9k
AI時代に問い直す「プロダクションミーティング」の価値 〜チームでサービスの信頼性を高める取り組み〜
mackerelio
0
230
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.3k
Facilitating Awesome Meetings
lara
57
7.2k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
760
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Believing is Seeing
oripsolob
1
290
Visualization
eitanlees
153
17k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
340
Product Roadmaps are Hard
iamctodd
55
13k
30 Presentation Tips
portentint
PRO
1
480
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
650
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k