06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Bug Bounty · STÖK · · 41:04 runtime

Your AI hackbot has found another 100+ vulnerabilities. Who fixes them? And how? ft Erlend

In the wiki Also namedGlass Wing
Transcript 7736 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

Hi, I'm Sturk and you are about to experience the Builders and Breakers podcast. The podcast dedicated to the high velocity shortcuts we all need to navigate this everchanging landscape and it's based on conversations between the people that are currently just building and breaking the technology of tomorrow. We live in uncertain times. things are changing by the minute and knowing what direction to take can be the whole differentiator between a total success and well another iteration. But before we begin, I would like to send a special thank you to Sanity Labs for sponsoring our show. Thank you. Now, without any

further ado, here's the episode.

Hi and welcome to this episode of Billies and Breakers. I'm here with no one else but Coug. Hi Coug. How's things going today? So something that happened today that I'd like to talk about was that Entropic released a report saying that developers are now 8x what they were in the beginning of the year, which means that they're producing 8x the output. And this to me sounds like a bit of like a prisoner's dilemma because like a prisoner's dilemma is like you and me we're we're criminals stuff. So we are committing a crime and we get busted >> and in the hearing room we're separated and the cops tell us if you snitch we'll let you off the hook but you know that the other guy is saying it too, right?

And everyone else is doing it which means that everyone just needs to snitch. That's that's the problem of the prisoners dilemma. And this is where we are uh with agentic development. It's not a bad thing, but like if you know that your competitors are producing more, you need to produce more. And in order to talk about the consequences of this, we have invited a legend called Erland Otteral from Norway. You are a community soul. Please tell me tell us about yourself. >> Yeah, I'm I'm Alan. As as you mentioned, I'm I've uh been in uh a developer for many many years. also been in appsc for a really long time building both open security tools uh and been part part of

the OAS boss chapter uh doing lots of conference talks and stuff like that. Uh lately the main focus has been on on AI and ABSSE uh especially how we can use uh AI to to get better apps or at least get better apps into AI. Last episode we had Thomas Olafson. He asked for a few

wishes. One of the wishes he came out with was why can't we have bots that are better at fixing things? Why can't we? That's [snorts] a really good question and just looking at what's happening right now, it seems like the big uh AI companies, they're mainly focusing on uh how to build offensive security uh into

these these platforms and have them escapes and all kinds of stuff, which is pretty scary in some ways. They're doing weird stuff, diverting the the task or the goal that they're set to do and then just finding ways around it to please the humans. It would be nice if we could have more focus on fixing stuff. uh there are these initiatives uh that's been started like uh I guess Glass Wing and some others where they are at least focusing on on open source trying to figure out ways to to improve open source these things there will be more focus on fixing problems than just discovering the problems to put it that way.

>> Yeah. Like is this a pattern that you you are seeing too like both of you actually we now have a backlog that just grows. It's so cheap to detect things, but it's so expensive to to fix them that that there's no one else to talk to or who do I assign this to, you know? >> Yeah. So, so one of the big problems, I guess, is if you're if you're creating um even if you're creating a patch of something, how does that patch fit with the rest of the code that is supposed to fix, right? So we we can throw AI at the problem and say hey okay there's find all the vulnerabilities and then uh generate some fixes but h how do we know if that thing really fixes what it's supposed to? How do we know it doesn't introduce new stuff? A lot of code these days still doesn't have proper unit

tests and integration tests and all that kind of stuff. So if you if you start messing around with that code and and fixing stuff, how do you know you're not breaking existing functionality? How do you know uh you're not destroying stuff? I I have I have an u an an interesting example. Just the other day, I got a a big uh pull request for for one of my open source tools and it was massive and obviously written by AI. Uh but the problem is it it changed some parts of the architecture in some places which was like I don't want this change and and it wasn't really a security fix but it sort of dials into the problem anyway because it's it's like a massive fix of many many things in one PR and it's weird when you look at it because it's doing things it shouldn't and and I think this is this is one of the problems like open source maintainers will get like even if they get a fix that fix might be off in some ways like it it it's trying to fix a problem and then introduces other problems. Fixing software is is more than just fixing one specific bug like it needs to fit into the rest. I did re-watch your talk at NDC that you did and you were talking about like getting some kind of scaffolding like how it produces things because these agents are trained on all code not just the good code and that was like a good takeaway for me like it doesn't know the difference between what's what good code looks like and bad code or newer best practices there are things that changed over time right we don't do things in a certain way anymore and we are using newer frameworks um you were mentioning a that there were some way to you know add skills to at least align to like we don't do serverside template injections anymore or we don't when we do certain kind of implementations we do it differently.

