Hi everyone, my name is Gilmar Esteves and my partner is Filipe Pires. Now, we make the presentation about the Orsec Brazilian SaaS Capital Award. I'm a VP of security engineering at Zapp Innovation, but also I'm a technical holy history in my whole life. I'm not a Bush's vice president and me and Filipe Pires are advocates of the open source project Orsec. Filipe? Yes, thank you, Gilmar. So, my name is Filipe Pires, I'm a security researcher at Sapporo. Sapporo is a company from Switzerland, it's a top company and I'm responsible for creating different attack modules for this specifically organization and I'm advocating not only Orsec, but many different open source projects because I really believe that and I like that. And Orsec is an awesome project, it started in Brazil, by the way, and we would like to present to you more about this project and would like to invite you to collaborate with us. Yes, and actually we love the open source project because the open source helps us. We want to have the community and help to improve the growth, the cybersecurity mindset in a small company. We know that a lot of small companies don't have a budget for cybersecurity and the open source, it's a way to improve and grow for your cybersecurity environment. About the Orsec, Orsec is a source code analysis tool. And now also know as tech tools, And now also know as tech tools, static application security testing tools and helping the source code or computer version to offer the code to help find the secret flaws. The OroSec can be adapted into your EGE. Such tools can help detect the issues during the software development. Such tools' feedback can save time to effort, especially when compared to finding vulnerability later in the development cycle. Normally we use the OroSec before the code production in the pipeline in the EGE. The string features or the string part about the SUST it scales well. It's possible to run a lot for a lots of PODS and make a lot of analyzes in different language before the production is not a complete code normally it's a raw code and it's possible to identify the the buffers overflow skl injection and normally the ciphers some codes hard codes of a password and login normally the output help developers to understand the highlight the problematic codes by file name location line number affect the code difficult to automate search to many types of security vulnerabilities the sas code needs to a lot of coders under the project to build uh new forms or a new code to identify the new vulnerabilities or a new form of vulnerabilities for example authentication problems or business problems is so hard to identify in security use of cryptography because we know but um the team developed a different cryptography model for example noise noise control or noise framework it's so difficult to understand the cryptograph and help the developer um make the make better codes normally sas tools are limited it's only sas only static not dynamic and not one time but in the future i believe the auras uh in growth for a a dynamic analysis way oros or was born uh of a need to run assassin more modern language normally the big players in the market um running in the established language and the ruby python cuddling and a new a new language is not possible to make the sas analysis three years ago when we started the orsec project we managed to create a product for the community and today's up support the open source solution and i'm a sponsor official sponsor of the orsec some features about the orsec is very important analyze simultaneous 18 language with 20 different security tools to increase accuracy search for the historical git by secrets and other content exposed and clarify that your analysis can be fully configured configurable um aware of a cli and a web manager or pipeline and now philippe make a presentation a live coding with us yeah thank you thank you so let me share my screen here and uh one second please everyone so i will share my screen here to explain in more technically so what about this auto sexo i think you can see my screen here so here is the web page from our secr sec doatorio this is the website and basically i have here my github filipiers86 you have a specific repository here below called orsec demo so i'm using this basically this folder in this demonstration here so you can find me here if you'd like to test yourself okay so let's return here to the main page so here you can see more information you so we gonna return here okay have here the github from our saki and here the documentations and not only that but here you have the forum so basically it's the place that you can find in the community and the or sec team answered for your question your doubts okay and you just click here in documentation and we can see here in another tab and i will share here how you can install it for it's very simple like this so i click here in cli and after that installation and i'm we have it three ways or actually not three but four ways to install locally manually installed by docker and using pipeline it has umar measurements right so we don't have a time to explain all those details but i will try to explain here on a simple way using for example by curl using here in my virtual machine so i have here a simple uh folders as i mentioned with you in the beginning so i'm going to show you so specifically folder that i have here some codes vulnerable so basically i will pass here this is specifically line of code and i will using curl to call this binary and set here the bash to install the latest version okay so i click enter here and after that you see the installation of the latest version and after that i will download the binary i need to set here the password because i don't have a privilege to users it's important for the security stuff by the way the last version as you can see here and we have installed the banner not only that but we moved to the specifically local binary place okay so i can check here for a sec philip yeah let's let's clarify this part because we explain a local installation local installation is not remote not web or docker we use the mac and linux command with a local yeah you can use it here not exactly good you can use in mac or linux you can download using locally by windows and you have here other version to use it manually so and not only in this way but you can see here other um in other ways to install like a docker image so it's another possibility but if you can see here we can call docker and you can install uh yourself in your docker in your containing environment actually okay it's a different way so i installed basically locally in my virtual machine because of that i download these uh different folders as you can see here's okay to test so i install here or sec and after that i can set some comments so basically i if i don't know how i can using here i can set help to understand how whatever tools work but basically you can see here some specifically for explanation in the beginning what is exactly our sec and flags that you can use and comments so basically we have any specifically comments to use like a completion generate help start inversion so version is basically the version to generate to see specifically uh configurations completion is a specifically scripted to see specifically uh configurations of the shell and they start to execute itself the or sec so basically or sec is start is the comment to execute and after that you can using different flags so let me put in here dash h or dash dash help is the same to see difference common so just a simple command to explain like for example um dash h to help and other interesting comment is dash o for example because if you are thinking about sonar qb for example it's another project to looking for a quality quality uh tools but they haven't specifically uh variations about security but our sec is created by the security team in this case the achievement is for more a different program language and not only that but can using both tools together because of that you can set here the dash o to set up this specifically output format to analyze and to send those informations to directly to the um as from our cube it's very interesting to use not only that but you can set for example dash a dash e for example if you if you do like a to using uh for a pipeline okay so to see them specifically if your code is vulnerable so if you receive this specifically uh return it to the code for example if the auto stack finds some vulnerability so you receive this code one and you need to set this dash a okay so nice so let me execute our sec itself here in my local machine i could put in for example uh dash p is a path if you would like to set in a specifically uh repository on specifically project but in this case i will run in this specific repository as you can see here this is the path okay that i will execute our sec so can i proceed and yes and that's it okay click enter and that's it i will starting the scanning code another possibility to using our sec during this uh scan here i will show you is to using on see a lot and on ide or vs code has um your more mentioned so let me go to the root here my folder home or and or i think it's demo yeah demo and our sec yeah i will show here it's code i will open here my ps code to you and then let's see here okay so another possibility is to using our sec has an extension like a plugin okay so basically you go to here in next station right and you can put in here or sec simple like this and if you see we have here the specific extension to using here so basically you need to install and that's it you can use in here like as you can see here okay or sec it's here in my ps code and after that i have here the same project the same folders just click in here and you can click in and start scanning the same action that you do that i'm doing actually in the cli here as you can see and i have a return here in the result i will execute here on id on vs code okay so we're starting here or sec started to analyze our code so if you see here or sec is working now okay so let me hit turn here just to explain you about this semi specifically results about our sec so if you see here many results about this vulnerable code and different projects that i have here so if you see here for example let me explain two simple things basically this one of those uh line of codes vulnerable for example the language is javascript severity is high take a look at this very interesting line and column that you can find the code so if you're a developer so it's very interesting because it now you know where is the that you can find the vulnerability and here is very interesting for my perspective because you have the security tools working to identify that so as you can see here is our sec engine not only that but you can if you want you can create this specifically engine if you have a specifically programming language you can you know create a pull request you can working for this specifically or sec engine for my perspective it's very very interesting so here is another interesting point about the confidence so how it's uh it's based on those three or four pillars of the cyber security information and here is the file exactly file that we can find the vulnerability in this case if you see here this is the main project remember that so home thor demo and our sec demo this is the main project and here you can see many folders that the tools analyzing all those codes you have inside of your project okay and here is the code that you have inside of your project okay and here as you can see the type is vulnerability and not only that but if you are a developer and if you don't know how the security works you have here the information about a specifically cwe and it means the common weakness enumeration so a specific number of the vulnerability uh related to specifically this flow or this vulnerability okay so you can click here basically copying or open linking in the web page and you can read more about it if you want to know more about it about that so if you return it here in our ide you can see here you can find this similar result right actually not similar but the same so if you see here so javascript it's another vulnerability using orsec engine and if you see here here is the line vulnerable in this code so if you're a developer again you can manage it you can improve that you can you know make this uh update of your code not only that but if you see here take a look other interesting thing so if you see here it's the same case in a cli you can see here the go sec as you can see here yeah so it's another engine so because of that it's a a different framework exactly take a look this not only or sec engine but you have more than one engine inside of that because all this is so fantastic tools because you have many engines inside of the same plus platform and you can see these informations because of that it's pretty pretty cool nice so basically is this yes go go go please uh in the beginning uh we developed the orsec for a security tool but during the journey uh we discovered it's more important and the other guys developer a lot of engine it's very important and so beautiful in giants and we create a composable to plug and play a lot of engines and for example go sec or the sonar cube and another one for example now we develop anything anything about the code custodian for the cloud cloud uh it's not branch but cloud surface the text and response the cloud surface but it's more important that the ores now it's a manager of a lot of engines a lot of forms to in the file in your repository in your environment about the security flags exactly exactly good point kmr because it's that's the the point because we have a different program language and so we need to improve that so and you can help us to improve that about this specifically to create more engines from orsec and the last but not important not less important so as you can see here we have a possibility to working in a cicd pipeline okay so if you work for example uh as uh using github actions for example so if you see here basically let me share with you here so you can specifically you you could set for example the security pipeline name uh using you know and executing specifically job and to run basically they'll run automatically that you you set is the same command that i use in cli if you remember calling or sec dash p is a path remember that about your project okay and after that dash h remember when i explain about this specific flag so you put here in this case true so if your code is vulnerable you create a specifically a block gating or specifically gating to block to analyze your code before to protein the production so not only github actions but you can use it for example aws code jenkins and azure devops pipeline and the web application has uh gilmar explained in the beginning so it's very interesting for uh to manage it for example different vulnerabilities and difference for different teams for example you have different teams squads trips and depend on name you no matter the name that you use but you can see for example for each developer what kind of programming language is more vulnerable which is more vulnerable and you can manage it for example so you can set this in a different way you can see here for example for total developers repositories and all vulnerabilities programming language as i mentioned it it's very very nice for management in my opinion in my opinion the web is a perfect tool for the ctos and scissors because we have a lot of information and after it's possible to start a better threat modeling and understand you need to make some training with your devs or need change the language change the version because it's possible we use the version and the version is compromised it's very important to analyze the numbers understand uh your case and take the decision the better decision it's a a a tool for help your team exactly i completely agree and and there's some uh consulting services that i'm i've been working for the last years and i'm using this specifically feature for management all those things to specifically to make a training to the developers it's very useful very very useful so basically i think is this so again so we have here at the github so if you want to you know go to github you know set your pull request so we work a lot in this project you know and for my side it's and that's it so if you have any questions you mar and the people we are here to answer you thank you guys thank you for your time thank you for the presentation thank you philip for the help and see you the next presentation bye bye guys see you bye bye you