Latest / CyberCode Academy / Course 2 - API Security Offence and Defense | Episode 4: Aggressive Attacks, Traditional Vulnerabilities and Exploitation of Staging APIs
Transcript
- 0:00Speaker 1: Okay, let's uttack this. We hear a lot about epis, right,
- 0:03Speaker 1: application programming interfaces. They're basically the glue holding modern software together.
- 0:08Speaker 2: Absolutely. They run everything from your banking app to fitness trackers,
- 0:13Speaker 2: the communication backbone.
- 0:14Speaker 1: So what happens when someone doesn't just poke at the edges,
- 0:19Speaker 1: but launch is a really targeted, aggressive attack tries to
- 0:24Speaker 1: take down that whole architecture.
- 0:26Speaker 2: Yeah, that's the critical question we need to grapple with.
- 0:28Speaker 2: We're moving beyond just thinking about like basic log insecurity, right,
- 0:32Speaker 2: we need to get inside the hacker's mindset when they're
- 0:35Speaker 2: aiming to welp, cripple services, or expose huge amounts of data.
- 0:39Speaker 2: It means looking at specific API flaws and those bigger
- 0:43Speaker 2: infrastructural attacks.
- 0:44Speaker 1: Okay, So our mission in this deep dive is to
- 0:47Speaker 1: cut through some of that complexity, understand these aggressive approaches
- 0:51Speaker 1: flooding servers but also exploiting maybe a forgotten test.
- 0:54Speaker 2: System exactly, and figure out the key mitigations, the things
- 0:58Speaker 2: you really need to have in place.
- 0:59Speaker 1: Because sometimes it's the smallest thing right.
- 1:01Speaker 2: Now, it often is a huge breach. Can hinge on
- 1:04Speaker 2: one tiny lapse, one forgotten corner of the system. The
- 1:08Speaker 2: attacker just needs that one open door.
- 1:11Speaker 1: Let's start with maybe the most obvious one, denial of
- 1:14Speaker 1: service DOLPH attacks. I think most people get the basic
- 1:18Speaker 1: idea about flood a server with requests until it just
- 1:22Speaker 1: gives up.
- 1:22Speaker 2: Yeah, overwhelm. It's so legitimate users can't get through or
- 1:26Speaker 2: take it offline completely, often using botnets, you know, networks
- 1:30Speaker 2: of compromised computers, or even IoT devices.
- 1:33Speaker 1: But there are different kinds of dots, aren't there. You
- 1:35Speaker 1: mentioned infrastructural attacks, right.
- 1:37Speaker 2: While DOS can hit various network layers, the really nasty one,
- 1:39Speaker 2: the one that keeps security folks up at night, is
- 1:41Speaker 2: the layer seven DOSS, the application layer.
- 1:44Speaker 1: Okay, layer seven, Why is that so much more dangerous
- 1:46Speaker 1: than just say, flooding the network with junk data at
- 1:49Speaker 1: a lower level. Isn't that just about raw volume?
- 1:52Speaker 2: It is mostly and your standard firewalls, your load balancers,
- 1:55Speaker 2: they're actually pretty good at filtering out that kind of
- 1:58Speaker 2: obvious junk traffic, massivevolume, clearly bogus packets.
- 2:01Speaker 1: But layer seven is different.
- 2:03Speaker 2: Totally different. It's way more subtle. The requests often look well,
- 2:07Speaker 2: they look normal, like real traffic from a real user
- 2:11Speaker 2: using a browser or.
- 2:12Speaker 1: An app ah, So they're trying to blend.
- 2:14Speaker 2: In exactly hiding in plain sight. It makes it incredibly
- 2:17Speaker 2: difficult for automated systems to tell the difference between say,
- 2:21Speaker 2: one user hitting refresh and a thousand bots doing it simultaneously.
- 2:25Speaker 1: So the danger isn't just the amount of data, it's
- 2:27Speaker 1: that each request seems legitimate and choose up server.
- 2:31Speaker 2: Resources precisely resource exhaustion, and attackers they have their favorite
- 2:35Speaker 2: targets for this. First up, unauthenticated end.
- 2:39Speaker 1: Points makes sense less hassle for them.
- 2:42Speaker 2: Way less hassle. If they don't need to worry about
- 2:44Speaker 2: logins or tokens or session states, managing the botnet attack
- 2:48Speaker 2: becomes much much simpler beyond.
- 2:50Speaker 1: Just no login required. What kind of endpoints do they
- 2:53Speaker 1: look for?
- 2:53Speaker 2: They zero in on anything that's computationally expensive, things that
- 2:57Speaker 2: really make the server work hard, Like what think about
- 3:00Speaker 2: but API is doing heavy database lifting, complex search queries.
- 3:04Speaker 2: Maybe an autocomplete feature where every single keystroke kicks off
- 3:07Speaker 2: a search.
- 3:07Speaker 1: Okay, I can see how that would add up.
- 3:09Speaker 2: Or things involving file io uploads, maybe video processing. If
- 3:13Speaker 2: an attacker hammers those kinds of processes, they can guarantee
- 3:16Speaker 2: and overload much more effectively than hitting some simple endpoint
- 3:19Speaker 2: that just spits back static data. They find the server's
- 3:23Speaker 2: weak spot in terms of resource use.
- 3:25Speaker 1: Right, so how do they actually set this up? It
- 3:27Speaker 1: sounds pretty methodically, Oh it is.
- 3:29Speaker 2: It starts with reconnaissance, deep recon gathering, intel, what kind
- 3:32Speaker 2: of stuff everything? They can find, authentication methods used, which
- 3:37Speaker 2: URLs need log in, which don't, what kind of web
- 3:39Speaker 2: server it is, apatche in, jincs whatever. Also critically, are
- 3:43Speaker 2: they behind a cloud firewall? Are they using caching servers
- 3:47Speaker 2: like Varnish?
- 3:48Speaker 1: Okay, So they map out the territory, find that weak spot,
- 3:51Speaker 1: maybe an unauthenticated CPU hungry URL.
- 3:54Speaker 2: Then they size up the botnet needed small, medium, huge,
- 3:58Speaker 2: depends on the targets estimated to pay and.
- 4:00Speaker 1: Then the payload. How do they make the attack effective?
- 4:03Speaker 2: Right? The payload prep is clever. Let's use that search
- 4:05Speaker 2: API example again. The attack payload will use the correct
- 4:09Speaker 2: URL format for a search request, but the actual search
- 4:13Speaker 2: terms the query strings will be randomly generated for each request.
- 4:17Speaker 1: Ah, so it doesn't look like the same request repeated
- 4:19Speaker 1: over and over exactly.
- 4:20Speaker 2: If the botnet just slammed the server with search dot attack,
- 4:24Speaker 2: that pattern is easy to spot and block. But if
- 4:26Speaker 2: one bot asks for a search dot q random one
- 4:29Speaker 2: two three, and the next asks for search dot q
- 4:33Speaker 2: signs B two dot six abn, it looks like thousands
- 4:36Speaker 2: of unique users making slightly different legitimate requests. Detection becomes
- 4:41Speaker 2: a nightmare.
- 4:41Speaker 1: Okay, that's sneaky, So flipping it around. If you're defending
- 4:44Speaker 1: against this, what's the first step? Mitigation one to one?
- 4:47Speaker 2: Authentication? First, seriously, make all your API end points require authentication.
- 4:51Speaker 2: That has to be rule number one.
- 4:53Speaker 1: No exceptions, even for seemingly harmless stuff.
- 4:55Speaker 2: Ideally, no exceptions, because once it's authenticated, you have control.
- 4:58Speaker 2: You can apply rate limit, you can implement spikers policies,
- 5:02Speaker 2: policies that block sudden surges per user. If an endpoint
- 5:05Speaker 2: is just hanging out there unauthenticated, blocking an attack from
- 5:08Speaker 2: potentially thousands of different ips is well, it's almost impossible.
- 5:13Speaker 1: So strict rate limiting is crucial. Limit the number of
- 5:15Speaker 1: requests per second per.
- 5:17Speaker 2: User absolutely, time and volume limits for everyone authenticated. And
- 5:21Speaker 2: then there's the architecture itself. Use caching wherever you possibly can.
- 5:25Speaker 1: Obviously it takes load off the back end.
- 5:27Speaker 2: Right load balance every API end point across multiple servers,
- 5:32Speaker 2: build for flexible scaling. And here's a big one often overlooked.
- 5:37Speaker 2: Do not allow direct access to your servers via their
- 5:40Speaker 2: IP address.
- 5:42Speaker 1: You mean force all traffic through the domain name like
- 5:44Speaker 1: API dot your company dot com.
- 5:46Speaker 2: Precisely, that forces the traffic through all your carefully constructed defenses,
- 5:51Speaker 2: the caching layers, the load balancers, the web application firewalls
- 5:54Speaker 2: tied to the domain. If an attacker can just hit
- 5:57Speaker 2: the servers raw IP directly, they might bypass that entire
- 6:00Speaker 2: security perimeter.
- 6:01Speaker 1: Got it. Okay, that makes a lot of sense for
- 6:03Speaker 1: volume attacks. But what if overwhelming the server doesn't work
- 6:06Speaker 1: or isn't the goal? What about attacks targeting secrets are logic?
- 6:10Speaker 1: Let's talk brute force.
- 6:11Speaker 2: Right, brute force. It's conceptually simple but can be brutally effective.
- 6:15Speaker 2: Just keep trying every possible combination until you guess the secret.
- 6:18Speaker 1: And the secret could be anything pretty much.
- 6:21Speaker 2: Obvious target is passwords like for basic auth, but also
- 6:24Speaker 2: things like password reset tokens, those six digit codes for
- 6:28Speaker 2: two factor off OTPs, or even trying to guess the
- 6:31Speaker 2: secret key used to sign things like JWT authorization tokens.
- 6:36Speaker 1: The complexity matters a lot there I assume.
- 6:38Speaker 2: Hugely, But sometimes the system itself makes the attackers job easier,
- 6:43Speaker 2: which brings us to that famous Facebook password reset case.
- 6:48Speaker 1: Oh yeah, I remember hearing about this an Indian hacker, right.
- 6:51Speaker 2: That's the one. A fantastic example of thinking outside the
- 6:54Speaker 2: box during an attack, he successfully brute forced Facebook six
- 6:58Speaker 2: digit code needed to reset a path.
- 7:00Speaker 1: Now six digits, that's a million combinations. Still a lot,
- 7:04Speaker 1: but maybe not impossible if you.
- 7:05Speaker 2: Have enough time, it's feasible, especially because it was only digits,
- 7:08Speaker 2: not letters or symbols, which shrinks the possibility space considerably.
- 7:12Speaker 2: But the real vulnerability wasn't just the code length. It
- 7:16Speaker 2: was partly that the system allowed enough attempts, but the
- 7:18Speaker 2: real cleverness was in how he detected success.
- 7:21Speaker 1: Right. He wasn't just looking for a success message on
- 7:23Speaker 1: the screen or a two hundred OKHTDP status code.
- 7:27Speaker 2: No, he realized that when you enter the correct code,
- 7:30Speaker 2: the server doesn't just say okay, It immediately sends back
- 7:34Speaker 2: a three ZHO two redirect status code. Why a redirect,
- 7:37Speaker 2: because it's redirecting your browser to the next step, the
- 7:40Speaker 2: page where you actually enter your new password. That redirect
- 7:44Speaker 2: only happens on success.
- 7:46Speaker 1: Uh, so, any wrong code would probably give a two hundred. OK,
- 7:50Speaker 1: but with an error message displayed.
- 7:51Speaker 2: On the current page exactly, or maybe a code expired message,
- 7:55Speaker 2: still likely a two hundred, But only the correct code
- 7:57Speaker 2: triggers that immediate three h two readirect. So he automated
- 8:01Speaker 2: the guessing process and simply watched for the instant that
- 8:04Speaker 2: three h two response appeared that told him precisely which
- 8:07Speaker 2: guest code was the right one. Pure logic exploitation.
- 8:11Speaker 1: Wow, that shift from looking for the explicit you got
- 8:14Speaker 1: it right message to looking for the implicit behavior the redirect.
- 8:17Speaker 1: That's subtle. That's how a simple system design choice becomes
- 8:20Speaker 1: a security hole.
- 8:21Speaker 2: It really is so defending against this, what are the
- 8:23Speaker 2: key mitigations, Well, it seems.
- 8:25Speaker 1: Like you need to tackle both time and quantity definitely.
- 8:28Speaker 2: First, strictly limit the number of retries allowed per username,
- 8:31Speaker 2: per IP per session, whatever makes sense, but limit.
- 8:35Speaker 1: It hard, and make those codes expire fast.
- 8:37Speaker 2: Super fast OTPs reset tokens. They should expire in minutes. Ideally,
- 8:42Speaker 2: shrink that window the attacker has to work in.
- 8:44Speaker 1: And maybe don't use simple six digit codes if you
- 8:47Speaker 1: can avoid it.
- 8:48Speaker 2: Add complexity if possible, Yes, longer codes, alphanumeric characters, and
- 8:53Speaker 2: crucially make sure any code is strictly one time use.
- 8:56Speaker 2: Once it's used, successfully expire immediately, even if it's time
- 9:00Speaker 2: hasn't run out.
- 9:00Speaker 1: Okay, so we've covered volume, we've covered guessing secrets. What
- 9:04Speaker 1: about the stuff that developers might leave lying around the
- 9:07Speaker 1: forgotten bits?
- 9:08Speaker 2: Ah? Yes, arguably the lowest hanging fruit for many attackers
- 9:13Speaker 2: targeting the periphery dev environments, staging servers, QA boxes, maybe
- 9:18Speaker 2: old deprecated APIs that never got shut down.
- 9:21Speaker 1: These are the test beds right where code gets tried
- 9:23Speaker 1: out before going live. Why are they such juicy targets.
- 9:26Speaker 2: It's often a perfect storm of well neglect. The code
- 9:28Speaker 2: there is often buggy, it's not production hardened.
- 9:31Speaker 1: Makes sense.
- 9:32Speaker 2: Security teams are usually focused on protecting the live production system,
- 9:35Speaker 2: so these environments get forgotten. Old APIs might still be
- 9:38Speaker 2: running somewhere, even if the documentation says they're dead, riddled
- 9:42Speaker 2: with old vulnerabilities.
- 9:43Speaker 1: And security features might be turned off.
- 9:45Speaker 2: Often deliberately, things like rate limiting, strict authentication rules, maybe
- 9:50Speaker 2: even input validation. They get disabled to make developers lives
- 9:54Speaker 2: easier during testing.
- 9:56Speaker 1: Uh oh, and I bit to bugging modes are often
- 9:58Speaker 1: left switched on too.
- 10:00Speaker 2: That's the real gold mine for a attacker. If debugging
- 10:03Speaker 2: is on, Sending deliberately malformed requests can trigger detailed error messages,
- 10:08Speaker 2: full stack traces.
- 10:09Speaker 1: Revealing internal code structure, file paths, library everything.
- 10:14Speaker 2: It's like handing the attacker the applications blueprint and an
- 10:16Speaker 2: instruction manual on how to break in.
- 10:18Speaker 1: Okay, that's bad. How do attackers even find these hidden environments?
- 10:22Speaker 2: Several ways, subdomain brute forcing is common, trying things like
- 10:25Speaker 2: dev dot your company, dot com, staging, dot Beta, QA test, just.
- 10:30Speaker 1: Guessing common names yeah, or manipulating version numbers in the
- 10:34Speaker 1: API path or headers. If the current API is V three,
- 10:37Speaker 1: they'll try accessing V two or V one to see
- 10:39Speaker 1: if older, potentially less secure versions are still active. Sometimes
- 10:43Speaker 1: they find clues in old documentation files too.
- 10:46Speaker 2: But the real nightmare scenario, the catastrophic one, is if
- 10:49Speaker 2: that staging or old DEVAPI connects to the same database
- 10:52Speaker 2: as the live production application.
- 10:54Speaker 1: Yeah. That is the absolute worst case scenario. From an
- 10:57Speaker 1: architectural standpoint, It creates the ultimate how so imagine your
- 11:02Speaker 1: main production API is locked down, tight top notch security
- 11:06Speaker 1: filtering against SQL injection, everything but that forgotten V one
- 11:10Speaker 1: API or the staging environment is still connected to that
- 11:14Speaker 1: exact same production database and maybe it has zero protection
- 11:17Speaker 1: against SQL injection.
- 11:18Speaker 2: So the attacker ignores the fort Knox production API.
- 11:21Speaker 1: And walks right through the unlocked back door of the
- 11:23Speaker 1: staging API to steal or modify production data completely bypassing
- 11:28Speaker 1: all the production security control.
- 11:29Speaker 2: And if we go back to that Facebook brute force example,
- 11:31Speaker 2: wasn't that exactly how the hacker finally succeeded. They didn't
- 11:34Speaker 2: crack the main site that was the crucial final piece.
- 11:37Speaker 2: He initially failed to brute force the reset code on
- 11:41Speaker 2: www dot Facebook dot com because the rate limits kicked
- 11:45Speaker 2: in and blocked him.
- 11:46Speaker 1: Okay, so he thought.
- 11:47Speaker 2: Laterally, he shifted the exact same brute force attack over
- 11:51Speaker 2: to Beta Facebook dot com, the staging or beta testing subdomain.
- 11:55Speaker 1: Where presumably those rate limits were disabled for easier internal testing.
- 11:59Speaker 2: Bingo. Yeah, and since that beta environment could still trigger
- 12:02Speaker 2: password resets that affected the production user accounts database. Game over,
- 12:07Speaker 2: the attack worked on the week staging site but compromised
- 12:10Speaker 2: the production user.
- 12:11Speaker 1: That just perfectly illustrates why treating staging security is optional
- 12:15Speaker 1: is so dangerous. It's not just sloppy. It's actively creating
- 12:19Speaker 1: a potential attack.
- 12:20Speaker 2: Factor couldn't agree more so. Mitigation here seems pretty straightforward
- 12:24Speaker 2: but vital.
- 12:25Speaker 1: First, just delete old APIs if they're deprecated, get rid
- 12:28Speaker 1: of them, don't leave them.
- 12:28Speaker 2: Running, absolutely no excuses. Second, protect those dev and staging
- 12:32Speaker 2: environments properly. Don't leave them open to the public Internet.
- 12:35Speaker 2: Use password protection or strict IP address whitelisting so only
- 12:39Speaker 2: authorized people can access them.
- 12:41Speaker 1: And maybe the biggest takeaway.
- 12:42Speaker 2: Treat your dev and staging environments with the exact same
- 12:46Speaker 2: security rigger as your production environment, same security policies, same monitoring,
- 12:50Speaker 2: same penetration testing. Security needs to be part of the
- 12:54Speaker 2: process from the start, not just bolted on before launch.
- 12:57Speaker 1: Right, Okay, we've covered attacks based on volume, on guessing secrets,
- 13:02Speaker 1: on exploiting forgotten infrastructure. Let's pick it slightly. Despite all
- 13:06Speaker 1: these API specific issues, at the end of the day,
- 13:09Speaker 1: an API is still just code, isn't it.
- 13:12Speaker 2: Fundamentally yes, it's code that takes input processes, It talks
- 13:16Speaker 2: to databases, interacts with filesystems, which means it's still susceptible
- 13:20Speaker 2: to all those classic web application vulnerabilities we've known about
- 13:23Speaker 2: for decades.
- 13:24Speaker 1: Like sequel injection, cross sit scripting exactly.
- 13:27Speaker 2: Those haven't gone away. We absolutely need to test APIs
- 13:30Speaker 2: for those traditional flaws alongside the newer API specific threats.
- 13:35Speaker 2: The trick, though, is knowing what subtle clues or hints
- 13:37Speaker 2: to look for it in API's response, usually Jason, that
- 13:40Speaker 2: might suggest one of these classic vulnerabilities is present.
- 13:43Speaker 1: Okay, let's take them one by one. IDOOR insecure direct
- 13:47Speaker 1: object reference. What's the hint and attacker looks for.
- 13:50Speaker 2: The biggest hint is seeing an explicit ID number directly
- 13:53Speaker 2: in the URL path, or maybe a parameter, something like
- 13:56Speaker 2: ap order's one two three four five. That number one
- 13:59Speaker 2: two three four is the hint. So if you see that,
- 14:01Speaker 2: the very first thing you try is changing it. Change
- 14:04Speaker 2: one two three forty five to one two three four
- 14:06Speaker 2: six or one thousand or even one. If the server
- 14:10Speaker 2: responds with data for an order that isn't yours, bingo,
- 14:13Speaker 2: that's IDOOR. The vulnerability is trusting the client not to
- 14:16Speaker 2: fiddle with that.
- 14:17Speaker 1: ID simple enough to test. What about cross site scripting
- 14:20Speaker 1: XSS That feels more like a browser thing, injecting script
- 14:23Speaker 1: into a web page. How does that apply to an API? Typically?
- 14:26Speaker 1: Returning JSON.
- 14:27Speaker 2: Good question. It is primarily a browser exploitation technique, but
- 14:30Speaker 2: an API can be vulnerable if its response could somehow
- 14:33Speaker 2: be rendered as HTML by a browser. The key condition
- 14:36Speaker 2: is the content type header in the APIs response.
- 14:39Speaker 1: Howso, if the.
- 14:40Speaker 2: API mistakenly sets the content type to text HTML, or worse,
- 14:44Speaker 2: forgets to set a content type header at all, a
- 14:46Speaker 2: browser might try to interpret the response is HTML, potentially
- 14:49Speaker 2: executing any malicious script embedded in the data.
- 14:52Speaker 1: But if the API correctly and consistently sets content type
- 14:56Speaker 1: application json.
- 14:57Speaker 2: Then the browser knows it's just data, not executable. It
- 15:00Speaker 2: won't render it as HTML, and the EXSS payload remains inert.
- 15:04Speaker 2: So correct content types are crucial.
- 15:06Speaker 1: Got it okay? Sqel injection finding that can be hard
- 15:09Speaker 1: if the application has good error handling and doesn't just
- 15:12Speaker 1: spill database errors. What's the subtle clue for APIs.
- 15:16Speaker 2: Yeah, you rarely get those verbose SQL error messages anymore.
- 15:20Speaker 2: The hint is often more about a change in the
- 15:22Speaker 2: data returned, or lack thereof. You start manipulating input parameters,
- 15:26Speaker 2: maybe adding a single quote or a SQL comment character,
- 15:29Speaker 2: Then what happens instead of getting an error or the
- 15:31Speaker 2: data you expect, you suddenly get back nothing. An empty
- 15:35Speaker 2: data set like the API gives you a two hundred
- 15:38Speaker 2: okay success status, but the Jason array where the results
- 15:40Speaker 2: should be is just empty.
- 15:42Speaker 1: Ah. So the request didn't technically fail with an error code,
- 15:45Speaker 1: but it returned no data when it should have.
- 15:47Speaker 2: Precisely, that sudden shift from getting data to getting no
- 15:51Speaker 2: data but still a success code is a strong indicator
- 15:54Speaker 2: that your manipulated input broke or significantly altered the back
- 15:58Speaker 2: end SQL queries logic. That's when you start digging deeper
- 16:01Speaker 2: for injection.
- 16:02Speaker 1: Okay, interesting hint. Lastly, remote code execution RCE being able
- 16:08Speaker 1: to run commands on the server itself super critical. How
- 16:11Speaker 1: might an API hint at that possibility?
- 16:15Speaker 2: Here? The hint is often an unexpected and jarring error code. Normally,
- 16:18Speaker 2: if you send bad input, you expect maybe a four
- 16:20Speaker 2: hundred bad request right client air. But if you start
- 16:23Speaker 2: sending really weird input, maybe characters with special meaning to
- 16:26Speaker 2: the OS or invalid formatting or bad character encoding, weird padding,
- 16:29Speaker 2: and a seat of a four hundred, you suddenly get
- 16:31Speaker 2: back a five hundred internal server error.
- 16:33Speaker 1: That's different. That's the server saying it broke exactly.
- 16:36Speaker 2: It suggests your input didn't just fail a validation, it
- 16:38Speaker 2: caused a much deeper problem, potentially crashing a process or
- 16:43Speaker 2: hitting an error handler at the operating system level or
- 16:45Speaker 2: within the application server itself. That five hundred error, especially
- 16:50Speaker 2: if it's triggered consistently by specific malformed inputs, can be
- 16:53Speaker 2: a strong indicator that something low level is vulnerable and
- 16:57Speaker 2: RCE might be possible.
- 16:59Speaker 1: Wow. Okay, so we've really covered a lot of ground here,
- 17:02Speaker 1: from those brute force volume attacks like DOSS.
- 17:05Speaker 2: Right through to exploiting logic flaws, guessing secrets, hitting unprotected
- 17:10Speaker 2: staging environments.
- 17:11Speaker 1: And then realizing that even with all that, the classic
- 17:14Speaker 1: vulnerabilities like seql injection and RCEE are still absolutely relevant
- 17:18Speaker 1: because well, APIs are just code interacting with systems.
- 17:21Speaker 2: That really sums it up. API security isn't one thing.
- 17:24Speaker 2: It's this comprehensive vigilance needed across all these different layers
- 17:28Speaker 2: and all the different environments dev, staging, production, and often,
- 17:31Speaker 2: like we said, the biggest risk isn't some super complex
- 17:34Speaker 2: zero day exploit.
- 17:35Speaker 1: It's the simple stuff.
- 17:37Speaker 2: It's the simple forgotten component that old API version nobody deleted,
- 17:42Speaker 2: or that staging server left wide open.
- 17:44Speaker 1: So thinking about all this for everyone listening, maybe reflect
- 17:49Speaker 1: on the systems you build or use daily, knowing that
- 17:53Speaker 1: just one forgotten subdomain, or maybe a simple six digit
- 17:56Speaker 1: code without proper rate limiting could be that critical weeklink.
- 18:01Speaker 1: Where would you even start looking for holes tomorrow?
- 18:04Speaker 2: It's a good thought exercise. And here's a final question
- 18:06Speaker 2: for you to chew on. Tying back to our DOS discussion,
- 18:09Speaker 2: we talked about attackers targeting resource heavy API end points.
- 18:13Speaker 2: So given the choice during a layer seven DOS attack,
- 18:16Speaker 2: why would an attacker typically prefer to hammer an API
- 18:19Speaker 2: end point that does a complex, slow database search rather
- 18:22Speaker 2: than one that quickly returns simple static data. Think about
- 18:25Speaker 2: the attacker's goal, right.
- 18:27Speaker 1: It comes back to efficiency and impact. Yeah, understanding that
- 18:29Speaker 1: attacker logic is key to building better defenses. Thanks for
- 18:32Speaker 1: joining us for this deep time, Always a pleasure. We'll
- 18:34Speaker 1: catch out the next one.