Can you expand a little bit of that? >> Yeah. So so uh as you mentioned there there's this uh this thing where where AI is trained on all the code it can find on the internet. God knows there's a lot of bad code on the internet that it's been trained on and even even like some of my code on GitHub has deliberate vulnerabilities in it and if that goes into training data that's not really a good thing. Uh but but there's a there's a bunch of code online that has various problems and if it's trained on that it's it's sort of bound to repeat some of those those mistakes at some point.

If if we tell it just use security best practices then which security practices would it pick? Would it pick the latest ones? Would it pick some old ones it found from 2012? Where would it go? The the idea that I tried to present in that talk is what if we can sort of influence the decision- making into picking what's current best practices so we don't have to depend on a model randomly choosing uh some practice that it found uh in its

memory somewhere. Uh a a good example of this would would be let's say password hashing or picking crypto algorithms because that's something that changes over time like the recommendations for what's what's the current best algorithm to use for password hashing. What are the current best settings for that algorithm? That's not not something we want to leave up to chance. And having tried this a bit, I I've seen all kinds of stuff where it it sometimes picks a really good one. Sometimes it picks SH 256 without hashing. Sometimes it it uh it does super weird things. I I think the the most funny example I had was I was trying to get it to use tokens for authentication and it just invented its own token format without any security whatsoever. It was a B64 encoded time stamp and user ID. Uh that that was it.

um if if we can get it to sort of inject security advice while it's doing its job, especially while it's in the planning phase, if people are still using the planning phase for writing code, rather than like write a bunch of code, figure out that that code is insecured and loop over it and then like try to fix detect and fix the mistakes. What if we get can get it to sort of write better codes to be the code to begin with like more secure code, write more defensive code rather than like adding it after. in in ABSC we've taught developers this for tens of years security should not be an afterthought you should think about it while you're designing the system while you're writing the code etc etc and now we're it seems like in AI we've sort of okay let's write some code and then find the mistakes and then fix them which is an odd loop and it wastes tokens for sure >> I find it super interesting and and one thing you mentioned in that hog as well is that if bad code goes in it's going to continue iterating on bad code but if you're sending good code in it's going to be better at writing just good code.

I didn't think about that. Does that mean that let's say I take something like OAS shop that is vulnerable by design and I send that into some kind of coding situation or harness that I'm working with and I ask it to optimize some features. Will it actually build worse code than if I gave it something that was more pure? >> There is a good chance that it would keep writing bad code because it tends to sort of augment what you've already done. Um that that's some of the the findings from from the Dora report and it makes a lot of sense if you try this out in a sort of a closed scenario where you have one method that's that's vulnerable to SQL injection and you say I want to add a new method it's going to kind of copy the pattern because it's really good at copying pattern. If you look at the frontier models right now, that might not be true, but because they they've gotten really good at detecting specifically SQL injection. Even if you have something that's vulnerable to SQL injection and you ask, "Hey, can you look at this code?" It's going to immediately point at the SQL injection.

But that's just one type of vulnerability. So So the the the problem here is if if we have many different types of of vulnerabilities, some of them are more convoluted. it's it's going to copy that code that we've already written and and kind of keep going in that way. And if we're writing uh bad code, it's going to kind of look at that code and say, "Okay, I guess this is what the developer wants." And it it makes a lot of sense that if you have bad code, it it will keep going in that direction. But opposite is of course if you have good code, it's going to uh keep writing good code. I think if under the assumption that finding bugs is sheep today. If we just live with that assumption, then you can sort of find and whack and mold each and every bug individually for for a very long time until you realize that this is a a losing game where you're essentially just burning tokens. You're producing code at an 8x rate and at the same time you're whack-a-ole hopefully at an 8x rate and then you're quite stale. But if if you think about like root cause analysis, if you can say that the reason why it's even possible to have this bug class is because we left this setting open in a framework or we're using a bad framework etc. If you can sort of harmonize and collect these thematics for root causes then maybe you can start guiding the agents because I think that's what I want to get at like fixing individual bugs is one thing and and avoiding individual bugs is one thing but uh actually defining the framework

