Am I audible? You can hear me say, whoo! Awesome, you're an awesome audience. So, yes, as you heard, my name is Joy Lynn Kirui. Way to start a speech, my mouth just fell. So, how many of you guys are expecting nuggets to be eaten? Oh, my. I'll organize with the organizers, yeah? Yes. Okay, so, my name is Joy Lynn Kirui. And I'm sure you're wondering, so, what are we going to talk about? So, bolstering the security fast mindset. So, maybe I'll just start off by introducing myself. So, first off, I'm a human, not a robot, definitely. On a day-to-day, I'm a Senior Cloud Security Advocate at Microsoft. And I do application security and DevSecOps. So, that's my job on a day-to-day. And apart from that, I am also a cybersecurity evangelist. I train developers. I do a lot of consulting as well. And mentoring. In Kenya, I have mentored, I think, more than 30 universities. Yes. And I also do, I don't know if you guys know of ADP List. ADP List is a platform for mentorship. So, if you're interested in cybersecurity as well, we have a couple of folks there who are ready to mentor as well. I'm also a farmer. I live in a farm in the Great Rift Valley in Kenya. How many of you guys know of Kenya? What do you guys know about Kenya? Yes. Safari. Uh-huh. Uh-huh. What else? What? We got what? Gong Hills. Nice. That must be a hiker. What else do you guys know about Kenya? No one? Elephants. Yes, we have plenty of them. We have plenty of lions. Plenty of all that. I'm also an adventurer. I can see. I see the other ones. You guys can see me paragliding over the, in Cape Town. I remember sending that pic to my mom and she got really scared. So, apart from that, these are just a couple of recognitions which, yeah, which I just put there. So, yes, Vanguard which is just a recognition from the young CISOs in Africa. Woman Hacker of the Year finalist, as well as top 50 women in cyber security in africa so i mainly do offensive security stuff and uh and i think so i can just say that during this whole session i'll just be sharing what i have learned um starting off a devsecops initiative and the learnings from my failures and some of the learnings from my successes as well so i don't know if you guys are all know what devsecops is how many of you guys know you just there how many if you raise your hand i'll ask you questions by the way so um we'll start off with a couple of cool stats so um you'll find more of these in the chat box and then we'll talk about the challenges you might face so we'll start off with a couple of cool stats so um you'll find most of the challenges you might face so um we'll start off with a couple of cool stats so um you'll find most of the elite software organizations they push code 200 times more frequently and they also have seven times fewer failures on deployments and also have eight times more likely to have integrated security if this is you kudos you also have two times more likely to have internal communities of practice and as well as a hundred times faster setup of a dev environment so this also results in four to five times higher revenue growth this way it's quite important for us to understand why integrating security in your development life cycle is quite important um so you'll find 52 percent of companies actually sacrifice cyber security for speed so one thing that uh was quite few prevalent um in our day-to-days that um i remember uh let me just give an example from the waterfall way of working from the way i have done cyber security in the past and uh working with developers so if any developer that i've worked with before and uh maybe they're watching i apologize for for being a showstopper sometimes so you'll find that um in the normal waterfall way of working um you find vulnerabilities and you generate a whole report of vulnerabilities and give to the developers they have no idea what this is this is the part of uh of of cyber security that we've been doing quite wrong we are pushing a lot of reporting to developers without even explaining to them what exactly they're actually trying to fix so what i'm going to talk about is how we can foster this and have a security fast mindset for developers as well as the operations teams we have 57 percent of ops teams who push back on security best practices i've i've seen scenarios whereby we are almost going to production and then you find a critical vulnerability in one of the packages and then they say that that particular if they upgrade the whole system would work especially for legacy systems how many of you guys and then now uh the business is expecting you to push um the deployment date to be the following day and then now because of the security vulnerability you have to have like two weeks of delay isn't it and then you see 44 percent of developers are not trained to code securely can you hear me yes it's above that so a lot of developers actually don't know how to score so i'll give you my example the way i dived into cyber security is i was a full-time software engineer and i got hacked so one time i was developing systems even being recognized in kenya in the newspaper for some of the systems that i was developing and i remember one time i was not keeping any security best practices at all when developing and then one time one of the systems was actually hacked so and then i was like how can i better secure how can i build better products so went up and just did a lot of googling and did a lot of research to find how to best do secure products and this is one place that i've seen there is very little resources for developers to learn how to code securely without overwhelming them with all these security jargons because in my best opinion it's very difficult for developers to learn how to code securely without overwhelming them so i'm going to say that for developers we should train them only what they need to learn by that i mean if you want them to fix a particular uh so i remember doing um developer trainings uh beforehand and i would have all these um oasps the oasps um top 10 vulnerabilities and presented to them remember i don't know if you guys have had like that presentation whereby we had a lot of you just sitting there and listening to all these vulnerabilities which is just like one hour and then you're like overwhelmed what is this person talking about so i in my understanding and in my opinion we should be talking to the developers only what they need to do to do their work securely and by that it's all about automation as well so we'll capture that as well so you find that code is direct proportionate to more technical debt and exposure the more you push code the more your chances of being exploited true you find that flaws in applications are consistently the number one attack vector for breaches so these are going to verizon i know according to the different statistics you find maybe you find different attack vectors but according to verizon application flaws are consistently the number one attack vector for breaches another great stat is you find that 80 to 90 percent of code in new applications actually come from open source true and how many of you guys actually know what is in that open source integration like this almost yeah so and this is where we have the problem uh whereby you're integrating all these open source libraries all these packages without even knowing what vulnerabilities is bringing into your code and we have that problem where we have 570 times more developers and security researchers true so um working with developers i would be working with like um let's say 150 developers and i would be working alone and you can imagine the level of commitment that you have to do when you're testing your systems and giving them reports and then they're pushing back and saying that this can't be done and you are just one person that's why we need to train and have security champions how many of you guys actually security champions like okay you're here so i'm expecting you all security champions yeah so um i'll give um from my experience how i went ahead and built um a dev secops adoption in a previous company and went ahead and also had security champions as well so one thing that i've seen most of us doing very wrongly is adopting too many toolings you see this tool you try and integrate it you see this tool you try and integrate it how many of us are guilty of that just one two okay three so um and without even trying to adopt or tweak those tools for your particular environment so you have to be very specific on what your environment needs what language are the developers needing using and what tools can actually solve your particular needs so this is where i say that you have to take a lot of time during your pocs during your proof of concepts just take time to understand is this tool actually fixing what i need to be fixed within your tool chain try and understand if this has uh false positives i remember once integrating this commercial tool and then it took more to troubleshoot the false positives than to actually fix those security vulnerabilities so you can imagine in that extent whereby um developers uh you're giving a report to the developers and then they're like um this is actually not true yes are they saying that this is actually um a false positive that's why we have to work to make sure that we tweak our uh our tools that you're integrating to make sure that there are less false positives so other sources of vulnerabilities within our code are unchecked dependencies which count for 80 to 90 percent of our code and then we also have employee error which has exposed access tokens and say unsafe code patterns and these have even seen guys even having like your api um tokens hard-coded you have um you have hard-coded passwords as well i have seen a lot of things um in applications when you're trying to reverse engineer them and it's just amazing and they've also damaged in exponentially greater if it's reaches in production because remember the cost of fixing a particular vulnerability is way higher when you are in production so this is where we have to talk about secure software development so in secure software development um developers want to know how they can best maximize developer uh velocity how can they be able to do their day-to-day job in an easy way and to do the best the way their work in the best way possible developers want to understand how can i eliminate developer complexity when you're there and integrating so many tools and making it so hard for developers to do their work by increasing complexity they can have a very high level of complexity they'll start seeing security as a showstopper as well. And we have to work collaboratively with developers to make sure that we are having a shared responsibility, a shared accountability. That's why we say security is everyone's responsibility. That's why we have to talk about secure software development as much as possible. And we also have to empower developers to contribute. I should say developers know whenever they are using improper functions. They know when they have done wrong code. They know when they have done... They're not using the best practices. So they are our first line of defense. That's why you have to take time to train them well, train them on the best tools that are actually easy for them to use, and to train them on how to actually fix those vulnerabilities. On the other hand, CISOs want tools that detect vulnerabilities and stop them as early as possible. They want to partner with developer teams as well to push systems as fast as possible. And they also want to have proactive hunting. By proactive hunting, we mean that whenever a vulnerability is released, your systems actually block them. So what can we do? This is where we talk about DevOps. What actually works? What actually works for developers as well as CISOs? That shared accountability between them. So this is where we have to have a secure development environment and embed security in the developer workflow. So throughout the development lifecycle, that's when we are talking about planning all the way until a system is in monitoring. We have to integrate security in every stage of the software development lifecycle. So... So... You guys have heard me say DevSecOps, DevSecOps. So I'm sure most of you know what this is. But I will just explain it. So DevSecOps is the evolution in the way development organizations approach security. So this is where we are trying to have a security-first mindset culture and automating security within every phase of the software development lifecycle. So one thing that we've been doing DevSecOps really wrong is really emphasizing on the tools. Well, we should be emphasizing on the culture. On the security-first mindset. So I have seen scenarios whereby there's a breach and then now we have to drill down to the developer who actually did... Who actually put that code or pushed that code. And then there would be consequences for that developer. You can imagine what kind of toxic environment that would be. So by having a security-first mindset and culture, we want to eliminate the blame game as much as possible. Every one of us is responsible for that particular product or system security. Okay? So this is where we talk about working together as developers, as the operations team, and as well as the security team. Working towards the greater good. So there are several... There are several benefits of deploying DevSecOps initiative within your organization. So these are the main three. So it reduces the remediation time by shifting security left. And you can integrate with the security with your existing tool chain. And lastly, you quickly identify new threat vectors. So as we mentioned even earlier, by shifting security left, you identify issues as early as possible. And you... You fix these vulnerabilities on the go. So one thing that I am quite keen on is developing for developers, whenever they are coding, even from their endpoint, you make sure that they have security integrated in their IDE. So by IDE, what tools do you guys use? I... Yeah? You say, Richard? Oh, I can hear. Yes? You use... Maybe you can just come and mention that. Which tools do you guys use? Which you've actually integrated in your IDE for security? Yeah. Yeah. This is only... Only... Yes? . Okay. . Yes. So... Yeah. So there's several tools that you can use. Even you install the extension like code QL as well as Snyk, whereby you train your developers just to... Yeah. ...to understand your code as well whenever you are coding, whenever they are coding, and identify the issues as they go. . So the importance of shifting security left. So we have 80% reduction of security incidents by extending security into development. And you also have 60 times the security cost is reduced whenever you fix the security as early as possible. So we have 62% of enterprises which actually do not integrate security into the development. development phase and I'm hoping we all change this that's why we are talking about shifting security left so whenever we have trying to deploy to deploy a DevSecOps adoption we also face certain challenges so we have the organization and team gaps so very many of us actually find that the operations team they work separately from the developers team and the security team also work separately so we try and we don't work together we don't have that kind of synergy so that's why we have to have like we have to be quite intentional about working together so even if it's having team launches if it's having team meetings we have to have these together we have to be quite intentional about that and as well as having the skills and knowledge gap is why we're trying to empower the developers by having even security Champions by security Champions we mean identifying those people who actually are curious about security so that's why I was mentioning like um within the different scores within the different development teams you identify there's only that one person who is very curious about security so you use that person and you empower them as much as possible with the relevant security tools uh tools as well as knowledge um so one thing that I did um when I developed a DevSecOps initiative in a previous company is you have a security Champion at least one or two within the team who are who actually have um some form of command or who can have influence on others so whenever they have their Sprint planning they can be able to even stop and say that no we shouldn't be doing that we should be doing this um on that you should reading this um the other way and then another way is um now training those developers as well as security Champions every so often you have to be very consistent so one thing that I did on this I um I trained them every month so you have to schedule an uh sync or training every single month to train them on security or secure development so one thing that you can also have with the security Champions job shadowing because most of them the one the way I've noticed is they want to pivot even to cyber security so that would be a good Avenue for them to join even your cyber security departments so um great place for you to just create an Avenue for them so we still have silos um as we mentioned earlier for the devs the SEC and the operations team so you'll see that the developers want to code and test and want to deploy the security guys want to assure security and compliance and the ops team wants to run everything to run reliably the precious teams want to make everything standard they want to maintain the environment while the developers want to push changes as much as possible and then security you want to enforce that everything is secure throughout so working in silos has been a very big issue in implementing DevSecOps initiative so one thing as well that we also have to really work on for developers is to change the way we do tracking so for developers we have to make sure that we are tracking these key things in the pipeline throughput we have to check for time to build so whenever you've integrated security within your DevOps pipeline so what is the change of the time to build was the change of the time to test was the change in the time to deploy as well as time to improve what are the failed and flaky automations as well and what are the escaped vulnerabilities per pipeline stage and what are the false positive rates because if you have false positive rates that are quite high because you'll be wasting a lot of time for the developers trying to fix issues that are actually not there so apart from having the pipeline throughput you also have to check for live site health so by live site health we are saying we're looking at three main things that we look at time to detect time to communicate and time to mitigate you have to make sure that you have these stats inbuilt within your environment to make sure that you have these health checks every so often so other things apart from the three main is the customer impact customer support metrics incident prevention items as well as SLA per customer and time to patch but the three main things that you have to check for is time to detect time to communicate time to communicate you also have to make sure that your developer pipelines are secure as much as possible so you have to adopt a centrally governed and secure engineering system so if you have decided that you're using this particular pipeline make sure that you do a lot of threat modeling as well to see what actually can go wrong within your particular adoption or pipeline so you also have to make sure that you are only trusted and approved authorized DevOps pipeline actors or within your environment so um this whenever you try to secure the DevOps pipelines you're trying to prevent build tampering because you can be able to you can imagine that you've built something secure and then someone goes in and pushes something that is insecure we're also trying to prevent unauthorized access to package repositories and production infrastructure as well so some of the other things that we look at well trying to secure the DevOps pipeline is your compilers what are your how are you actually signing um are you actually signing properly with validated signatures are you actually protecting your bills and are you verifying your bills to be actually secure are you always do checking your build machines and infrastructure um this is where we look at the infrastructure as code we also look at Devops services uh whereby we make sure that the um managed identities and sensitive tenants are in isolation we look at compilers and user processes so we have to make sure that they are always isolated and locked down in environments as well you also have to make sure that your software on build machines are kept are signed properly with validated signatures so this as well will go in to prevent prevent compromised compilers and build machines and as well as compromised dependencies so you can just take a moment even just to grab that and make sure that your devops pipelines are as secure as possible um another thing that you have to make sure is you hadn't pipeline access as much as possible um because this will prevent compromised credentials and malicious insiders so um therefore you're doing a review of your five fine access you have to make sure that you're using um proper device policies like you can integrate to add as well as other device policies and make sure that all operations are geared to least privileged principles if you don't require something you shouldn't have that right make sure that you have the least privilege as much as possible make sure that if someone left they shouldn't have access and if someone has a lot more privileges you should be able to revoke them you also have to make sure that you have a multi-factor authentication within your pipeline as well to make sure that it's secure you also have to ensure that you enable endpoint protection um for all your work work workstations and allow only registered devices um throughout your adoption as well you also have to make sure that you're checking for injection um if if there's any proof or any evidence of tampering within your pipeline so that one you have to make sure during your monitoring as well so this is an interesting part where we check for security within your development life cycle so development life cycle we're talking about now from all the way from pre-commit to operation and monitoring so in your pre-commit the key of security that you have to integrate is threat modeling threat modeling you're trying to see what avenues can be used to get into your system what avenue can be used to get into your infrastructure you're trying to try you're trying to see what a black hat would actually use the threat actors that they would use um to get into your system and you're also doing ide security plugin these were mentioned that there are several security uh extensions that you can use to integrate um in your ide and get security whenever you're coding you also have pre-commit hooks so that before you even push your code um to your repository it it prevents you if it gets something like secrets within your code you also have secure coding standards so one thing that i've seen us doing wrong is pushing or giving developers a whole list of a whole excel showing best practices and showing telling them that you should adhere to this the right way to do it is to train them on actually how to use these automated security tools and how to address those issues another key thing to do is to do peer review you have to make sure that you have someone else within your team who is able to review your code so during the commit we are doing static code analysis by static code analysis we're crawling through your code check for vulnerabilities uh we also have security unit tests if that particular check is actually passing they're checking for dependencies management as well as credential scanning so we'll look at a couple of tools that you can use to do during your commit stage as well so we have the next stage for deploy so here we're looking at infrastructure as code what tools can you use to make sure that your infrastructure is as secure as possible also looking at dynamic security scanning uh we're looking making sure that your cloud configuration checks are secure and your security acceptance tests are are met and the next part is looking at operating and monitoring this where you're making sure that you have continuous monitoring integrating maybe through a sim doing threat intelligence and as well as blameless post-mortem mortems so by blaming sports patterns is in case of a brief no one is blamed so you learn from a particular incident response so there are three things for securing the developer workflow make sure that you have met these three so you have to deploy a developer fast tooling so a developer fast tooling is whereby is one that they can actually easily integrate and that will actually work for them and you have native and built-in security capabilities so these toolings should have security capabilities so at least they can be able to embrace them instead of always integrating new tooling and training them on new tools and making it very complex for them the third is automation making sure that you've automated all these processes within your pipeline and making it easier for them to identify the vulnerabilities and fix them so remember i mentioned for the commits we check for secure dependencies so this is where we look at open source libraries as well as other third-party dependencies that you are using within your code we mentioned that 80 to 90 percent of your code is actually third-party or open source so in here we have several tools that i personally use we have dependable which actually checks for all these dependencies and gives you an accurate release of the dependencies and the vulnerabilities we have open source tools that are there that you can use some of them that i personally use are safety oas dependency check we also have retired js we also have sneak npm audit audit js white source bolt dot net cli we also have local php security checker chelsea we also have higher security checker on our screen and then we have a bunch of other tools that we have very many so what i usually do if you're interested in playing around with these tools we have several vulnerable applications so you have like web go to if you are a java developer you can go in and play with webgoat and deploy them and just try to work around with these particular vulnerabilities and see how they work i hope time is not okay I have to make sure that you have to check for dependencies because remember, as you said, 80% to 90% of breaches are in your dependencies. We also have this OpenSSF scorecard, which you can use to get all these open source vulnerabilities. So it prevents dependency hijacking as well as dependency confusion. So go in and just search for OpenSSF scorecard and play around with it because it has been contributed widely in the industry and will give you a wide range of the vulnerabilities within your open source. So just, yeah, I can just take some time just to grab that. And so apart from dependencies, we also have to run static and dynamic analysis. So by static analysis, we're looking at your code to make sure that it has no, no vulnerability that gives you vulnerabilities without actually running the code. So it just crawls through your code. And then for dynamic analysis, this is an application that's already running, so it crawls through runtime and just gives you the security vulnerabilities which you can be able to address. So some of the tools that I'd recommend for SaaS are stuff like CodeQL as well, Semgrep, Bandit, GoSec. It depends with the kind of language that you're using. Most of these tools, you have to know which one actually meets your requirements. We'll have, we have a whole list of tools there. And one thing that I like, also OWASP has several of these tools published in their site, which you can go in and play around with and see which one actually best works for your environment. So for DAST, some of the tools that I've worked with is OWASP Zap. We also have Nikto, Babsuit, we have very many tools, which can help you in the dynamic analysis as well. So one thing that you always have to check for is hard-coded credentials. So within hard-coded credentials, some of the tools that I have worked with as well is GitHub Advanced Security, TruffleHog, DetectSecrets, Talisman, depending as well with the kind of programming language that you're using. Go in and check which one best works for you. So to prevent secrets, from leaving the development machines and to detect previously leaked secrets. So one thing that I've seen, and I don't know if I should say this, but yes, you have detected your hard-coded secrets, and then you go in to GitHub, and then you create a merge request and say that this one, I will call it remove passwords. So if you just go in and you find, just Google that remove password, you'll find a whole list of stuff that shouldn't actually be linked. And you should probably just go in and remove that as well. So yes, we've mentioned a whole list of things. We've mentioned about security champions and how to actually build them and to maintain them as well, and how to deploy security within your software development lifecycle. So I'm going to end off with this slide. So once you have deployed a security fast mindset within your development lifecycle, you will definitely have happier customers. Who doesn't want happier customers? You also have happier developers because you won't have that back and forth between you and the security folks, and you'll fix security vulnerabilities as soon as possible. You'll be able to ship code faster. So you'll have 30 to 50 times faster deployments. Hence, you'll make the big guys happier, and you'll have 200 to 400 times shorter lead times as well as 20 times more features that customers care about being pushed. So with that, I think I will leave it to you just for any Q&As in terms of DevSecOps. So with the implementation of DevSecOps and all of these tools, do you find it difficult to scale if you have hundreds to thousands of apps that you need to do this versus a smaller environment? Is it difficult to scale? Is it difficult to scale? Yes. So yes, it can be difficult to scale because I've seen scenarios whereby you are actually adopting a tool that is actually not scalable. So by that, I mean, you'll find that you'll use a dust tool, which actually takes around 15 minutes to scan up one asset. That's quite definitely not scalable. That's why you have to be quite intentional about which tool you're actually deploying and if it actually works for you, but if it's actually scalable. I'm curious if you can speak to the SaaS tools and speak to it at an expert level. What do they do? What types of vulnerabilities do they typically find? And how do you deal with the noisiness and the false positives that can come out of SaaS tools? So extremely interested in just talking about SaaS tools generally and then more specifically. Okay. So what SaaS tools does, so it's a security application, static application. Security testing. So it crawls through your code and such as for maybe functions that are insecure or it even takes for your code like for queries that are very vulnerable to something like SQL injection. So it does that static through fuzzing. Yes. So one thing that I have seen so for this particular area is So what is the kind of question? So yes, for SaaS tools. How do you deal with some of the false positives that may come out of the tool? Yes. So how do you deal with false positives that comes out of the tools? It's because you have to do most of the false positives because you've actually taken the tool as is. So you also have to do a DevSecOps maturity model within. Your whole initiative. You also have to do what we call. So you have to do a lot of tweaking of that particular tool to make sure you remove the false positives because when you use the tool as is definitely you'll get very many false positives in most tools as from my experience. So we also have several models or maturity of DevSecOps. So you have maturity level one to all the maturity level. Four. So the more you mature the more the less the false positives. What are some of the most prevalent findings that you would encourage people to address that come out of these SaaS tools? Okay. So some of the vulnerabilities that I have seen especially from SaaS is in some cases whereby they're not using the best practices. They're using insecure functions. Which are probably vulnerable to the OS top 10. So that one will probably be captured within your SaaS scans as well. Insecure deserialization. That one can be captured within your SaaS scan as well. Even SQL injection can be easily captured using some stuff like CodeQL, Semgrep as well. Yeah. I hope that answers. Yeah. So I happen to be one of those security curious developers that you alluded to earlier in your conversation. So so far our code base is built in Go and I think on your slide you mentioned, oh, put Go second there. So we've already got that set up and for the curious developer like me, what more can I do to help take DevSecOps to the new level? Because our code base is interactive. We're interacting with a big legacy Java database, Java code base as well. So there's quite a bit to work through. So what can I be pushing for in addition to GoSec? So what can you be pushing for? So it depends also because that one would just be looking at your application security only. Remember, you still need an environment whereby you're deploying it too. So you'll be looking at infrastructure as code as well. So those are some of the stuff that you have to push for. Making sure that your infrastructure is secure, compliance as code, making sure that your environment remains compliant. That's why we talk about stuff like Ansible, just to make sure that you are capturing the correct checks. We're also looking at, yeah, so the important stuff. You're looking at software composition analysis, SAST, crawling through your code, DAST, make sure that you're regularly checking, doing regular scans. At least once a week on running applications as well. And making sure that, so one thing that I do not actually recommend is to do brute forcing attacks on existing systems. Or maybe you have it on a different environment, have it deployed on a different environment where you're regularly scanning it. But don't run it against your public or your public-facing environments because you'll probably bring down the system. So you have to have an environment just for that. And test and use systems. Oh, so just like how you have a dev, a QA, and a staging in a proud environment, make another one for security and testing and have at it there. Yes. Yeah. Any last question?