This AI Doesn’t Scan Your App… It Breaks In (Strix)
BBetter Stack
Computing/SoftwareSmall Business/StartupsInternet Technology
Transcript
00:00:00Your tests pass, the code is clean, you ship, and you're done.
00:00:04Then something happens to your database through a bug you were never going to see in the first
00:00:07place. This thing that just shows me exactly how that break-in happened, and it isn't some hack.
00:00:13It's open source, it's free, it's sitting at almost 38,000 stars on GitHub,
00:00:17and this thing has a name. This is Strix. Let me show you what it does, where it falls apart.
00:00:27So what is this thing? Strix spins up a team of AI agents that behave as hackers,
00:00:32similar to some pen test tools. But not one model is taking a guess, it's a crew of them.
00:00:37One agent does recon and maps your app, another goes after the OWASP top 10 in your APIs. SQL
00:00:44injection, cross-site scripting, broken access control, the stuff that actually gets shipped.
00:00:50Here's why this matters to us, because a lot of us don't have a team, and we don't have a bunch of
00:00:55down for a pen test. So we either ignore the problem, or you run a scanner that buries you
00:01:00in a ton of what-ifs. Strix doesn't do that. It doesn't say, this might be exploitable.
00:01:06It breaks in, proves it, and hands you it as a pull request. Now let me show you all this in action.
00:01:12All right, now you'd expect setting up would be a lot, but in reality, this is one line. If fired up
00:01:18with a curl command to install it, that is what installs this. Now here is a fast API app for
00:01:24expenses just built out, and it's running on this UI, which you can see here. I added one expense,
00:01:30which is subscribe to the Better Stack channel. I put one cent, but in reality, subscribing is always
00:01:35free. And you learn a ton from our countless videos coming out all the time. Now that we have
00:01:40Strix, I can run this one command here. Strix target. I'm going to put my code path in the
00:01:46live UI, then I'll add this scan mode quick. I'm just giving Strix a model to use here. I'm using my
00:01:52Anthropic API here, but it takes Claw, Gemini, or even a stronger Olama model if you want to keep it
00:01:58local. This command targets my live site and my project together. One catch here, it pulls a Docker
00:02:04sandbox on the first run. So Docker does need running. The sandbox lets the agents actually act
00:02:10without the blast hitting your systems. Then I pointed at a small app, my app that I built,
00:02:16I wrapped some off and a database to it. And that's the one rule. You only ever run this on something
00:02:22that you have permission to test. Now you think it fires back results instantly. It doesn't. Does any
00:02:28pen test tool do that? A quick scan here took about 10 minutes. All right. So, but I'll speed that up
00:02:33for you. Let me cook this and let me grab a coffee in the meantime.
00:02:39All right. With that coffee in hand, we can take a look at this now. Now, most tools tell you your
00:02:44door might be unlocked. Strix found the endpoint, wrote a working exploit, ran it, pulled data out,
00:02:49and gave me the exact steps here. Plus the fix. It told me what's wrong. This is everything I got
00:02:55back from Strix. After a little bit of time running on the quick mode, you could change quick mode, but
00:03:00that's going to take a lot longer and it's going to rack up more tokens. So how is this different from
00:03:05many of the others already out there? Manual pen test is accurate, but it's slow and it's pricey.
00:03:11A static scanner is fast and cheap, but it never really runs our code and other AI tools exist.
00:03:16They do, right? Here's where Strix kind of pulls ahead or changes it a little bit.
00:03:21The agents talk to each other in chain attacks. It's all sandboxed and it closes the loop with
00:03:27auto fix pool requests. On the XBEN exploitation benchmark, it hits a 96% solve rate around 19 minutes
00:03:34challenge. And those are real break in tasks, not multiple choice detection. How would you actually
00:03:40use this? Well, it's a command line tool with native GitHub actions support, and it works on open source
00:03:45code and a live app. Ship Python drops right in. Now, the best part by a mile is validated findings.
00:03:52Every real bug here comes with working proof. So that 400 maybes pile just disappears.
00:03:59CI hook is clean. It exits with an error code when it finds something. So you can start straight up,
00:04:05block a bad merge before it even lands. So open source Apache 2.0 brings your own model with no lock-in,
00:04:11and it's strong on APIs and web apps, and it mostly held up, but it's got real limits as well. It leans
00:04:17hard on the model you give it. You're basically renting a hacker for a minute or two or however long
00:04:23this takes. A weak local model gives weak findings. A strong one, it costs a lot of tokens. Budget three,
00:04:30maybe $5 for a quick scan. It depends on how big your project is. Deep scans are slow. They're hours,
00:04:36they're not minutes, and Docker adds friction. And on the really messed up stuff, complex logic,
00:04:41long chain attacks, it's not quite there yet. It's pretty cool for routine, repeatable checks,
00:04:46but maybe not a stand-in for a human on your actual systems, depending on how big they are.
00:04:51So do you actually run this? I mean, yeah, you could. Where I'd reach for it maybe is pre-merged
00:04:56checks, side projects, staging, catching the obvious stuff before production. Wire it in your pipeline,
00:05:02let it run on real changes and see what happens. As your only defense on a critical system with
00:05:08a bit of setup, maybe not. Think of security as layers, not a single wall. Strix is one strong
00:05:14layer. Validated feedback in CI sitting next to your existing scanners for coverage and a human
00:05:20review for the hard calls. That's just an idea. If you care about shipping secure code faster,
00:05:26this is a pretty sweet open source tool and it's free to try with your own keys. If you enjoy coding
00:05:31tips and tricks like this, be sure to subscribe to the BetterStack channel. We'll see you in another video.