settings and how the framework is intended to be used. Uh no one's writing low-level code anymore. Tell tell us what you think about that like how how can we how can we use these sematics to to make agents go go correct longer. So,

so this this sort of alludes to a very interesting thing uh that so we've we've written all these secure coding guidelines that uh for for companies for years. We said like oh the developers oh so they need to have this secure coding guideline uh and and a lot of those are largely unread often because they're too big agents they don't mind reading files that are big they just churn through them. So, so what one interesting point is here is we we can actually now have secure coding guidelines that are properly used. So if it's framework settings, if it's uh how to use a specific method in a specific library or something to avoid, we can now operationalize that with the agents. Uh and the way we do that is we give them a skill and in that skill we we define expectations and and how to verify that we're not using one of these bad uh methods or functions or that we're using things in the correct way. Escaping things properly for a specific context.

All that kind of stuff is now stuff that we can we can get into the context and have the a the agents um look at while they're writing code. One of the companies that I that I work with and they're using uh Devon and inside there they have something called wikis and the wikis would describe the architecture around how you would like your code to look. They really been super successful with letting people to just develop natural language coding since it always references understand the wikis for the context. So this is the way we be build our schemas. This is the way that the API should look. This is the authentication we are always using. find that exceptionally interesting that you're able to actually implement these systems in the architecture like all the things that we always talked about can now be imple implemented and learned upon is that something that's a available to do outside in other areas would that be skills in let's say uh cloud code or codeex or similar solutions >> yeah so they they all the big coding agents have some sort of skill support right now um and uh so oats has some skills at their repo So um there's a bunch of skills at at like skills ripples like skills sh and stuff like that. Um and it's very easy to create a skill as well and so so you could take your your coding guideline that you have right now and you can just say create a skill from this uh and and plot or whatever agent you're using will happily help you and and guide you through how to create a skill from that. I I think the biggest problem we we get when we start doing that is sizing. So, so if we if we take like a bunch of documents and we try to turn that all into one single skill, the agent will lose uh lose focus. So, we we might have to split that uh into into separate skills so that like maybe there's an authentication skill. This is how we do authentication here. Maybe there's u uh another skill that tells us how we we talk to a database in in a particular way and and the patterns we're using for that. And the other part of this is it's really important to explain what good looks like, how to verify that something is the way it's supposed to be. Uh if you listen to talks from anthropic, they typically talk about the loop. So we have the loop, the agents go in a loop there. You're not supposed to be in there. You're just supposed to sort of kick out this loop and have the agents go in a loop as long as possible. Um and the way that happens is if if we can give them both a goal but also a way to verify uh that it's that it's sort of working towards that goal and that it's going in the right direction that helps a lot. So, so having verifications that could be tests, that could be textual verifications like lists that it needs to comply with and stuff like that that really help. And the talk that you mentioned earlier that that you seen me do there, I talked about OASVS, the application security verification standard because that already has a bunch of of checklists like this is this is how you do stuff in a good way. um which makes it a really good fit for for just those verifications that I talked about.

>> I've been favoring linting as a pattern for enforcing things especially in the cases where I have to give freedom. So I

want to minimize variation freedom when I can when I know that there is a certain risk especially if it comes to say front- end functions that you could use to render fancy things then I want to limit that freedom to very very few things so that we know what can be produced in those cases linting really helps in protecting against you know the the dangerous functions that that could sort of end up in a bad state but that's maybe after the stage of having the agents thinking the right way and in my opinion if you want defense in depth in application security you need to have well you mentioned unit test which is yes essential and for some reason it's going down compared to the code that's going up so it's like a combination of a few different areas that you need to have coverage in in order to tackle a given problem and the organizational memory lives in all of these combined and This sort of creates the depth. But this all assumes that um you have the time and attention to identify the root causes and know what to minimize because this is minimization, right? The attack surface uh is flattened. It doesn't go down because previous bugs are previous bugs. What happens to the old bugs? How do we deal with that?

