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
Stop the security theater!
Search
Pratul Kalia
October 07, 2017
Programming
320
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Stop the security theater!
Pratul Kalia
October 07, 2017
More Decks by Pratul Kalia
See All by Pratul Kalia
The special case of Mobile DevOps
pratul
2
54
Reldex: measuring the effectiveness of your app release process
pratul
0
46
Simplifying Software Estimation
pratul
1
290
Effective and efficient mobile engineering
pratul
0
220
Designing future-proof Android applications
pratul
0
220
Android - an introduction for developers
pratul
3
280
Semantic Content Repositories
pratul
1
190
How To Become A Hacker
pratul
3
320
Other Decks in Programming
See All in Programming
「人を評価する AI」の設計と実装
ryoyanara
0
230
My Marp Sample
sinoue0108
0
110
自動化したのに回らない テスト運用の壁―AI時代の品質責任と生産性
mfunaki
0
440
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
220
書籍「プロフェッショナルAI駆動開発」紹介スライド
juntaromatsumoto
0
440
AIと壁打ちしながら進めるコスト管理
fufuhu
2
1.6k
Press start. Python's next generation.
willingc
PRO
2
110
仕様駆動開発へのトライを機に チームに適合する手法を模索し続けている話
freee
PRO
0
600
React本体のコードリーディング
high_g_engineer
1
150
人間の目はかわらない、だからJPEGは30年もつ
yuzneri
12
19k
リアルな遅延を測る仕様
kota_yata
1
120
Go 1.27からのGODEBUG / Go 1.27 リリースパーティ #go127party
mazrean
0
190
Featured
See All Featured
Crafting Experiences
bethany
1
260
Marketing to machines
jonoalderson
1
5.7k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
250
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
280
Side Projects
sachag
455
43k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.1k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The browser strikes back
jonoalderson
0
1.5k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
210
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Transcript
Stop the security theater! pratul kalia @prxtl uncommon.is
“the practice of investing in countermeasures intended to provide the
feeling of improved security while doing little or nothing to achieve it.”
None
Cost-benefit analysis • Imperative to all security discussions • Security
of personal app vs business-critical app
Password rules are pointless • You’re not using a modern
password-hashing algorithm • Only length matters!
Do it right! • bcrypt • bcrypt • bcrypt whoops...
- zomato
Stop “inventing” your own security practices • Security is very,
very hard to get right • You’re not that smart! • It is easier to do the known right thing... than to know what you’re doing wrong
Don’t try to “save” your API endpoints • Your backend
should not get affected by a rogue client • MITM all the way • Certificate pinning does not solve this! whoops... - “Basic HTTP auth over TLS”
Stop client-side encryption • Don’t place your key under the
doormat • Security by obscurity is weak whoops... - “Double encryption!”
Anything part of your APK can be read • This
includes all API keys • … access tokens • … anything else hard-coded
Auth token in SharedPreferences • No problems! • Other apps
on the system cannot read your app’s data
Data you don’t have, cannot be stolen • Store user
data with utmost caution • You’re a user too! example... - “Who else in my Contacts uses this app?”
What about rooted devices? • All. • bets. • are.
• off.
Remember alternate attack vectors • Bribe a security guard? •
Bribe an employee?
Time for something real.
Insecure data storage • Anything in “private” storage cannot be
read by other apps in the system • … but anything in “external” storage can be read by anyone!
Insecure TLS usage • Always TLS v1.2! ◦ TLS v1.1
is acceptable… but don’t! • Disable SSL v2 and SSL v3, disable RC4 • Use OkHttp!!1!1!
Please break your own systems • Please! • Pay for
it!
fin