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
1 User, 10 Places, 100 Seconds #appsecapac2014
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
OWASP Japan
March 20, 2014
280
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
1 User, 10 Places, 100 Seconds #appsecapac2014
OWASP Japan
March 20, 2014
More Decks by OWASP Japan
See All by OWASP Japan
OWASP Night 2019.03 Tokyo
owaspjapan
0
400
OWASP SAMMを活用したセキュア開発の推進
owaspjapan
0
1.1k
20190107_AbuseCaseCheatSheet
owaspjapan
0
220
セキュリティ要求定義で使える非機能要求グレードとASVS
owaspjapan
5
1.2k
AWSクラスタに捧ぐウェブを衛っていく方法論と死なない程度の修羅場の価値
owaspjapan
9
3.5k
Shifting Left Like a Boss
owaspjapan
2
340
OWASP Top 10 and Your Web Apps
owaspjapan
2
430
OWASP Japan Proposal: Encouraging Japanese Translation
owaspjapan
1
290
elegance_of_OWASP_Top10_2017
owaspjapan
2
580
Featured
See All Featured
Practical Orchestrator
shlominoach
191
11k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
200
Marketing to machines
jonoalderson
1
5.4k
We Are The Robots
honzajavorek
0
240
Done Done
chrislema
186
16k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
160
Producing Creativity
orderedlist
PRO
348
40k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
230
Rails Girls Zürich Keynote
gr2m
96
14k
Deep Space Network (abreviated)
tonyrice
0
170
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
610
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
420
Transcript
Talks: 1 User, 10 Places, 100 Seconds © Copyright 2013
Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 1 User, 10 Places, 100 Seconds
What’s your location? © Copyright 2013 Hewlett-Packard Development Company, L.P.
The information contained herein is subject to change without notice. 2
Alarms go off at the IT Security Operations Center (IT
SOC), right? © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 3
Not really… © Copyright 2013 Hewlett-Packard Development Company, L.P. The
information contained herein is subject to change without notice. 4
OS, databases, storage IPS, routers, switches, firewalls, DLP Why not?
Security Information and Event Management solution © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 5 Servers, IAM, networking Applications Application Logs: • Few or uninteresting details • For debugging purposes • Not security related • Require custom connectors IT SOC Management solution
% of breaches that occur are application Why should we
care about the applications? © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. % application related *Gartner, 2013
Question? Application © Copyright 2013 Hewlett-Packard Development Company, L.P. The
information contained herein is subject to change without notice. 7
How to make the application produce security logs? 1 Sniff
traffic, or layer 7 interception Very incomplete © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 8 Application Source Code Developer Insert: • Log.warning(…) • Log.error(…) 2 Lot of work! In business and data layer
How to make the application produce security logs? Bottom line,
need a mechanisms to: 3 Agent technology Agent per language © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 9 Bottom line, need a mechanisms to: public …{ … userLogin(username, password) … } public …{ … if( userLogin(username, password) ) Log.info(“User :”+username+” logged in!”); else Log.info(“User :”+username+” failed login!”); … }
Various options to do the implementation: Agents, how do they
work? Aspect Oriented Instrumentation © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 10 Debugging Profiling Link time code rewriting
What to gather with the agent? http://link... WS Call(…) Web-service
activity Calling external pages © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 11 File activity Database activity
Interesting internal activity Security Exceptions © Copyright 2013 Hewlett-Packard Development
Company, L.P. The information contained herein is subject to change without notice. 12 Crypto Exceptions
Up and running… what now? Applications © Copyright 2013 Hewlett-Packard
Development Company, L.P. The information contained herein is subject to change without notice. 13
Need some visuals! © Copyright 2013 Hewlett-Packard Development Company, L.P.
The information contained herein is subject to change without notice. 14 About what? Scenarios please!
Geo Location Discrepancy is trivial to detect now Action: login
User: eddie Action: login User: eddie Events © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 15 User Visibility User: eddie Login time: 1/1/13, 10:00pm Place: Sunnyvale, CA, USA User: eddie Login time: 1/1/13, 10:05pm Place: Shanghai, China
… and knowing what that person did in the app
Action: login User: eddie Action: login User: eddie Events © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 16 User: eddie Login time: 1/1/13, 10:00pm Place: Sunnyvale, CA, USA User: eddie Login time: 1/1/13, 10:05pm Place: Shanghai, China
Multiple Authentications from the same IP Events Action: login User:
eddie Action: login User: gary Action: login © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 17 User Visibility Action: login User: geoff …
Brute force password attack Events Action: login: Failed User: eddie
Action: login: Failed User: eddie Action: login: Failed © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 18 User Visibility Action: login: Failed User: eddie Action: login: Successful User: eddie …
Who leaked classified docs? Events Action: access trade secrets User:
eddie Trade secrets Action: - User: kate Action: - User: matt © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 19 User Visibility User: matt Trade secrets ?
Forensics © Copyright 2013 Hewlett-Packard Development Company, L.P. The information
contained herein is subject to change without notice. 20 User Visibility Events
Examples please? Demo application: Riches © Copyright 2013 Hewlett-Packard Development
Company, L.P. The information contained herein is subject to change without notice. 21 Real application: Apache Ofbiz
Let’s start easy: Get logs in to SIEM without Agents…
Solution: write parser © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 22 Bottom line: A lot is missing... Key information around the user Severity Message
So, write an agent … example: Aspect Oriented Programming ©
Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 23
Let’s start easy… © Copyright 2013 Hewlett-Packard Development Company, L.P.
The information contained herein is subject to change without notice. 24
Without Agent Authentication Example Nothing! © Copyright 2013 Hewlett-Packard Development
Company, L.P. The information contained herein is subject to change without notice. 25 With Agent
Example: Apache Example please! © Copyright 2013 Hewlett-Packard Development Company,
L.P. The information contained herein is subject to change without notice. 26 End Users
Screen shot regular logging from Apache Ofbiz Not security related
at all © Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 27 And if it’s security related, it’s incomplete…
Application View: What did we get: What applications? Logging syslog
© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 28 What did we get: • Log messages automatically • Track users logging in • Track everything user does in the application • Track exceptions thrown in the application • …
Exceptions thrown (but catched) © Copyright 2013 Hewlett-Packard Development Company,
L.P. The information contained herein is subject to change without notice. 29 29
Exceptions thrown (but catched) © Copyright 2013 Hewlett-Packard Development Company,
L.P. The information contained herein is subject to change without notice. 30 30
Tracking users… © Copyright 2013 Hewlett-Packard Development Company, L.P. The
information contained herein is subject to change without notice. 31
Tracking their behavior… © Copyright 2013 Hewlett-Packard Development Company, L.P.
The information contained herein is subject to change without notice. 32
What’s your location? © Copyright 2013 Hewlett-Packard Development Company, L.P.
The information contained herein is subject to change without notice. 33
Thank you © Copyright 2013 Hewlett-Packard Development Company, L.P. The
information contained herein is subject to change without notice.