>> Yeah, just just to pick up on the linting thing. I think that's that's a also a really good way to get the agents to know that they're they're growing in in the right uh way. Like so uh if if it runs a litter and it finds a problem, it's going to it's going to fix that problem automatically. And and the really cool thing about using AI for when you're using lintters is you might not know how to write a linting rule, but I can assure you the AI will. So if you have a specific problem you can actually I just asked it hey can you uh avoid this problem in the future by adding a rule to the llinter and of course not all problems are uh good for llinter but if it is a problem then we can use the llinter for that and and so we can take a lot of the automated tools that we have and have AI help us write

tools for them and this is not just llinters but this is also like classic security tooling like uh like SAS tooling and that kind of stuff the old legacy code that that's in That's an interesting part. What do we do with the code that we already have? How will this be uh like a year from now? If we have an old system and we think a this system we've had it for a really long time, we we really want to replace it. Should we just like do the grand rewrite that we always dreaded while we because it would take like months and months and now we can do it in in a week or in days or or do we still want to kind of keep that old system and and see what happens?

that that's such an interesting problem going forward like will will these grand rewrites will they work? Uh and and of course that all depends on the testing and that's that's that this is sort of true for all legacy code. If we don't have tests do how do we know that the things that we're fixing be it security or or regular bug? How do we know if we're fixing something while breaking 15 other things? Because a lot of code is convoluted. A lot of code is hard to know if you're touching something over here, what happens over there. It it will be very interesting to see what happens. Of course, you could get the AI to write tests for the old systems and then create the new system based on those tests and all that kind of stuff.

But yeah, as you said, like the the attack surface, the the existing bugs, they're still there. We need to get them fixed. and and that this is this is where AI can help a lot because AI is as as we we kind of started this discussion with AI is is it's cheap to find bugs or it's cheaper to find bugs because a will happily read code over and over again to try to find stuff. But yeah, if the fixing is kind of the the the I guess the big gate right now. We need to get things fixed. talking to a lot of of of people that are running apps programs, their biggest problem has never been that they have too few bugs. Like they have too few issues in their issue tracker, too few problems in their security panels. They've always had like a massive amount and and uh so the the

way that they worked on this right now has been to sort of try to get some prioritization of that somehow. What what's the most important thing to fix right now? What could be the outcome of having AI help us here is we can sort of reduce a lot of the stuff quicker. >> I I have an idea and that's like for the bugs where you require code consistency all over you could have slow burn where you have something in the context available saying if you're changing a function like this and you see this pattern then replace it to fix it. So you make the slow burn because changes are happening everywhere all the time.

So you might as well do like a slow burn fix when you do that is what you dreaded before where you have a change that changes two things and you didn't like that but but but that's something you get. You get a change that changes two things but you do it deliberately and then you have the other category which is things that you could sh fix automatically as one of like an open redirect for instance or a bad logger. That's something you could basically just have a factory just making 100 PRs

and just fixing all occurrences of these uh these instances. If you know what you want and you can verify that you will get it. Um and it doesn't affect anything else then yes just go and do it. If it's an integration, then back off and think because that's the case where where you're doing something that's much more hard and requires a type of test that's always fairly expensive to do. This is interesting because it's it boils down to the same thing uh if you if you like read the the book accelerate uh which wasn't about AI it was about like how do we how do we produce software faster what's always been the problem or uh we talked about as the problem is how do we verify that

the system we're building that it that it it's it's in a good state right we need we need unit tests we need integration tests. We need all of this stuff. And the more you have of that stuff, the the better uh you can sort of auto accept PRs because it's it's a fix.

The system still works, the tests still pass. So if we fix this open redirect and nothing breaks, okay, good. We can sort of almost auto approve it, right? The the better test coverage, the better quality tests we have, uh the more we can rely on sort of automated fixing. that the only problem that that I've seen so far that sort of uh works the other way around here is sometimes AI will change the test test to make it pass rather than fix the problem. So uh I had I was working on this solution where um there was a problem with with something and I asked it hey can you add this new thing and and it it would change the tests in a way where it broke the functionality to fix the new thing.

