Threat modeling introduction for free software projects
COSCUP 2025 · 9 Aug 2025 · 40:25
Simon Hornbachner, a Free Software Foundation Europe volunteer and cybersecurity consultant, introduces threat modeling for free software projects. He walks through a four-question framework: what are we working on, what can go wrong, what can we do about it, and did we do a good job. Two examples show how stakes differ, a security-focused messenger like Signal used by dissidents and journalists, and an online event platform. He also covers basic vocabulary and free and open source tools for getting started.
Speakers
Topics
From COSCUP 2025, hosted by COSCUP.
Transcript
Check check >> check. Oh yeah. Oh wow. It's >> I think maybe many of our member may think English is too difficult. So yeah little shy. >> Oh that's fine. That's fine. Wow. This is very loud. Check check. Is this taking it down? Not really. Okay. >> I think it's one just >> ah okay. So this one can be off so we don't have feedback. Cool. There's Oh, is it that one? Check. Check. Check. Check. Oh, yeah. Yeah. Yeah. Nice. Okay.
Check. Check. All right. Yeah, we'll be fine. All right. I'll another minute or two for people to walk in and wait about two or three minutes. All right. >> Yeah. Because I do think there's a bit of break time between my slot and the next slot, right? So, we should be fine. And I don't have another talk until like two. So, you know, I'm not in a rush now. Yeah. So maybe I will give very brief
introduction everyone who you are and what you and then you can start your presentation. model for growth Simon has free
Oh, watch out, Simon. And that and ordering black coffee at 7-Eleven is about as much Mandarin as I speak at this point. So, bear with me um as we get through the rest of the talk in English. Um, thank you for having me. Thank you for the uh great introduction. I think I caught a few keywords in there. So, you may or may not already know. I volunteer for the free software foundation Europe. We have a booth here at Costco. So, if at any time today or tomorrow you want to find me to catch up on any things open source and cyber security, find me
in room uh 309. So, it's actually just we're in third floor now, right? third floor now. So it's like down the hall just short of the hacking corner. Take a left into the room. [snorts] Um I have also some time ago now started my own company. So I work as a cyber security consultant or general IT consultant but a lot of my projects are in cyber security. That means I help organizations solve hard problems. Um I like to look at hard problems and there's a lot of hard problems uh that we have to solve in cyber security. So that's really nice. Um another thing
that is really nice is when you have your own company, you can go on stage and say opinions are my own but also those of my employer so I can say whatever the hell I want and not get fired. Yay. That's nice. what are some of these hard cyber security problems that we need to solve? [snorts] Um, one of the things that I want to talk about today is the question of what can go wrong in our software. Are we doing a good job of protecting our users?
and an like all-time high is how much security is actually enough. Right? In a world where we had infinite resources in infinite time, it would be nice to go to every single project and tell every single project you need to be super secure. You need to do this, this, this, right? Um, but we live in the real world. Um, I I'm not that familiar with Taiwan's ecosystem yet. Um, in Europe, cyber security people are a little hard to find. There's not that many of us.
Um, software developers are a little hard to find, right? There's not that many of them either. So, their time is really valuable. So we need to be very conscious of how we spend our time and focusing on the right problems and the right questions to solve. Um oh and I'm uh messing up my mind so much that I did my uh opinions or my own joke way too early in the talk. So yeah um I'm still u my own employer. So uh that's really nice. [clears throat] All right. But to to talk about threat modeling, um why why did I chose this
topic? Why am I choosing this um little tool, right? And that's really what I want to do in this talk is give you some tools um that you can use to start answering some of these questions for your projects. They are supposed to be simple questions that everybody can start asking themselves. Um, and my hope is that it will be enough to get you started in thinking about cyber security in your project. No matter if you are a small oneperson hobby thing or if you run a big project with a lots of developers and thousands of users, right? the starting point can't be the
same for everyone. Um the there is a trend lately that a lot of cyber security people um will tell you the first thing you always do is threat modeling, right? It's like no matter what you do, just start with threat modeling because it's so great. Um and it is a useful tool. I do think it's a useful tool. Um, but I also am always skeptical once something reaches this level of almost seemingly silver bullet. Right? So I do think there is a discussion that we could have as a community
at what times and at what points it is useful to use a certain tool and at what times it is not useful to use a certain tool. Unfortunately, I only have 30 minutes today. So, I do want to get to the point where I can actually tell you how to start threat modeling um and spend the rest of my time teaching you how to use this tool and not have a big philosophical discussion about whether it's the right tool to use or not. But it is something since it's getting so popular right now that I do want to disclaim of like you know sometimes it's worth it to take a step back and also think about again how are you spending your time? How are you
spending your resources? and is the problem that you're looking at actually a nail and is the hammer the right tool for it or are you looking at something else and maybe need another tool. That said, I do obviously think threat modeling is a very useful tool that can be helpful a lot of a times to exactly understand what can go wrong in your project. So, it's a nice way of taking that mindset of uh if somebody tried to do bad things with my software, what could happen? Um, get a understanding of the context, what users are using your
project, what is your target audience, and what could happen to them if your software is not living up to its um security promises. what are the stakes? And lastly, what is really useful in my opinion as an outcome of threat modeling is you can communicate those stakes and those contextes both to your developers and your users, right? So you can make it clear document for your um project. Hey this is what we are trying to do. This is what is at stake for our users and that is why we need to
you know do a really good job of security or you know do an reasonable job but you know we're not we're not saving lives here. we're talking about a I don't know code scanning app for like points at a conference right it shouldn't be you know it shouldn't be like super bad but um and I do will I will get to some examples so I hope the distinction will become more clear later but before we look at concrete examples um I want to take the the step back and draw from the guy who wrote the book on threat modeling. Um his name is Adam
Showstack. He if not came up with the concept he at least popularized it a lot. Um so he he does he has great material on YouTube on the topic of threat modeling of like also some tutorials right if you if you want to get more into it. Um, but I really like the model he follows where he says to get starting in threat modeling, you really only need to ask yourself four, that was three, four questions. Question number one, what are we working on? What is the thing that we are building?
Question number two, what could go wrong? In cyber security, we always assume a bad actor, right? So, it takes a bit of a change of mindset to like very specifically put yourself into the state of mind to think if I was actively trying to do bad things with this, what could happen? What could go wrong? And then of course ideally we don't just want to identify a problem and admire it. We want to hopefully solve it. So question number three, what can we do
about it? And finally, question number four, did we do a good job? Right? Are we done with our threat model? Did we think of everything? Are there other people, other experts that we could talk to that can bring in uh more diverse viewpoints, uh new ideas, right? Or again based on question number one, what are we working on? Are we already feeling comfortable with the level of um modeling that we did and already feel like okay, we have a reasonable
understanding of what is at stake and what we need to do to live up to the promise we make to our um users. And it's really important uh to ask the question if we did a good job. So I have the slide in there twice for some reason. All right, the rest of the the remainder of the time, um I want to walk you through two examples to make it clear of like um how do the different levels of stake like what are we building, how does it matter, how does it influence on the one hand and I also want to give you the basic vocabulary of threat modeling um if you
ever happen to be involved in that activity. Um, you already know what people talk about when they talk about certain words and certain certain concepts right? The two examples that I want to look at is one will be a security focused messenger, right? Something like signal or simplex, right? I used to mention Telegram. Um, and then I realized the threat model for Telegram is very different from that of Signal, where the guy who wrote Telegram publicly goes on record to say secure communication is only one of the things he's trying to do and he's trying to do many other things.
Um, unfortunately I didn't have the time yet to dig deep and I would love to contrast like Signal and Telegram because so many people in the cyber security community use Telegram. Um but um I didn't have the time yet. So um I'm stick sticking very specifically with signal right now and only this like small disclaimer um telegram might try to solve different things and not is not not exactly the same thing. All right. But the we will have the security focused messenger and uh an online event management platform as the other example to have like something more lightweight, right? All right.
And now we're just going to run through our four questions. Number one, what are we working on if we talk about the security focused messenger, right? Remember, what are we working on um is trying to document and put down the security promises and the context of our users and our software, right? And if you try to put this and again disclaimer I am not a signal developer. So I I don't know if this is what they did to come up with their idea for security. Um it is just what if if I were the guy who was asked to do threat modeling for signal. Um this is where I
would start right. [snorts] Um, and one of the things I think becomes really clear when you look at it of what Signal is trying to do is create a communications app that facilitates secure communication in hostile environments. If you let that sink for a moment, that means the potential security stakes for an app like this are really high. Right? So we are talking about politically exposed people like political dissident or investigative journalists. So people who are doing
things that people who are in power in a certain geographical area don't necessarily like. And these people should be able to use this app to communicate without fear of their life. Right? That is that is what we're talking about. And if you look at events around the world, global geopolitical events like the Arab Spring or like the Hong Kong protests, free and open-source software in communications app, communication apps of that kind were very heavily used at that time to exactly facilitate
organization, communication and um coordination of activities that they're doing. Right? If you look at information about it's it's data a bit, right? But if you look at what Snowden did and and the things he used and how he operated, the the guy who did the big leaks of like what the US government is doing to snoop on US citizens, right? He used a lot of security focused free software projects, right? So again, politically exposed people in hostile environments. So we're talking about, you know, people use our app
or their app believing that if they use it, they will not go to jail for doing things that is basically what we assume human rights, right? So you know not not a small thing. Now on the other hand of the spectrum if we look at something like the online event management platform right something like um pre-Talks doesn't fit the bill exactly that um that cost cup is using because they don't use it to sell the tickets. Um a lot of these platforms have like calls for participation and attendees and
ticket sales allin-one, right? So if you have that um something like that in mind, [clears throat] we are talking about a platform for event organizers to manage events, sell tickets and communicate to attendees efficiently. So, right off the bat, just by making stuff like that clear, I hope it's um obvious how it makes a difference if we're talking about something like signal or if we're talking about something like the online event management platform, right? So, the stakes are vastly
different. Um doesn't mean the something like the event management platform doesn't need to do anything about security. Right? We are talking about event organizers that want to sell tickets securely. Um they are running events that might be really useful and really convenient um and good for the community or for their business. They want to recuperate their costs by selling tickets. That makes sense. Um we are also talking about stuff like private data of the attendees, right? I I as an attendee if I sign up for a conference and maybe even give you payment data to to buy for a ticket I want to have some hope that my data is
not going to end up in some uh data breach two weeks from today right so it's not by no means um does this mean we we can get away to not give a iota about anything security in the online event management platform, but at the same time, we're not talking about people potentially going to jail and being tortured, right? So, um, and having those things written down, made clear, and communicated to your development team can already go a long way for everybody to know what are we talking about and why why do we care about security the way we care about security?
what could go wrong. Um this is the second major part um that I'm going to spend on the second question and this is where I want to introduce some vocabulary right on a very high level um very basically if we talk about a potential threat scenario. So we we try to sit down and think what could be a situation where something goes wrong with our app, right? In the case of the secure um communications app, we could think of something like this. An oppressive regime monitors all internet communication to identify political
dissident based on messages they exchange. On a very very high level, this is what we call a um threat scenario that follows a certain structure that you will see whenever you come up with threat scenarios, right? So usually again in cyber security we take this adversarial view. So we have a person actively trying to do something bad which we usually call the threat actor.
So in this case we have this very generic again very high level oppressive regime that is trying to do something. What are they trying to do? Usually they're trying to use a certain vulnerability to do something bad. Right. Again, in this example, we're super high level. If you know how the internet works, if you know how network works, you know that somebody who is in charge of a large chunk of the network infrastructure, uh big telecom providers or government organizations that control the laws that
govern the telecom operators, um it's not that hard for them to just look at all the traffic that is going around and understand a lot of the things that are being sent back and forth on the internet. Right? So on the very high level, we have something that is just a design flaw vulnerability of a network um and how uh social infrastructure or or our public infrastructure is being run. Right? Again, if you if you keep doing this, if you get more technical, a vulnerability could be more concrete towards your app. But one thing that I think is also uh important to keep in mind for the purpose of
threat modeling, you're not doing a vulnerability assessment at a point in time, right? The threat model, at least how I use the tool is more, as I've talked about, communicating the stakes and um understanding on a higher level what generally can go wrong and what you can do about it. So it's much more about certain design decisions that you take, architectural decisions that you take and not we have in this line of code this SQL injection and we need to fix it. Right? That is the um scope of a vulnerability assessment and that is something similar but not the same as threat modeling.
And again talking a little bit about uh vocabulary at this level. We're also not talking about the risk assessment because we're not talking about how likely is someone to do this. Right? At this point again, we're trying to guide our design decisions. So, we are always assuming eventually someone might try this and then what is our software doing to defend against it, right?
So um but still on a high level we have the threat actor and they are abusing some kind of weakness or vulnerability to cause a certain impact. Right? So these are the three building blocks. It's always threat actor abuses ability to cause impact. If you follow this model, um you should have a fairly easy time to come up with things that could go wrong for your software. Um it's a bit of a um point of preference if you stop of the point of view of your app or if you stop
at like what happens to your users, right? We could have phrased this threat scenario to say um identify political dissident and the the as a consequence the user has to fear for their life, right? Um there is no really right or wrong way. It's just the point being don't get too hung up on the correct on the particular phrases or how um how this is worded or or stuff like that, right? It's much more about um thinking about these kinds of things to again communicate and guide your design decisions.
Now, um messenger, right? Um big big bad thing. Um what could go wrong when we think about the online event management platform? And here in this situation, we could come up with something like this, right? A malicious user abuses a vulnerability. Again, super high level um in our software to generate free tickets for a paid event, right? This is about one of the worst things that you could think of when you talk of a platform that is designed to um help somebody recuperate costs for running events.
But um it could also be something like this. A malicious attendee abuses a vulnerability in our software to access private information about the other attendees. Right? So again um taking the first steps and then the idea is as you iterate you can drill more and more down um what exactly is the nature of the thing that you're building? What are the the stakes? What could go wrong for your users? What are the promises that you're doing? And what can we do about it? Right? And now this is where we really start to talk
about what are the counter measures, what are the things that we're going to do in our software um to make sure the chances of those threat scenarios implementing are really low. again right uh I only have about 10 minutes left so on a very high level signal will implement secure and authenticated end toend encryption between all users to protect them okay that is their the most basic it's doesn't it sounds super simple when I say the most basic thing but of like that is one of their core promises right the core things that they're doing
but um it also highlights Um, it could also highlight other stuff, right? Like our messenger will be easy to use for the general public, so adoption is widespread and usage is not in itself suspicious. And that is something um that we often forget about when we talk about um security focused things that are supposed to be used in stuff like privacy or like civil un um civil disobedience and stuff like that, right? Um imagine if only people who were had their life depend on
something like signal use signal, right? That means to find someone who might be suspicious to you as the oppressive regime, you just have to look at everybody using signal, right? So if you ever ask yourself why why why why are they introducing another sticker pack and GIF reactions into this secure messenger? Why are they not doing security things or more security things? Right? That is exactly why right you need to be in this game approachable and appeal to the general populace so that ideally everybody is using secure communications app and not
only people who you know have their safety depend on secure communications. How about the online event management platform right? Um and again only giving examples at this point. You need to do much more um for something like signal and also for the event management platform to actually then end up in the end goal. But I hope um I can give you enough of a starting point to get the ball rolling.
When we talk about the online event management platform um again high level right we will follow secure design best practices. So try to use modern libraries um try to follow good coding practices and our platform will undergo regular vulnerability assessments. Right? So again we have to be conscious right now at this stage we're not talking about finding and fixing vulnerabilities. We're talking about big design decisions. And then finally did we do a good job? Well, for my examples right here, it's really easy.
Um, this has been highle examples. Of course, at this point, for like none of this is a good enough job for either of those two examples to call it a day. Um, but really what you do now is um you go back, right? You go back to the first question. You now know you have your initial stakes. You go to what are we building? Did we think of any everything? Did we did we identify either the most critical users, so the highest stakes, or is there something else we can think of that we didn't think of now? Are there other things that could go wrong? Are there other things we need to or can do about it?
And eventually you will end up with something where you can say, okay, this is our threat model. This is how we will guide our security activities in this project to make sure we live up to the level of security we want to live up. And then you're just about done. So finally, um the last thing I want to point out is there are a few free software tools that can help you do this. Um, personally to get started, I'm a big fan of the good old pen and paper or whiteboard, right? So, the only thing you really need to get started is get a bunch of smart people like you certainly are cuz
all of you are here at Costco talking about open source. So, you know, um, you're already pretty bright apparently. um take a whiteboard, start sketching out your software and start having the conversation. Which is why the first two things on this list are like online collaborative whiteboards, right? So if you are in a distributed team and an online open source community, something like it I'm I'm I don't even know anymore if they're diagrams.net or draw io now. So I just have it like this. Um, right. I still call it draw.io.
Um, it's an online whiteboard diagram drawing platform or Excalibur. Again, um, they have hosted versions. All your data is stored in local storage in your browser. Both of those are open source projects that you can host yourself if you're like a bigger organization or corporation. Really useful tools to get started. Um the rest are more specific threat modeling tools. One of them is pretty cool is PITM.
Um that is a Python domain specific language and tooling to put your threat model into code. And that is great because coders love code, right? So, anything that can put stuff you want to communicate to developers into plain text and check it into a git repository is great. Um, I wouldn't get like I wouldn't immediately jump to something like PTM. I would always recommend to do the whiteboard first to get started and think about the whole things. Um, but once you have an understanding and an idea of what your threat model is and how you want to um
or how you want to drill down and are more drilling down, this project could be something that can be interesting for you um to have it live more closer to where your software lives and where your developers work. And then the last two things are um UI tools that are specifically designed to help you create a threat model, right? Um OASP I want to mention already because it's a great project. If you never heard of the open web application security project, you should totally check them out. They do have a threat modeling cookbook, I think they call it, as well, right? where you will
find more information in the style of what I said today. And they also have something called threat dragon um which can help you visualize both your software architecture and your threat models. Um the I'm hesitating a little bit at this point because for me personally uh I'm not a big fan of tools specifically for threat modeling because especially as techies we have to have a tendency to get lost in the tool and talk more about the tool and how the tool does it than the like the thing
that we're trying to do. um but they can be again helpful and useful to get you started and to guide you through the process. So if you are a person um that likes to have visual aids and likes to have clickable things to help you go through the process, it might be something that works for you. Um and finally, Thragile. Again, they are um a UI tool um that are built more with a agile approach in mind. Um it again it can it can be something that can be helpful to you. All of those are
free software, open source tools. Um all of those you can run yourself and take a look at um and just find online. And with that, I'm done with what I wanted to talk about today. Um, I think we do have a little bit of time for questions at this point. Otherwise, you can always also find me at the FSF booth down the hall and, you know, snap my contact information signal um, as the best. You may be able to tell from the way how it's almost twice the side of everything else, but I also am available on other channels if uh signal is not for you. Thank you everybody.
>> Which one do you think is most insecure? >> Oh. Oh, I think that's not a it's not a that wouldn't be a fair question because you you are comparing apples to suspension bridges a little bit, right? Cuz uh Signal and Line are mostly messengers. I mean, Line is also everything, right? And then LinkedIn and and and Instagram are very clearly social media. Um, do I think signal is more secure than line overall? Obviously. Um, but you know, I think it's I think obviously I think all
of them are somewhat okay for to use with my personal threat model in mind. >> Yeah, that's right. the the 19 thing. So the the hot new is simplex simplex. Um the thing is I haven't found I one person showed it to me at the Foss Asia Summit and that is the only other person I know that runs Simplex. So um I don't have anybody to talk to on Simplex. A lot of people already use Signal. So you know it has this network effect. So that's really nice.
>> Simplex. Yes. >> Simplex. Yes. Let me We have a whiteboard, right? Chat. Yes, we have a So they're like next level. They don't even have usernames, right? And it's all peer-to-peer. I have and my entire knowledge about Simplex is based on their marketing material. So you know, [laughter] don't don't don't think I've looked at uh any uh actual I I didn't look into
their claims, right? But, you know, it's kind of they seem kind of cool. So, and I'm plugging Signal a lot. So, it's it's good to have some competition out there. >> Any other questions? >> Okay. I think they may be very shy to >> Cool. Good. >> They would like to discuss with you in private. >> Absolutely. If you want to discuss in private, um, hit me up on Signal. Um, if you want to discuss in semi-private, anything else is also good. Right now, >> you have your post.
>> Yes. >> 309 just down the hall to the left. Thank you everybody. It was a pleasure to be here and I hope to talk to a lot of you soon. Bye.
Related talks
- 釣魚體驗平台 Unphishable :識破 Web3 詐騙陷阱!
- Security by obscurity is dead: How LLMs can take over hardware
- The Current Landscape of Web3 Security, Krum Pashov, Pashov Audit Group | ETHSofia 2025
- 重入陷阱:破解智能合約不變性迷思
- Zero to Smart Contract Auditor in 1 Month
- DeFi Security 101 2025 - Find Bugs with Stateful Fuzzing, Alex the Entreprenerd, Recon
- Securing Ethereum Pectra before mainnet - Zigtur | Spearbit & Cantina
- Solana: The Bugs You're Missing | DeFi Security Summit 2025
- Will Quantum End "Your Keys, Your Coins"?
