# Practical Threat Modeling Master Class: STRIDE-Powered

An episode of [Prabh Nair](https://invisiblenetwork.ai/podcast/1554859289), 18 Sep 2025, 1 h 31 min.

Audio: https://anchor.fm/s/4dbb0ab0/podcast/play/108467647/https%3A%2F%2Fd3ctxlq1ktw2nl.cloudfront.net%2Fstaging%2F2025-8-18%2Fbed4d92d-11d3-8613-db90-7e00e3bfd69e.mp3

Ready to build cloud applications that attackers can’t break? In this in-depth podcast, cybersecurity host Prabh Nair sits down with his brother Pushpinder Singh—Cloud Security Architect, CCSP, AWS-Pro, Zero-Trust specialist—to unpack practical, real-world threat modeling. You’ll learn how to weave security into every sprint, cut through compliance noise, and ship code that’s resilient from day one.Pushpinder starts by breaking down STRIDE (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege), then shows how to map trust boundaries, data-flow diagrams (DFDs) and risk scores to the cloud stack—web front end, APIs, micro-services, payment gateways and AI workloads. Hear war-stories on adding multi-factor authentication, mutual TLS, input validation, encryption at rest/in transit and why early stakeholder buy-in crushes later rework.We dive into:Threat modeling vs secure design reviews—why both matter in DevSecOpsAdapting STRIDE, PASTA, DREAD, MAESTRO to SaaS, serverless and AI systemsBuilding living threat-model docs: scope, data flows, risk registers, Jira ticketsReal e-commerce demo: from login spoofing to tampering mitigation with signed tokensTrust-boundary pitfalls in hybrid / multi-cloud and how to segment for Zero TrustRapid response case study: choosing controls for payment and PII flows without killing agilitySneak peek at Pushpinder’s open-source threat-modeling tool (OWASP ASVS + SAM today, NIST soon)CISO talkshttps://www.youtube.com/playlist?list=PL0hT6hgexlYwPTD-wC3oFBe27VGEiizg1NIST Serieshttps://www.youtube.com/watch?v=VcC_KabV_Ho&list=PL0hT6hgexlYy0vBwMv0eteiyAxB48RQzy&pp=gAQBiAQBGRC Serieshttps://www.youtube.com/watch?v=mq_vSLHm4r0&list=PL0hT6hgexlYztA41j1bceTfVagP9mtq28&pp=gAQBISO 27001 Videohttps://www.youtube.com/watch?v=sQqJH2naU6I&t=1454s&pp=ygUeaXNvIDI3MDAxIGltcGxlbWVudGF0aW9uIHN0ZXBzISO 27001 Implementation Guidehttps://www.youtube.com/watch?v=GBfwk10Hh-o&pp=ygUeaXNvIDI3MDAxIGltcGxlbWVudGF0aW9uIHN0ZXBzGRC Practical Serieshttps://www.youtube.com/playlist?list=PL0hT6hgexlYztA41j1bceTfVagP9mtq28GRC Interviewhttps://www.youtube.com/playlist?list=PL0hT6hgexlYz1Usn1Nrnur6OzVoz59zylInternal Audithttps://www.youtube.com/playlist?list=PL0hT6hgexlYyNWBcGYfabwumCr0GKmLWvStick around for next steps: a live, hands-on STRIDE workshop and downloadable templates so you can start threat modeling your own projects tomorrow.#ThreatModeling #CloudSecurity #STRIDE #SecureSDLC #DevSecOps #ZeroTrust #Cybersecurity #SecurityArchitecture

## Transcript

[0:15] Hi guys, welcome to the session on Coffee with Prep.
[0:17] And today we have a special guest, Mr. Pushpinder Singh, my
[0:22] brother back to the channel and we did the two podcasts together
[0:25] and it was amazing. He's a cloud security architect
[0:28] with one of the bank and one of the rare professional who holds
[0:31] CCI with four AW certification and SAPSA CCSK.
[0:35] And he recently cleared CCSP also many document push pushpin,
[0:40] the pushpin, the designing 0 to architectures and they're lining
[0:43] all the business with SAPSA and also for the finance and public
[0:47] sector clients. And the best thing about this
[0:49] person is it turned the complex hybrid cloud network into the
[0:53] clear risk based architecture, which is talk about security by
[0:57] design and you know, economy of mechanism, which is called keep
[0:59] it simple. And whether and when he's not in
[1:03] hardening his AWS landing zone and all that, he do lot of
[1:06] social services, he mentor engineers on advancing from
[1:09] cloud network fundamentals to full full stack cloud security.
[1:13] So let's welcome Pushpinder. It's really great honour for us
[1:16] to have him on this platform. Taking all the time and weekend
[1:19] is not a small thing, but it's a big, big thing.
[1:21] And thanks pushing by giving back to the society.
[1:24] And today topic, I think we're discussing our practical of
[1:27] threat modelling, a first kind of video which is going to be
[1:29] live on YouTube very soon, which talk about reality, how the
[1:33] threat modelling works in the organization.
[1:36] Yeah, thank you, Prof for having me.
[1:38] And it's always a pleasure to be on your show.
[1:41] I do enjoy some of the podcasts that you've done recently and I
[1:45] think the OT 1 is really something that I'm looking
[1:49] forward to. But again, it's a pleasure to be
[1:52] sharing this stage with you. And again, there's no need of
[1:56] introduction to you. You're one of the mentors and
[1:59] the gurus that we look forward to.
[2:01] And something that I've learned from you is how to go back to
[2:04] the community. So this is my small way of
[2:09] showcasing some of the knowledge and sharing it with our PS so
[2:12] that we can build a stronger security community together.
[2:16] Thanks. Thanks.
[2:17] And guys, he's planning to start very soon.
[2:19] YouTube channel on cloud security architect and all that.
[2:22] Please do monitor properly and you will not miss the great
[2:26] insight coming from the guy who practically implement cloud
[2:29] security. See, we have a 2 type of people
[2:31] in the market. 1 is talk, 1 is talkative, 1 is basically
[2:34] actionable and Pushpinder is a person who works on the
[2:37] actionable metrics. So his first student will be
[2:40] today is Prabh Nair and he's sitting with his notes and all
[2:43] that. And I will be speaking on behalf
[2:45] of the students and viewers who have a lot of question on on
[2:48] threat modelling. So Prashant bhai, what is
[2:51] special today? What we are making today, What
[2:53] is cooking tonight? So there's a lot cooking in in
[2:58] the kitchen, but for today, what we wanted to do is bring threat
[3:04] modelling in a very simple terminology to our viewers and
[3:08] give them an opportunity to understand the complexities
[3:12] behind a threat model. Understand why it's easy and
[3:16] difficult to perform this, and then understand how someone can
[3:21] adopt A methodology of understanding the approach of
[3:28] doing threat model. See the complexity with threat
[3:32] model is it's designed to provide the organization or an
[3:38] individual with a view to say what needs to be protected, how
[3:43] it needs to be protected and in what fashion it needs to be
[3:47] protected. Organization these days value
[3:52] business and business is driving where and how they open up
[4:00] opportunities, right? So for example, if you talk
[4:03] about financial organization, they are doing a lot more into
[4:08] AI. They are trying to bring new
[4:11] technology, new products, new ventures everyday.
[4:16] However, as an architect, having a tool in your pocket or as a
[4:21] security practitioner, having a tool in your pocket which
[4:24] defines a framework of how you bring your existing controls
[4:28] into play and how you protect the organization in different
[4:33] landscapes and environments is very critical.
[4:36] And threat modelling is a tool that helps you in that journey
[4:41] because you can attach it to the development cycle, you can
[4:45] define those controls and make sure that the security becomes
[4:50] an enabler for the business rather than being called out as
[4:54] a show stopper, right? So we want to help the business
[4:57] grow so that we can grow along with it, right?
[5:01] So one thing that viewers have to understand is threat
[5:06] modelling is not just a tool that you can run and it spits
[5:10] out information, it's an idea in your brain.
[5:14] It's like practicing maths. The more you do it, the better
[5:17] you get at it, the faster you are and the more efficient you
[5:20] are. So understanding the basics
[5:23] really helps you define how and in what way an organization can
[5:29] be at risk. Where in a system are those weak
[5:34] points? What kind of defence in depth do
[5:37] I need to plug those gaps and where sometimes security can be
[5:42] an additional overhead to the business, right?
[5:46] And that's really important because these days the margins
[5:50] are very thin. So business really wants to know
[5:54] why am I implementing something and is a blanket rule sufficient
[5:59] enough or should I have very specific categories and controls
[6:04] in play, right. So you no longer just define and
[6:07] say hey should I just encrypt everything?
[6:11] Yes you can. That would provide you a lot
[6:14] more security. Encryption as a matter of fact
[6:18] is one of the strongest controls in security.
[6:21] But you can't use this as a sword building around and
[6:25] cutting everybody with it, right?
[6:27] Imagine an application that has 10 different points where
[6:32] encryption can be performed. Now if you ask the application
[6:36] to encrypt each and every payload every time it goes in
[6:40] and out, you will hamper the business because the application
[6:43] rather than processing 10,000 request a minute, will only
[6:46] perform 5. And that's no good to the
[6:49] business. And overly secure system is an
[6:52] hindrance to the organization and hampers the productivity,
[6:58] right? So that's where defence in depth
[7:01] is good, but we also need to keep in mind that just enough
[7:05] security is the right mindset that ties back with zero trust,
[7:10] right. So we want.
[7:14] So just enough security is a great thing to keep in mind.
[7:21] That is where the best value for the business is from a security.
[7:26] So these days, the expectation from a security practitioner, be
[7:30] it a security architect, enterprise security architect or
[7:34] a security engineer, whatever role you are performing, the
[7:38] business looks at you and asks you a very important question.
[7:42] How do you help me protect my environment in the most
[7:46] efficient way possible? I don't want to layer controls
[7:50] over controls over controls that either make it very difficult
[7:55] for me to perform a function or make it make my system so
[8:00] overburden that we have to either spend more in terms of
[8:04] capacity to make that function at an acceptable level or leave
[8:09] some controls out because it's practically bringing the
[8:13] application down, right? So that's where it is important
[8:17] to understand. How can I figure out what's
[8:20] sufficient for a system? And to do that, we've got a
[8:24] great methodology which is threat modeling, right today.
[8:29] In this session, we are going to focus more on the stride
[8:33] methodology. However, Please note that there
[8:36] are different variations and versions of it.
[8:39] Pasta, Dread are some of the other versions, but they define
[8:44] and categorize in different functionalities and some of
[8:47] these can be used in tandem. Some of my viewers would be
[8:51] interested in AI and as we all know, with the advent of new
[8:56] things, security also keeps up. And we've also got a new
[9:01] framework called Maestro that is used for threat modeling AI
[9:06] systems. However, what we need to
[9:09] understand is that the groundwork remains the same.
[9:12] So the basic process in each of these remains the same.
[9:17] How you measure and get those valuable outputs can differ
[9:22] slightly, but it would depend on what is the outcome that you're
[9:26] looking for in stride based. What we know is we can figure
[9:30] out what are our threats, where are they, where are the weak
[9:35] points or exposure points in a system, and what kind of risk
[9:40] are we open to. So I'll quickly share my screen
[9:45] so that the viewers can get a visual of what we are talking
[9:49] about. I'll walk you through very
[9:51] simple stride definitions, what they essentially mean in terms
[9:55] of risk and what as a security we should focus on.
[10:00] And then I'll walk you through an example or couple of example,
[10:04] one generic, which I know a lot of viewers would have seen in
[10:07] other YouTube videos. But what we are bringing today
[10:11] in this podcast is very valuable that we will breakdown 1 sample
[10:15] system that everybody would have seen or can connect to in as a
[10:22] visual. And then showcase what kind of
[10:25] controls in a real life scenario that you can implement.
[10:29] And someone who's may be starting off as a new security
[10:33] architect or a security engineer, or if you're in SoC,
[10:37] all of these different profiles can benefit from understanding
[10:43] how this flow would work for a very basic application.
[10:46] Understood, right. So stride threat modeling or
[10:51] threat modeling in general, is a systematic approach for
[10:57] identifying, analyzing, and applying controls that mitigate
[11:02] security threats in a system or a design.
[11:06] Now, when we say a system and specifically word design, what
[11:11] we want to say is that this is an activity that should be
[11:14] performed way in advance when you're designing a system.
[11:19] So don't try and do a threat model when you've already rolled
[11:23] out the system. It's practically too late and
[11:26] the cost of then baking in security is going to be
[11:30] exponentially high. However, we know that
[11:33] developments these days follow an agile or a waterfall
[11:38] approach. However, if you look at
[11:40] realistically, many organization follow a merged model which is
[11:46] partially waterfall, partially agile, which means that your
[11:50] threat models have to be very adaptive.
[11:52] So every time there is a change in the design and a specific
[11:57] functionality of the design, A threat model may be warranted
[12:01] for the organization depending on how much has changed.
[12:05] But what has specifically changed in a system is very
[12:09] critical for analyzing threat model and a key factor there is
[12:15] data flows. So we always as security
[12:19] practitioner need to remember that data is what provides value
[12:24] to the organization and where data flows is where we need to
[12:29] see the controls are appropriate, right.
[12:33] So imagine Coca-Cola has their IP in their secret sauce of how
[12:39] they make their drinks. And that is data, which is the
[12:45] core value of the business. If we can't protect their IP,
[12:50] the organization loses its edge. As a result, it will go out of
[12:55] business. So always remember that data
[12:58] flows are important to understand where valuable data
[13:02] is moving within the organization.
[13:04] A simple example is an organization has public facing
[13:09] information, generic information.
[13:12] An organization will have its own IP.
[13:14] If it's a financial organization, it may host and
[13:18] store π or card information. So now these are different
[13:23] categories of data. Now, if I was to be a security
[13:26] architect and say, let's secure everything with a blanket rule
[13:31] and encrypt everything, I don't want even a single system to be
[13:35] able to decrypt it. A, it's too much security.
[13:39] B, it's not appropriate security for different flavours of
[13:44] information. So categorizing data is
[13:47] important. Understanding where the data is
[13:50] flowing, primarily the one that is of high sensitivity is
[13:56] critical. So I would want to ensure that
[13:58] my card information like PIN, if I was to look at PCI DSS, those
[14:05] kind of standards would define should I be encrypting PIN?
[14:10] And yes, the PIN needs to be encrypted even when it is
[14:14] flowing in an encrypted channel. So I'm looking for something
[14:17] called payload level encryption, but it is costly to implement
[14:22] it. So I can't be payload level
[14:24] encrypting everything that flows from a user to my application
[14:30] Oregon my back end, right? So that's where data flows are
[14:34] really important for us to understand, right?
[14:37] So what is threat modelling and why should I care about it?
[14:42] Threat modelling is an approach which helps us proactively,
[14:46] right? That's why I said don't do it at
[14:49] the last stage where your application is like do it more
[14:53] upfront in your development cycle.
[14:55] So proactively figuring out vulnerabilities, you help define
[15:01] and design where key security control integration would be in
[15:05] your architecture. And then you define and answer
[15:09] some key questions. And these questions are what am
[15:14] I building, right? What is the organization trying
[15:18] to build? Is it a public facing website?
[15:21] Or am I building an application that allows customer to store
[15:25] capture card information, right? So depending on what am I
[15:29] building, I would know what's the criticality of the app, what
[15:35] kind of data it has. And then on top of that, I need
[15:38] to know what can go wrong, right?
[15:42] If my application is only internal, having a control that
[15:46] protects it from, let's say DDoS is sometimes irrelevant, right?
[15:52] Because I don't have that exposure.
[15:54] So why put DDoS as a control when it's not needed?
[15:59] So that's where we need to know what can go wrong.
[16:01] And when you need to answer as a practitioner, what should we do
[16:06] about it? So when I know that I have a
[16:09] public facing website that's prone to denial of service, what
[16:14] do I have as a control in my organization that can protect
[16:17] me? Now that can control can be a
[16:21] layered control, let's say network firewall.
[16:25] If I talk about cloud, you have NSGS, subnet level control,
[16:29] VPCS, micro segmentation, some form of CDN that can do DDoS
[16:37] prevention, right. So that's where layering comes
[16:39] into play. But then we need to understand
[16:42] as architects or practitioners, what do we have and what should
[16:46] I do about that risk? And then lastly, when we have
[16:51] baked in or understood or proposed to the project or
[16:56] whatever application is being developed, we need to
[16:59] understand, have we done a good job?
[17:02] And it's more than a question. This is what makes threat
[17:06] modeling an iterative exercise, right?
[17:09] You do it once, take put it through a feedback loop,
[17:15] understand the controls are effective.
[17:17] Has the project changed? Have have their deliverables
[17:21] changed? Initially they might have been
[17:23] making up internal facing application, but then certainly
[17:27] the application team might turn around and say, hey, I want to
[17:31] integrate with the third party. Now they are public facing.
[17:34] I need to integrate with the SAS, they are public facing.
[17:38] So now your entire architecture has evolved, right?
[17:42] So you need to factor in those additional security controls and
[17:46] that's where we need to ask ourselves, have we done a good
[17:49] job on OK right now? Key thing that this helps us
[17:54] perform is get more confidence in security, get more confidence
[18:01] towards security being an enabler.
[18:03] Because what we are doing is we are communicating our
[18:06] requirements early on to the project.
[18:09] Now no one wants to do a bad job, especially our engineers
[18:15] who are developing stuff. The problem comes that they know
[18:19] of the requirements very late in the journey.
[18:22] So when you're already under pressure of delivering something
[18:26] with tight timelines helping the business move faster, you can't
[18:30] have requirements delivered to you at the last minute.
[18:34] So it's like if I was starting to build a car with four wheels
[18:41] and nobody told me the Excel should be 4 wheels and not three
[18:46] wheels. And if I've designed for three
[18:48] wheels, then it's more of an auto than a car, right?
[18:52] So you need to understand the requirements have to be defined
[18:56] early on. And same is the case with
[18:59] security, right? So you need to tell people or an
[19:03] application, do you want to do Oauth?
[19:06] Do you need people to do Oauth? Do you need the application to
[19:10] support Oauth so that the entire infrastructure supports it?
[19:15] Then let's dive into something called the Stride model that
[19:20] I've spoken about. So what does Stride means it?
[19:23] Has but pushpinder before I'm sorry to interrupting you here.
[19:26] When it comes to the threat modelling, if you go back to the
[19:29] previous slide where you discuss about the pointers about the
[19:34] functions and all that, I have a one question here is OK, the
[19:37] companies send a requirement, we want to build an application and
[19:42] we decided we need to do threat modelling.
[19:43] Fine. What are the important
[19:45] documents? See when when we're teaching
[19:48] CSSP, when you're talking about lot of speakers, we say threat
[19:52] modelling is should be done in security by design or shift left
[19:56] and all that. But I have one question here is
[20:00] apart from DFD document, what are the other stuff is required
[20:04] when you're building a threat modelling?
[20:06] You know a starting point what are the artifacts is required
[20:09] and what are the mistake people does when they go for threat
[20:12] modelling? That's a great question, and
[20:17] actually the kind of artifact depends on how mature the
[20:22] organization is. I've been in different places
[20:25] where it's gone through just a rough diagram somewhere, someone
[20:32] scrambling on a piece of paper to an organization where you've
[20:36] got dedicated frameworks in place, similar to how a solution
[20:42] architecture is. And that's where a security
[20:45] architect would capture. What they capture is really
[20:49] important. So for an effective threat
[20:53] model, you need to understand what are the critical components
[20:57] of an application and those then that then need to be defined
[21:01] into an architecture or a breakdown into several
[21:07] categories. So I'm going to show you later
[21:09] on how some of those categories are.
[21:12] But in essence, the important aspects of a threat model or a
[21:20] security architecture document that you would see in a very
[21:23] refined organization like financial services would be a
[21:28] design or as is state of what the architect has reviewed or
[21:34] assessed. So when you talk to domain
[21:37] architects of people who are defining and designing the
[21:40] application, they would have, for instance, today an
[21:45] architecture design, which is version 1, and it can quickly
[21:49] evolve into five different versions.
[21:51] So you would have different versions of the same artifact.
[21:54] The architecture would have moved.
[21:56] So it doesn't really make sense for security to have assessed
[22:00] version 1 when you're implementing version 5.
[22:04] So getting a state or capturing the state of the architecture
[22:08] that's been assessed is really important.
[22:11] It also helps you with audit and later on compliance relevance as
[22:16] well because you know what you have done and is a key artifact
[22:20] that can be given to auditors as well to for them to understand
[22:24] what kind of controls you have defined now within this diagram
[22:29] or the architecture that you capture.
[22:31] Another important aspect is a ensuring that you have captured
[22:36] all different elements, which means defining what are the key
[22:42] aspects of the architecture. Or do you have external users?
[22:46] Do you have internal users? Is the application in DMZ?
[22:50] Is it sitting in your internal network?
[22:53] So all of those are key aspects of the architecture.
[22:57] One thing that people miss is labeling.
[23:00] So make sure that you label and tag all the relevant components
[23:05] in your architecture. Now once you have done that,
[23:09] that is where you capture your stride model and define for each
[23:14] element within the architecture what are the applicable security
[23:18] gaps or controls and then what is the recommendation.
[23:23] Now I have seen mature organization create this into an
[23:27] A list. That's then given to the
[23:30] projects to either review and also put in information and it
[23:36] can act as your risk register as well or a feed into your risk
[23:40] register. Sometimes organization want to
[23:43] do the right thing, but you may have difficulty with technology
[23:47] compatibility issues, but this is a great way to understand
[23:52] what was the risk that you had? What was the control you wanted
[23:57] to implement? And then did you find challenges
[24:00] in implementing that control? OK, right.
[24:03] So an example, real life example that I can give you is sometimes
[24:08] projects when they work in cloud, right?
[24:10] They want to leverage key management.
[24:14] But within the organization, if you don't have a solidified way
[24:19] of Oregon, a defined pattern or a blueprint around how do I
[24:24] store keys? How do I generate keys?
[24:27] Can I share keys between application?
[24:30] Can I share a key with a third party?
[24:32] If so, where will the vault live?
[24:35] Is it my subscription, third party subscription?
[24:38] What are those patterns, right? If you've not developed those,
[24:41] sometimes it's very difficult to use that off the bit, right?
[24:46] So as a result, this becomes a very good tool for you to say,
[24:50] where are some of my blueprints or capabilities missing?
[24:54] And then it becomes a very good feed into your security
[24:58] architecture to say, I've got 15 projects that are going into
[25:01] cloud, but they don't know how to encrypt and securely pass
[25:05] data. So key management is a critical
[25:08] blueprint that we should develop, right?
[25:11] So it becomes a key validation for you to say where are some of
[25:15] my gaps as well, right? So again, feedback into the risk
[25:19] register, again capturing all those information.
[25:23] Of course, whenever it's a official document, you should be
[25:26] able to capture the scope and what's out of scope as well,
[25:30] right? So those are key information
[25:33] that should go into a well defined threat modelling
[25:36] document and also understand that it's a live document.
[25:41] Unless your architecture is implemented, this will always be
[25:47] reiterated. So if you've got version one
[25:50] capture today and there's a version five of the application
[25:53] Oregon, something in the architecture has changed, this
[25:55] will be updated. So making sure that you've got
[25:58] good documentation, governance around capturing when states
[26:02] have changed, has that been acknowledged?
[26:05] It's coming from a refined source.
[26:07] It's matching what's being implemented is really important,
[26:11] right? So don't underestimate the power
[26:15] of a good threat modelling document, right?
[26:18] It's very critical. And then that is the reason I
[26:21] asked this question is, you know, when we're talking about
[26:27] threat modelling and all that, everyone say, OK, data flow
[26:29] diagram should be there or something else will be there.
[26:32] But the most important part here is how do you integrate what is
[26:37] the steps? What is the step by step
[26:39] process? That's something people are
[26:41] missing. So that's the reason I asked
[26:42] that question. So.
[26:44] Before we yeah. So before I move to the next
[26:48] point like you know, before we move to the next slide here is
[26:50] if I ask about 5 artifacts we should look for in in just one
[26:55] minute, you know this this. So what are those five artifacts
[26:59] or six artifacts? OK, so whenever you do a threat
[27:03] model, somebody is look for scope.
[27:07] Make sure you call out out of scope definitions.
[27:12] Make sure you capture the data flow.
[27:14] Make sure you define your trust boundaries, understand where
[27:18] those risks would be. Then it's, in my opinion, very
[27:24] important to label stuff and make sure that they define what
[27:29] exactly is mentioned in the artifact.
[27:32] And then you also need to have one format where you're doing
[27:37] stride or whatever your threat model is and defining the risk
[27:43] plus the mitigation. Why that's?
[27:46] How we decide the threat modelling?
[27:47] OK, we are going for stride. Fine, we have a pasta also we
[27:51] have a dosha also we have Italy also we have multiple.
[27:54] But why we should go for stride, not for pasta?
[27:59] Good question. That's an organization based
[28:02] decision. Usually what you would see is
[28:05] stride is really easier for you to bifurcate and implement in
[28:11] architectures. Pasta if you look at it or dread
[28:15] in that case. Their versions are different in
[28:19] terms of the output that they are giving.
[28:21] So dread for example tells you some of the risk factors and it
[28:27] revolves majority around the risk.
[28:30] Can this be compromised? Where are my risk and all those
[28:35] things? Stride is more structured in the
[28:37] sense that it tells you what kind of mitigation and controls
[28:41] you would need, right? So there are organization that
[28:46] have their own versions of threat modelling as well, which
[28:51] is a combination of multiple things, right?
[28:54] But in organization, if you've got a good risk framework,
[28:58] putting Stride in is much more easier and it's one of the
[29:02] better use models if I were to say a more adopted.
[29:07] So it's much more common to see this and people having more
[29:10] acceptance around this system. Understood.
[29:13] Thanks. Thanks for asking the thanks for
[29:15] answering that question because it is a question normally asked
[29:17] by fellow people and all that You don't, there's so many
[29:21] noises there. So that's why to cut out this
[29:23] noise. That's why I asked that
[29:24] question. Thanks.
[29:24] Thank you so much. All right, we will move forward
[29:32] with the stride model. So stride again, the composition
[29:39] is again as six categories. So S stands for spoofing, which
[29:45] means you are impersonating someone or being perceived as
[29:52] someone else or trying to be perceived as someone else,
[29:57] right. So impersonate user, a process
[30:01] or a system that's really important.
[30:04] Sometimes we see impersonation as being a being presented as B.
[30:11] No, it can be a process or a system as well, right?
[30:15] Especially important with agent to a agent and agent.
[30:19] Take AI today where a lot of the authentication is being
[30:25] questioned around how would it scale when you've got layers of
[30:29] layers of system calling each other and how do you identify
[30:33] it's the right person or or right system or not?
[30:38] Second one is tampering. Tampering as the word indicates
[30:42] you are trying to fiddle or change necessarily some
[30:46] information or modify. In this case, the information
[30:50] can be data, it can be code or the system configuration itself,
[30:55] right? So tampering can, can have
[30:57] multiple layers with it. Then you've got repudiation,
[31:01] which is denial of action of performing something, right.
[31:05] So it's like a kid when their parents ask, have you eaten
[31:10] chocolate and they outright refuse, right?
[31:13] But the only way to identify is if they've got some chocolate
[31:16] sticking on their teeth and right, So repudiation is when
[31:21] someone tries to say that they haven't done or perform a
[31:29] certain action, right? Information disclosure is
[31:33] unauthorized access to confidential or sensitive
[31:36] information and then denial of service.
[31:39] I think this is one that most of the people are aware of is when
[31:44] you've got a system that is so busy that it becomes unavailable
[31:51] due and cannot process legitimate access right?
[31:56] I recently was having a discussion with one of my friend
[32:00] where usually the denial of service is.
[32:06] When you look at IT security practitioner think about DDoS as
[32:11] the only method of denial of service right?
[32:14] But there are multiple different ways, and one of the examples
[32:19] that my friend was talking about was where if you make one
[32:26] service but with legitimate users as well, make that service
[32:33] unavailable is also a denial of service, right?
[32:36] So it was an interesting concept around DDoS not being the only
[32:42] way for denial of service, but there are other ways where
[32:45] legitimate usage of a service can be denied.
[32:49] Elevation of privilege is when you try and get higher
[32:53] permissions or rights into a system to do authorized work
[32:58] that you're not supposed to right.
[33:01] So it's very simple that you're trying to do more than what you
[33:05] are provisioned to do. So you're trying to elevate your
[33:08] privileges. Now I've talked about data flows
[33:13] a lot. I just wanted to give a visual
[33:16] representation to our users in terms of how data flow looks
[33:20] like for a very basic web facing application.
[33:24] So if an application has. But if you can little bit zoom
[33:28] it. Yeah.
[33:31] So I think. Controls.
[33:34] Yeah, yeah, yeah it. Work.
[33:35] Yeah, thank you. OK, so a very simple web facing
[33:40] application will have three different components.
[33:44] It needs to have some form of database to store information or
[33:49] perform any kind of activity or actions.
[33:52] And then it has, because it's a public facing web app, it would
[33:56] have some users or actions. Now this is just very simple
[34:02] data flow where a user would do an input or an actor will try
[34:06] and do an input to a web facing application.
[34:09] And then that input can then go and be stored into a database.
[34:14] So the architecture is very simple.
[34:16] There are three elements within this right now here all of us
[34:21] would see OK users when they are talking to an application would
[34:25] want some form of authentication and authentication service may
[34:29] need to have some form of credentials.
[34:32] And then the other aspect would be that external actors are on
[34:36] the outside layer or the untrusted boundary.
[34:40] And then you would have a internal network boundary as
[34:43] well because a web application can be sitting in a DMZ and then
[34:47] you can have an internal application Oregon an internal
[34:50] component that would be talking to the database, right?
[34:53] So external entities here are user system or services that are
[34:58] outside of your control. There are processes in place
[35:03] that perform certain functionality.
[35:05] This is the core or the core or the IP functionality that an
[35:12] organization develops more or less handles the compute portion
[35:17] of the application. Then you've got data stores.
[35:20] These define what kind of database files, repositories, as
[35:25] well as what level of data are you carrying.
[35:29] So criticality of the data, that's something that we spoke
[35:32] about. And then the final thing is data
[35:34] flow, which is to capture the movement of data within the
[35:38] application. Where is it going to?
[35:41] How is it going? Where did it come from?
[35:44] Now at this point we also can flow into something called a
[35:49] threat model flow. So remember in security and in
[35:54] general for an organization, things start with risk and
[36:00] things end at risk. So what I mean by that is risk
[36:04] defines should an organization do something, will it create
[36:09] value or is it creating more risk?
[36:12] Now as a financial operation, if I decide to today go and open a
[36:18] bank in let's say, Germany and I'm operating in Australia, now
[36:23] I need to know if the value of operating in Germany would be
[36:29] greater than the risk I'm taking by moving there.
[36:33] And the risk is I'm opening up myself to different regulations,
[36:39] I am opening up myself to different kind of regulatory
[36:44] requirements, confidentiality requirements, overseas
[36:50] operations. How would I handle that?
[36:53] People, process, technology, all of that would have to be
[36:56] layered. Now that's where for security as
[36:59] well in terms of threat model, having a view of risk is really
[37:04] important because at the end of the day, all it boils down to is
[37:08] can I get the risk within the appetite of the organization.
[37:13] If I am, then the controls are sufficient unless there is a
[37:18] deviation or a failure in the control that I have implemented.
[37:23] So this is a very simple model where if you look at a system,
[37:29] the system holds or has data, and data is, as we've said, is
[37:35] what is valuable to the organization.
[37:37] So data is what creates value for the organization, and value
[37:43] is what we need to protect. Now, systems create
[37:49] functionality, right? So a system will give you a tool
[37:53] to do something. A system will allow you to log
[37:57] on. A system will allow you to
[37:59] process something. A system is the one that exposes
[38:03] certain kind of functionality. And this functionality can have
[38:08] weaknesses or flaws and those can be then exploited.
[38:13] So what we are trying to do is the system exposed functionality
[38:18] is what we want to protect from flaws and those vulnerabilities
[38:23] are the exposure factors that we have got right.
[38:27] So a threat to that vulnerability is the risk that
[38:33] we've got in the organization. So if I know what kind of
[38:37] threats I have, having an understanding of the weakness or
[38:41] the vulnerability in the system, I can layer my controls to
[38:45] define what level of mitigation is required and how then how I
[38:51] can lower the risk, right. So this diagram is courtesy of a
[38:58] very good book that I read on threat model.
[39:01] And the book is the name of the book by the name of threat
[39:04] Modeling and it's designed for engineers.
[39:10] Threat modeling designed for engineers.
[39:13] I'm not remembering the name of the author, but we can put that
[39:17] in the description of the links if someone is keen.
[39:21] Go and have a look at that book. It's really nice and it dives
[39:26] into a lot more of these kind of flows, right.
[39:29] So keeping this in mind, the idea for performing Stride or
[39:35] any other threat model is to identify what risk I have, what
[39:39] are the threat actors, and then where are the vulnerabilities or
[39:43] weakness in my system, right? So based on that, you can define
[39:48] how we would be layering our security controls and then
[39:53] providing sufficient coverage to the organization from a security
[39:58] standpoint. So keeping that risk in mind,
[40:00] right, what we want to do is understand the next layer, which
[40:06] is the trust boundaries, right? So now with data flow, if you
[40:12] see we've mapped a very basic design of where our elements are
[40:18] in terms of the architecture. We need to know where these
[40:24] elements are residing, which means aren't they internal to
[40:29] our organization? Let's say an application talking
[40:32] to a database is all internal. An internal user talking to an
[40:37] application is also internal. But if you have a customer
[40:41] talking to your public facing application that is on the
[40:45] Internet boundary. Now the names do not matter.
[40:50] How you perceive this and standardize this in the
[40:53] organization is important, right?
[40:56] So if you've got 5 different architects who name this
[40:59] differently is fine as long as this boundary or the associated
[41:05] controls stays stagnant or static.
[41:09] And what I mean by that is if I've got Internet boundary, it
[41:14] captures external users coming to a web server, which is an
[41:19] exposed end point to the Internet right now.
[41:24] Then you've got DMZ boundary and you can see that the boundary is
[41:29] helping me with the flow. So it's telling me that external
[41:33] users hit an exposed end point of a web server.
[41:37] Now this web server is in my DMZ boundary and that is then
[41:42] talking to my application server.
[41:45] And then you would have a different boundary which is
[41:48] internal network and application servers talking to database.
[41:52] Now some organization have formal ways of calling these
[41:56] boundaries differently right? So someone can call this
[42:00] internal network, private network, secure network,
[42:05] anything, doesn't matter. The important aspect, as I said,
[42:09] is what is communicating, where is it communicating and how much
[42:13] control do you have on this section of your environment or
[42:18] network, right? So for example, if I have an
[42:22] application that's contacting the database or the server, I
[42:27] have control where this application can talk to.
[42:30] I've also got control on the database where this can talk to
[42:34] and whom it can talk to, right? So that means I'm controlling
[42:38] both aspects of it. Whereas if I look at this
[42:42] aspect, I'm only as a provider exposing my web server.
[42:49] I can't control if an external legitimate user tries to connect
[42:53] to it or an adversary or someone with malicious intent tries to
[42:58] contact with, right? So one of the key reasons for
[43:02] defining these boundaries is to understand what is the level of
[43:06] control I have on the consumer and the provider, right?
[43:11] So if you see consumer here is external user, provider is web
[43:17] server, I can only control web server side.
[43:19] I can't go to the a user and say hey please have antivirus on
[43:24] your machine because someone can maliciously take over your
[43:27] machine and you access my web portal and you can cause me
[43:31] harm, right? I can't do that because that's
[43:33] not in my control. But if I am doing application
[43:37] server to database, I can make sure the application is running
[43:41] on a hardened server. I can make sure that the
[43:44] application only connects via HTTPS.
[43:47] I can make sure that the application is using strong
[43:51] credentials stored somewhere in secret manager to call this
[43:54] database, right? So all of those things I can
[43:58] control on both side. So that's the relevance of trust
[44:02] boundary. It also tells me where some of
[44:06] these very specific controls are applied and have to be enforced,
[44:12] right? So for example, when traffic is
[44:15] coming from external to DMZ, I know it's a firewall that would
[44:21] be in place, right? And it has to be a little
[44:24] permissive firewall to the sense that I can't say only IP address
[44:29] X can connect. If I have a public facing
[44:32] website, of course it needs to allow a whole wide Internet to
[44:36] connect. Maybe some Geo location
[44:38] restrictions can be there, but majority of it, it has to be
[44:42] wide open because if I'm providing service to everybody
[44:46] in the world, I can't tell them you can't connect to me, but I'm
[44:50] giving you service, you have to open it, right?
[44:53] So that's where when you move between trust boundaries, even
[44:57] though you can have the same control, the definition of that
[45:01] control and enforcement can change and that's why knowing
[45:04] these boundaries is important. Another example is that firewall
[45:09] that was open to everybody when it's protecting the web server
[45:17] is going to have a similar rule for when traffic moves from DMZ
[45:22] to internal network. We'll have a firewall here, but
[45:26] that firewall will have only limited traffic allowed.
[45:31] It would only say web server talking to this application,
[45:34] right? Even though it's catering to the
[45:36] same flow, but by definition, because it's protecting a
[45:41] different boundary, the configuration has to be
[45:46] appropriate to where the control is implemented, right?
[45:50] So that's why knowing these boundaries is really critical
[45:53] for you in the architecture, right?
[45:58] So I'm just going to skip this because we have already
[46:00] discussed that. So based on the threat model
[46:05] definition, right, if we were to plot it for a very simple
[46:10] e-commerce application, knowing what are thread boundaries and
[46:16] data flow are, you would always have consumers, right?
[46:21] These are the actors in our definition and consumers can
[46:25] cause normal traffic expect accepted acceptable traffic.
[46:31] They can also cause nuisance which is social engineering, SQL
[46:36] injection, session hijacking. So let's say it's a consumer
[46:40] with the malicious intent. They want to know if I can hack
[46:43] into your banking application and make it maybe payout $10,000
[46:52] to some malicious account, right?
[46:54] So they want to make or abuse your application and that is
[46:58] what generates risk for us, right?
[47:01] That user with malicious intent, but ecommerce platform that
[47:06] we've got as an organization holds customer data.
[47:10] And you remember we had the application or the platform in
[47:15] the medium section, which was ex valid, right?
[47:20] So this is what that application is.
[47:23] So e-commerce platform has data, what kind of data it has, it has
[47:28] customer data, payment data, order history, anything else
[47:32] related. And that data is what creates
[47:35] business or value, right? Knowing customers can transfer
[47:39] information or pay for something, they can order
[47:43] something online is the business value that you're providing.
[47:47] Think about Amazon, right? Unless you can purchase
[47:51] something on their website, they're not going to make money.
[47:54] True. That's the business value.
[47:57] And business value informs security what needs to happen.
[48:04] What do I need? Where do I need protection?
[48:08] Like if it's an e-commerce website, you can't put a
[48:11] firewall in front of my web server and allow only my on
[48:16] premises network. Nobody is going to buy anything
[48:19] then because nobody can reach my website right now.
[48:22] That's where security, knowing what the business value is, what
[48:27] are we protecting? Create an actual value, right?
[48:32] And then how do I create a value?
[48:35] I understand the weaknesses and layer those controls that can
[48:40] exploit the vulnerabilities in my right.
[48:44] So wanted to break it down into a more logical flow where people
[48:49] can understand what does that theory or that threat model flow
[48:54] look like right now I have got a very simple example for.
[49:08] So a lot of us use cars and I wanted to bring a general
[49:12] example of what's the difference between driving or what's the
[49:17] risk or how do you do a threat model for using a car that's for
[49:24] family purpose versus using a car that's run only in Formula
[49:29] Ones, right? So understanding the business
[49:34] value gives us a lot more insights in terms of knowing
[49:39] what kind of controls we need to put in, right?
[49:43] So for example, a family car, it's environment that it's used
[49:49] in, as it's used in city street, it goes onto highways, it gets
[49:53] parked. You're trying to transport goods
[49:56] or groceries and travel from one place to another.
[50:00] But a formula car is only run on race tracks, right?
[50:05] It's not used for transporting goods.
[50:08] You only want to go from one place to another, but as fast as
[50:13] possible, right? And that place is usually
[50:17] isolated and you go in circles, right?
[50:19] So the idea behind a family car, the real asset value to the
[50:27] family is that it allows you to have a reliable mode of
[50:32] transport that takes you from one place to another.
[50:35] It can help you do some of your daily activities, patterns.
[50:38] And that's important, right? At the same time, a Formula One
[50:43] car is designed to go as fast as possible so that you win.
[50:47] You're the first, right? So it's designed for speed
[50:51] performance optimization, right? It's designed to be reliable but
[50:57] light at the same time. So they've got very different
[51:00] use cases. Now as a result of these
[51:04] different use cases, because they've got different operating
[51:08] environment, they also have different controls and exposure
[51:13] factor. As a result, the security
[51:15] mechanisms that are defined in these two cars or type of cars
[51:20] are different. Now let's look at some of the
[51:23] threats that we've got related to these two find, right?
[51:27] A normal car that you use for your day-to-day activity is
[51:31] prone to theft. You parked it somewhere someone
[51:35] can try and break it, right? But Formula One cars, they're
[51:40] really protected with high value.
[51:43] You won't find them parked in any parking lot.
[51:46] So as a result, theft is not as big a concern here, right,
[51:51] because it's not widely parked everywhere.
[51:55] But accidents, at the other hand, are very common in normal
[52:01] cars as well. But they are also applicable in
[52:05] your Formula One cars, right? So this risk can be called now
[52:10] unauthorized use is again something that you are at risk
[52:15] in a normal car. Why I want to take my car, but
[52:20] my family member would have taken it somewhere else or you
[52:22] could loan it to some someone else.
[52:26] You you've seen videos where people try and steal the car
[52:31] keys and take it for around. So that's unauthorized use,
[52:36] right? But Formula One cars are have
[52:38] some protection against it. You only get the steering and
[52:42] it's disconnected. And once you put it in, that's
[52:44] only when you can drive the car, right?
[52:46] So you can see the basic category or the value is the
[52:49] same. It's a car, but the
[52:52] functionality and how it's designed, the purpose it's
[52:55] designed for is relatively different.
[52:58] As a result, the risk or the threats are relatively
[53:01] different. Right now.
[53:03] One aspect that you would see is Formula One cars do not have a
[53:10] closed roof, right? They want to keep it light.
[53:15] So as a result, having a full roof does not make sense.
[53:18] Normal cars will have full roofs, but what how does it
[53:24] impact us now? Not having a roof means that
[53:29] Formula One drivers wear a helmet.
[53:32] Now. How many times have you seen a
[53:35] normal driver in a car wearing a helmet?
[53:38] Yeah, when I go with the. People, yeah, you're protecting
[53:43] yourself against a different risk.
[53:45] Yeah, right. So accident and fatality in that
[53:51] case can come from the person who's sitting next to you, but
[53:56] not because your car has been into an accident, right?
[54:00] So that's where you need to understand that because the risk
[54:05] of how the architecture is of a Formula One car versus a normal
[54:10] car is different. The control we have implemented
[54:13] is different. Now there's a different category
[54:16] or a medium category as well. There are racing cars which are
[54:20] not Formula One, but they are more refined version of standard
[54:24] high performing cars that we've got.
[54:26] And when people race in that the risk is higher of a crash as a
[54:30] result, you would see people wearing helmets in them as well.
[54:33] So if you're anytime doing high speed and it's not a normal car,
[54:37] it's very OK for you to be wearing a helmet, right?
[54:41] But if you're using a standard car like Kia or something and
[54:47] then you're going on the road, it's not very common to have
[54:50] helmet on or specially on the drive.
[54:53] But what is common? A seat belt is common.
[54:57] A seat belt is common in a Formula One car as well as a
[55:02] standard car. But also you need to understand
[55:06] that how security is provided also changes with how your
[55:11] threat or risk changes. Now when you get into a crash in
[55:16] a normal car, what do you see? Airbags deployed.
[55:21] The frame of the car is designed in a way that it can handle
[55:26] maximum of your crash. You know what Formula One cars
[55:31] are designed differently because of the speed that they travel
[55:35] in. The car is actually designed to
[55:37] disintegrate, which means it falls apart and the capsule is
[55:42] the strongest portion of the car.
[55:44] But if you see the moment it has an impact, a majority of the car
[55:49] like tires, all of it will fall apart.
[55:52] Doesn't happen in a normal car. So it's protecting.
[55:57] Both are protecting the person who's driving human life, but
[56:02] the way they are protecting is very different because how the
[56:05] functionality is defined. So that's where how it is built.
[56:10] So that is why one of the principles of threat modelling
[56:14] that we need to understand is different assets can be of the
[56:19] same category, face different complexities in different
[56:24] environment, right. So as a result, the control that
[56:28] you put in place can be different.
[56:31] In live example, if you have on Prem you have a different
[56:34] control, on the cloud you have a different controls.
[56:36] Exactly. But you could be protecting
[56:39] against the same risk. Yeah, right.
[56:41] That's true. Data loss or data disclosures
[56:43] and all that. Exactly.
[56:45] So that is where you need to understand that risk in
[56:49] different environment means different thing and when you
[56:53] change the environment, a risk can change.
[56:55] As a result. We said do the threat modelling
[56:58] as a iterative process. It needs to be updated every
[57:03] time you go through. Now all of us would have
[57:07] understood like the common threat model.
[57:10] This is what from you were talking about South when you
[57:14] capture a document, right? This is the summary of the
[57:18] thread model document that we can validate or put an in in a
[57:25] standard format, right? So as I said, defining scope is
[57:28] really important. Creating a DFD or a data flow
[57:33] diagram is really important. Apply your stride model,
[57:37] identify your threads weakness, do the risk assessment of saying
[57:42] why is this impacting me? And then put in the mitigations.
[57:47] These are really important to capture what needs to be
[57:51] implemented to mitigate the risk.
[57:53] And then if you can't implement something, link it to your risk
[57:58] register to say, OK, I can't implement this because of this.
[58:01] And then this is also that feeds into your enterprise security
[58:05] architecture or security architecture wall to say these
[58:09] are the blueprints or the design of the patterns that we need to
[58:12] focus on South really powerful this kind of documentation.
[58:17] And then you can also do validate and perform some form
[58:21] of assurance around the effectiveness of the control.
[58:25] So let's say you've got a control that's performing really
[58:29] well. Is a standard control in your
[58:31] organization like an on premise? Now what if that key control is
[58:36] not applicable or irrelevant or not available in your cloud
[58:41] environment? Then that control is no longer
[58:44] effective, right? So one example is your on
[58:48] premises firewall. You can't have your public
[58:52] facing firewalls also protect your cloud environment unless
[58:58] unless you also host a similar functionality in your cloud.
[59:03] And that's the standard design or a pattern that you would see
[59:07] unless you scale your solution or define that capability.
[59:11] Some places that standard design or pattern may not be
[59:15] sufficient, right or may not provide you the best value.
[59:20] So you could opt to send all your cloud bound traffic to on
[59:27] premises first and then use private link to send it to the
[59:30] cloud. But that's an ineffective
[59:32] design, right. So reviewing the effectiveness
[59:35] of your solution, understanding the effectiveness of the control
[59:40] and especially in changing times like the adoption of AI, we need
[59:45] to be sure and aware is this protecting the system in the
[59:51] intended way or not? And is it app for what we have
[59:54] started right. So the so one thing that I would
[59:59] want users to remember is from a threat modelling perspective,
[1:00:04] start early, include everybody, save time, save cost, call out
[1:00:11] your requirements early, include different stakeholders, talk to
[1:00:17] your architects, talk to the people who have proposed or have
[1:00:23] the business requirement of the solution.
[1:00:26] So talk to business. Talk to people who are building
[1:00:29] the solution, your engineers, tell them, share with them what
[1:00:34] you want, give them details. Don't assume that they know
[1:00:38] because not everybody wants to have the same mindset or will
[1:00:44] have the same level of knowledge, right?
[1:00:46] So be an advocate for security. Keep models updated.
[1:00:51] So what we mean by that is understand your mitigations,
[1:00:55] look at them for the appropriateness, ensure that
[1:00:59] your models are up to date and they are providing or solving
[1:01:05] challenges or use cases that your organization is looking
[1:01:08] good at. And then focus on the high value
[1:01:12] assets. You can't do everything but only
[1:01:15] limited resources, yes. So make sure that you are
[1:01:19] protecting what is valuable to the organization and document
[1:01:24] any assumptions or decisions, right?
[1:01:26] So this is where the scope definition and exclusions of the
[1:01:31] scope are really important. So anything that you assume,
[1:01:35] make sure it's documented because your assumption may have
[1:01:39] a big impact later on, right? I agree.
[1:01:43] So, so don't assume and if you're assuming documented in in
[1:01:48] the register, get validations. So that's in a nutshell what you
[1:01:53] would want to do and how you would approach threat modeling.
[1:01:59] But this podcast wouldn't really be a different, different one if
[1:02:06] we were not going to show you a practical way of doing it.
[1:02:10] So what I have done is we've created a tool, a simple form or
[1:02:17] a format which walks you through because as we said initially,
[1:02:21] that this is more of a brain exercise.
[1:02:24] The more you do it, the better you get and the more examples
[1:02:28] you can walk through, not the hypothetical car ones, but the
[1:02:31] real ones that you have in your environment, the better you get
[1:02:36] get at implementing it. So what I have is I've got a
[1:02:39] very simple application that's designed to walk you through
[1:02:44] some of these steps, right? So key concepts again, stride
[1:02:47] framework, spoofing, tampering, repudiation, all of that is
[1:02:52] captured here. We've given examples.
[1:02:54] So understanding and bringing that bridging that knowledge is
[1:02:59] really easy when you know how to correlate it with things that
[1:03:03] happen in or correlated with things that you know of, right?
[1:03:08] So trust boundary is there. What I'm going to dive into is
[1:03:12] we've got this effectiveness in terms of what makes the threat
[1:03:16] model really effective. And this is just a summarized
[1:03:19] version of what you would capture in the document that
[1:03:22] we've spoken about, right? So what I have in this tool is
[1:03:26] really simplest form of an example, which is to say you've
[1:03:32] got an e-commerce website, right?
[1:03:35] And then these details can be as much as you want.
[1:03:40] Now the more you know, the better it is for you to figure
[1:03:44] out what kind of risk you would have.
[1:03:46] But it's not to say that it's not very good at a high level as
[1:03:50] well, right? So having bare bones is also
[1:03:53] good, but the more you know it, the better and more apt the
[1:03:58] threat model can be. So in this case, you would see
[1:04:01] that I've given a very simple example of a ecommerce website
[1:04:05] that's using a React front end, very common node JS as the back
[1:04:10] end. And then you've got a MySQL
[1:04:12] database and a Stripe payment because this is an ecommerce
[1:04:16] website. So it's using some form of
[1:04:18] payment method. The app right now, as I said,
[1:04:21] right, very basic in the sense I've only captured a user that
[1:04:25] needs authentication to a process which is doing sensitive
[1:04:30] data like PII and payments. So you've got a user element and
[1:04:35] a process element, right? The third only aspect is the
[1:04:38] data. So if we were to break this down
[1:04:42] into an architecture diagram, how would that look like from a
[1:04:48] threat modelling perspective? First thing I would document is
[1:04:52] what do I have right? So details of the website.
[1:04:57] And this is where your imagination and abstractions
[1:05:01] also come into play. When you are starting off with
[1:05:05] threat model, it's really important to understand that the
[1:05:09] simpler you keep your flows, the easier it is for you to plot and
[1:05:15] define your requirements. The more complex you make it,
[1:05:21] the more difficult it is, right? So generalization initially is
[1:05:25] helpful. That's when you start building
[1:05:28] into more complex one, right? So keeping it very simple,
[1:05:32] you've got a front end that talks to a back end.
[1:05:35] You've got a back end that talks to a data database, so the back
[1:05:38] end that talks to your payment gateway.
[1:05:41] Very simple. I've not complicated it by
[1:05:44] adding but. But this is a very common common
[1:05:47] practice which we follow for every application.
[1:05:49] So make sure we have to define the static requirement in the
[1:05:51] page here. Exactly.
[1:05:54] So that's that's correct. But what I'm trying to say is
[1:05:57] don't over complicate it by adding elements like oh, you've
[1:06:01] got a graph firewall, you've got a firewall, you've got a load
[1:06:04] balancer. All of them can be added on
[1:06:07] later. But this is just bare bones.
[1:06:10] But for you to get your thinking right and in the right
[1:06:14] direction. Now we said we've spoken a lot
[1:06:18] about trust boundaries, told the relevance of why it needs to be
[1:06:22] there. Now this is where it is in
[1:06:24] action. See the naming convention
[1:06:27] doesn't really matter as long as you can consistently use it
[1:06:30] within the organization, right? So we've got front end boundary,
[1:06:36] which means untrusted clients to whatever your client application
[1:06:41] is. Now as I said, naming and
[1:06:44] labeling is really important. Even though if I have two
[1:06:48] different architects using different boundary name, as long
[1:06:51] as you can label and provide a description, it goes really
[1:06:55] well. It's very clear to me where am I
[1:06:58] going, how am I going, what is the zone I'm operating.
[1:07:02] You've got the back end boundary, which is between your
[1:07:04] trusted and you. You remember I showed server to
[1:07:08] your database. You control both aspects.
[1:07:12] It's a trusted environment, right?
[1:07:15] So and then you've got payment gateway boundary.
[1:07:18] This is external to your third party.
[1:07:20] So you're talking to someone outside but from your trusted
[1:07:24] application, right? OK, so now what do I have is I
[1:07:31] need to capture my data flow. Data flow As I said data is
[1:07:36] where the value of the business is.
[1:07:37] So I need to follow that trade to understand where I should be
[1:07:41] putting my controls. So I have got a front end that
[1:07:45] talks to the back end. So this is 1 flow of data and
[1:07:49] what is the front end doing? Its user input of PII or
[1:07:53] credential. Someone making a payment, they
[1:07:55] are putting in their personal information, card information
[1:07:59] and credentials. Back end to database is the user
[1:08:02] data and order information like OK user is trying to buy this
[1:08:07] blah blah blah and then you also got the back end going to
[1:08:10] payment gateway to validate the payment.
[1:08:12] You all see there is a redirection when you buy
[1:08:16] something in your app and then it goes to a payment gateway, a
[1:08:21] third party where they would ask for validation or something like
[1:08:24] that right. So now current data flows and
[1:08:28] now all of this in an architecture diagram, how does
[1:08:32] that actually look like? It would look something like
[1:08:35] this. So you can draw this, this tool
[1:08:38] does it for you. But what you can do is draw this
[1:08:42] similarly or use any other form user tool of your choice.
[1:08:47] People use draw dot IO a lot these days, very simple.
[1:08:50] But what is this is designed to do is captures that you've got a
[1:08:56] front end. Again, the red indicates that it
[1:08:59] has a very high exposure or risk because it is in that front end
[1:09:05] boundary, A boundary that we control portion of, right?
[1:09:09] And then it moves into the back end boundary.
[1:09:11] So these outer layers are your flows or trust boundaries that
[1:09:18] you've got. And then these are the flows of
[1:09:20] traffic coming in and out, right?
[1:09:22] So now each flow can have its own stride map to it for you to
[1:09:29] understand where is my risk and what do I need to do to mitigate
[1:09:34] that risk, what kind of risk I have.
[1:09:37] So for example, if you see this database going back to the
[1:09:41] stride model, what do I have that is applicable?
[1:09:46] I can have repudiation going from back into database, right?
[1:09:52] Someone can try and make a change, unsolicited change and
[1:09:57] it deny doing it right? So I need to put a control
[1:10:02] around that. I could have information
[1:10:05] disclosure, so database is holding information or the back
[1:10:09] end is holding customer information that can be
[1:10:12] disclosed right? So that's a an aspect that I
[1:10:17] might need. Someone can tamper.
[1:10:21] So I could have a request that the customer sent to this back
[1:10:26] end for maybe paying for one item.
[1:10:30] I can change tamper with that request and maybe make it 100
[1:10:35] items, right? So tampering can happen, but
[1:10:39] what can't happen here because this database is not exposed
[1:10:45] directly to an outbound functionality.
[1:10:50] Can I do a DDoS or denial of service to it directly, No,
[1:10:58] Indirectly, yes. Right.
[1:11:03] So that's where it is important to understand that it's
[1:11:07] initially easier for you to just look at the direct correlation
[1:11:13] and risk indirect ones. How we mitigate them, We put
[1:11:17] controls that they are directly applicable, right?
[1:11:21] Otherwise what happens is I've seen some people when they are
[1:11:26] introduced to stride because it can happen and there's no
[1:11:30] absolute, they try and put all of the six categories in.
[1:11:35] And that's not scalable because if something is supposed to
[1:11:38] happen once every 100 times, you might want to put a control in.
[1:11:44] But something as a indirect correlation can happen one in a
[1:11:48] 20 billion times. Do you really want to spend your
[1:11:51] time trying to protect it? I don't know, right.
[1:11:55] So that's where the real yes. So that's where the real value
[1:11:59] is that you start looking at the direct impacts, right?
[1:12:04] So that's why if you see the front end exposure to the back
[1:12:08] end, it may have multiple or more categories.
[1:12:12] That's where you see denial of services as a an example because
[1:12:17] this is the point where I have my exposure to the Internet.
[1:12:22] Now, a lot of talk about this. Let us do the analysis.
[1:12:26] The tool actually helps you do the analysis, right?
[1:12:29] So we have talked, spoken about the threats to the front end
[1:12:34] from the front end to the back end, right?
[1:12:37] So let us go and look at spoofing.
[1:12:40] What is it that can happen or go wrong in spoofing?
[1:12:43] Spoofing, remember, stands for someone impersonating you.
[1:12:47] So a hacker can impersonate a user by stealing credentials.
[1:12:55] Now, if someone loses their credentials, that's a strong way
[1:13:01] for an hacker to get into the system and perform malicious
[1:13:05] actions. Now what we do about it, if
[1:13:09] someone is stealing credentials, we can have multi factor
[1:13:13] authentication in place as well as secure session management.
[1:13:17] So session management makes it difficult to steal credentials.
[1:13:21] But even if you have stolen credentials, using multi factor
[1:13:25] authentication allows you the capability for a hacker to not
[1:13:31] use just the credential, but they would have an out of band
[1:13:35] solution channel so that they can, the system will validate is
[1:13:41] it coming from the true user or not, right?
[1:13:45] So that's the mitigation you can apply for spoofing.
[1:13:50] Now there would be basic controls that this would rely on
[1:13:54] as well, right? So for example, tampering is
[1:13:59] user modifying any input, right? So what do we do with tampering?
[1:14:05] We can validate inputs at server side, also use signing tokens
[1:14:11] for integrity, right? So what we can do is we can use
[1:14:17] a mechanism like HMAC for data integrity and also do input
[1:14:22] validation to make sure that whatever the customer is
[1:14:25] publishing is what we are receiving, right?
[1:14:29] So that's how we could avoid tampering.
[1:14:32] We'll also look at something called information disclosure.
[1:14:36] Now sensitive data which is the Pi or the credential are it can
[1:14:42] be exposed in the flow from front end to back end.
[1:14:45] Now if I don't do TLS again the this is asking for one 1.3 more
[1:14:54] adopted these days but still a lot of organization are sticking
[1:14:58] to 1.2 and it's still in use. But what we are actually saying
[1:15:03] is that if you do encryption of the session yes and then what
[1:15:10] happens is that you can prevent from sensitive data leak.
[1:15:14] Now, this encryption can also help you in spoofing or
[1:15:19] protecting spoofing. How If you got an encrypted
[1:15:22] channel, it makes stealing credentials a lot more difficult
[1:15:26] because they're not flowing in plain text.
[1:15:30] Yes. So you can see that there are
[1:15:32] layering of these controls, but certain controls have to be
[1:15:37] baked in to protect certain kind of risk within the STRIDE model
[1:15:44] that you. So now let's take an example of
[1:15:48] an internal boundary. But but how, how it generated a
[1:15:52] data? So you did we feed any
[1:15:54] information or are we going to run something like that because
[1:16:00] you add the information in the scoping and then do you add any
[1:16:06] source or any file into that? So in this case, the user can
[1:16:13] either leverage this example or what you can do is start your
[1:16:18] own as well, which means you can put in the information and.
[1:16:24] Browse the file. So if browse the file you can
[1:16:27] put in your own architecture JPEG or something or you can
[1:16:31] also describe your architecture here.
[1:16:34] Now description helps you define some of these, but the real
[1:16:39] value is in these data flows, so I can add an external user here.
[1:16:46] But what is the sample of the? What is sample data flow we can
[1:16:49] add? Like if I want to add, I can
[1:16:51] simply add anything like API integrate and all that.
[1:16:53] So yes, So what need to be? Add here so data flow source.
[1:16:59] This is usually the entity or the element from where the flow
[1:17:06] would be. Fine.
[1:17:07] Destination is where that traffic is going.
[1:17:10] Now I can do this AD as a load balancer right?
[1:17:14] If I wanted to be more specific. I can say.
[1:17:16] In this yes. So add to flow.
[1:17:20] What this would do is it would create this entry for you in
[1:17:24] this architect. Now then what you can do is the
[1:17:28] tool has baked in some boundaries and these boundaries
[1:17:33] define the level of control. Now what you could do is in this
[1:17:37] case you can have a custom or a web boundary.
[1:17:41] Now if the boundary is default, it would layer the same controls
[1:17:46] on it. So trusted boundaries are these
[1:17:49] only I have added one more which is the web server boundary.
[1:17:54] What it would do is help you populate this architecture.
[1:17:57] Now you can see that in the diagram you got one more element
[1:18:01] coming in external user coming to a load balancer, right?
[1:18:06] This is where the more complex your architecture is, the more
[1:18:10] and you can see that this has also labeled threads.
[1:18:14] How did the threads get labeled A where this user is, B where
[1:18:20] this is because of the trust boundary they set in.
[1:18:23] These are the relevant threads around this in the architecture.
[1:18:29] Now when you start analysing some of it right?
[1:18:35] So look at the payment gateway boundary when your controlled
[1:18:41] application is talking to a third party.
[1:18:44] What kind of risk do I have? Spoofing is a key risk for me.
[1:18:50] How? Because crossing the boundary,
[1:18:53] someone can spoof or go to this payment gateway on my behalf and
[1:19:01] ask for ask it to do a specific transaction.
[1:19:05] Right now that's a critical risk.
[1:19:09] Now if you are specially a financial organization or
[1:19:12] anytime contacting a payment gateway or any payment services,
[1:19:18] you would want them to only perform actions that you have
[1:19:22] authorized or on your behalf, right?
[1:19:25] Not a third party or someone else asking them to make the
[1:19:29] payment. So that's where spoofing is
[1:19:32] really important or mitigating the risk of from spoofing is
[1:19:36] important. Now what kind of control you
[1:19:39] would put in for spoofing? In this case we are saying
[1:19:43] mutual TLS and validate cross boundary request.
[1:19:48] Now why am I discussing this? So initially you saw that for a
[1:19:53] user when we had spoofing, which meant front end to back end
[1:19:59] spoofing was again a valid risk, but the control we had was
[1:20:04] around authentication. Right.
[1:20:07] But this was more or less around multi factor authentication or
[1:20:11] at least having a form of authentication.
[1:20:14] It could be Oauth if it doesn't exist, some form of customer
[1:20:19] identity access management which could be Oauth driven, any other
[1:20:25] form, right? But the same risk when it's at a
[1:20:30] different boundary between different system will have a
[1:20:35] different mitigation. So you different.
[1:20:38] But the difference is that users can put in their credentials and
[1:20:43] that can be then authenticated and you can have an MFA.
[1:20:47] But what about application? Applications can't do multi
[1:20:51] factor authentication, right? So how do you defend spoofing?
[1:20:56] So for application or system to system, the tool we have is
[1:21:00] mutual DLS. You take my certificate, I get
[1:21:05] your certificate, and then when we exchange information, you
[1:21:08] validate mine, I validate yours, right?
[1:21:11] So we both define our identities and that mutual TLS is then a
[1:21:16] session that both of us use as a secure form of communication.
[1:21:21] So that way ensuring that I do not end up talking to a third
[1:21:25] party that I don't know and you don't talk, end up talking to a
[1:21:30] third party that you don't know because they've got the
[1:21:33] certificate to provide and say, hey, I am coming from a valid
[1:21:37] entity, right. So this is really important
[1:21:41] where we said, remember the rule that just enough security and
[1:21:46] app security and app control. So knowing what to implement
[1:21:50] where and how to mitigate what risk is really important.
[1:21:55] Now you could also see that similar control of MTLS can be
[1:22:03] used when it's within the same model.
[1:22:06] So there are controls in the security architecture world that
[1:22:10] solves specific use cases. They solve a challenge around
[1:22:17] spoofing in threat model, but they are also applicable when a
[1:22:21] specific category of a system talks to a specific category of
[1:22:26] a system, right. So back into database, you can
[1:22:31] see that there is no spoofing at all because we said what can you
[1:22:38] do? Databases for entry, right?
[1:22:41] So that's where it has different risk around repudiation.
[1:22:47] Of course you want to log all the user actions and timestamps
[1:22:51] so that tomorrow if you want to prove that it was a user
[1:22:55] generated authentic request, that's what you would want to
[1:22:59] capture. So this tool gives you the
[1:23:04] capability to train your brain in terms of what can be those
[1:23:09] risk. How do I figure out based on the
[1:23:13] trust boundary the risk I would have on my system and then what
[1:23:17] kind of mitigation or controls do I have?
[1:23:20] I've also tried to bake in some of the libraries that you would
[1:23:25] end up using right? So OSASVS, Application Security,
[1:23:32] System Management and Sam are more or less used.
[1:23:36] I am trying to figure out and make missed also added to this
[1:23:42] so that you you can know what based on your organization and
[1:23:46] the kind of library that you use that this could be relevant for
[1:23:51] you, right? So in fact, if there is enough
[1:23:59] people who would want to do it, we're more than happy to run
[1:24:03] some live sessions around this and then give access to the tool
[1:24:08] for people to play around. I do have three more sample use
[1:24:12] cases, one which is defined around AI and AI systems.
[1:24:18] So that can be really helpful for users to understand that
[1:24:22] operate in environments or organization that are heavily
[1:24:26] trying to adopt AI. But also making sure that
[1:24:30] security is doing the right thing and we are able to perform
[1:24:33] some of these reviews in time. And the way you created this
[1:24:41] data and all the pointers, whatever we have.
[1:24:44] So one thing I want to ask you, like, you know, like you have
[1:24:49] built this own application for threat modelling.
[1:24:51] Yes, OK. And it's my own version of how I
[1:24:57] envision it so and it's not publicly available at this
[1:25:03] point, but I'm using it mostly for my internal use, but more
[1:25:08] than happy to have sessions where I can share it with
[1:25:12] individuals. And and the company who does not
[1:25:15] have a diagram of the person who's aspiring person and he
[1:25:18] want to drive the things and all that.
[1:25:21] So in that case, how they can do threat modelling if they don't
[1:25:24] have a documentations? Sorry if they don't have a tool.
[1:25:28] So there are other paid and non paid versions of different
[1:25:33] tools. Everybody has different
[1:25:35] functionality. So you could go and look at
[1:25:38] Microsoft Stride based tool. There is one from OWAS as well.
[1:25:43] These two are free, but they've got their own version of
[1:25:48] complexities and basic understanding, right?
[1:25:53] My whole purpose of doing this was that the license one, you
[1:26:00] don't really get access to that freely and just for testing
[1:26:03] purpose. Also the other ones had their
[1:26:06] own adoption. So I wanted to create one very
[1:26:09] basic one which a user who's just getting started doesn't
[1:26:13] really need to learn the tool to learn threat modelling.
[1:26:18] So the tool, this tool in my opinion is removing the
[1:26:23] complexities or the learning curve that you would get from
[1:26:27] onboarding to a tool itself, right?
[1:26:30] So that's been removed so that you have an easier path to just
[1:26:34] learning threat model and building those scenarios and
[1:26:38] models into your mind, not to have a learning curve, steep
[1:26:43] learning curve first for the tool and then the threat model,
[1:26:45] right, which is counterintuitive.
[1:26:48] Because the reason of asking this question is not everyone.
[1:26:52] Not everyone running a tool and all that so.
[1:26:55] Yeah, so. They will use Excel frameworks
[1:26:58] and all that to conduct this system.
[1:26:59] But yeah, it can be a good starting point to try.
[1:27:01] But this is really a great insight where you have talk
[1:27:04] about how the integrations and all that we had.
[1:27:07] Yeah. And I, I think it's high time
[1:27:11] like organizations invest a lot in terms of adopting tooling
[1:27:19] that provide better capabilities to architects, engineers.
[1:27:25] But the sad state in some form for security is that we're still
[1:27:29] stuck with Excel, right? That's true.
[1:27:31] So the sooner we move out of Excel, there is a world beyond
[1:27:36] it where automation as well as applicability of AI hopefully
[1:27:43] brings in enough agility in the overall process that we start
[1:27:49] making some of this and then follow the journey with the
[1:27:52] developers, right? And I'll share an example that
[1:27:58] happened with me a while back was we did recommend certain
[1:28:04] feature engineers to implement a certain control.
[1:28:08] And one of the feedbacks they got was, hey, I never had this
[1:28:13] in my Jeera board. And that stuck something in in
[1:28:19] my brain was that for someone who lives in as a developer who
[1:28:24] lives in Jira, they talk about their sprints, they capture
[1:28:30] everything there, and that's the work that they see for the next
[1:28:34] two weeks. Now, if my work is not getting
[1:28:38] into their board right, it's difficult for them to implement.
[1:28:43] And I can't blame them. Like if I am in their shoes, if
[1:28:47] someone doesn't tell me explicitly to do this, I might
[1:28:52] not do it right? And sometimes the problem, not
[1:28:56] the problem, but how organizations are designed,
[1:28:59] right? You won't get to talk to
[1:29:01] everybody who's developing or designing a feature.
[1:29:05] So the best you can do it is have automation help you
[1:29:09] communicate your requirements to them in the form that they
[1:29:13] consume. So this is where I feel like
[1:29:16] having automation and there's upliftment around how developers
[1:29:22] deliver stuff and then how we can communicate our requirements
[1:29:26] to them is really important. Right.
[1:29:30] And when we're talking about the segmentations and all that, know
[1:29:35] these integrations actually play a very important role.
[1:29:39] But thanks Pushpinder, it was a great insight it it gives the a
[1:29:42] very good work workflow about starting from things.
[1:29:45] See everyone talk about theory theory but no one talk about
[1:29:48] practical and this is something you have shared about the
[1:29:51] practical insight. And we are looking forward for
[1:29:55] doing some live session also in threat modelling.
[1:29:58] And those who are watching this video, if you want to do 1 live
[1:30:01] session do let us know in comment box because we are
[1:30:03] planning a 1/2 day session or one day session on threat
[1:30:06] modelling where we practically demonstrate from zero to the 10
[1:30:11] about how things work. But trust me, this is one of the
[1:30:14] great insight we got and I'm sure this this content will
[1:30:18] going to be definitely create a great game changer for
[1:30:20] architects, designers and all that who want to understand
[1:30:23] threat modelling in more in detail.
[1:30:25] You actually give everything for free, to be frank.
[1:30:28] Thanks. Thanks, Rushwinder.
[1:30:30] Yeah, it's not. Mine to give away for free.
[1:30:33] It's knowledge that I should have the wider impact, right?
[1:30:36] So the more people can benefit from this, the better we are,
[1:30:40] right? That's great.
[1:30:43] So this is all from our side team.
[1:30:45] Do let us know how do you find this podcast in a comment box?
[1:30:48] And if you're still new to the channel, do subscribe to the
[1:30:51] channel and click on the bell icon to make sure you should not
[1:30:54] miss our future videos on a similar topic.
[1:30:57] Thanks. Thanks, Vishunwai.
[1:30:58] Thank you so much. Thank you bro for having me on.
[1:31:02] We'll have more sessions. For sure.

Shows are listed from Apple Podcasts' charts and directory, and Podcast Index where it is used. Every show and episode belongs to its publisher and plays from the publisher's own feed; this site hosts none of them.