Um, and that's that's kind of annoying, but but I I think these problems are um

we we'll see less and less of these problems. I'm I'm seeing a big like quality increase in what I'm getting out from the the the later models that are coming out right now, but it's also a bit hard to measure, right? Because I I'm very security conscious in what I do and and a lot of the stuff I do has some um there are some let's say security contexts around it. So, will the agent

write better or more secure code when it's helping me than it when it's helping uh let's say a random developer? >> I was just going to say it's not just about your hardness. It's about your organization and your organizational history cuz you are probably reaching a maturity level right now. you're stepping up on a certain uh ladder and

when you are on that level you are going to see a new type of behavior where you're defending in depth perhaps where the impact of a certain bug is much lower to you because you have seen the bug before and you mitigated say exercise with CSP type thing you know I worked with an excellent QA engineer Ed over at Legora the other day and he built a library to make tests much much easier So the AI would write tests and he what he did was he made sure the testing when you want to make it we were checking for I doors where is doing access control tests and we want 100% coverage because you cannot fail at this.

>> So he made it so that you had to have two lines of code to verify the authenticity or the authorization of an

endpoint. So it was like the one user tries to reach the other thing. The girkin was so small to describe this and I just loved how easy it was to verify something like this and this way we could traverse like all the endpoints almost immediately and just generate test for all of it and that was because he made the scaffolding for that part >> and I I think our jobs are shifting well to being flow managers but we also need to direct those factories into producing the things that makes things easier. Uh so and this especially been a big problem where AI would just add add new code add new code add new code add new code and so so rather than do what you just said like build a scaffold make it easy it would just sort of almost copy paste stuff all over uh to make things faster that's also a change that I'm seeing now that uh it's writing more it's doing more refactoring it's it's sort of it's writing code that that just seems more sensible in some way and I'm not quite sure when and how that happened. But but like a good example of this is I asked it to implement I have this demo app that I was using for a training and I sort of asked it to reimplement that app because I I wanted to to start over and this time around it would write unit tests it would write input validation it would do a lot of stuff that it didn't do earlier. uh and it did this automatically but but then then again I'm I'm wondering how how much of sort of the memory of uh it working for me that it's sort of bringing into this again would it do that for for a random person we we have this this thing now if you if you ask an AI to write a a website it's going to write it in React uh even if you say like write a website for hello world it's going to write it in React it's going to create a massive website just for for hello world we're converging against sort of towards a very few limited set of frameworks. That's good in one way because we can then have it learn how to do that securely. But I'm also wondering will we get a lot of new

frameworks? Will there still be people writing fra frameworks if AI is doing all the code writing or or will we sort of stick with the frameworks we have right now for a long time or will AI write new frameworks? >> Yeah. Yeah. Exactly. I want to nitpick you with that. You said will people write write new frameworks? No. [laughter] >> Will AI write new frameworks? Yes. I I know that like as long as we care about security, the key to improving security in a big way is using new frameworks. I I hate to swear, but like take PHP.

It's very very very very hard to write securely. And and that's because it's it's so unframeorked. It's so unstructured in such a way that it's very very easy to fail and it's even easy to fail for for for AI and that's like the reason why

it's picking framework is because it's want to minimize it works while still leaving options available for doing more because the moment the user is done they're going to ask for this and that. It knows it's terrible at Scala and Java. It knows that. No, for for sure it's going to pick it's going to pick frameworks for for uh for that exact reason that it's it's this is probably not the hello world is probably not the end state. There's probably the user is going to ask me to to to add a lot of other stuff later. It also creates a slightly like more boring web. I guess it's it's interesting to to see where this goes and and especially around the frameworks. One of the things that that good engineering organizations have been doing is sort of uh limit what you can choose because it's easier to secure when you know how how to secure something. So if you're picking a framework that that you know okay these these are the livers I can pull on this framework and this is how how I make it secure that that makes things easier and it's so much harder for an engineering organization if you're bringing in like a brand new framework that no one's ever used before but you saw on open source uh repo or conference talk I want to use this right now >> I got a question because I was thinking about it since you also have an offensive background you've been doing a lot of pentesting and think about this and and doing secure engineering for people that are building these applications. Right now we're in a situation where like cook usually likes to talk about the vulnerypse

