Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Secure by design: introduction to threat modeling
Search
Jérémy Courtial
June 20, 2018
Technology
0
51
Secure by design: introduction to threat modeling
An introduction to threat modeling and some ideas on how to integrate it in yours teams.
Jérémy Courtial
June 20, 2018
Tweet
Share
More Decks by Jérémy Courtial
See All by Jérémy Courtial
sudo give the cloud
mrartichaut
0
25
An introduction to AppSec?
mrartichaut
0
43
Taming secrets with Vault
mrartichaut
0
83
Lead Tech: Empowering the team
mrartichaut
0
47
Web Platform Security
mrartichaut
0
47
go doSomeThing()
mrartichaut
0
52
Practical Cryptography : Data Encryption
mrartichaut
0
61
Practical Cryptography : Password Hashing
mrartichaut
1
73
HTTP/2 : One connection to rule them all
mrartichaut
1
60
Other Decks in Technology
See All in Technology
Navigation3でViewModelにデータを渡す方法
mikanichinose
0
120
米国国防総省のDevSecOpsライフサイクルをAWSのセキュリティサービスとOSSで実現
syoshie
0
110
IIWレポートからみるID業界で話題のMCP
fujie
0
580
ユーザーのプロフィールデータを活用した推薦精度向上の取り組み
yudai00
0
430
TODAY 看世界(?) 是我們在看扣啦!
line_developers_tw
PRO
0
280
Agentic DevOps時代の生存戦略
kkamegawa
0
610
VISITS_AIIoTビジネス共創ラボ登壇資料.pdf
iotcomjpadmin
0
120
20250623 Findy Lunch LT Brown
3150
0
630
OAuth/OpenID Connectで実現するMCPのセキュアなアクセス管理
kuralab
5
560
監視のこれまでとこれから/sakura monitoring seminar 2025
fujiwara3
5
530
Nonaka Sensei
kawaguti
PRO
4
770
菸酒生在 LINE Taiwan 的後端雙刀流
line_developers_tw
PRO
0
250
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
52
2.8k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
A designer walks into a library…
pauljervisheath
206
24k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.5k
Code Reviewing Like a Champion
maltzj
524
40k
The Language of Interfaces
destraynor
158
25k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.8k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Building an army of robots
kneath
306
45k
Unsuck your backbone
ammeep
671
58k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
Java REST API Framework Comparison - PWX 2021
mraible
31
8.6k
Transcript
Secure by design Threat modeling Jérémy Courtial - Software Security
Architect
How to ship secure applications?
Vulnerability: a very nasty kind of bug Oxford dictionary
Good news! We know how to handle bugs!
Design Test Implement Deploy
Design Test Implement Deploy Threat modeling
Design Test Implement Deploy Secure coding Trusted libraries Code reviews
Design Test Implement Deploy Fuzzing Pen tests
Design Test Implement Deploy Secure environment Monitoring Incident responses
Threat modeling?
What you all want… $ ./threat_model app.jar Analyzing… Done. You’re
fine! Good job!
Sorry
Threat modeling: A process to identify and prioritize structural threats
in applications
How to? - decompose your app - find threats -
decide what to do
1. What are you building?
List entities, processes, data stores and data flows
Architecture and communication diagrams are good starting points
Otherwise, use a whiteboard!
Client App Web Server Database Offsite Storage
Client App Web Server Business Schema Offsite Storage Metrics Schema
Client App Web Server Database Offsite Storage Request file Read
file metadata Read file Download file
Client client hello TLS versions, cipher suites, … server hello
Selected version/cipher, certificate, … client key exchange encrypted pre-master key Verify certificate, parameters Decrypt using private key Server Encrypt using public key
Now the most important part: add trust boundaries
Trust boundaries make explicit different levels of privilege
Client App Web Server Database Offsite Storage Production datacenter Cloud
provider
Trust boundaries help you focus your efforts where they matter
2. Find threats
Threats tend to appear around trust boundaries.
But how to find them?
R S E D I T Useful mnemonic/framework:
R S E D I T
R S E D I T poofing
R S E D I T poofing ampering
R S E D I T poofing ampering epudiation
R S E D I T poofing epudiation nformation disclosure
ampering
R S E D I T poofing epudiation nformation disclosure
enial of service ampering
R S E D I T poofing epudiation nformation disclosure
enial of service levation of privilege ampering
Publisher Broker Subscriber
Publisher Broker Subscriber What? Tampering Information disclosure How? Man-in-the-middle
Publisher Broker Subscriber What? Spoofing How? Man-in-the-middle Malicious Broker
Publisher Broker Subscriber What? Spoofing How? Unauthorized publisher
Publisher Broker Subscriber What? Spoofing How? Unauthorized subscriber
Publisher Broker Subscriber What? Information disclosure How? Unauthorized subscriber Unsecure
persistence mechanism
Publisher Broker Subscriber What? Tampering How? Unsecure persistence mechanism
3. Decide what to do
None
Nope (except if you’re the NSA)
For each threat: First, evaluate the risk (impact, probability, exploitation,
etc.) Then, choose a strategy
Redesign to eliminate Remove vulnerable features Add features reducing the
risk
Mitigate Apply standard mitigations Design new ones (riskier)
Accept the risk Make the risk explicit You could also
transfer it
Never ignore threats (one word: GDRP)
Publisher Broker Subscriber What Tampering Information disclosure How Man-in-the-middle Strategy
Mitigate: use TLS
Publisher Broker Subscriber What Spoofing How Man-in-the-middle Malicious Broker Strategy
Mitigate: use TLS Mitigate: use authentication
Publisher Broker Subscriber What Tampering How Unsecured persistence mechanism Strategy
Accept risk? Redesign: disable persistence? Mitigate: setup system-level protections? Mitigate: encrypt end-to-end?
You don’t have one threat model Final note
How to integrate threat modeling in your R&D?
Schedule a 4 hours meeting Invite half the devs, half
the ops and some people with long titles Have them produce a 20-pages long threat model
Do what fits your culture
Dedicated meetings/projects Back-to-the-envelope Opportunistic meetings How?
Whiteboard picture Meetings notes Full documentation Delivery?
Don’t care. Just do it.
Architecture reviews Threat modeling @ Oodrive
Feedbacks-oriented meeting before any major changes enter development Eg. new
service, major refactoring
Ensuring best practices Identifying subjects that need closer follow-ups Providing
feedbacks and challenging architectural choices
Not a threat modeling meeting per-se… … more like «
Hey! While we’re all here … » Parasite-security
Security checklists Threat modeling @ Oodrive
Use HSTS Must be HTTPS-only Store secrets inside Vault Have
anti-CSRF mechanism … See Spring-Security ?
Ready-to-use (implicit) threat models Focus on mitigations Validated during security
reviews
Slack’s goSDL Threat modeling elsewhere https://github.com/slackhq/goSDL https://slack.engineering/moving-fast-and-securing- things-540e6c5ae58a
None
None
None
Should you threat model?
Yes! (obviously)
At least once
Know your(s) threat model(s)!
Questions? Thank you To win! Icons created by Tomas Knopp,
Edwin Prayogi M and Dima Lagunov from the thenounproject.com