- Podcasts
- CodingCat.dev Podcast
- Code with CodingCat.dev: Secure Coding - Beyond the Surface with Snyk
Code with CodingCat.dev: Secure Coding - Beyond the Surface with Snyk
CodingCat.dev Podcast
- June 30, 2024
- 1 h 24 min
- Season 2, episode 5
About this episodehttps://codingcat.dev/podcast/secure-coding-beyond-the-surface-with-snyk
Transcript
From the publisherThis transcript comes from the podcast’s own feed, shown as the publisher wrote it.
Code with CodingCat.dev: Secure Coding - Beyond the Surface with Snyk
OK, well, one, thanks for having me and it's great to see you all. And that intro was fantastic, by the way. I was kind of bobbing my head. With that, sometimes it's a little overpowering. I always get nervous. No, I enjoyed it. I mean, at least for me. So I don't know, for whatever that's worth. So yeah, I started at Disney to start my career. I was very fortunate for that.
Where do I begin with that? How do I, how did I start there? Well, I knew. So I'm originally from New York and I actually went to college for a year there first and just didn't like it 'cause I was basically still living at home and I just didn't feel like I was getting the college experience, if you will, as a young kid just out of high school. And my, my now wife and I were like, oh, well, there, there's this school down in Florida that has a great engineering program. And then like for her degree, they had a great school there too.
And how I got that was through an internship program. I went to one of the internship fairs at the school I, I attended. I didn't think I was going to get it. Actually. I had done like an in person little like informal thing at the at the fair that I thought was like OK, but I didn't feel really great about and then set up like a phone interview later, later on from that. Actually it was while I was at home back home in New York. I got the call and and that interview I thought I bombed but but somehow it worked out and I got the internship at Disney. So is this is this part of the college program or this is kind of a different thing?
Different. So, yeah, the college program for folks that don't know that Alex is referring to is like you can work in the parks while in college. I don't know, I didn't do that myself, so I don't have a lot of experience, but a lot of colleagues that I worked with at Disney had gone through that and then later turned into working in the IT department. And that's that's how I learned of that program. Actually, I didn't know of it prior to coming down here and and then working at Disney.
So that was that was your love of.net began at that point. Yeah, well, I, you know, I attribute this to for real though, like I did enjoy it because in schooling in my classes, well one the catalogue year I went for school, I went for computer engineering. And the reason I went for that was I wasn't sure if I wanted to do more software or hardware.
I really enjoyed tinkering with hardware side of things. And so I was like, all right, let me go for computer engineering instead of like computer science so that I can get like a balance of that. But that kind of backfired because I didn't know going into this that my school at the time, the catalogue, the curriculum, if you will, too, was very heavily weighted on the engineering side of things and more on and less on the software side of things.
But it in those classes I was doing more C and Java, that type of thing. So when I started at Disney and I was doing C sharpand.net one, I feel very fortunate and grateful for the team that I was on. They were like they helped me be successful for one. And then two, you know, not no bias here or anything.
I literally didn't know at the time, but I attributed much of my success because of the tooling around C sharpen.net from Microsoft gave me successful like Visual Studio. So. Helped out a lot there. Was it? Has it become? How do I ask this politely? It seems like Disney's IT corporation has like outsourced and like moved away from what they used to have did. Have you noticed that or do you keep up with people over there still?
I do keep up with people over there still. It's been a little while actually since I've touched base with them that this is a good reminder for me to do that and a reminder for other folks. It's always keep your network in touch and reach out to people. Even when I was there, there was some of that going on because there's just such a demand for, I mean, as you can imagine, Disney is a huge company and there's a lot of different aspects to it.
So they don't have enough people on hand to do all of the software needs that they have all the time. So naturally they're going to outsource some of that. But yeah, so even when I was there, there was some of that going on. Whether that has increased or decreased over the since I've been there, I'm not entirely sure. I haven't heard anything about that, but definitely feasible. People ask me all the time, So my, my wife's dead set. She wants to work for Disney.
She doesn't care in what capacity. We're moving there as soon as my son graduates in 3 1/2 years. 3 less than 3 1/2 now. And they're always like, so you're going to go work at Disney too? And I'm like, no, I have no interest in working in their IT department just from the horror stories I've heard and like quick layoffs and stuff like that.
So I'm, I'm really happy to hear like you had a great experience and, and you're able to kind of learn a lot through that experience too. So that's really cool. Yeah, Yeah, it was good. I mean, there's definitely pros and cons to each company. One of the big things that I've realized for any of these big companies that now that I've worked at a couple of them is just reorgs are the thing that kind of that's what usually is the catalyst for things to go in a way that you just don't enjoy it anymore.
So, and that, that's, that's definitely something that took a toll on me while I was there. But I had originally planned to be a lifer, what they call like a lifer at Disney, where and I had an opportunity to be one of those people that have like a 50 year anniversary type of situation because I started out so young and early on in my career there.
It is. There is definitely something to be said about that, to see, you know, you as a younger person at the company, seeing people there like that, it gives you confidence that like this is a good company to work for. It's it's, you know, that type of thing. And, and to see them get rewarded to some degree, you know, whether you count that as a reward or not, but that recognition at least for their service for that long and that dedication, it's kind of a nice thing, right, 100?
Percent yeah it's amazing longevity in companies and just the culture around it at least in the tech space it's it's really hard people tend to to bounce around a lot but we still love Disney. I don't know on the tech scene if I'll be in there or not, but we're we're headed back in 3-3 weeks I think. So another another trip down.
Our trip in January kind of got a little messy so I I decided I would forgo my normal NCAA March Madness and go to Disney with my wife again. So. Well, you can still enjoy that while you're here. I know we've we've got places lined up and I always do like fancy fries for mine. And so we're going to oh gosh, we're going to Canada. I can't remember the restaurant name there. Apparently they have some pretty, pretty smoking fries. So they.
Do they do They do So Paul, if you're at. You know, if you're talking about. Not like the. Country. That's true. Yeah, I've got yeah, yeah. So when I first learned of Brian, was your developer experience at Microsoft, though? So like, what made the shift at that point? Like, why did you kind of get on this train that we all love called developer advocacy?
Yeah. Well, so pretty typical that you'll hear from most people in this in this type of role is they didn't know about this type of role prior to getting into it. And that's kind of the situation I was in too, where while I was at Disney, I found myself drawn to doing more like lunch and learn type of presentations to the team. We had an internal conference that I would present at. And then outside of that, I was going to local meet ups and, and code camp type of things.
And like getting, getting my feet wet and some experience with just doing more of this whole situation of I learned something new. And I want to share what I learned with other people so that they can maybe accelerate that process. And, you know, kind of teaching like I, I, I found my, I mean, I originally was going to go to school for teaching for like to become a math teacher.
And then I just had this love for computers and that's why I kind of diverted a bit. But so this was like a way I, I found myself drawn to being able to do both in a sense. And then this opportunity came up where with Microsoft, where they were starting over. And like Microsoft, has gone through several iterations of Devrel dev advocacy evangelism.
In a lot of different areas too, right? I mean, there's so many areas that Microsoft is crazy. Oh yeah, it's a You think Disney's massive? Microsoft's right there, if not more, right? So yeah, that's opportunity came up where they were kind of starting from a clean slate and bringing people on and, you know, through connections and networking, that type of thing, I was able to pursue that as like a full time.
I was like, OK, well, I'm doing this on the side on my own time. I really love my job at Disney. I love my leadership that I was working with. They really took me under their wing and I just felt I was in a great place. But I also felt like this is an opportunity I can't pass up because, you know, I want to do that full time and see what that experience is like and see if I really enjoy it.
Have I? Have I quizzed you enough? Did the people know everything they need to know about Brian? I mean, there's a lot to know I guess. I see a guitar in the background some some music hobbies you. Wanna no, that's that's all for show, honestly, for real. I'm not even kidding. OK, it's actually for me.
It's a reminder of one of those things where you have ambition and and what you know, just like this, the ever thing where like your attention goes to focus on something and then that just fades away and you kinda. So to me, it's like a reminder of like a failure in the sense of I had this ambition to learn to play guitar started while I was in college like a little bit and and then I just faded away And I, I can't, I can't play anything on there. I'm lucky if I can strum the strings type of thing. I just offered my son.
What's that? Sorry, go ahead. I was just going to say, I just offered Oliver my son to to. I was like, I'll buy us a guitar and we can learn together. He's like, Nah, I don't want that. I was like, oh, OK. Ouch, yeah. I was going. To say it's to fit in with all the other developer advocates that I'll have, like the musical backgrounds, like pretty much everybody in coding has like a musical background of some sort. It's a strange phenomenon that keeps happening, I think. Yeah, kind.
Of amazing. That is super interesting. I used to. I have a well, I still have it, but it's broken because it fell over a saxophone. So when I was in grade school, I was in jazz band and I really enjoyed it, but I actually, I stopped it because I'm not a morning person. And when I got to high school, they wanted us and I played sports too.
So when I got to high school, I didn't want to have to go before school to go to band practice, then do school all day and then go to sports, some sports practice afterwards. That's like, I was just like, that's too much. So I dropped it And like, I kind of regret that a little bit because as a, as a gift, my, my parents actually found my like middle school teachers family or whatever they were trying to sell. He had passed away, unfortunately. And the, the family was like trying to, you know, get rid of some of the stuff And, and they were like, oh, my parents found that out and they end up getting the saxophone from them. And, and I tried playing it like, you know, many years later and it's just like, you know, I can't, I have no feel for it anymore and I feel so dumb, but I have it, you know, as a sense of like, maybe one day I'll take lessons again for both the guitar and, and the saxophone to get back into it. So.
That's pretty awesome, I did the same thing with. I've played clarinet for years and I picked one up and it was. Like, well, reinstrument I feel like are just harder to like, I don't know. Yeah, well, I guess grass is hard to like. You have to put your your mouth on a cornet. Sorry, Trumpet is why I played folks cornet. Yeah.
Yeah, you'd think it'd be like riding a bike, but it's it's not. I know. It's not. This is a crash on your bike every time, right? All right, so we we kind of did all of your background and the reason we're here today is is sneak and you got started at sneak just for fun. You wanted some more to do what? What happened there?
Well, I think that ties back into my, my past experience too. So when I was at Disney, I had found while I was working on the, that first team actually that I joined with, we would have like we had a security team that were like I, I called the security heads. They knew everything and everything about IT security and, and, and you know, a bit about application security and they would like basically come to our team and say, Hey, are you compliant with this checklist? And they would have all these words on it. And I'd be like, I don't know what that is. Yes, maybe I, I can't, you know, and then be like, and you know, whatever would go on from there.
And, and then I, so I took it upon me. Well, my family background of all military police people and like, so security has kind of been driven into me growing up. And so I was like, well, this is my way in my own fashion to, you know, pull in that a little bit of that background in history and my family into what I'm doing now.
And so I was like, I'm going to take it upon me because no one else on the team really was like showing interest or initiative with that. I was like, this is interesting to me. Let me dive deeper into this. And I became this like liaison between the security team and our dev teams. And and so I took it upon me to like educate myself, take courses, learn more about application security, particular in in particular.
And, and then helped us bridge this gap between what that security team was telling us we needed to comply with and how we as developers can, you know, fulfil those needs that we have as a company in the applications that we're building. So that led to like significant progression at Disney in my career because of that. And then, you know, you take that the aspect of I want to teach and my passion around security. And so when I was at Microsoft, I didn't, I had intentions to go that route, but it just didn't flow that way. Things just organically went in a different direction, as you know, with VS code and that type of thing, which I still love and, and advocate for to some degree. But sneak was this opportunity of like mashing those two things together, that background in history. And I was like, sign me up.
Let's let's check this out. And, and I was using sneak prior to working there, like I, I had set it up in my own open source projects. I had back when GitHub actions first came out, I had set up at their first GitHub action actually for them. And then they contacted me and said, Hey, we're going to actually take over this.
So if you can tell. And I was like, yeah, absolutely. You know, so I put a little thing in the read me like go to the official one, not this one, that type of thing. And, and that's kind of how that initiated. And then I saw they were hiring and expanding their dev rail team and jumped on that opportunity. So for folks that are always trying to get a new job, that's how you do it.
So here is I'm I'm hoping I have this set up right. We changed it right before we got in Look at that. All three of us, we're good. So this is sneak's website. The first thing to point out, in my opinion, is their dope logo. So this crazy dog like you, you're not gonna wanna break into their security. Let's just let's just zoom in a little bit. Actually, all that explanation as to why I joined Sneak, you can just throw that out the window. It's because of the branding.
I'm a sucker for really great branding and an awesome swag and I just wanted to get their swag. It's. Really good to know. That's why I've been preaching at work. We need to up our branding in all right. I've been preaching we need to get like a public merch store for people to like, kind of like how GitHub does or other companies where you can just buy merch. People love our branding.
That sneak what's what's up with that? It's it's, it's just not there. You're preaching to the choir in that. So you can see here covers a lot of different languages, a lot of different IDs. Brian's going to walk us through at least a couple different repos since most of the folks that file coding cats, your JavaScript TypeScript oriented web folks, we do dive into like containers and stuff like that and the, the CICD side of the house and, and testing and things like that.
So we'll see where we we get today. This is probably a little less traditional than we're used to. Like we're not going to probably put it into a web app, but we're going to start off looking at coding cat and then dive into a not so great repo as well. So first, you know, I was thinking for folks, and I don't know if this makes sense.
Should I like uninstall, sneak and like go back through it? I thought it was kind of a a good process, but I don't know. What do you think? No, I think it's fine. I mean, generally speaking, the installation process or setup processes straightforward. I I feel like you sign up for an account at sneak, you can have a free account.
The free account gives you a pretty generous threshold in terms of like how many things you can do, especially one thing that we were talking prior to this all starting. Me personally on my personal account, I well one work. I have a separate one for work that gives me all the bells and whistles that sneak offers, but my personal one doesn't get any added benefit as a result of me working there.
I just want to call that out. But the reason I'm calling that out too is I've been using my personal one on open source public repositories of my own for years and have yet to reach that three tier threshold limit to where I would have to pay anything so far. But if you have like private repositories, that type of thing that starts adding up and then you might reach that limit much quicker in that regard.
So you sign up for an account, but sneak for free, you hook hook it into like if you're just getting your feet wet with it, you hook it into like a public repository on GitHub or or GitLab or Bitbucket. We have integrations to all those three. And and then you can try it out and test it out that way without feeling like you have to pay for anything right off the bat. So, and then for me, like you were just talking about Alex, I set up the extension in Visual Studio Code to help me so that I'm catching these things before they get into production. While I'm in the, the midst of getting things set up and working, the sneak extension is telling me, hey, take a look at that.
Like you can see exactly what's going on. And the cool part, at least so far, was there's no open source security issue. Looks like a little security problem here. Let's see if we can take a peek. And the L there doesn't mean that like L as in loss as one might think off it means it's there's different severities of vulnerabilities that sneak categorizes.
There's critical high, medium and low, which is the L there. So what that essentially is saying is that it's great, like you said, Alex, you don't have a significant amount of vulnerabilities for one in total. You just have one potential vulnerability here. And of those, it's the lowest severity possible.
So you're doing a fantastic job with what you got for coding Cat. Yeah, you're safe. It's a pretty, pretty static site, folks. So don't like preach to, you know, whoever. I'm not that great of a coder. So the cool part here though, is like, normally when you're looking at code, you don't think about this side of it. And this kind of keeps it ever present in my mind that like when you're going through these things, like we all run like NPM install and you get to like, yeah, there's some warnings, there's some vulnerabilities, but this is, this is kind of looking at the code side of it as well. Is that is that the correct way to like express that room? Yeah, no, I think you hit it spot on. The the nice thing with Sneak is, well, you bring it back up right back to the top of what you said. When you're developing, you're not really always, unless you're someone like me that's been ingrained in you, you're not necessarily always thinking about, all right, what's the security aspect of this?
And so with with Sneak, what's nice is it's kind of taking on a little bit of that responsibility for you to bring that to the top of your mind at least and alert you to these vulnerabilities that could be presented or be introduced by your code or by open source dependencies that you're relying on and the vulnerabilities that those are bringing into your code base. And then a couple other areas, like if you're using containers, right, and maybe the containers are bringing in some vulnerabilities as part of whatever base image you're using or some of the dependencies within that. We can talk about that in a little bit. And last but not least, a little bit outside of my wheelhouse as a developer.
But if you're doing infrastructure as code, Sneak also has some capabilities around that to do to alert you of vulnerabilities that are being introduced in that Ave. And so that's like your terraforms, your Polumi's, like there's probably some other AWSCDK. We go down a list and it covers all of them.
So let's talk about like, I get this error, right? And what, what do I do with it now? I'm like, OK, that's, that's cool. It's low. We should probably fix this. I put it on our our GitHub issue list and someone finally cracks into it. Like what? What do you do from this screen to actually like affect anything at this point? Well, for one, what you just said is leaps and bounds probably beyond what most developers would do, because you know what they're going to do, right? They're just going to say whatever, ignore it, move on and go back to what they're focusing. On, yeah, it's low, right?
Yeah. So once you get past that or get to a point where maybe your leadership is like, hey, we need to knockout these vulnerabilities, you're getting measured on this, which that's a whole nother story of like instilling that that in the whole life cycle of a project. But yeah, once you start doing this, one of the things that I try to bring out in this when you start looking at it is learning more about it, right? Because one of the going back to my story I was telling about before with with Disney, I didn't know like I had to take the initiative myself to figure out what these terms were. And the security team, you know, no, no fault to them really, but they were hesitant to educate the development teams about hacking and like vulnerabilities and that type of thing because they're worried that, oh, maybe these, I mean, it's, it's really kind of, if you think about it from a broader perspective, it's counterintuitive.
Why would an employee want to hack their own company that's paying their paycheck, right? But that's their concern is that they're going to do something malicious with that information now, maybe build something into their software or whatever. So there's this resistance to teach the development teams from the people that are security. And then I think there's some of it where some security folks are more going back to what we were talking about before, like they're IT focused and not know so much application development focus.
So maybe they don't have the the knowledge or background to create that connection between the development team. So the reason I'm bringing all that out is what I feel proud of that Sneak does is we're not just alerting you to these vulnerabilities. We're providing information so that you as a developer can understand why this is a problem. Because that was the thing that I struggled with was like, why do I care?
What is cross side scripting and why do I care about it? What does that do to my application? And so when something like this comes up on getting the grasp of like what the actual pain can come from this thing? What is the actual malicious thing that somebody can do with a cross eyed scripting vulnerability?
Then that's like, oh wow, I really do need to focus on this. I really do need to be worried about this because I don't want that to happen because like if that happens in our application, that could ruin us as AI don't want to be responsible for that, right? Like my company going down because of a vulnerability that I allowed happening, right?
So one of the things I would say to start out with is getting as a developer, getting yourself acquainted with, if you're not already with some of these things to understand what the vulnerabilities are that are popular out there. And one of the resources I always call out is O WASP, Open Web Application Security Project, although I think that acronym stands for something slightly different now they've changed the name of it, but it's still O WASP.
That was the resource that helped me significantly. O Wasp with AP at the end there, owasp.org, if you go to the website there they have like the O Wasp top ten list that tell you about the top ten web application vulnerabilities that you need to be aware of. And that's how I educated myself originally. Sneak is doing that in conjunction with the information that O Wasp provides to educate you directly in like with the extension directly in VS Code.
So you don't have to do that context switching of like jump into the, you know, browser website. Oh, watch, learn over there, come back and try and you know that type of thing. So that's the starting point for me is as a developer is getting yourself in that mindset of understanding why it's important.
And the way you do that is learning about what these terms are and what these different vulnerability types are. And, and that way you can be like, OK, this is, this is significantly impactful to me and the work that I'm doing, that'll be my motivation to take it the next step, which is all right, how do I start addressing these things, right?
And then so like from here are you, are you saying like if I click read more, this is probably the best way to start to learn about that? Yeah. Like for instance, I don't insufficient post message at the top, it tells you what that vulnerability is if you go back up, insufficient post message validation.
Like to me even right off the top, like I don't know exactly what that means, right? And the details below use your code to kind of explain that. It's using that context to explain it a bit better so that you can see what that relation is to your project. And so in this case, these details are saying the POST message like if you just allow any POST message that's coming in, I'm assuming on like a web socket or an event listener. In this case, you don't know who the source is that's providing that.
And and then what you do with that data that's sent in that POST message that you're receiving could potentially be malicious and try to break out of the context of that you intended to be used with them. Nice, So that's all it makes sense. Is it because there's no check around the fetch? Like where you're fetching it from in your actual code. I think what it's saying is the origin that's it's coming from. On your like search worker TS though. So you mean like over in in here? Yeah, in in your code block there. Is it because you're not checking like the await fetch origin that payload?
Origin, I think it's actually the the call that's coming in or the data that's coming in. We're not checking where that originated from. I could be could be wrong though but. No, that sounds about right, like this is completely blind like thing that we're jumping in for everybody that's watching right now.
So that looks like what it may it it's intended to be and to get further confirmation on that. That's where this part comes in, Alex, that you're showing where they show a couple of open source examples where this thing had an issue, this type of vulnerability and how they addressed it. So in this case, for that context, they have this server address, server path and it's double checking the message dot sender and origin like Brittany was just talking about too like I so I think.
I think if you were to. There where if you if you validate that payload origin which is coming from that event dot data, that should address that low low severity issue that you're you're seeing right now. Yeah, I, I think if we were to put this in and we can try this out, I don't know how well this will work, but these all need to be like this, the payload.
Yeah, yeah, I think you you pulled it out, you deconstruct it with into the payload variable and so you payload dot sent sender maybe or if that is on there, is that a property on that payload? The thing is, do you have the top level? So something like, yeah. So we we bring in message message dot sender so.
That's your event. Event dot sender should have worked. It yes exactly OK event dot sender is not a thing so. Is that like old that's maybe gotten updated and doesn't have that property anymore? Well, my next question is what type of event listener is this? Is this a web socket event listener is, you know that type of thing. So it's assuming in the example that it's a browser based. You know where I'm seeing that window dot add event listener? It's like an event listener just in the browser on the page. Right, exactly.
But typically, like with a with a message, when you're looking for a message, I'm assuming here in your context of coding cat is. Maybe it's like a websocket message that you're looking for actually. Don't even know, OK. Well, actually, so it's on the window, it's on the browser. It's got to be in our search, I would assume so, yeah. So I think that is on coding Cat where we get the search box like this.
OK, Yeah. So if we is. That from alkaline. No, this actually passes down now. So we build this each time, but that is kind of interesting. So event dot data. I'm surprised there's not event dot origin or something coming in so. There's. Origin right there. Yeah, check that out. So that that should represent this one at least over here.
And that might that might be sufficient enough in itself right there this knowing well once you update that server. Address to whatever it needs to be. Yeah. And that would that would be interesting because it's usually something like window dot like. So you're destructuring payload and then grabbing payload dot origin. What's the difference between event dot origin and payload dot origin?
My guess is those are the same. So should those be equal there? Should the is that your check? Possibly pillars. Yeah, maybe. I mean, I don't know exactly where you want to go with this. I'm down to go down this path where? You don't need to. You don't need to. That's why I keep like kind of half backing back out. It's like OK, if this were fixed we should be good. The idea though that you're getting from this that I think both of you are are understanding is you want to validate that you want to make sure it's coming from the place that you expect it and it's not somebody else that's kind of pushing that event to your website in some form or fashion, right?
That can then do something nefarious from there, right? Or malicious. Yeah. So some sort of sequel injection or something could be occurring that you don't want. Yeah. Well, in this in this context, in this context is if it's in the browser, maybe that's the way that they can get some type of cross side scripting vulnerability in there and start extracting data out of the out of there from your users or whatever it may be that somebody might be intending to do.
Luckily, this one's a low one, so things are OK. Yeah, Ish. No configuration issues. That's that's kind of interesting one that it can pick that up. Is that coming from like different applications? So like ours is we have svelte application, is that the configuration it's talking about? No, I believe, and I might be wrong on this because I'm they're actively making improvements to the VS Code extension.
And I hadn't noticed that prior to this actually. But I'm a, I'm thinking like infrastructure as code configuration potentially because that's normally what's there. So we have the like we were talking about before there's open source security, there's code security which we were just looking at that sneak will analyze. And then there's infrastructure as code configuration security that we would scan for in VS Code. The container side of stuff you do separately outside of the extension.
So that's where I'm like, where did that IAC stuff go? And I think maybe they just renamed it onto into a configuration. OK. Yeah, that makes sense. And we don't currently have any IAC, so that's good. And then it looks like we have a medium going on. Oh oh. So this area now this is this is getting a little bit in a Gray area in the sense of like whether this is a security related thing. It's more about code quality and it's like a nice to have thing that sneak is offering through the extension. So these aren't, even though it has those severity type of labels to them, I wouldn't, I wouldn't treat them in the same way as the security side of things, severities like high, medium, low, that type of thing.
So this is more about like, hey, here's some general best practices for the programming language that you're using that we noticed and we want to call out to you that will save you from some of the typical things that could go bad with not following this best practice, right? Cool. Yeah, that's fair.
Yeah, that's cool. I like that it reminds me of how bad of a developer I am. That's a great way to say that. You're a better developer though like that if you're paying attention to it and fixing the issues. For sure, for sure. So this is a pretty standard looking node JS. We've got app dot JS, we've got a package dot Jason and there's some issues occurring according to sneak. So let's start minimize all of these. Here's our open source security issues. I don't know if you typically go one by one through these. Is that how you usually roll with these? No, not typically.
Don't you just do NPM? Like outdated or fix or you know something. You could do that. I mean, if, if the for those that have a keen eye, a lot of these dependencies for one, are intentionally old versions of NPM packages that are known to have vulnerabilities in them. So again, this is a demo project for people that are, are curious watching at home or at work. That's it's intentional so that we can demonstrate and and show examples of these vulnerabilities in action. And in fact, you could even potentially run it and hack, hack it.
We can do some of that too. Although typically, typically I spin up. This is one thing that might be a friction point, but I think we might be able to work around it where I would spin up the database as a container, a Mongo DB database. But I think we can avoid that and just run it with like NPM. You do NPM install NPM start type of thing but. If you want to go down there and says hack it. Hey oh B1, hey B1, good to see you familiar name and I see May in the chat too and then SMC May great to see familiar. You got a good clap rolling out there. Yeah, yeah.
It would be faster if you use PMPM but. Yeah, there is that. Or it'd be faster if we use bun. Have you all tried bun yet? So I usually. I I I like to go bun and then PMPM but now I've flip-flopped because I feel like PMPM caught up so I don't know why. Nice nice. So this is this is NPM is telling me we got all kinds of problems which sneak has already told me. So where do we roll from here?
So one of the places I go off to start with this is if you actually let's open up the project more view and the Explorer view, Yeah. And so like maybe open up, let's say app JS for now and you'll notice that it's like highlighted in red. And this is where the, the VS Code, the sneak VS Code extension is coming into play where it's, it's going to let you know in your code.
This is part of sneak code product that we have. It's going to let you know issues in your code that you might be introducing because that's the one that's top of mind, that type of top of the iceberg type of picture that we like to use to explain this stuff. When and and when I started out, that was the first thing that came to mind when my leadership would say, hey, we need to worry about the security of this application.
So throwing like a dot env in here A look up of some kind would kind of fix this. Yeah, and if you hover over it, you should get more information there, which you can read through it. Or if you go back to the sneak extension view, you can open up that side panel for it. Actually, I wonder maybe if you click on what's the best way to find that specific one. Yeah, there you go, you got it.
We also have Greg Miller. Been a minute. Greg, nice to see you. I've got this installed on my GitHub, but I have not had deep interactions with it. Glad to see you're walking through it. I'm glad we're walking through it. So that's great. There's some some more back story on the picture here. So back story on the picture.
Anyways, so we were hitting the the session thing and Brian was about to walk us through kind of what we can do to alleviate the issue here. Yeah. So that that panel that opens up directly MVS code like we saw before is gonna explain what the issue is, why it's important and then at the bottom give you those examples again from open source where on how other people address it.
So I've been you both are familiar with streaming, probably familiar with OBS then. And OBS has a web socket server that I was trying to communicate with and it has a password on it. And I had, because I'm just spinning up this project that's in a private repository, I had hard coded the, the secret for the web socket server connection in, in my code. And you know, because I'm in dev rail and that type of thing, a lot of times I'll have different profiles in VS Code where I have sneak enabled versus not enabled. And I didn't have sneak enabled.
It didn't Alert me to that. And I committed that code to my repo. And I was like, man, I just there, there it is. I'm the security person. And I went and made that mistake and had I had sneak enabled I would have caught that and probably prevented. We might, we might get there, but is there because you talked about GitHub actions and things like that, like is there a level that once you try to push something like that, you can run prior to even the I think it's on on push it'll check instead of like after the codes actually hit your repo.
Yeah, absolutely. So there's there's things that you can set up locally like, you know, with Husky and that and that type of thing, pre commit hooks on your local machine. You can do that and enable this. I mean, sneak doesn't have something like that natively locally at this point in time that I'm aware of. But when, let's say you didn't have that locally or something set up where you configured it on your own using sneak to prevent that from happening.
You can use GitHub action, sneak, GitHub actions or whatever source control management system you might be using where you can set up those pre commit hooks to say, Hey, we're we don't want to check that in actually or commit that to the remote repository. Sure. Because it has that type of thing and it'll alert you to that or at least it'll let you know that it's there so that if you don't catch it locally and you see it there, you're like OK, I got to rotate that key or whatever it may be because.
It was. It probably runs like a pipeline and CI and GitHub or wherever you're at and shows you if that's a vulnerability and then you can't merge if that happens. Like blocks or merge, right? Yep. Is there a difference between like what dependabot checks from GitHub and then what level sneak would check?
I would say yes. I mean, how do I want to phrase this because I don't want to talk out of turn a little bit because in some cases GitHub, those types of things are are competing with with sneak. And to me, the way I've always viewed it, and this is me as Switzerland neutral talking here, like I've personally not used the pentebot or rely to the pentebot that much. Or at least I've my perspective on it was how do I keep my packages just up to date so that I'm not constantly like behind. So that's been my experience with it, but it does have some capabilities where it can do that. Now one of the key differences that like for instance, NPM, when you run NPM install and it's showing you those vulnerabilities that by default is set to show you vulnerabilities in all of your dependencies. Meaning in this context, you have your your main dependencies that you would rely on in production and then you have your dev dependencies.
And for me, I don't want to necessarily care about the dev dependencies and what vulnerabilities might be in there, because that's not what's being used in production. And therefore where my users might be vulnerable to that type of thing. I want to 1st focus on the things that will be a problem in production before I worry about what's a problem on a dev machine locally that I'll just wipe out anyway or, or that type of thing, right.
So that's one difference like with NPM to call out there. But yeah, when it comes to Dependabot, I, I can't speak to it as very as knowledgeable as some other folks. And I don't want to do either sneak nor GitHub and dependent bot injustice by saying, oh, it does this or it doesn't do that because of like the way I've used it in the past, right?
I've I've always looked at it and used it in the past as like something that just helps me keep my packages up to date. But I realize and and recognize that there is more to it than that. That makes sense. I was just curious if there was something specific, you know, but thank you. Yeah, no problem.
But I'll let you keep walking us through. Yeah, yeah. One, one other quick note on regarding like other options, what generally speaking, like when it comes to companies, they don't typically want to take this route. But like if you're working on side projects, open source projects, what I've always advised people is like use as much as like there was a point in time before I was even working at Sneak where I would, there was, I don't know if you both maybe remember the Node security project and they had ACLI tool NSP, which is actually what's incorporated in NPM nowadays.
And so it was like that project and Sneak that were like the two ones that I was at least aware of as a developer before working at Sneak. And I, whenever I was on live streams or something like that, I would be like, hey, use both because they have different databases that they were managing of what vulnerabilities they caught versus Sneak caught or, or bicycles. You want to make sure you're secure. And if using both means that that's going to help, then then then do that, right?
Like that's, that's the end goal, right? So, you know, again, that that's my advice with people. It's like, use what you see fit and what's going to help you reach that end goal of feeling like confident in the security of your, your application. And I obviously believe that that would be sneak in this case.
Yeah, cool. Yeah. So kind of walking through code examples, do you want us to try to like spin this up or what's what's the next steps with this? Let's. See, because if we can get to a point where we spin this up now, again, keep in mind this is a very like really a clunky app. I don't know how far we're going to get necessarily. Or if we're we're, let me put it this way, we're going to run into issues and errors of getting it running like that. But I think we can ignore that and still go to like because it's trying to connect to a database. I think we can ignore that and still run open up the application on the local host in that port which that's the database one.
Think I can show this? Yep, will sneak notify us if something that should be a secret is exposed in a repo before a commit. And I think if you have that extension installed then you should see that correct. Yeah. I think the other piece that we talked about which we've used this Brittany a long time ago, if you have Husky as well. So that runs pre push, not necessarily commit. So it'll you can run.
Yeah. So sneak the extension is one way to combat that. I would say so. And that just means though you have to, as a developer, build up the habit of looking at either the problems panel in VS Code or opening up the sneak extension. And the reason I say those two areas is because yes, it does show you in your code like like Alex sees on line 42 there, but that's just for the vulnerabilities that are introduced through your code. We've yet to really get into the vulnerabilities that are introduced through open source dependencies that you have just yet.
Yeah. OK, so then it might be because it needs that the database to be spun up and I don't want to put you through the process of maybe spinning up a building a container for that like a My Sequel database or Mongo DB database. Sure. In which case, oh, they could put a post. Is it postgres? The one that you can do like locally in the repo? Like just add one of those to the to the repo. That's a great idea, yeah.
I think like my sequel you you actually have a docker file. I wonder if I can just stack or compose and off we go if. You want to. That's fine. Yeah. Yeah, let's. Give it a shot. Let's give it a Let's give it a go. So one of the reasons why it would be great if we can get to that point is then we can actually step through like hacking this application and seeing the problems with it. But nonetheless, you folks can.
We have plenty of either me or other folks at the company where we have recordings on the Sneak YouTube account where you can see us going through this type of stuff. And then two, if you want to try it yourself, this repo is publicitsgithub.com/sneaklabs/nojs goof. In fact, I'll get the link real quick to drop in the chat.
Such an outdated like repo in the docker compose file that it doesn't have the ARM tip set up. Is that what you're running into? Now, yeah. Yeah. Where's the drop head in there? Oh, you got the link in there? OK, perfect. I was going to put it in the private chat that you can all share if you'd like to. Shared away, I'll update in our links for the The Post blog. That way folks watching, they can pull down that repo. And then there's the exploits folder, which kind of talks through a lot of the potential vulnerabilities that are available or presented in in the application itself. And the one I tend to go through the most is that marked one. This one here.
Yeah, that one shows a cross site scripting vulnerability in there. So unless it sounds like you're you weren't able to get it running through docker either then huh? I could not run the compose because of the ARM issues, so those are always fun to figure out. Well it probably needs some plug in or something to make the arm ship.
Something has to be updated. That's what I was going to say is like this shows the importance of like keeping your app up to date as you go and not trying to do all of these at one time because it's not an easy fix to just upgrade and be done with it. Like there are going to be other things you have to go back and change and fix lots of other issues along the way. Yeah.
And I think, I think this is all surrounding the fact that I'm running on a ARM chips of the Apple series or whatever we want to call them. So yeah. OK, cool. How about to like, we've done some app things and maybe you might want to show this instead of me, but like on sneak itself, like out in the actual browser.
Is there stuff we should show developers out there as well for tracking issues and things? We can do that, but before we go that route, I I would like to because we've been mostly focusing on like vulnerabilities in the code that you might write in your application. We haven't really touched upon the open source side of things, so.
I keep forgetting OK. Yeah, no worries. So one way you can do that is in the sneak VS Code extension view. If you, yeah, collapse the code security one and open up the open source security. This is where it looks at your package, Jason, in this case. But if you're using other programming languages, those are supported too. And now you can see, all right, based on what you're depending upon in your project, what are the vulnerabilities that those open source packages are introducing or bringing into it? And this is something that was very eye opening to me because again, you're in that mindset of like tunnel vision, my code, my code, my code.
What's the security? And you don't think that your code actually relies on other people's lines of code, right? So you think the lines of code is like this small, but it's really like huge compared to that, right? Like this huge sphere surface area of code that could potentially be vulnerable, right?
Yeah, and I I guess for me, like we saw it at some point up here, like the only time I ever look yeah, right here is, is when I install like that's that's literally if it's if it's got anything red, like I'm making sure those are updated. That's that's first, but. Right, right. And so with this, what's nice is a couple things.
Well, when you're looking in your package, Jason, maybe you're modifying things, modifying scripts. The VS Code extension's telling you, like, right on line 18, for instance, that Adm, hyphen, zip, that has two vulnerabilities in it, and like, one of them is critical. You can close that, that sash on the right or that, yeah, that.
You see all that right there. Boom, all this red little annotations in your face to tell you again, this one's intentionally it's it's an exaggeration, although there's definitely projects out there that are running in production, probably like this. Oh, 100. Percent, but it it gives you an idea of how that can alert you as a developer right at this point in time when when you're building these things out in your editor, you get that information right away. So you can prevent that from going really hurting you in the in the long run.
So that's, that's open source vulnerabilities there. And again, just like we saw before with sneak code and like what's wrong with your code and the vulnerabilities there. You can find out more information for each of these and why and how do you address them. Now, the the nice thing about this usually is you just have to patch, go to the patch version. So if you go to let's look at online 35, that marked library, we're using version 0.3.5.
And I think even if you hit that little light bulb, it should show you open description of that. Yeah, there you go. That's the quick way. Should have remembered that from earlier. That should open up a. So this is the Sneak vulnerability database, which is what's sourced for Sneak to be able to, when it scans your project, it uses that as the source of information of like what to report on.
And so again, this is similar information that we saw before, but it's on through the Sneak's website instead of in, in your editor, which I prefer personally because I again, the context switching adds up over time. But you get that information and you can dive deeper into the Sneak atmosphere on the website a bit more if you want with that. How is how is like the sneak database like collating this like as they appear in repos or like how does this get popular? Yeah, so sneak uses a number of different things. There's ones where our security research team is finding and reporting these things.
There's community based one. So like if you scroll to the bottom of this, you'll see the relative references. So like the GitHub commit, GitHub PR where people reported that on for that open source library, that type of thing. So it's very community. And so they're listening to that, listening to social media posts to see what what people are, you know, publicizing about different things that they've other security researchers are finding that type of thing.
And then we have a means where people can report vulnerabilities to sneak to get added into the database as well. So there's a lot of lot of different avenues of sources for vulnerabilities to be ingested into sneak basically and then reported out through our tooling. That's awesome. That's really cool.
And the dog has like a mask on in this one or something. Yeah, sorry I get so obsessed with the logos. I do too. I'm right there with you. OK cool. So for most people you'd probably go through each one of these. If you're a developer like me, I would just massively update everything and then deal with all the code it broke.
So I wouldn't want to do that. So what we let's let's focus on that marked one still, right? And so the reason why you don't want to go that route where you just mass update everything is you don't know what that's going to break and it's going to be even harder to revert. So my while sneak does offer the capabilities of like opening up APR against your repository for you to patch all of these things and and upgrade you to the right version to fix all of them. I recommend doing them piece meal so that you know, I mean, it's just general best practice, right? I mean, I don't always follow it. I don't always follow it.
Spot on exactly. So so let's look at the marked one right. So if you hover over that one, then they'll or they'll get the click into there, get the cursor there. So the light bulb pops up on the in the well and and then click on yeah, that top one or wait, wait, wait, wait. That top one opened up your browser before right. So one of them should open it up as like a a new tab. That one maybe learned.
Let's see. Description. Browser in browser. They're all in browser. Maybe. Yeah, they just keep popping open the browser around. They should open up in that new tab there. Well, all right, So in the sneak extension view on the left hand side there, you can look for the marked library in that one. It should be alphabetically essentially, yeah. And there you go.
So. One of these for most of them. So the Mark library here, if we were able to get the application running on your machine, it's a it's A to do app. And the idea is we have developers that are using this to do app and they want to write their to do items in markdown and render them on the web page. And so this marked library does that where you can use Markdown syntax and then it gets rendered out to the proper HTML for that. But in this particular version of marked, you can introduce certain payloads as part of your your to do item that will get you out of the context of HTML and allow you to execute any JavaScript code.
And so we want to prevent that from happening. And that's actually described in that overview area there. And if somebody wants to go through the exploits when you, if you do get it running locally, that type of thing, you can try this out yourself where you put in that payload of JavaScript ampersand and that it looks like this hacker code, but it's really just the, the HTML encoded symbols of of of characters so that you can bypass some of the because here's the thing, even if you take note there, it says sanitize true, the marked library.
Actually, Alex, if you quickly use the keyboard, you're on Mac. So command shift F and then search for marked in there. And that'll, that should bring us to the code. The set, the set options 1. So it's a third from the top there. So in this case, we as developers set up the application so where we, you know, typically require a library.
And then we, we looked at that the application or the library's options and it says set options. And then there's a sanitized one that says that's for, that's a security flag I turned on. So I'm thinking I'm doing the right thing, taking steps in the right direction. And yet this open source library is still vulnerable even with that security measure in place.
So, and the, the more that weeds into the into that on why that's capable or why that's happening is described in the overview and the details there. And you can try that out when you get the app running. But anyway, I want to point that out because a lot of times we as developers just NPM install, don't look at the options for it, right?
But even in this case, when you do take that extra step to try and be secure, you're in that secure mindset. It you can still be bitten by this stuff. So just a heads up on that. So it goes into detail of what cross eyed scripting is, why it's important, that type of thing. I would love to show that a bit further. I don't I don't have it set up on my machine. This one that I'm.
So yeah, it's a little little out there. Yes, I mean, there's var, there's cons, there's var and cons being used in there too. So there's something something to call out there in terms of how old it is. I guarantee someone. So they put this in probably five years ago, and then someone came through correctly putting cons three years ago. There you go.
Needless to say, we do need to update it to some degree, but we, we kind of don't want to because we want it to be vulnerable, you know, you get the idea. I guarantee there's production code that looks just like this, so. Absolutely. So now here's the important part, right? We know that this is a problem. Maybe as developers, we're like, we don't have time to like dive deep into why this is a problem or how I can be exploited in my app for it.
I just want to fix it, right? And right at the top it says remediation upgrade to marked 0.3.6. So in that case, it's a, it's a patch version, right? So we, we can to some level of confidence know that it's not going to have a negative impact and be a breaking change typically speaking, right? There's, there's exceptions to that. But if it's always properly following semantic versioning, then we can expect that.
And that way we can bump that up, run it in our CICD pipeline, make sure everything the tests are passing, whatever it may be, try it out in a running environment and see if that upgrade to that patch is working as expected still. And it's fixing that security vulnerability. It's introduced in the previous version of that library.
So theoretically, if we go three dot 3.6, I hit save. You can't type and talk at the same time, apparently. Oh my gosh, there we go. You will need to yeah run in payment stall 'cause it's gonna look at. Theoretically, we'll see. Probably should have taken note of how many vulnerabilities were there.
That's two. Well, keep in mind the 111 that's being reported in the command line is from MPM and not from sneak. Yeah. So if we take a look at sneak again, let's see what marked. So Mark 3.6 has an issue. It's fixed in three seven. It'd be kind of interesting to see like how far to go with it kind of you know what I mean? Yep.
That might be a potential breaking change to the project cause like marked is up to like version four or something like that at this point in. This yeah, I might look at like breaking changes. Look at the next major version. Yeah, see. And that's where like if I'm if I'm doing this, I would actually go part by part.
So I go to marked, I'd say update it to the latest and go fix all the issues surrounding it. And that's just, that's the way I've always done it. I don't know why but like that takes time too so. Well, that would probably be fine if you did it like one package at a time, but you can't just like update everything to the latest and expect that to work every time.
That's what throwing the baby out with the bathwater or whatever. Here we go, rewrite it. I don't think I've ever heard that expression before, but that's. Funny. Oh, really? Yeah. Oh, yeah. All kinds of good stuff. OK, so that's kind of how to find them, you know, learning more, how to update them. We got a couple comments that we should probably address here. B1 says logo reminds me of my old favorite security WordPress plug in Cerberus.
Does it happen to be the same company? My guess is we're surrounding security. So that's like a Hades dog thing if I remember my mythology right. So it's probably a little bit of a tie in there that's. The three headed dog, isn't it? Yeah, I think so. I don't know for sure in that regard to to be, if I can answer that as well.
I'm not. I'm not familiar with how they came up with the the whole logo and everything. Like that? Like a a Doberman though I don't know. Yeah, it is based off of Doberman and and his name is Patch. So I like that. I didn't even know that was the name. That's perfect. Yeah. OK. So with all of that said, what do you think we should head next? Brian, well, so let's go into what you were talking about where all right, how do I get maybe a more holistic view? And this is where I think you could still drive in this case where because you have a sneak account, you can go into your app dot sneak dot IO on the website and you can get a a bit different of a view of how everything's working here. So this is where your, your dashboard is. And so maybe you have folks on the team that aren't working in, in these extension in some type of development environment, and but they still want to manage the security aspect of the project or see how things are
training, that type of thing. That's where the like UI can come into play. I use it often times too, to get Sneak to just open up PRS against my repositories automatically for me so that I don't have to manually be doing that for projects that are like maybe I'm done. Like again, I'm talking about my open source projects where I'm not really actively developing on it right now or I haven't in several months, but I could see these PRS are updating through Sneak. That's automatically doing that for me. So I'm not falling too far behind that type of thing. So that's where like if you click on, you're in the dashboard view right now, you can also go to your projects view and then you expand that project that you have imported through there.
So in this case, you've done that for coding cat and now you can look at a high high level. If you expand that, it shows you all the different aspects of your your project. Now what's different here? Now we're noticing because before you just had the low, but now you have some medium and high. And so what's kind of different is with the the web, through the web app, it's looking at all of the projects in the repo where is with sneak code or sneak VS in VS Code, you have to kind of turn that on.
There's a flag in the extension settings that say, hey, look at all the projects that are part of this whole thing and not just the one contained within this folder structure, right? I was going to ask you about the whole mono repo set up, so that makes sense. Yes. So if you want to really quick, this is a great point to like check that out for other folks that probably will run into this 'cause I use Mono repos in some cases too.
If you bring up this settings view, So if you do command comma is the shortcut on VS Code and then search for sneak and you'll see additional parameters. So in that view there that little input box, you can do hyphen, hyphen, all hyphen projects you save that it should trigger sneak to do like another test or so potentially maybe maybe not.
You might have to yeah, do that. Well, you're also still is this in your project again, no switch back to your your coding coding cat one, right? Yeah. Did I do that that top level then? It should be, yeah. Count works good, yes, yeah, yeah. All right. See. If it'll run another scan for you, there we go. Now it's showing all of those.
So instead of just the low, you have some of the high and medium ones to take a look at there for it. And these are your open source appendix 2. So that version of Axios, you might want to take a look at that and so forth, right? Yep, this is great. Yep, The funny thing is like there's packages out here that we don't even actually use the stuff in the package.
So definitely a good eye to keep on the clean up as well. Yeah. All right. So let's go back over to the website. And So what you can do is if you click on one of those particular like the packet, the first package chase on there, this in a similar fashion, you're able to see all the vulnerabilities that are being reported on the project, more details about it, but it's a little bit more visible, I think.
And this is where like our VS Code extension is being iterated on. And there's definitely a big focus for this year to improve the developer experience so that it can be have a little bit more parity to what you get in some of the other areas of sneak. So if you click on like maybe that protobuff one or the dicer one and you do show more details, it's kind of hidden a little bit there.
Shoot, there we go, right there. Yeah. And this is where it gives you a little bit clearer view of like, OK, it's introduced through this version. And if you can fix it by upgrading the Firebase Admin 10.3, which is a significant change for you because that's a major version that's showing you, I think the one that will encompass it all to fix all the problems that were for all versions between the one that you have in there, the latest one as an example. Then the other option you have here is instead of you manually going and changing in your package JSON that you can, that you you were already trying to do it before to fix this vulnerability, green button in the bottom right. You click on that and don't worry, it's not going to actually do anything, just that you get to choose when that happens.
This is where I was getting into do this piece meal. I kind of don't like that sneak does this because it's it kind of entices you as a user of this to be like, hey, well, I'll just check it all, you know, and then open up APR for all of them, right? Just leave that one checked. Scroll to the bottom and you say open to fix PR.
And So what it's going to do is since this is GitHub, it's going to go out to GitHub, set up the PR that does that fix for you. And that was pretty quick too. I thought I was going to have to talk. Through that such a nice like feature. It's nice, but it like prefaces it too and where it came from. It also does like its own branch, so, you know, it creates like a sneak prefix branch for you so that you know that it's not going to interfere with some of your other maybe branching conventions that you might be using. And then you can review that you pull that branch down, run it locally, make sure it's all working, and then decide to, you know, go through whatever typical review process you have before merging it into the main branch that you might have. Cool, what did?
It change. Can you look at the changes? Yes. So it just updated and it didn't do the lock file. So I bet that's why the Versailles deployment is failing I. Would imagine just change the. Package. Yes, because it because it upgraded fire race admin. It's probably going to fail all over the place because there are some significant changes between 9:00 and 10:00.
I'm just noticing and I should have asked this before, but when I gave sneak access it actually has, I can't remember what, what these are called bots, whatever these things are where they automatically run. So is this actually in a preventative mode right now where if security won't really came through in our PRS it's it's all set up and it'll block it? I'll say yes, like tentatively because it's based on how you set up the repo, right?
Like if you have those checks, the PR checks or is that repository configured in GitHub to like right now you have merging blocks. So if if sneak did show a an X like the Versailles ones show and then that button would continue to stay, you know, disabled like it is right now. OK, but being that it has the green check, it means it passed.
You're good to go. And are we setting that up and sneak where does that like I want it to have X amount of coverage or or how does that set up work? So yes, you can set it up in the sneak UI that we were just on on the website where if you go into the project and in this case that the three dots that you're clicking on earlier, I think you go to project. All right, maybe open up the project actually, sorry, I don't remember where it is.
This is where you can start choosing like, all right, do you want sneak to automatically open up fix pull request for you? That's that second one there. Do you want to run sneak test for pull request? All this is and you can set it more globally. That's where you see where it's saying like inherited from, from integration settings.
So if you went to that then you can say OK for all of my GitHub projects that I important to sneak, this is how I want sneak to behave and process these. Right. Gotcha. OK, That's really cool. Yeah. There's a lot of options there that you can set up, but you know it takes advantage of the controls that GitHub offers or any source control management offers to you for your projects. Cool.
Is there anything I'm missing out in the like dashboard area we haven't talked about I think? That mostly covers it, at least to the extent that I personally, that's what I'd like try to talk to the most part is like what I personally use because, you know, I don't want to steer anybody in the again.
I want to be man. What's the word I'm looking for? True, just true to this non biased. What's that? Non biased. Yeah, yeah, exactly. I don't want to be like, oh, I'm just trying to sell you on this. Like, you know, you sneak, don't use it. I, I want you to be successful in what you're doing as a developer.
And that's, that's what matters to me. And I want you to do it safely and securely. That's, that's my, my motivation because that's how I started, you know, so. For sure. I'm wondering if there's anything else. I think we covered quite a bit of it. I think the, the get up integration or whatever get management tool you're kind of running is pretty powerful.
Along these lines, I, I think where you see this or where I've I've been seeing sneak a lot is an open source projects when you put APR in, it's running those vulnerabilities and then things like that and checking them. Is there any other areas that you know of that you've seen kind of in the wild where it's really been a huge success? Yeah.
I mean, well, a couple things that come to mind that we don't need to go into demoing or showing is like the GitHub action stuff that we were talking about before. If you set up a pipeline beyond just the PR checks, like maybe something does make it into the main branch and then that does try to do a deploy. You can have it stopped from there too, like to make sure it doesn't get deployed to that environment if the sneak check doesn't, because maybe you don't have that the control on the PRS, Maybe somebody forces a merge, right? That type of thing.
You can have sneak check again at different layers throughout the development life cycle, right? Yeah. That makes sense. So that's, that's very important to call out. And then like sometimes, you know, maybe things aren't like in, in any security tool, from my experience, there's going to be cases where things are being reported to you, but it's actually you, you maybe you investigate it further, you research it, you try it out and you're like, this doesn't actually impact my code. You can ignore that stuff and there's different ways, different approaches to different ways to skin that cat where you can, you know, tell sneak ignore this. I don't care about that, right?
Yeah, that makes sense. So the easiest way to get started is kind of what we walked through today. Would you, would you suggest like, hey, try out the VS Code plug in? Most, most of our viewers are using VS Code. Just try that out and kind of see how it goes. Or would you recommend like drop it right in a a repo and get running from there?
So again, this is me being honest and transparent. I, I'm, I'm happy with our VS Code extension, but it's also, it can be quite noisy in terms of notifications that it pops up and that type of thing. Not, not what we saw today. Like that stuff is not bad to me. There's, there's some things that they're working on right now where it's like it could be a log, like an extension log behind the scenes that they need to do.
So I would say, yes, use the extension. But now this is actually great VS Code in a recent release edit the capability of muting notifications from extensions. So you can just, you know, don't, don't tell work that I, I, I said to do that. But you can mute the notifications for the sneak extension and still get the benefit of the security aspects of it because it, it'll, it alerts you like, because the way the extension's driven.
Actually, this is one last thing to call out. If you're more CLI driven, there's a sneak CLI tool. And that's how the extension actually works and is powered behind the scenes through the sneak CLI. But the, one of the things that the extension does is it like alerts you that it's downloading and the new version of the CLI.
And I'm like, I don't. Need that to be a pop up notification in VS Code to tell me that every time I open up VS Code. Like just do it behind the scenes, I don't care. You know. Stuff like that. So, so yeah, check out the check out the extension if you're more command line driven, the sneak CLI tool has everything capable that we just went through and more through that through the command line that if you'd like to check that out. If you're, if you're some of these folks like writing IAC and and building out containers and things like that, is that typically the same kind of flow like you're writing your IAC code, you might have issues, it's going to pop up in VS Code, but like you go to push as it's building that container. Is there like kind of like a pre and post check that occurs there as well that you can put in your pipeline? So it's there's a lot packed into that what you just said. So when it comes to the infrastructures code, the extension does do does report
alert, alert you in the same way that you see alert about open source problems or code problems, the container side of things. It doesn't do that in the extension and that's where you learn more on the CLI tool. But to answer the latter half of that that project, yes, you can. In the same way that we have checks for your code and open source vulnerabilities, you can, you can implement those in your pipelines or in your normal PR process for container and infrastructure as code stuff where I've used 'cause I'm still like getting, I'm starting to start use dev containers a bit more so that I don't have to pollute like my environment that much with like installing all this stuff or different run times, 'cause I'm jumping between Python And Nodejs a little bit here and there. So I'm learning a bit more about that. And the way I would test that is I'm using the CLI. You do sneak container tests, like sneak space, container space test.
It will then check your, your base image. For instance, we that's something we could have gone into, but time permitting and maybe another time we can go into that or have our our buddy that used to be a colleague of mine, Eric Smalling, who's fantastic when it comes to container security. He should be on your show to talk a little bit more about how to approach that for sure.
That would be awesome. Yeah, let's set that up. Cool. Anything I missed? Anything you want to shout out? How to get that swag? Any anything like that? Well, if somebody knows how to get that swag, let me know 'cause I can't wait for us to open up a merch store. In fact, it's a funny story about that. A colleague of mine that's been at the company longer had some swag, like extra swag, and he shipped it to me. The kindness of his heart because he knows how how into the branding and swag I am that I was like, thank you, you know? Yeah, and that AWS Reinvent is kind of where I, you know, ran into the snake team and they're they're spray painting things. So it was one of the coolest booths that that was at Reinvent.
It was capturing crowds like crazy. So you guys are doing something right in the marketing slash Devrel team of sorts? Yeah. I've been very impressed with our marketing team. One of the things that they did I think about a year or so ago is like a campaign is being that our, our logo is, you know, a dog, it's a Doberman. They went into, we had a big event going on, I think it was in Boston and they went to like some dog parks around the area and dropped like a bunch of Sneak branded like tennis balls in there with like a note in the basket of like, hey, you know, if you want to check out security that, you know, that type of thing is super creative in the Yeah. Big shout out to the marketing team at Sneak. Need to like host a adopt A dog event or something like that. Yeah, yeah.