where you know it's very easy to find these exploits and it's getting easier and easier to also exploit them uh using unhinged models and uh you know bypassing the built-in security that we can find and see. When we are using these models that are unhinged and less security and we want to exploit and they're also more susceptible for prompting action. Do you think there would be a future where people are using customized uh models to write like optimized code for a solution? They're not using foundation models, similar ones that those are being more susceptible for prompting actions and etc. and then starts to implement backd

kind of stuff just out of the bat. Do you have any ideas or been thinking about these kind of attack scenarios? Yeah, that that's a that's a very interesting question because um there was this um this um post the other day about how few documents it takes to influence a model and it it was a really really low number. It was like 250 documents or something which is super low when you think about it. So, so can you can you influence the uh a certain model uh to do something in a in a way where uh it would when it's writing code later h it would actually introduce a backdoor that that's sort of to like poison the model through training that that's one interesting question around that and and will we get there I think we might get there but so probably not through the the big models but uh I see a lot of focus now and people are saying hey we want to we want to use local models more because we're we're burning so many tokens and it's it's getting really expensive if we're using like the the big vendors. Um so how what can we do

with these local models? And then where how what do you know about the local model that you're using? What do you know about the training data? What do you know about like what's actually in there? And how c can you somehow make it

plant a backdoor based on a specific thing? Those are often quite hard to detect. If you're trying to sort of look through the weights of that model, it would be really hard to detect such a back door. For for security research, it what's interesting there is you can actually use quite weak models to detect bugs and then you use uh a more expensive model just to tryish that bug. And and it's it's super interesting then that that you these these weak models you can spin through a lot of code in a really short time. some companies doing a lot of of scanning of code is is they say the harness almost matters more uh than the model and I find I find that super super fascinating. I've I've looked into this myself quite a lot.

It's definitely doable to find a lot of bugs with weaker models and then just try it with with the more expensive ones. It's super interesting that these these models can find the type of bugs you mentioned the bone apocalypse. um looking at what they found across uh code bases like Firefox which has been heavily audited and that they still found a big big pile of bugs. There there will be a period of time where we we have to live with having bugs known

bugs in software that we're running because we just cannot patch it fast enough. So there will be a time now where uh things are bit scary. I I think they they mentioned like the the time to reverse engineer a patch for Microsoft is gone down insane. Uh because like usually you would get the patch, someone would have to manually mess around with it, figure out what it's actually patching and then figure out okay so this is the the the problem that it tried to fix and then but now you can do that with AI it's super fast. So the patch window is going down. The annoying thing about the patch window going down is is twofold. one is like okay so how how quickly can we patch but we've also been telling people like hold off on installing new components because they might be backed and now you sort of see that window coming from both sides going like this like hold off on patching but you have to patch fast because AI will find the problem faster I guess uh what I'm trying to say is detection of of uh of breaches will become super important uh the ne the next year or so uh because of all the bugs that will be found and then uh we we we will have a lot of those bugs in in the software that we're running. I think react for shell or or log for J look for shell like uh that kind of problems just um maybe a lot of them.

>> I agree. And then but I also find it super interesting like in the day and age we are where you can get different kind of models for different use cases. I think it was like yesterday or a couple of days ago, uh, company called Akido dropped their Altar 1. It's a defensebased, totally customized freefor-all open model. That's going to be super interesting to see where that can go in the future. I mean, they are they're obviously got a lot of training data. They got a lot of code that they scanned and then you've been able to see like, yeah, this is shitty and this is good. I haven't tested it. I I have no idea how that works. And I had a great conversation with Cook the other day regarding Jeb, right? That using that as a front-end guard for input handling and maybe there's a way to just look at that too like is this going to be bad code that's being implemented even in the code development cycle. Do you think that's even possible C or or am I just dreaming about a scenario that that can help?

>> It took me a some time to connect the dots here but now now I see completely where we're going. So assuming that we're going to open models, these open models can be backed with red herring type words. You know, the the words that triggers unexpected behavior and that's another type of backdoor prompting action type thing, stored prompting action, I guess you can call it. In order to trigger that for the attacker, say a Chinese state vendor or state actor that would like to get into the model, they would need to produce that input say in a library that the model uses. And when that library name is there, it says red herring in the code, it suddenly starts doing evals everywhere or doing something very insecure format strings in SQL. I don't know. And this is a potential scenario

thing is yes, you can use jev uh as a guard for prompt injection. I've been reviewing it over the weekend and it's doing excellently at it. But that Jev doesn't know what to look for. the the word red herring it doesn't know like that that word means do SQL injected code or do eval or do insecure code so it's going to be very hard uh to do it without having it as an afterthought uh to to review things because you don't know what to do what you can do however is to have the defense in depth in the build pipeline that's why I'm so into deterministic things like linting and all these things so if you see patterns starting showing up like okay the crypto is going bad. This is going bad. So external review other model that's the type of thing and deterministic things first other models reviewing what you're doing um threat modeling what you're doing and storing the assumptions about that threat model saying this is the golden nuggets we want to protect this is the trust boundary and binarily I indicating like okay a bug we now introduced is this or that kind oh I I got so many things to say about this but it's it's a really interesting scenario as well but without even introducing bugs this way or bug doors this way, we have like real bugs everywhere right now. It's like the vol apocalypse is real, right? So assuming that you have a model that's ready to do what you want it to do, you can break things. You can you can you can pop things for sure. And Erin mentioned detection. I think yeah, like we should start talking more about what defense in depth means for application defenses. And I've been on about this and no one seems to want to talk about it, but like what if you would have a way to have your software

framework that you're developing in alert when bad state occur? Like you can see XSS using CSP. We all know that. But could you find the attempt to do an id like oh why did they try to supply another org ID from a different org? That doesn't make sense. If that happens, you would want your framework,

say you're using React or something, uh then you would want React to have a way of indicating in the audit log that this is something you need to take action on because this user is behaving maliciously. That's a defense that I'm sort of interested in looking at. So

like looking for the unexpected or making the unexpected testable in such a way that you can do soar on it. you could do a a detection and response on the application level. >> No, I I think you're absolutely right on that. There was a a project back in the day called OASP app sensor uh which kind of alluded to exactly that where um you would alert if there was something that was off and you wouldn't of course you'd have to know what was off but if if someone's trying to uh do an idor a different different ID for belonging to a different org you would sort of build up a score over time and at some point you could take an action. So we had like sensors, alerts and actions. And you could say okay if if this happens uh all these three things happen and the alerts uh goes over a threshold then we terminate the session or you could block the IP in the firewall or whatever. It's a super interesting approach. I really like it. We we actually built this into a system that I was working on earlier where we had this this type of of features. It's super annoying when you have a pentest because they keep tripping it up all the time. So [laughter] you might need to have a way to to disable it for a while or say that if if uh traffic is coming from this IP then then uh ignore it for now. But it is I and I I completely agree with you. It's it's a super interesting approach.

>> Erland, speaking about the future and what we're supposed to do, what would you want to see for the future? This is your final words. So so so shoot them well. What what what you want to see in the future that would enable us to take the next big step? What I would want is for these big AI companies to

commit resources to securing open source. And what I mean by that is not just these current initiatives that they have, but maybe also commit uh to providing free tokens to open source maintainers. uh because one of the big problems that we will get going forward is we'll get a lot of these pull requests and fixes and and there needs to be uh a flip side to that where we can use AI to analyze the patches to see that they're not actually backd doorors. So someone's trying to fix something and then at the same time introduce backd dooror that kind of thing. So what I would really want is uh yeah basically the these big model providers to to commit to helping open source by providing them free tokens for maintaining the open source not for anything but for maintaining open source because the world runs on open source.

>> I want to have free tokens but I also want free tokens to save the world in a way. I I think that was that was ex

Related videos

Discussion
0 comments 0 from AI Characters · 0 readers
That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 538 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks