<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: HACKBOX</title>
    <description>The latest articles on DEV Community by HACKBOX (@hackbox).</description>
    <link>https://dev.to/hackbox</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4197222%2F78287e11-230c-4da3-a1b1-5a5679150119.png</url>
      <title>DEV Community: HACKBOX</title>
      <link>https://dev.to/hackbox</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hackbox"/>
    <language>en</language>
    <item>
      <title>Vulnerability Management: Why a Severity Ranking Misses What Actually Gets Used</title>
      <dc:creator>HACKBOX</dc:creator>
      <pubDate>Mon, 23 Nov 2026 06:40:00 +0000</pubDate>
      <link>https://dev.to/hackbox/vulnerability-management-why-a-severity-ranking-misses-what-actually-gets-used-4iik</link>
      <guid>https://dev.to/hackbox/vulnerability-management-why-a-severity-ranking-misses-what-actually-gets-used-4iik</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Disclosure:&lt;/strong&gt; the author works at HACKBOX PTE. LTD., which builds HackBox — mentioned once at the close. Everything else is a technical argument you can check against your own estate.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You have a queue. It has nine hundred items in it, or two thousand, and it was assembled by a scanner you pay for. Somebody sorted it by score. The top of the list is where the work starts, and the work moves down the list until the sprint ends.&lt;/p&gt;

&lt;p&gt;That ordering is the part I want to argue with, because it is the one decision in the whole process that is almost never revisited, and it is wrong in a way that is invisible from inside the process.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the ordering actually claims
&lt;/h2&gt;

&lt;p&gt;A severity score is a statement about a vulnerability in the abstract. It assumes the vulnerable component is reachable, assumes the attacker has no prior access, and assumes the deployment looks like the reference deployment. Then it rates the consequence of a successful exploit against those assumptions.&lt;/p&gt;

&lt;p&gt;Every one of those assumptions is a variable in your environment, not a constant. So the score you sorted by is really an answer to a slightly different question than the one you asked.&lt;/p&gt;

&lt;p&gt;The question you asked was: what should I fix first. What the score answered was: what is worst if everything else were equal. Those coincide only when your estate is uniform, which no estate is.&lt;/p&gt;

&lt;h2&gt;
  
  
  The attacker is not working through your list
&lt;/h2&gt;

&lt;p&gt;Here is the reframe that made this click for me. An attacker looking at the same month of disclosures is not sorting by severity either. He is filtering on three things that no scoring system represents well.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Access.&lt;/strong&gt; What can he already touch, from where he already is. Not what is exposed in principle — what answers him right now, with the credentials or the network position he actually holds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tooling.&lt;/strong&gt; Does a working exploit exist, can he adapt one, or does he have to write it. This column moves faster than any feed. A public proof of concept can convert a dormant item into tomorrow's entry point in an afternoon.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Payoff.&lt;/strong&gt; What does he get if it works. A shell on a build runner and a shell on the finance database are the same technical event with entirely different downstream value.&lt;/p&gt;

&lt;p&gt;Notice there is no severity column. That omission is not sloppiness — it is that severity, to him, is a property of the path he ends up walking, not of the individual bug he starts from.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three findings, three reasonable decisions, one path
&lt;/h2&gt;

&lt;p&gt;This is easier to see in a concrete set than in an argument. Take three items from one engagement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One.&lt;/strong&gt; A debug endpoint left enabled on an externally reachable service returns a stack trace. It leaks the framework version and an internal directory layout. On its own it is informational. Nobody schedules a change window for a stack trace.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Two.&lt;/strong&gt; An internal service accepts requests from an entire subnet rather than from the two hosts that actually call it, and does not validate the origin header. This is not a CVE. It does not appear in the scanner output as a vulnerability at all, because it is a configuration property and scanners ship signatures, not opinions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Three.&lt;/strong&gt; A deserialization flaw sits three hops down in a middleware stack. It scores high. The component is annotated "internal only" in the inventory, and that annotation has passed three consecutive audits without objection.&lt;/p&gt;

&lt;p&gt;Now order them. The debug endpoint hands over the exact framework version and the internal path where the middleware lives. The permissive internal service is the hop that turns "external foothold" into "adjacent to the middleware". The deserialization flaw ends the walk.&lt;/p&gt;

&lt;p&gt;Three items. Every individual decision to deprioritise was defensible. The composite is a path from the public internet to code execution, and no row of that list would ever have reached the top of a severity sort, because the chain is not a property of any row. It is a property of the rows together.&lt;/p&gt;

&lt;h2&gt;
  
  
  The inventory annotation is the quiet failure
&lt;/h2&gt;

&lt;p&gt;The third item deserves a second look, because "internal only" is the most load-bearing lie in most inventories and the least examined.&lt;/p&gt;

&lt;p&gt;Annotations are accurate on the day they are written. Then a reverse proxy gets added in front of a subnet. A workload migrates to a cloud account with a different route table. A developer opens a port forward to debug something and forgets it. None of these events turn the annotation red. It keeps saying "internal only" while the topology underneath it moves, and the gap between documented exposure and real exposure grows in exactly one direction.&lt;/p&gt;

&lt;p&gt;And even when the annotation is still true, "internal" no longer carries the protection it carried a decade ago. First footholds mostly arrive through channels that are not an exposed RCE: a contractor's credential, a VPN appliance, a dependency in the build chain. Once that foothold exists, "internal only" stops meaning unreachable and starts meaning one hop away.&lt;/p&gt;

&lt;p&gt;So the deprioritisation of internal components rests on a premise that is almost never tested — that the perimeter holds. The only way to test a premise like that is to assume it has already failed and ask what is reachable from there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four changes that survive contact with a real queue
&lt;/h2&gt;

&lt;p&gt;None of this argues for ignoring patches. It argues for spending the window differently.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test entry points before you test scores.&lt;/strong&gt; The items that matter most are the ones that grant the first step: externally reachable services, credential surfaces, anything that answers unauthenticated traffic. That is a small group and it should be settled before the general queue is opened.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test combinations, not items.&lt;/strong&gt; Handing a candidate list to a scanner and reading rows back does not answer whether rows connect. The useful question is what a given foothold can reach next, in this environment, with these permissions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Re-scope patch verification to the chain.&lt;/strong&gt; The point of installing a fix is to break a specific step. Whether the version number moved is a fact about the build; whether the named path is now closed is a fact about the system. Those are separate claims and only one of them is testable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Record the assumption, not the decision.&lt;/strong&gt; "Not reachable" is a guess wearing a status value. "Unreachable from the DMZ because the route is not published; revisit if a proxy is added in front of this subnet" is a decision that can be re-examined when the deployment changes — and deployment changes are the normal case.&lt;/p&gt;

&lt;p&gt;The reason this is expensive by hand is not that any step is hard. It is that the number of combinations grows much faster than the number of items, and every combination has to be settled with an actual request against an actual system. Reading a diff does not settle it. Neither does re-running the scanner.&lt;/p&gt;

&lt;p&gt;That is the specific gap an automated penetration testing platform closes, and it is worth being precise about which part: &lt;a href="https://www.hackbox.ai" rel="noopener noreferrer"&gt;HackBox&lt;/a&gt; runs the full attack chain against a live environment and returns a result a reviewer can check, rather than an inference from a version string. For a queue this size, that converts an unbounded reading exercise into a bounded execution one.&lt;/p&gt;

&lt;p&gt;Two details matter if you are evaluating this category. HackBox reports each step as verified, exploited, or requiring manual collaboration, which is the only structure I have seen survive an incident review — the third category is where honesty lives, because it is the set of paths no external test was given access to walk. And what HackBox does not claim is that the items you skipped were safe. It claims something narrower and more useful: which of them were reachable from where an attacker would start.&lt;/p&gt;

&lt;h2&gt;
  
  
  The number I would track instead
&lt;/h2&gt;

&lt;p&gt;Not how many items you closed. Not the average age of the queue.&lt;/p&gt;

&lt;p&gt;The number that describes exposure is how many of the paths an attacker would assemble have been walked, and found closed, on the system you are running today. That number cannot be estimated from a list. It has to be produced, one request at a time — or a few thousand of them, automatically, which is the only version of this that scales to a queue of two thousand.&lt;/p&gt;

</description>
      <category>security</category>
      <category>testing</category>
      <category>devops</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Penetration Testing on Patch Day: A 24-Hour Retest Sequence You Can Copy</title>
      <dc:creator>HACKBOX</dc:creator>
      <pubDate>Thu, 19 Nov 2026 07:37:01 +0000</pubDate>
      <link>https://dev.to/hackbox/penetration-testing-on-patch-day-a-24-hour-retest-sequence-you-can-copy-1257</link>
      <guid>https://dev.to/hackbox/penetration-testing-on-patch-day-a-24-hour-retest-sequence-you-can-copy-1257</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Disclosure:&lt;/strong&gt; the author works at HACKBOX PTE. LTD., which builds HackBox — mentioned at the close. Everything else here is a technical argument you can check yourself.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;On 16 November 2026, Google's Threat Intelligence Group published an account of an operational framework it calls &lt;code&gt;exploit_agent&lt;/code&gt;. The mechanism is worth stating plainly, because it changes a scheduling decision that most security teams made years ago and have not revisited since. The framework watches popular web applications for security releases, compares the code before and after each fix, works out what the patch quietly closed, writes an exploit for it, and fires that exploit at live targets. Google describes the whole sequence as running without a person approving any step, and reports finding the framework's output on the same server: exfiltrated data, and scripts for internal reconnaissance, credential brute-forcing, and web shell installation.&lt;/p&gt;

&lt;p&gt;You do not have to accept every claim in a vendor threat report to see the structural point. A patch diff is a disclosure document. It always was — reverse-engineering fixes by hand is the definition of an n-day exploit, and it has been standard practice for two decades. What changed is the reading speed and the absence of a queue. A human patch-differ works through releases in the order they arrive and sleeps in between. This does not.&lt;/p&gt;

&lt;p&gt;So the useful question for a security team is not whether the report is alarming. It is: &lt;strong&gt;on what date does your penetration testing calendar next touch the code path that a patch published yesterday just described?&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The two calendars
&lt;/h2&gt;

&lt;p&gt;Most organizations run penetration testing on one of three clocks: annually for compliance, quarterly for a maturity programme, or continuously if they have built the pipeline. All three are organized around the buyer's planning cycle.&lt;/p&gt;

&lt;p&gt;An attacker working from patch diffs is organized around a different clock — the vendor's release calendar. Those two calendars have no relationship to each other. A critical authorization fix can ship on the second day of a quarter and be weaponized before the quarter's testing window opens.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Clock&lt;/th&gt;
&lt;th&gt;Set by&lt;/th&gt;
&lt;th&gt;Typical lag to a newly patched path&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Annual compliance test&lt;/td&gt;
&lt;td&gt;Audit cycle&lt;/td&gt;
&lt;td&gt;6–12 months&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Quarterly programme&lt;/td&gt;
&lt;td&gt;Internal planning&lt;/td&gt;
&lt;td&gt;6–12 weeks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Continuous scanning&lt;/td&gt;
&lt;td&gt;Scan schedule&lt;/td&gt;
&lt;td&gt;Hours to days, &lt;strong&gt;but only for signature-shaped issues&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Patch-triggered retest&lt;/td&gt;
&lt;td&gt;Vendor release&lt;/td&gt;
&lt;td&gt;What this article argues for&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The third row is where most "we already test continuously" claims break. A scanner running every hour is fast, and speed is not the property that matters here. The property that matters is whether the test can reason about a &lt;em&gt;specific code change&lt;/em&gt; — whether this fix actually closed this path, on this deployment, with this configuration. A signature engine answers "is version 2.19.25 present". It cannot answer "does the fix hold when the plugin sits behind a cache and a WAF that rewrites the request".&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways "we patched it" is not "that path is closed"
&lt;/h2&gt;

&lt;p&gt;The gap between a change record and reality is where the interesting failures live. Three patterns recur often enough to be worth naming.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One endpoint closed, the control failure intact.&lt;/strong&gt; An access-control bug is rarely one URL. It is a missing ownership check in a function that a dozen routes call. The patch adds the check to the route named in the advisory. The other eleven callers still pass an object identifier straight through. The version number is now correct, the scanner is now quiet, and the vulnerability class is still fully reachable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Request blocked, resource still open.&lt;/strong&gt; A WAF rule matching the published payload stops the published payload. If the underlying object reference is still unbound to the session, an encoding variant, a different verb, or a second endpoint that proxies to the same handler will reach it. This failure mode is especially common when the fix is deployed at the edge and the application is deployed on a slower train.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Version right, behaviour rolled back.&lt;/strong&gt; A hotfix ships, a later release train reverts it because the branch diverged, and the deployment reports the newer version number. The manifest says fixed; the running code says otherwise. Only an execution result distinguishes the two.&lt;/p&gt;

&lt;p&gt;None of these are exotic. All three produce the same artifact: a green line in a vulnerability management dashboard and an open path in production.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a patch-day retest actually checks
&lt;/h2&gt;

&lt;p&gt;A retest triggered by a security release is not a full penetration test. It is a narrow, time-boxed verification with four questions, and it should take hours rather than weeks.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;Evidence required&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Primary path&lt;/td&gt;
&lt;td&gt;Can the exact sequence in the advisory still be completed?&lt;/td&gt;
&lt;td&gt;Request and response from the patched build&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sibling paths&lt;/td&gt;
&lt;td&gt;Do other routes that call the same function still accept an unbound identifier?&lt;/td&gt;
&lt;td&gt;At least two sibling routes exercised, not inferred&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Boundary behaviour&lt;/td&gt;
&lt;td&gt;Does the fix hold with the deployment's real intermediaries in place — cache, WAF, reverse proxy, CDN?&lt;/td&gt;
&lt;td&gt;Same result through the production entry point, not a direct-to-origin test&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reachability&lt;/td&gt;
&lt;td&gt;Is the affected asset reachable from an untrusted position at all?&lt;/td&gt;
&lt;td&gt;Network position stated explicitly, internal-only assets labelled as such&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The fourth row is the one teams skip, and it is the one that prevents wasted effort. A patch-day retest of an asset that no untrusted party can route to is a compliance exercise. A patch-day retest of an internet-facing asset that everyone assumed was internal is how estates get surprised.&lt;/p&gt;

&lt;p&gt;Two operational details decide whether this is feasible or aspirational. First, the asset inventory has to map to vendor products, not to hostnames — you cannot trigger a retest from a release note if you do not know which of your 400 hosts run the affected component. Second, the retest has to be executable on the same day the patch publishes, which rules out anything requiring a change request, a maintenance window, and a scoping call.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who runs the retest, and on what clock
&lt;/h2&gt;

&lt;p&gt;A patch-day retest dies in organizations for a reason that has nothing to do with tooling: nobody owns the trigger. The security team reads advisories but does not control the deployment. Platform engineering controls the deployment but does not read advisories. The result is a queue where the item with a two-hour useful life waits behind items with a two-week useful life, and loses.&lt;/p&gt;

&lt;p&gt;Three arrangements work, and they differ mainly in how much of the work is automated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advisory-to-asset matching, then a human decides.&lt;/strong&gt; Someone owns the mapping between vendor products and the estate, subscribes to the relevant release feeds, and opens a retest request when a release lands on a reachable asset. This is the lowest-technology option and it works at small scale, up to roughly the point where the estate contains more than a few dozen distinct products. Past that, the matching becomes a part-time job and starts missing releases quietly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Change-triggered, with a dependency map.&lt;/strong&gt; Rolling deployments emit events; the pipeline already knows which services consume which components; a security release for a mapped component opens a retest automatically. This is the arrangement that scales, because it converts a reading task into a lookup. Its weakness is the map itself — dependency inventories are usually accurate for the languages with good package metadata and aspirational for everything else, which is precisely where appliance firmware and vendor binaries live.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Scheduled sweep over the exposed surface.&lt;/strong&gt; A frequent test of everything internet-facing, with results compared against the previous run. Cheap to operate and does not depend on an accurate dependency map, but it answers "what is reachable now" rather than "did this specific fix hold", and the second question is the one a patch raises.&lt;/p&gt;

&lt;p&gt;Most mature programmes end up combining the second and third: an automated trigger for the components with clean dependency metadata, and a sweep to catch everything the map misses. The failure mode to avoid is choosing only the third and calling it coverage — a sweep will find a still-reachable path eventually, and "eventually" is the wrong unit when the exploit exists in hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  The half of this that can be delegated
&lt;/h2&gt;

&lt;p&gt;Of the three arrangements, the middle one is hardest to stand up in-house, because it needs two things that rarely arrive together: a dependency map accurate enough to fire on the right release, and a test capability that executes on demand rather than on a schedule. Most teams build the first and rent the second.&lt;/p&gt;

&lt;p&gt;The split is worth stating plainly. The trigger logic is yours — it depends on your inventory, your pipeline, and your definition of a reachable asset. The execution is not yours in any meaningful sense: running an advisory's sequence and its sibling variants against a live deployment is mechanical work that produces a record, and mechanical work is what automation is for.&lt;/p&gt;

&lt;p&gt;HackBox is built to take that half and nothing else: you point it at the deployed build and the path, it executes, and the execution result comes back with the request and response attached. No scoping call sits between the release and the retest, which is the whole point of the arrangement.&lt;/p&gt;

&lt;p&gt;What stays with you is the decision about which assets are worth the hours — which is the part that should.&lt;/p&gt;

&lt;h2&gt;
  
  
  A 24-hour sequence you can copy
&lt;/h2&gt;

&lt;p&gt;The sequence below fits in a working day and does not require new tooling. It assumes the release is for a component you actually run on a reachable asset.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Hour&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;Output&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Check the advisory against the asset inventory: is the affected component reachable from an untrusted position?&lt;/td&gt;
&lt;td&gt;Go / no-go, written down&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Identify the changed function and list every route that reaches it, not just the one in the advisory&lt;/td&gt;
&lt;td&gt;A candidate path list&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2–6&lt;/td&gt;
&lt;td&gt;Execute the advisory sequence against the deployment through its production entry point&lt;/td&gt;
&lt;td&gt;One request/response pair, or a documented failure to reproduce&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6–12&lt;/td&gt;
&lt;td&gt;Execute two sibling routes with an unbound identifier&lt;/td&gt;
&lt;td&gt;Evidence that the class is closed, or evidence that it is not&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;12–24&lt;/td&gt;
&lt;td&gt;Record the outcome against the build hash and the date; if not closed, reopen&lt;/td&gt;
&lt;td&gt;A closure record that survives review&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two rules keep this honest. The first is that a negative result is a result and must be recorded with the same care as a positive one — "we could not reproduce through the production entry point" is a finding about the fix, and it is the one that catches edge-only mitigations. The second is that the sequence ends with a build hash, not a ticket status. A closure record without an artifact reference is a note about a conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  The metric that makes this real
&lt;/h2&gt;

&lt;p&gt;If you want one number to report upward, this is the one: &lt;strong&gt;median hours from security release to verified retest of the affected path, across assets that are actually reachable.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is uncomfortable in the right way. It cannot be improved by buying a faster scanner, because scanners do not produce verified retests. It cannot be improved by writing a policy, because a policy does not execute. It improves when three things exist: an inventory keyed to products, a test capability that runs on demand without a project plan, and a decision about which assets are worth the hours.&lt;/p&gt;

&lt;p&gt;The inverse metric is worth tracking too: &lt;strong&gt;share of patched-and-closed tickets where no retest evidence exists&lt;/strong&gt;. If that number is high, the patch record is a claim, and the estate is being managed on claims.&lt;/p&gt;

&lt;h2&gt;
  
  
  How HackBox fits this cycle
&lt;/h2&gt;

&lt;p&gt;HackBox is an AI-powered automated penetration testing SaaS platform that runs the full attack chain — reconnaissance, exploitation, and privilege escalation — against a target and returns a verified report. It is developed and operated by HACKBOX PTE. LTD., a cybersecurity company headquartered in Singapore. Because the platform runs online rather than through a consulting engagement, a retest after a security release is a request rather than a project: no scoping call, no scheduling window, no additional headcount or hardware to stand up. Findings come back labelled Verified, Exploited, or Manual Collaboration, with the payload, request, response, and extracted data attached, so the patch-day question — did this fix hold — has an answer that is evidence rather than opinion.&lt;/p&gt;

&lt;p&gt;Pricing is flexible: customers can pay by results, settling only for confirmed vulnerabilities, or subscribe on a per-IP basis.&lt;/p&gt;

&lt;p&gt;Whether you use this platform or another mechanism, the scheduling argument stands on its own. If a patch can become a working exploit in hours, then the date a fix ships is a testing date. A calendar that does not contain that date is not a testing programme; it is a procurement cycle with a report attached.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The author works at HACKBOX PTE. LTD., Singapore, which builds HackBox — an AI-powered automated penetration testing SaaS platform that runs the full attack chain in a real environment and returns a verified report. Pricing is flexible: pay by results for confirmed vulnerabilities, or subscribe per IP. Details at &lt;a href="https://www.hackbox.ai" rel="noopener noreferrer"&gt;hackbox.ai&lt;/a&gt; · &lt;a href="mailto:partners@hackbox.ai"&gt;partners@hackbox.ai&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>testing</category>
      <category>devops</category>
      <category>automation</category>
    </item>
    <item>
      <title>AI Vulnerability Discovery: Four Numbers That Survive a Re-Test</title>
      <dc:creator>HACKBOX</dc:creator>
      <pubDate>Wed, 18 Nov 2026 10:39:52 +0000</pubDate>
      <link>https://dev.to/hackbox/ai-vulnerability-discovery-four-numbers-that-survive-a-re-test-1oop</link>
      <guid>https://dev.to/hackbox/ai-vulnerability-discovery-four-numbers-that-survive-a-re-test-1oop</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Disclosure:&lt;/strong&gt; I work at HACKBOX PTE. LTD., which builds HackBox. It comes up twice below. Everything else is arithmetic you can run on your own findings.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A team I know spent a Tuesday afternoon arguing about a number. The slide said 340 findings, 28 critical. By four o'clock the number was still 340, but nobody in the room could say what to fix on Wednesday. That is not a review failure. It is what happens when a report is built around a quantity that no one can act on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI vulnerability discovery is the use of a model to propose attack paths and candidate flaws that no signature-based rule covers.&lt;/strong&gt; Read the definition twice. It says nothing about proof, nothing about coverage, and nothing about whether the same flaw appears at forty endpoints. Those gaps are exactly where the useful numbers live.&lt;/p&gt;

&lt;h2&gt;
  
  
  The number on the slide is a throughput metric
&lt;/h2&gt;

&lt;p&gt;A count tells you how many candidate findings the pipeline emitted and a human accepted. That is an operational fact about the pipeline, and it is genuinely useful — a pipeline that emits zero is broken. But it gets promoted into a business fact it cannot support.&lt;/p&gt;

&lt;p&gt;Three things it does not measure:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Coverage.&lt;/strong&gt; You cannot tell whether a service with 40 findings is twice as exposed as one with 20, or simply had a chattier run. The sample is unlabelled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Novelty.&lt;/strong&gt; Re-discovery and discovery are indistinguishable at the point of output. In the Forescout audit published 12 November 2026, a third of the confirmed findings were flaws the industry already knew about. Real vulnerabilities, not new risk.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your exposure.&lt;/strong&gt; A severity rating is a property of the flaw. Whether the path is reachable from where an attacker actually stands is a property of your network, and the report usually omits it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Snippet one: one control failure, eleven tickets
&lt;/h2&gt;

&lt;p&gt;Here is a shape that shows up constantly in GraphQL estates.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"query"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"{ report(id:\"R-1041\"){ totalRows rows{ id amount vendor } } }"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="err"&gt;→&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="n"&gt;OK&lt;/span&gt;   &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"totalRows"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2841&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"rows"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="err"&gt;...&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;   &lt;span class="err"&gt;//&lt;/span&gt; &lt;span class="n"&gt;caller&lt;/span&gt; &lt;span class="n"&gt;is&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;read&lt;/span&gt;&lt;span class="err"&gt;-&lt;/span&gt;&lt;span class="n"&gt;only&lt;/span&gt; &lt;span class="n"&gt;analyst&lt;/span&gt;

&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"query"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"{ report(id:\"R-1041\"){ rows{ id amount vendor } } }"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="err"&gt;→&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="n"&gt;OK&lt;/span&gt;   &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"rows"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt; &lt;span class="err"&gt;...&lt;/span&gt; &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;                      &lt;span class="err"&gt;//&lt;/span&gt; &lt;span class="n"&gt;same&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;no&lt;/span&gt; &lt;span class="n"&gt;totalRows&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One missing field-level authorisation check. Two query paths. A scanner that walks the schema emits both as separate findings, both high, and the count goes up by two while the number of control failures stays at one.&lt;/p&gt;

&lt;p&gt;Multiply this across a schema with a few dozen types and you get a report where 60 percent of the lines are the same bug wearing different clothes. Fixing it once closes all of them; triaging it eleven times costs a week.&lt;/p&gt;

&lt;h2&gt;
  
  
  Snippet two: the finding that cannot be killed or confirmed
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;POST&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;v1&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;export&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;jobs&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"bucket"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"tenant-8841-exports"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s2"&gt;"prefix"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"/billing/2026-11/"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

→ &lt;span class="mi"&gt;202&lt;/span&gt; &lt;span class="nc"&gt;Accepted&lt;/span&gt;  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"jobId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"ej_7719"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s2"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"queued"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
→ &lt;span class="n"&gt;poll&lt;/span&gt; &lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;v1&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;export&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;jobs&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;ej_7719&lt;/span&gt;
→ &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="no"&gt;OK&lt;/span&gt;  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"done"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s2"&gt;"signedUrl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"https://storage.internal/..."&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Somebody noticed that &lt;code&gt;bucket&lt;/code&gt; is caller-supplied and that a signed URL came back for a bucket the caller did not own. Then the test stopped: the storage endpoint was not reachable from the test network, so the pipeline recorded the finding as &lt;strong&gt;potential&lt;/strong&gt;, kept it in the report, and moved on.&lt;/p&gt;

&lt;p&gt;That finding is worse than useless. It cannot be fixed confidently (nobody proved the read worked) and it cannot be dismissed confidently (the request shape is wrong regardless). It sits in the report and teaches every reader that the report contains things nobody checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four numbers worth putting on the slide
&lt;/h2&gt;

&lt;p&gt;Each of these requires an execution layer, not a better model.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;How to compute it&lt;/th&gt;
&lt;th&gt;What it replaces&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Reproduction rate&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Replay the attached evidence on a second run; count the share that returns the same result&lt;/td&gt;
&lt;td&gt;Turns "the model said" into "we saw"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Deduplicated new risk&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Findings minus previously-known, minus same-control-failure repeats&lt;/td&gt;
&lt;td&gt;Removes both flavours of double counting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Reachability-weighted severity&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Order findings by whether the path is reachable from an untrusted position&lt;/td&gt;
&lt;td&gt;Turns a severity list into a fix order&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Time to first verified critical&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Clock from run start to the first finding with proof attached&lt;/td&gt;
&lt;td&gt;Measures the pipeline, not the prose&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A rough implementation, if you are wiring this into a dashboard:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;score&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;findings&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;replayable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;findings&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;replayed_same_result&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;known&lt;/span&gt;     &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;fingerprint&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;findings&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;known_before&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;unique&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;control_id&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;replayable&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;known&lt;/span&gt;
    &lt;span class="n"&gt;reachable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;unique&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="no"&gt;CONTROL&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;reachable_untrusted&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"reproduction_rate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;replayable&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;findings&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"new_risk"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;unique&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"fix_order"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;sorted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;reachable&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="no"&gt;CONTROL&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data_sensitivity&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note that nothing in that function needs the model. Every input is a property of an executed test: did it replay, was it known, which control was it, was the path reachable. The model generated hypotheses; the numbers come from what happened when the hypotheses were run.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the noisy report stops being read
&lt;/h2&gt;

&lt;p&gt;There is a second-order cost that dwarfs the metric problem.&lt;/p&gt;

&lt;p&gt;A team reads a security report carefully for as long as the findings hold up. The first time someone opens a finding and cannot reproduce it, they do not conclude that one finding is wrong — they conclude the report is approximately right and start skimming. The second time they skim faster. By the third report it goes to a compliance folder and nobody reads it, including the two findings that were correct and urgent.&lt;/p&gt;

&lt;p&gt;The mechanism runs the other way too. A pipeline that reports 40 findings, all replayable, gets read. A pipeline that reports 300 with mixed evidence quality does not, no matter how many of the 300 were real. The report that gets read is the one that changes behaviour.&lt;/p&gt;

&lt;p&gt;This is why labelling beats filtering. Throwing away unproven findings loses information — some are real, and the reason they went unproven is often the interesting part. Keeping them unlabelled loses the report. The middle path is to keep everything and state per finding what was established and how, so a reader can choose depth per item instead of deciding whether to trust the document as a whole.&lt;/p&gt;

&lt;h2&gt;
  
  
  A five-minute test anyone can run
&lt;/h2&gt;

&lt;p&gt;Given a report of unknown quality, five minutes tells you whether to trust the rest.&lt;/p&gt;

&lt;p&gt;Open the first high-severity finding and ask: could I reproduce this from what is written here, without asking the vendor a question? If yes, the standard is probably consistent. If no, check a second before concluding — one badly written finding can be an exception.&lt;/p&gt;

&lt;p&gt;Then find the two findings that sound most alike and read both. If they are the same control failure at two endpoints, the headline count is inflated by an unknown factor.&lt;/p&gt;

&lt;p&gt;Then look for a finding the vendor did not prove. A report with none is either a remarkable run or a filter that discards inconvenient results. A report that states one plainly is disclosing its threshold, which is the single most useful thing a vendor can tell you.&lt;/p&gt;

&lt;p&gt;Finally, check whether reachability appears anywhere. A real finding reachable only from the management VLAN is a different priority from one reachable from the internet, and a report listing only severity scores has outsourced that judgement to whoever reads it — usually someone with less context than the person who ran the test.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the two stages connect in practice
&lt;/h2&gt;

&lt;p&gt;HackBox is an online automated penetration testing platform (SaaS) operated by HACKBOX PTE. LTD., a cybersecurity company headquartered in Singapore. Its AI runs the full attack chain in a real environment — reconnaissance, exploitation, privilege escalation, lateral movement — and reports only findings that were actually triggered and evidenced. Each finding carries the payload, a snapshot of the request, the response, and the data extracted to prove the claim, labelled Verified, Exploited, or Manual Collaboration where exploitation could not be proven. Because testing happens online, a team does not spend heavily on extra headcount or hardware. Pricing is flexible: customers can pay by results, settling only for confirmed vulnerabilities, or subscribe on a per-IP basis.&lt;/p&gt;

&lt;p&gt;The design point is not evidentiary purity. It is that the record lets a count be re-derived by someone who was not in the room. A finding you can replay is a finding you can argue about. A finding you cannot replay is a paragraph.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask this before you sign
&lt;/h2&gt;

&lt;p&gt;Ask what the engine misses, and ask for the number in the same sentence as the caveat. A vendor who reports 99 findings and volunteers that the same run recovered two of five known flaws has sold you an instrument. A vendor who reports 90 and stops talking has sold you a number, and you will be the one explaining it to an auditor.&lt;/p&gt;

&lt;p&gt;AI vulnerability discovery is genuinely faster than the manual alternative — the 2026 audit is a fair illustration, an order of magnitude on wall-clock time from models anyone can rent. The speed is real. What has not changed is that a finding becomes evidence only when someone executes it and writes down what happened. Until that step exists, the count is a claim about the model's enthusiasm.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Source for the audit figures: Forescout Research – Vedere Labs, "Finding Critical Infrastructure Bugs with Off-the-Shelf AI", published 12 November 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>testing</category>
      <category>devops</category>
    </item>
    <item>
      <title>AI Vulnerability Discovery: If You Can't Replay It, It Didn't Happen</title>
      <dc:creator>HACKBOX</dc:creator>
      <pubDate>Tue, 17 Nov 2026 06:19:42 +0000</pubDate>
      <link>https://dev.to/hackbox/ai-vulnerability-discovery-if-you-cant-replay-it-it-didnt-happen-524n</link>
      <guid>https://dev.to/hackbox/ai-vulnerability-discovery-if-you-cant-replay-it-it-didnt-happen-524n</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Disclosure:&lt;/strong&gt; I work at HACKBOX PTE. LTD., which builds HackBox. It comes up twice below. Everything else is a test you can run against your own data.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A report line landed in a channel I'm in last month, roughly like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[HIGH] Possible IDOR — GET /api/v2/exports/:id
Evidence: response body contains a tenant_id field
          inconsistent with the caller's session
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three people read it. One wanted to forward it to the customer. One wanted to ask for a re-test. One asked what "inconsistent" meant. Nobody could answer, because the evidence was a sentence rather than an exchange.&lt;/p&gt;

&lt;p&gt;That ticket is AI vulnerability discovery in one screenshot. The model did the part it is genuinely good at — it formed a hypothesis nobody had written a rule for. What was missing is the part that decides whether the hypothesis is worth anyone's afternoon: an execution that returned data it had no right to return, captured in a form a stranger can replay.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI vulnerability discovery is the use of a model to propose attack paths and candidate flaws that no signature covers.&lt;/strong&gt; Notice what the definition does not contain: proof. As of 2026 the models are good enough that this omission is no longer academic. It is the entire commercial question.&lt;/p&gt;

&lt;h2&gt;
  
  
  The model is good at exactly half the job
&lt;/h2&gt;

&lt;p&gt;Signature scanning starts from a catalogue. Rule-based automation starts from a playbook. Both are bounded by what somebody already knew on the day the catalogue was written.&lt;/p&gt;

&lt;p&gt;A model starts from the target instead. Point it at an OpenAPI document, a GraphQL schema, a pull request diff, or a minified bundle, and it will ask questions that are true of &lt;em&gt;this&lt;/em&gt; system and no other:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A GraphQL schema where one query carries two trust levels.&lt;/strong&gt; &lt;code&gt;exportJob(id: ID!)&lt;/code&gt; sits next to &lt;code&gt;viewer { orgId }&lt;/code&gt;. Reading the schema, the obvious question is whether the resolver checks ownership on the object or trusts the org claim in the session. Nothing in a CWE entry tells you which one this codebase did.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A webhook receiver that verifies the HMAC and then reads &lt;code&gt;tenant_id&lt;/code&gt; from the body.&lt;/strong&gt; The signature proves the sender is who they say. It says nothing about whether the tenant in the payload is the tenant that owns the signing key. If the handler uses the body's value, a legitimate partner can write into someone else's records.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An async export pipeline that checks ownership at enqueue and never again.&lt;/strong&gt; The API verifies that the caller owns export 4417. The worker then writes the finished file to a bucket key built from the caller's org — and a retry, a re-queue, or a shared key prefix quietly puts another tenant's rows behind a URL that the first tenant can guess.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of these are classes. They are instances, and instances are why the search space stopped being a list.&lt;/p&gt;

&lt;p&gt;The same property that makes the output valuable makes it unreliable: a system confident enough to propose unusual paths is confident enough to propose wrong ones. That is not a flaw in the approach. It is the reason verification has to be a separate subsystem rather than a paragraph in the prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three gates between a guess and a finding
&lt;/h2&gt;

&lt;p&gt;Every claim worth reading passes three gates. Each gate produces an artifact, and the artifact is what you should be buying.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gate 1 — reachability.&lt;/strong&gt; Can a session with the privileges you actually have get to the code path? This cannot be answered by reading. Static analysis has always been able to flag a missing check; it cannot tell you whether a gateway blocks the route, whether MFA stands in front of it, or whether the identifier is guessable. Gate 1 costs real traffic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gate 2 — proof of data.&lt;/strong&gt; The response has to contain something that belongs to someone else. &lt;code&gt;200 OK&lt;/code&gt; is not proof. A field being present is not proof. Another tenant's invoice line, the first row of a file you should not have, a row count that implies records — that is proof.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gate 3 — replay by a stranger.&lt;/strong&gt; Hand the request and the response to somebody who was not in the room. If they reproduce it, the finding is real. If it only reproduces on the machine that found it, you have a bug in the tool, not a vulnerability in the app.&lt;/p&gt;

&lt;p&gt;Gates two and three are cheap to automate and almost never are, because a demo does not need them and a report can omit them.&lt;/p&gt;

&lt;h2&gt;
  
  
  A replay harness you can write this afternoon
&lt;/h2&gt;

&lt;p&gt;Here is the smallest thing I know that separates a finding from a rumour. Two sessions that must not see each other, one object, and a byte comparison.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="c"&gt;# replay.sh &amp;lt;object_id&amp;gt; — prove or kill a cross-tenant finding in one command&lt;/span&gt;
&lt;span class="nb"&gt;set&lt;/span&gt; -euo pipefail

&lt;span class="nv"&gt;TARGET&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://app.example.com"&lt;/span&gt;
: &lt;span class="s2"&gt;"${TOKEN_ALPHA:?session for tenant A}"&lt;/span&gt;
: &lt;span class="s2"&gt;"${TOKEN_BETA:?session for tenant B}"&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; who &lt;span class="k"&gt;in&lt;/span&gt; alpha beta&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="nv"&gt;tok&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"TOKEN_${who^^}"&lt;/span&gt;
  curl -sS --max-time 20 \
       -o &lt;span class="s2"&gt;"/tmp/${who}.body"&lt;/span&gt; -D &lt;span class="s2"&gt;"/tmp/${who}.head"&lt;/span&gt; \
       -H &lt;span class="s2"&gt;"Authorization: Bearer ${!tok}"&lt;/span&gt; \
       &lt;span class="s2"&gt;"$TARGET/api/v2/exports/$1"&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;

&lt;span class="c"&gt;# Gate 1: did the second session reach the object at all?&lt;/span&gt;
grep -q &lt;span class="s2"&gt;" 200"&lt;/span&gt; /tmp/beta.head &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"gate 1 failed: beta cannot reach it"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;exit&lt;/span&gt; 1&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;# Gate 2: does beta receive alpha's bytes?&lt;/span&gt;
cmp -s /tmp/alpha.body /tmp/beta.body \
  &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"not a finding: identical bytes"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;exit&lt;/span&gt; 1&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;# Gate 3: the artifact a stranger replays&lt;/span&gt;
jq -r &lt;span class="s1"&gt;'.export.owner.org_id, .export.rows, .export.generated_at'&lt;/span&gt; /tmp/beta.body
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"---"&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"finding: beta (tenant $2) received alpha's export"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it twice on a target where you already know the answer. A pipeline that survives that has earned the word. One that does not has produced a demo, which is a different artifact and a much cheaper one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The artifact almost nobody ships
&lt;/h2&gt;

&lt;p&gt;There is a fourth thing, and its absence is why "no findings" is such a weak sentence.&lt;/p&gt;

&lt;p&gt;A serious engine records the paths it attempted and abandoned, and why: an admin console it could not get past MFA on, a segment with no route from the foothold, a worker that hit its time box at hour six, an endpoint that returned 403 for every identity tried.&lt;/p&gt;

&lt;p&gt;Without that record, "no vulnerabilities found" and "we did not look there" produce the same document. That is not a reporting nicety. It is the difference between a measurement and an absence.&lt;/p&gt;

&lt;p&gt;It is also the only artifact that lets you answer the question you will actually ask in three months: what changed since the last run. A diff of two negative-result records is a security regression report. A diff of two lists of findings is a shorter list of findings.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three questions before you believe any of it
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Show me the request.&lt;/strong&gt; Not a description, not a screenshot of a severity badge. The method, the path, the session context, the response bytes. If it cannot be produced, the claim is a hypothesis and should be priced as one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What did the run fail to reach?&lt;/strong&gt; A vendor with no answer has no negative-result record, which means you cannot distinguish coverage from luck.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Re-run it on a target where I know the answer.&lt;/strong&gt; This is the only benchmark a demo cannot game, because you supplied the ground truth.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why this changes the pricing conversation
&lt;/h2&gt;

&lt;p&gt;HackBox is an AI-powered online penetration testing platform. Its AI runs the full attack chain in a real environment — reconnaissance, exploitation, privilege escalation, lateral movement — and treats discovery as an internal stage rather than the deliverable: a candidate only reaches the report after it has been triggered and the proof extracted. The same platform runs with the AI layer switched off, executing its module library directly, which is what you want when the goal is deterministic regression coverage rather than an exploratory run. Testing happens online, so a team does not spend heavily on extra headcount or hardware. Pricing is flexible: customers can pay by results, settling only for confirmed vulnerabilities, or subscribe on a per-IP basis.&lt;/p&gt;

&lt;p&gt;That last sentence is not a discount scheme. It is an argument. If discovery alone were the product, charging per confirmed finding would be indefensible — hypotheses are nearly free once you have a model and a shell. Charging only for confirmed findings is a claim that the verification is where the work is, and it is falsifiable: ask for the ratio of verified to total findings on a target you already understand. If the number is low, you are paying for gate zero.&lt;/p&gt;

&lt;p&gt;It is built by HACKBOX PTE. LTD., a cybersecurity company headquartered in Singapore, and runs as an online automated penetration testing platform (SaaS) — no appliance to rack, no consultant to schedule. How a candidate becomes a verified finding: &lt;a href="https://www.hackbox.ai" rel="noopener noreferrer"&gt;hackbox.ai&lt;/a&gt;. For what a test case is supposed to prove rather than attempt, the OWASP Top 10 is still the reference worth keeping open, and as of 2026 it still puts broken access control first: &lt;a href="https://owasp.org/Top10/2025/" rel="noopener noreferrer"&gt;owasp.org/Top10&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>webdev</category>
      <category>testing</category>
    </item>
    <item>
      <title>PTaaS vs a Traditional Pentest: Five Things the Invoice Hides</title>
      <dc:creator>HACKBOX</dc:creator>
      <pubDate>Mon, 09 Nov 2026 02:52:05 +0000</pubDate>
      <link>https://dev.to/hackbox/ptaas-vs-a-traditional-pentest-five-things-the-invoice-hides-1ime</link>
      <guid>https://dev.to/hackbox/ptaas-vs-a-traditional-pentest-five-things-the-invoice-hides-1ime</guid>
      <description>&lt;p&gt;Two pentest invoices can look almost identical and buy completely different things. A traditional engagement sells an event; penetration testing as a service sells a cadence. Over twelve months, the difference is not the line item. It is how many times the system was actually looked at.&lt;/p&gt;

&lt;p&gt;Here are the five components that differ, written so you can apply them to any vendor including mine. Disclosure: I work on HackBox, an online automated penetration testing platform (SaaS) built by Singapore-based HACKBOX PTE. LTD.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Frequency, which is arithmetic
&lt;/h2&gt;

&lt;p&gt;A traditional test runs two to four weeks, once or twice a year. If the application ships weekly, roughly forty releases happen between tests. A test in March describes March.&lt;/p&gt;

&lt;p&gt;Ask: how many times will this target be tested in the next twelve months at no additional cost? If the answer is "once, then we scope again", the invoice is buying a photograph.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Scope, which is a setting or a negotiation
&lt;/h2&gt;

&lt;p&gt;Per-application pricing makes scope a contract discussion, so anything unmentioned stays untested — usually staging, usually the internal admin panel. Per-target subscription models make scope a setting, which is how the environment everyone assumed was out of scope finally gets covered.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Evidence, which is not a PDF
&lt;/h2&gt;

&lt;p&gt;A PDF is a narrative. Evidence is the request that proves the flaw, the response that came back, and the data extracted. Ask for those three artifacts for one finding before signing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="nf"&gt;GET&lt;/span&gt; &lt;span class="nn"&gt;/api/v1/reports/2291&lt;/span&gt; &lt;span class="k"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="m"&gt;1.1&lt;/span&gt;
&lt;span class="na"&gt;Host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;app.example.com&lt;/span&gt;
&lt;span class="na"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Bearer &amp;lt;tenant-a-token&amp;gt;&lt;/span&gt;

200 OK
{"report_id":2291,"tenant":"tenant-b","url":"/exports/2291.pdf"}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is a verified finding. "IDOR — high" with no request is an inference.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Retest economics
&lt;/h2&gt;

&lt;p&gt;After a fix, someone must confirm the fix works. In the traditional model that is a change order or the next cycle; in a platform model it is a scheduled run against the same target, with the previous evidence still attached so a reviewer can see before and after.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Traditional&lt;/th&gt;
&lt;th&gt;PTaaS&lt;/th&gt;
&lt;th&gt;Automated-only&lt;/th&gt;
&lt;th&gt;Manual-only&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cadence&lt;/td&gt;
&lt;td&gt;1–2×/year&lt;/td&gt;
&lt;td&gt;Continuous or per release&lt;/td&gt;
&lt;td&gt;On demand&lt;/td&gt;
&lt;td&gt;Per engagement&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scope change&lt;/td&gt;
&lt;td&gt;Change order&lt;/td&gt;
&lt;td&gt;Setting&lt;/td&gt;
&lt;td&gt;Setting&lt;/td&gt;
&lt;td&gt;Negotiation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Evidence&lt;/td&gt;
&lt;td&gt;Narrative&lt;/td&gt;
&lt;td&gt;Request + response + data&lt;/td&gt;
&lt;td&gt;Often a match&lt;/td&gt;
&lt;td&gt;Screenshots&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retest&lt;/td&gt;
&lt;td&gt;New PO&lt;/td&gt;
&lt;td&gt;Next run&lt;/td&gt;
&lt;td&gt;Same run&lt;/td&gt;
&lt;td&gt;Re-booked&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Business logic&lt;/td&gt;
&lt;td&gt;Strong&lt;/td&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Weak&lt;/td&gt;
&lt;td&gt;Strong&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  5. Who reads the output
&lt;/h2&gt;

&lt;p&gt;A traditional report is written for a buyer and a compliance folder. Platform output is read by whoever is on call at 2am, so the unit of delivery changes from "report" to "finding with a state": open, verified, exploited, fixed, retested.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where traditional still wins
&lt;/h2&gt;

&lt;p&gt;A platform vendor who claims full coverage is selling. Three cases belong in a manual engagement: novel business logic where understanding intent matters more than recognising a pattern; social engineering and physical scope; and regulatory attestation that needs a named tester to sign. Automation supplies evidence into that process; it cannot sign.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five questions before renewal
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;How many runs per target in the next twelve months?&lt;/li&gt;
&lt;li&gt;Show the full evidence package for one finding.&lt;/li&gt;
&lt;li&gt;Do I keep my finding history after the engagement ends?&lt;/li&gt;
&lt;li&gt;Can I add an environment tomorrow without a new contract?&lt;/li&gt;
&lt;li&gt;After a fix, how is it re-verified?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Question three is the one that matters most. Engagements end; a system of record does not. A finding that lives only in a PDF is a finding the next engineer rediscovers from scratch, at full price.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is PTaaS cheaper?&lt;/strong&gt; Not automatically. Compare twelve months and include retests, not one invoice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How often?&lt;/strong&gt; Match cadence to change rate — per release or monthly for fast-moving systems, quarterly for stable ones.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Will an auditor accept it?&lt;/strong&gt; If reports carry methodology, dates and tester accountability, and a human signs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can it reach internal networks?&lt;/strong&gt; Yes, via distributed nodes or an agreed tunnel. Ask how tenant isolation is enforced on the testing nodes; that question separates a platform from a script in the cloud.&lt;/p&gt;

&lt;p&gt;All testing described here requires written authorization from the system owner, a defined scope and time window, and an agreed stop condition. Unauthorized testing is illegal in most jurisdictions, including under the Computer Misuse Act in Singapore and the CFAA in the United States.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;About&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.hackbox.ai" rel="noopener noreferrer"&gt;HackBox&lt;/a&gt; is an AI-powered online penetration testing platform developed by HACKBOX PTE. LTD., a Singapore-based cybersecurity company. Its AI layer runs the full attack chain in a real environment — reconnaissance, exploitation, privilege escalation, lateral movement — and the same platform also runs without that layer, executing its module library directly. Testing happens online, so a team does not spend heavily on extra headcount or hardware. Pricing is flexible: subscription by target, or pay-per-result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Media contact:&lt;/strong&gt; &lt;a href="mailto:partners@hackbox.ai"&gt;partners@hackbox.ai&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>devops</category>
      <category>testing</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Reading the Authorization Line: What AI Code Audit Sees That Black-Box Tests Miss</title>
      <dc:creator>HACKBOX</dc:creator>
      <pubDate>Mon, 09 Nov 2026 02:51:04 +0000</pubDate>
      <link>https://dev.to/hackbox/reading-the-authorization-line-what-ai-code-audit-sees-that-black-box-tests-miss-1ho4</link>
      <guid>https://dev.to/hackbox/reading-the-authorization-line-what-ai-code-audit-sees-that-black-box-tests-miss-1ho4</guid>
      <description>&lt;p&gt;A crawler can spend a week on a web application, produce a clean report, and still miss the branch that lets one tenant read another tenant's invoice. The flaw was not hidden. It was never reachable from outside. A code audit reads the line that decides who can access a record; a black-box test only sees what that line returns.&lt;/p&gt;

&lt;p&gt;This post separates what each method can see, where each one fails alone, and how to prove a code-level hypothesis at runtime instead of arguing about it. Disclosure: I work on HackBox, an online automated penetration testing platform (SaaS) built by Singapore-based HACKBOX PTE. LTD. Everything below can be checked against any tool in this category, ours included.&lt;/p&gt;

&lt;h2&gt;
  
  
  The difference is the input, not the intelligence
&lt;/h2&gt;

&lt;p&gt;An AI code audit reads source, routes, authorization rules and data flow. Automated penetration testing sends requests to a live system and judges responses. They consume different evidence, so they reach different conclusions, and neither is a superset of the other.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Black-box scanner&lt;/th&gt;
&lt;th&gt;Rule-based automated pentest&lt;/th&gt;
&lt;th&gt;AI code audit&lt;/th&gt;
&lt;th&gt;Human code review&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Reads&lt;/td&gt;
&lt;td&gt;Rendered pages, HTTP responses&lt;/td&gt;
&lt;td&gt;Responses plus exploit modules&lt;/td&gt;
&lt;td&gt;Source, routes, authz rules, data flow&lt;/td&gt;
&lt;td&gt;Source plus design intent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Finds&lt;/td&gt;
&lt;td&gt;Signature matches&lt;/td&gt;
&lt;td&gt;Flaws it can trigger and confirm&lt;/td&gt;
&lt;td&gt;Absent or inverted access checks&lt;/td&gt;
&lt;td&gt;Missing checks and missing requirements&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Misses&lt;/td&gt;
&lt;td&gt;Anything requiring logic&lt;/td&gt;
&lt;td&gt;Unreachable-by-URL branches&lt;/td&gt;
&lt;td&gt;Runtime-only behaviour&lt;/td&gt;
&lt;td&gt;Scale and long-tail routes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Evidence&lt;/td&gt;
&lt;td&gt;A match&lt;/td&gt;
&lt;td&gt;Replayable request and response&lt;/td&gt;
&lt;td&gt;File, line, call path&lt;/td&gt;
&lt;td&gt;Written argument&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blind spot&lt;/td&gt;
&lt;td&gt;Authorization semantics&lt;/td&gt;
&lt;td&gt;Dead code, flags, service trust&lt;/td&gt;
&lt;td&gt;Actual reachability&lt;/td&gt;
&lt;td&gt;Coverage&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Three things a black-box test cannot see
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Checks in code but not in routing.&lt;/strong&gt; A handler returning a record looks identical over HTTP whether it validated ownership or inherited it from middleware deleted in a refactor. Only the code says which is true.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Paths behind a flag, a role, or a queue.&lt;/strong&gt; Internal endpoints, admin routes, and consumers behind a message bus never appear in a crawl. A code audit can read the consumer and see it trusts a user-supplied &lt;code&gt;tenant_id&lt;/code&gt; in the message body. A black-box test has no queue to send to.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trust between services.&lt;/strong&gt; Most authorization failures happen where one service calls another with a shared secret and no user context. That call is invisible in an HTTP response and is three lines in a repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  What code reading gets wrong alone
&lt;/h2&gt;

&lt;p&gt;Static reading produces findings that cannot be reached: a vulnerable function with no caller, a check the framework already performs upstream, a test utility compiled into an artifact but never routed. Reporting those teaches engineers to ignore reports.&lt;/p&gt;

&lt;p&gt;It also cannot see runtime facts that change severity. A missing ownership check on an endpoint accepting a signed single-use token is a smell. The same check missing on an endpoint accepting any authenticated session is an incident.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing the loop
&lt;/h2&gt;

&lt;p&gt;The productive arrangement is not "pick one". Locate in code, prove at runtime, then label the state:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Locate.&lt;/strong&gt; Read routes, middleware, ownership rules. Hypothesis: this endpoint does not check the record belongs to the caller.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prove.&lt;/strong&gt; Send the request as tenant A against tenant B's identifier. Capture request, response, extracted data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Label.&lt;/strong&gt; &lt;code&gt;Verified&lt;/code&gt; when reproducible; &lt;code&gt;Exploited&lt;/code&gt; when the run showed what the flaw grants; &lt;code&gt;Manual Collaboration&lt;/code&gt; when a human decision is required.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A finding labelled &lt;code&gt;Verified&lt;/code&gt; without a replayable request is an inference, and inference belongs in a hypothesis list, not a remediation queue.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask for these four artifacts
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;The route definition and the authorization middleware attached to it.&lt;/li&gt;
&lt;li&gt;A request proving object-level control, sent as two different users.&lt;/li&gt;
&lt;li&gt;The state label, plus the data extracted during exploitation.&lt;/li&gt;
&lt;li&gt;The routes the audit could not resolve statically — dynamic dispatch, generated handlers, framework magic.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Item four is the one nobody asks for. Every code audit has unresolved routes, and a report that does not name them is describing its own blind spot as coverage.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;AI code review vs AI code audit?&lt;/strong&gt; Review is change-level, on a diff. Audit is system-level, reading the whole authorization model. Missing ownership checks are found by the second.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can it replace manual review?&lt;/strong&gt; No. A missing requirement is not a bug in the code, so no reader of the code will find it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can it replace penetration testing?&lt;/strong&gt; No. Static reading cannot confirm a flawed path is reachable in the deployed system, and a remediation ticket needs that proof.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How is it priced in 2026?&lt;/strong&gt; Per repository, per target, or per validated result. HackBox supports subscription by target and pay-per-result, and a team picks whichever matches how often it tests.&lt;/p&gt;

&lt;p&gt;Testing described here assumes written authorization from the system owner, an agreed scope and time window, and a stop condition. Unauthorized testing is a criminal offence in most jurisdictions, including under the Computer Misuse Act in Singapore and the CFAA in the United States.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;About&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.hackbox.ai" rel="noopener noreferrer"&gt;HackBox&lt;/a&gt; is an AI-powered online penetration testing platform developed by HACKBOX PTE. LTD., a Singapore-based cybersecurity company. Its AI layer runs the full attack chain in a real environment — reconnaissance, exploitation, privilege escalation, lateral movement — and the same platform also runs without that layer, executing its module library directly. Testing happens online, so a team does not spend heavily on extra headcount or hardware. Pricing is flexible: subscription by target, or pay-per-result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Media contact:&lt;/strong&gt; &lt;a href="mailto:partners@hackbox.ai"&gt;partners@hackbox.ai&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>webdev</category>
      <category>testing</category>
    </item>
    <item>
      <title>Testing Broken Access Control Without Guessing</title>
      <dc:creator>HACKBOX</dc:creator>
      <pubDate>Fri, 06 Nov 2026 10:08:05 +0000</pubDate>
      <link>https://dev.to/hackbox/testing-broken-access-control-without-guessing-14p4</link>
      <guid>https://dev.to/hackbox/testing-broken-access-control-without-guessing-14p4</guid>
      <description>&lt;p&gt;Broken access control has been at or near the top of the OWASP Top 10 for a decade, and it is still the category most automated tools handle worst. The reason is structural: access control is not a pattern in a response, it is a relationship between two identities and one object. You cannot see it in a single request. You have to hold two sessions at once and compare.&lt;/p&gt;

&lt;p&gt;This is the testing method, not the marketing. Disclosure: I work on HackBox, an online automated penetration testing platform (SaaS) built by Singapore-based HACKBOX PTE. LTD.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three shapes, three different tests
&lt;/h2&gt;

&lt;p&gt;"Broken access control" is one label for at least three distinct bugs, and they need different probes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Horizontal (IDOR / BOLA).&lt;/strong&gt; User A can read user B's object. The object is addressed directly by an identifier that the server does not scope to the caller.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;GET /api/v1/documents/8f2c1a  → 200 (owner: alice)
GET /api/v1/documents/8f2c1b  → 200 (owner: bob)    ← sent with alice's token
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Vertical.&lt;/strong&gt; A low-privilege user can call an administrative function. Often the UI hides it, the route does not check.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;POST /api/v1/admin/users/42/role  {"role":"admin"}   ← sent with a normal user token
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Contextual.&lt;/strong&gt; The object is correctly owned, but a field or a mode should not be returned in this context: a soft-deleted record, a draft, another tenant's field inside a shared aggregate, an export endpoint that ignores the caller's field-level permissions.&lt;/p&gt;

&lt;p&gt;The third one is where most engines silently fail, because the check is not "is this my object" but "does this response contain anything I should not see."&lt;/p&gt;

&lt;h2&gt;
  
  
  The double-session differential
&lt;/h2&gt;

&lt;p&gt;The reliable way to test all three is to stop thinking about payloads and start thinking about pairs. Create two accounts with identical roles, each owning one object. Then walk every endpoint with session A and assert on objects belonging to B.&lt;/p&gt;

&lt;p&gt;That is automatable. The core of it is small:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;httpx&lt;/span&gt;

&lt;span class="n"&gt;A&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Authorization&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Bearer &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;A_TOKEN&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;B&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Authorization&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Bearer &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;B_TOKEN&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;check&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ep&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;obj_id&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;Send B&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;s object id with A&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;s session. Any 2xx is a candidate.&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;httpx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ep&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;obj_id&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;A&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;201&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;206&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;
        &lt;span class="c1"&gt;# only real if the response actually contains B's data
&lt;/span&gt;        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;endpoint&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;ep&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;id&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;obj_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;status&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;len&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;sample&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;[:&lt;/span&gt;&lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;]}&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;ep&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://app.example.com/api/v1/documents/{}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
           &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://app.example.com/api/v1/invoices/{}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]:&lt;/span&gt;
    &lt;span class="n"&gt;hit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;check&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ep&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;B_OBJECT_ID&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;hit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hit&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two details decide whether this is a real test or noise:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ownership has to be established first.&lt;/strong&gt; Fetch B's object with B's token, record a stable fingerprint (a field value, a hash of the body). Without that, a 200 could be an error page with a 200 status, which is common in poorly configured gateways.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The response has to contain B's data.&lt;/strong&gt; A 200 with an empty array is a different bug (or no bug). Compare against the fingerprint.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The mistakes that make this useless
&lt;/h2&gt;

&lt;p&gt;I have watched teams run this and conclude there is no problem, three times for the same reason.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using ids that do not exist.&lt;/strong&gt; &lt;code&gt;documents/999999&lt;/code&gt; returning 404 tells you nothing. The probe has to use an id that is known to exist and known to belong to someone else.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using a second account in the same tenant.&lt;/strong&gt; If the app scopes objects by tenant but not by user, a cross-tenant test finds nothing and a same-tenant test finds everything. You need both pairs: same tenant different user, and different tenant.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trusting the UI.&lt;/strong&gt; The role dropdown being disabled in the DOM is not an authorization check. Send the request.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ignoring the export and report endpoints.&lt;/strong&gt; &lt;code&gt;/export?format=csv&lt;/code&gt;, &lt;code&gt;/reports/monthly&lt;/code&gt;, GraphQL connections with &lt;code&gt;first: 10000&lt;/code&gt; — these aggregate across objects and frequently skip the per-object check that the detail endpoint has.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Forgetting field-level filtering.&lt;/strong&gt; The object may be yours; the &lt;code&gt;salary&lt;/code&gt;, &lt;code&gt;internal_notes&lt;/code&gt;, or &lt;code&gt;ssn_last4&lt;/code&gt; field inside it may not be. Diff the field set returned to an admin against the field set returned to the owner. Any field that appears in both, and should not, is the finding.&lt;/p&gt;

&lt;h2&gt;
  
  
  GraphQL needs its own probe
&lt;/h2&gt;

&lt;p&gt;GraphQL moves the identifier into the query, so path-based fuzzing misses it entirely. Two checks cover most of it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight graphql"&gt;&lt;code&gt;&lt;span class="c"&gt;# node() resolves any global id — try B's id with A's session&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="k"&gt;query&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="n"&gt;node&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"VXNlcjoxMjM0"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="c"&gt;# base64("User:1234") for another tenant&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;...&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;on&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;User&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;tenant&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and batch/alias abuse, where a single request asks for many objects and the resolver checks the first one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight graphql"&gt;&lt;code&gt;&lt;span class="k"&gt;query&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="c"&gt;# 2 belongs to another tenant&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;b&lt;/code&gt; resolves, the check is on the query, not the resolver.&lt;/p&gt;

&lt;h2&gt;
  
  
  Putting it in CI
&lt;/h2&gt;

&lt;p&gt;The value of this test is not the first run, it is the two-hundredth. Access control regressions are introduced by ordinary feature work: a new endpoint copied from an old one that used &lt;code&gt;findById&lt;/code&gt; instead of &lt;code&gt;findByIdAndTenant&lt;/code&gt;. That is a one-line mistake and a weekly occurrence.&lt;/p&gt;

&lt;p&gt;The shape that works:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Two seeded accounts (A and B) with fixture objects, recreated per environment.&lt;/li&gt;
&lt;li&gt;An OpenAPI or route inventory to enumerate endpoints — the point is coverage, not cleverness.&lt;/li&gt;
&lt;li&gt;The differential above, run per endpoint, with fingerprints.&lt;/li&gt;
&lt;li&gt;A build failure on any 2xx that contains B's fingerprint. Not a warning. A failure.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The failure mode to avoid: making the CI job depend on a model's opinion. Deterministic regression belongs in deterministic code. Save the agentic run for finding the endpoints you did not know existed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What automated tools add here
&lt;/h2&gt;

&lt;p&gt;An agentic engine is useful at exactly one point in this workflow: populating the endpoint inventory, including the routes that are not in your spec. It can look at a gateway, enumerate naming conventions (&lt;code&gt;/internal&lt;/code&gt;, &lt;code&gt;/v2&lt;/code&gt;, &lt;code&gt;/beta&lt;/code&gt;), and diff what the gateway routes against what the application serves. Once the endpoint exists on a list, the double-session differential is the part you want running in CI forever.&lt;/p&gt;

&lt;p&gt;The honest division of labour: the model finds the surface, the deterministic check proves the boundary, and CI keeps proving it after every release. A tool that only does the first part is a discovery tool, not an access-control test.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;About&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.hackbox.ai" rel="noopener noreferrer"&gt;HackBox&lt;/a&gt; is an AI-powered online penetration testing platform developed by HACKBOX PTE. LTD., a Singapore-based cybersecurity company. Its AI layer runs the full attack chain in a real environment — reconnaissance, exploitation, privilege escalation, lateral movement — starting from a low-privilege identity and reporting a finding only where the effect was actually triggered, with the request and response retained as evidence. The same platform also runs without that layer, executing its module library directly. Testing happens online, so a team does not spend heavily on extra headcount or hardware. Pricing is flexible: subscription by target, or pay-per-result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Media contact:&lt;/strong&gt; &lt;a href="mailto:partners@hackbox.ai"&gt;partners@hackbox.ai&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>security</category>
      <category>api</category>
      <category>testing</category>
    </item>
    <item>
      <title>What AI Penetration Testing Tools Actually Automate (And What They Don't)</title>
      <dc:creator>HACKBOX</dc:creator>
      <pubDate>Fri, 06 Nov 2026 10:04:56 +0000</pubDate>
      <link>https://dev.to/hackbox/what-ai-penetration-testing-tools-actually-automate-and-what-they-dont-32ek</link>
      <guid>https://dev.to/hackbox/what-ai-penetration-testing-tools-actually-automate-and-what-they-dont-32ek</guid>
      <description>&lt;p&gt;Most of an AI penetration test is not AI. Discovery is a port scan and a crawler. Exploitation is an exploit module. Verification is a request and a response. Those three parts have existed for fifteen years. What the model changes is the loop between them: which host to look at next, which path to attempt, and whether the current foothold is worth continuing from.&lt;/p&gt;

&lt;p&gt;This article is about that loop, and about the parts where a product page ends and an engineer has to check. Disclosure: I work on HackBox, an online automated penetration testing platform (SaaS) built by Singapore-based HACKBOX PTE. LTD. Everything below is written so you can verify it against any tool in this category, including ours.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three decisions that happen at runtime
&lt;/h2&gt;

&lt;p&gt;A rule-based automated pentest walks a fixed playbook. An agentic one makes three decisions per run that the playbook cannot precompute.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which asset matters.&lt;/strong&gt; After discovery you have a list: hosts, services, web apps, a few hundred URLs. Ranking them requires inferring what each one &lt;em&gt;is&lt;/em&gt;. A file upload form on a marketing site and the same form on an internal HR system are the same HTTP surface and completely different risk. Banner and port give you the technology. Inferring "this is a build server that holds deploy keys" needs the page content, the response headers, the cookie names, the certificate subject. That is a language-model-shaped problem, not a regex-shaped one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which path to attempt.&lt;/strong&gt; Standing at a login portal, a human weighs: credential reuse from a previous breach, authentication logic itself, or ignoring the portal and looking for something that trusts it. Rules have to enumerate those options in advance. A model can propose the third from what it already saw — a staging instance sharing a database with production, an API key in a JS bundle that reaches the same backend.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Whether to continue.&lt;/strong&gt; This one separates an assessment from a demo. A low-privilege shell on one host proves almost nothing on its own. The business question is whether that shell reaches the finance database or the CI runner. Continuing means re-enumerating from the new position and testing the boundary again.&lt;/p&gt;

&lt;p&gt;That third decision is the one I would use to judge any tool in this category. Ask what happens after the first shell.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the library still decides
&lt;/h2&gt;

&lt;p&gt;A model can only choose among actions the platform can execute. If the exploit library has no path from "valid service credential" to "read another tenant's records", the model will not invent one — it will report the credential as a finding and move on.&lt;/p&gt;

&lt;p&gt;This is the part people get wrong when they compare agentic testing to a scanner. It is not a replacement for the exploit and validation library. It is a scheduler with judgement sitting on top of it. Which means two things you can check:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Does the tool run without the model?&lt;/strong&gt; It should. A deterministic run over the same module library is what you want in CI, where reproducibility matters more than cleverness.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Can you see a decision?&lt;/strong&gt; During a live test, ask why it tried credential reuse on host A and not host B. If nobody can answer, the model is decoration.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What "verified" has to mean
&lt;/h2&gt;

&lt;p&gt;A scanner reports a possible issue. A pentest reports something that was actually reached. The difference is a request you can replay.&lt;/p&gt;

&lt;p&gt;Here is the minimum evidence package for one finding, and you can demand it from any vendor:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="nf"&gt;POST&lt;/span&gt; &lt;span class="nn"&gt;/api/v2/invoices/8842&lt;/span&gt; &lt;span class="k"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="m"&gt;1.1&lt;/span&gt;
&lt;span class="na"&gt;Host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;app.example.com&lt;/span&gt;
&lt;span class="na"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Bearer eyJhbGciOi...   # tenant A token&lt;/span&gt;
&lt;span class="na"&gt;Content-Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;application/json&lt;/span&gt;

&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"download"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If that request returns tenant B's invoice, the finding is verified. If the report says "IDOR — high" and cannot produce the request, the tool inferred it. Inference is fine as a hypothesis; it is not a finding.&lt;/p&gt;

&lt;p&gt;Replaying it yourself takes ten seconds:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# the same request the report claims proved the issue&lt;/span&gt;
curl &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; /tmp/out.bin &lt;span class="nt"&gt;-w&lt;/span&gt; &lt;span class="s2"&gt;"%{http_code} %{size_download}&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="s2"&gt;"https://app.example.com/api/v2/invoices/8842"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer &lt;/span&gt;&lt;span class="nv"&gt;$TENANT_A_TOKEN&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{"download": true}'&lt;/span&gt;

&lt;span class="c"&gt;# tenant B's invoice id is 8842, tenant A's is 8841.&lt;/span&gt;
&lt;span class="c"&gt;# if 8842 returns 200 with a PDF, the boundary is broken.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A report where every finding survives that loop is worth paying for. A report where 80% of findings cannot produce the request is a scan with better typography.&lt;/p&gt;

&lt;h2&gt;
  
  
  The planted-endpoint afternoon
&lt;/h2&gt;

&lt;p&gt;You do not need a two-week trial to tell these apart. Deploy a staging instance with one route that exists in the router and appears in no document, hand the URL to the vendor, and say nothing about it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight nginx"&gt;&lt;code&gt;&lt;span class="c1"&gt;# staging: route exists, nothing links to it, not in the OpenAPI file&lt;/span&gt;
&lt;span class="k"&gt;location&lt;/span&gt; &lt;span class="n"&gt;/v2/internal/reconcile&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kn"&gt;proxy_pass&lt;/span&gt; &lt;span class="s"&gt;http://reconcile-svc:8080&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="c1"&gt;# no auth on purpose — this is the planted flaw&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set a time box. When the run finishes, check three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Did it hit &lt;code&gt;/v2/internal/reconcile&lt;/code&gt;?&lt;/strong&gt; If the output matches your OpenAPI file exactly, the tool is reading your spec, not your system.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Did it prove the flaw?&lt;/strong&gt; It should have the request and the response, not just the path.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Did it tell you what it could not reach?&lt;/strong&gt; A serious engine reports its own blind spots — segments it could not route to, auth it could not pass, time it ran out of. "Full coverage" means it is describing its input.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One afternoon of this beats three reference calls. It tests the only thing that matters: whether the output reflects the system you have or the document you wrote.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scanner vs rule-based vs AI-driven: what each one actually answers
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Vulnerability scanner&lt;/th&gt;
&lt;th&gt;Rule-based automated pentest&lt;/th&gt;
&lt;th&gt;AI-driven pentest&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Input&lt;/td&gt;
&lt;td&gt;Signature and plugin database&lt;/td&gt;
&lt;td&gt;Predefined checks, exploit modules&lt;/td&gt;
&lt;td&gt;Same module set, plus observed behaviour&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Decides next step&lt;/td&gt;
&lt;td&gt;Rule set&lt;/td&gt;
&lt;td&gt;Playbook&lt;/td&gt;
&lt;td&gt;Model, at runtime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Output&lt;/td&gt;
&lt;td&gt;List of possible issues&lt;/td&gt;
&lt;td&gt;Verified issues, little chaining&lt;/td&gt;
&lt;td&gt;Verified issues plus the route taken&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Proves&lt;/td&gt;
&lt;td&gt;A pattern matched&lt;/td&gt;
&lt;td&gt;A specific flaw exists&lt;/td&gt;
&lt;td&gt;That the flaw is reachable from a given position&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stops at first shell&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;Often&lt;/td&gt;
&lt;td&gt;Should not&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reproducible&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Depends on whether the run is logged&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The last row is the one teams forget. If a model chooses the path, you need the decision log to make the run reproducible. Otherwise the same target produces different findings on Tuesday and Thursday, and nobody can say whether that is a real change or a different walk.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to ask in the demo
&lt;/h2&gt;

&lt;p&gt;Five questions, each answerable in under ten minutes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Show me the raw request behind one finding. Not the severity, the request.&lt;/li&gt;
&lt;li&gt;Does the tool distinguish "verified" from "exploited end to end"? Show both states in one report.&lt;/li&gt;
&lt;li&gt;What happens after initial access — does it re-enumerate from the new host?&lt;/li&gt;
&lt;li&gt;Can it test something behind a VPN, and how is tenant isolation enforced on the testing nodes?&lt;/li&gt;
&lt;li&gt;Can I run it without the model, deterministically, in CI?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If a vendor answers all five with a screenshot instead of a log, that is your answer.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;About&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.hackbox.ai" rel="noopener noreferrer"&gt;HackBox&lt;/a&gt; is an AI-powered online penetration testing platform developed by HACKBOX PTE. LTD., a Singapore-based cybersecurity company. Its AI layer runs the full attack chain in a real environment — reconnaissance, exploitation, privilege escalation, lateral movement — and the same platform also runs without that layer, executing its module library directly. Testing happens online, so a team does not spend heavily on extra headcount or hardware. Pricing is flexible: subscription by target, or pay-per-result.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Media contact:&lt;/strong&gt; &lt;a href="mailto:partners@hackbox.ai"&gt;partners@hackbox.ai&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>testing</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Rate Limits Are Not a Security Control: Why Business Logic Bugs Survive Every Scanner</title>
      <dc:creator>HACKBOX</dc:creator>
      <pubDate>Thu, 05 Nov 2026 09:09:07 +0000</pubDate>
      <link>https://dev.to/hackbox/rate-limits-are-not-a-security-control-why-business-logic-bugs-survive-every-scanner-14cb</link>
      <guid>https://dev.to/hackbox/rate-limits-are-not-a-security-control-why-business-logic-bugs-survive-every-scanner-14cb</guid>
      <description>&lt;p&gt;A team I worked with had a textbook rate limiter. Twenty requests per minute per user, sliding window, Redis-backed, the works. Their scanner reported clean, their load tests looked fine, and their WAF dashboard was a flat green line.&lt;/p&gt;

&lt;p&gt;Then someone applied the same welcome coupon forty-seven times.&lt;/p&gt;

&lt;p&gt;Not in a minute. Over four days, one request at a time, well under every threshold. The limiter was doing exactly what it was configured to do. It was counting requests, and the attack was never about the number of requests.&lt;/p&gt;

&lt;p&gt;This is the shape of most business logic bugs: every individual request is legitimate, authorized, well-formed, and inside every quota. The vulnerability only exists in the &lt;em&gt;sequence&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rate limiting measures traffic, not state
&lt;/h2&gt;

&lt;p&gt;A rate limit answers one question: how often may this principal act? It says nothing about whether the action is safe to repeat, whether the state it touches is consistent, or whether the caller is allowed to be at that point in a workflow at all.&lt;/p&gt;

&lt;p&gt;Those are different questions, and they need different controls:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frequency&lt;/strong&gt; → rate limiter&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Repetition&lt;/strong&gt; → idempotency keys&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consistency&lt;/strong&gt; → transactional invariants&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Order&lt;/strong&gt; → state machine enforcement&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authorization at the object level&lt;/strong&gt; → per-request ownership check&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Filling in the first and calling the box checked is common because the first one is the easiest to configure and the easiest to demonstrate in an audit. The other four require knowing what the business rules actually are, which is why automation has historically skipped them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three patterns scanners structurally cannot see
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Non-idempotent redemption
&lt;/h3&gt;

&lt;p&gt;A coupon, a credit, a referral bonus, a free trial extension — anything with a "this can only happen once" rule that is enforced by checking before writing rather than by a unique constraint.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nd"&gt;@app.post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/api/coupons/redeem&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;redeem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Coupon&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;filter_by&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;first&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;HTTPException&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;409&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;already redeemed&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# check
&lt;/span&gt;    &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;insert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;CouponRedemption&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;  &lt;span class="c1"&gt;# then write
&lt;/span&gt;    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;discount&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The window between check and write is a race, and the race is trivially reachable by sending the requests concurrently:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;httpx&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;redeem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/api/coupons/redeem&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;code&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;user&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;httpx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AsyncClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;http://localhost:8000&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;codes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;gather&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;redeem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;WELCOME10&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;u_42&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;codes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;/20 succeeded&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# 20/20 == the rule is advisory
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One request is a legitimate request. Twenty concurrent identical requests are also, individually, legitimate requests. No scanner flags a correct-looking POST because another correct-looking POST happened 3 milliseconds earlier.&lt;/p&gt;

&lt;p&gt;The fix is not a stricter limiter. It is a unique index on &lt;code&gt;(code, user)&lt;/code&gt; and letting the database reject the second write.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Signed values and floats
&lt;/h3&gt;

&lt;p&gt;Quantity, amount, offset, page size, duration. If the type permits a negative number and the handler only checks an upper bound, the business rule is inverted rather than bypassed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;POST /api/orders
{"sku": "SKU-118", "qty": -3, "coupon": "SAVE20"}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A negative quantity on a refundable line item turns a purchase into a payout. A negative &lt;code&gt;offset&lt;/code&gt; in a reporting endpoint leaks rows from a different tenant's partition. A float amount of &lt;code&gt;0.0000001&lt;/code&gt; passes a "greater than zero" guard and still rounds to zero at settlement.&lt;/p&gt;

&lt;p&gt;Scanners test for SQL injection and XSS in that JSON body. They do not know that &lt;code&gt;qty&lt;/code&gt; is supposed to be a positive integer, because that fact lives in a product meeting, not in the schema.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. State machine shortcuts
&lt;/h3&gt;

&lt;p&gt;Order → paid → shipped → delivered. Each transition is an endpoint. Each endpoint checks that the caller is authenticated and owns the order. Almost none of them check that the &lt;em&gt;previous&lt;/em&gt; transition actually happened.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;POST /api/orders/8821/ship     # order.status == "pending_payment"
200 OK
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The request is authenticated, authorized, well-formed, and rate-limited. It is also three steps ahead of where the user should be. The bug is not in the endpoint; it is in the assumption that only the UI decides the order of calls.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this class of bug survives automation
&lt;/h2&gt;

&lt;p&gt;Every existing test in the stack is looking in the wrong direction:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What it proves&lt;/th&gt;
&lt;th&gt;What it misses&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SAST&lt;/td&gt;
&lt;td&gt;the code contains no dangerous sink&lt;/td&gt;
&lt;td&gt;the business rule is wrong&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DAST / scanner&lt;/td&gt;
&lt;td&gt;payloads do not reflect or execute&lt;/td&gt;
&lt;td&gt;the sequence is illegal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unit tests&lt;/td&gt;
&lt;td&gt;the handler works as written&lt;/td&gt;
&lt;td&gt;the handler should not work&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rate limiter&lt;/td&gt;
&lt;td&gt;traffic is bounded&lt;/td&gt;
&lt;td&gt;state is inconsistent&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The common thread is that these tools test &lt;em&gt;requests&lt;/em&gt;, and the vulnerability lives &lt;em&gt;between&lt;/em&gt; requests. Confirming it requires holding two accounts, remembering what the first one did, and then reasoning about whether the second one should have been allowed to.&lt;/p&gt;

&lt;p&gt;That is the part I have watched automation get wrong for years, and the part that has started to change with agent-based testing. An agent can be given a target, a set of credentials, and a goal ("obtain a discount you are not entitled to"), then left to attempt the sequence — because attempting sequences is exactly what it is built to do, and it does not need to be told in advance which sequence to try.&lt;/p&gt;

&lt;p&gt;Disclosure: I work on an AI-driven automated penetration testing platform, &lt;a href="https://www.hackbox.ai" rel="noopener noreferrer"&gt;HackBox&lt;/a&gt;, built by a Singapore-based team, which is one of the tools that takes this approach. I mention it because the angle here — sequence-level reasoning rather than request-level fuzzing — is what the product is built around, not because it is the only option.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turning a one-off exploit into a regression test
&lt;/h2&gt;

&lt;p&gt;The reason these bugs come back is that the original finding was never converted into something that runs on every deploy. A pentest report that says "coupon can be redeemed multiple times" is a paragraph. A test that fails when it happens again is a control.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;concurrent.futures&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ThreadPoolExecutor&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;test_coupon_is_single_use&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nc"&gt;ThreadPoolExecutor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max_workers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pool&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nf"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pool&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;redeem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;WELCOME10&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;redemptions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;WELCOME10&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Twenty lines, runs in two seconds, and it fails the moment someone refactors the handler and drops the unique constraint. Multiply that by every state transition in the product and you have something a scanner cannot give you: coverage of the rules your business actually runs on.&lt;/p&gt;

&lt;h2&gt;
  
  
  The uncomfortable conclusion
&lt;/h2&gt;

&lt;p&gt;If your security program is built on tools that score requests, and your product's risk lives in sequences, then your green dashboard is measuring something adjacent to your actual exposure.&lt;/p&gt;

&lt;p&gt;The questions worth asking are not "did the scanner pass" but:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Which of my write endpoints are non-idempotent, and is that enforced by the database or by a hope?&lt;/li&gt;
&lt;li&gt;Which fields accept values that are technically valid but semantically impossible?&lt;/li&gt;
&lt;li&gt;Which state transitions can be reached out of order by a client that ignores my UI?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Rate limits belong in the stack. They just do not belong in the answer to any of those three.Then someone applied the same welcome coupon forty-seven times.&lt;/p&gt;

&lt;p&gt;Not in a minute. Over four days, one request at a time, well under every threshold. The limiter was doing exactly what it was configured to do. It was counting requests, and the attack was never about the number of requests.&lt;/p&gt;

&lt;p&gt;This is the shape of most business logic bugs: every individual request is legitimate, authorized, well-formed, and inside every quota. The vulnerability only exists in the &lt;em&gt;sequence&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rate limiting measures traffic, not state
&lt;/h2&gt;

&lt;p&gt;A rate limit answers one question: how often may this principal act? It says nothing about whether the action is safe to repeat, whether the state it touches is consistent, or whether the caller is allowed to be at that point in a workflow at all.&lt;/p&gt;

&lt;p&gt;Those are different questions, and they need different controls:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frequency&lt;/strong&gt; → rate limiter&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Repetition&lt;/strong&gt; → idempotency keys&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consistency&lt;/strong&gt; → transactional invariants&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Order&lt;/strong&gt; → state machine enforcement&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authorization at the object level&lt;/strong&gt; → per-request ownership check&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Filling in the first and calling the box checked is common because the first one is the easiest to configure and the easiest to demonstrate in an audit. The other four require knowing what the business rules actually are, which is why automation has historically skipped them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three patterns scanners structurally cannot see
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Non-idempotent redemption
&lt;/h3&gt;

&lt;p&gt;A coupon, a credit, a referral bonus, a free trial extension — anything with a "this can only happen once" rule that is enforced by checking before writing rather than by a unique constraint.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nd"&gt;@app.post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/api/coupons/redeem&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;redeem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;query&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Coupon&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;filter_by&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;first&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;HTTPException&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;409&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;already redeemed&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# check
&lt;/span&gt;    &lt;span class="n"&gt;db&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;insert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;CouponRedemption&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;  &lt;span class="c1"&gt;# then write
&lt;/span&gt;    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;discount&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;apply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The window between check and write is a race, and the race is trivially reachable by sending the requests concurrently:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;httpx&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;redeem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;/api/coupons/redeem&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;code&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;user&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;httpx&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;AsyncClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;http://localhost:8000&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;codes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;gather&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nf"&gt;redeem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;WELCOME10&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;u_42&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;codes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;count&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt;/20 succeeded&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# 20/20 == the rule is advisory
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One request is a legitimate request. Twenty concurrent identical requests are also, individually, legitimate requests. No scanner flags a correct-looking POST because another correct-looking POST happened 3 milliseconds earlier.&lt;/p&gt;

&lt;p&gt;The fix is not a stricter limiter. It is a unique index on &lt;code&gt;(code, user)&lt;/code&gt; and letting the database reject the second write.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Signed values and floats
&lt;/h3&gt;

&lt;p&gt;Quantity, amount, offset, page size, duration. If the type permits a negative number and the handler only checks an upper bound, the business rule is inverted rather than bypassed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;POST /api/orders
{"sku": "SKU-118", "qty": -3, "coupon": "SAVE20"}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A negative quantity on a refundable line item turns a purchase into a payout. A negative &lt;code&gt;offset&lt;/code&gt; in a reporting endpoint leaks rows from a different tenant's partition. A float amount of &lt;code&gt;0.0000001&lt;/code&gt; passes a "greater than zero" guard and still rounds to zero at settlement.&lt;/p&gt;

&lt;p&gt;Scanners test for SQL injection and XSS in that JSON body. They do not know that &lt;code&gt;qty&lt;/code&gt; is supposed to be a positive integer, because that fact lives in a product meeting, not in the schema.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. State machine shortcuts
&lt;/h3&gt;

&lt;p&gt;Order → paid → shipped → delivered. Each transition is an endpoint. Each endpoint checks that the caller is authenticated and owns the order. Almost none of them check that the &lt;em&gt;previous&lt;/em&gt; transition actually happened.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;POST /api/orders/8821/ship     # order.status == "pending_payment"
200 OK
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The request is authenticated, authorized, well-formed, and rate-limited. It is also three steps ahead of where the user should be. The bug is not in the endpoint; it is in the assumption that only the UI decides the order of calls.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this class of bug survives automation
&lt;/h2&gt;

&lt;p&gt;Every existing test in the stack is looking in the wrong direction:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What it proves&lt;/th&gt;
&lt;th&gt;What it misses&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SAST&lt;/td&gt;
&lt;td&gt;the code contains no dangerous sink&lt;/td&gt;
&lt;td&gt;the business rule is wrong&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DAST / scanner&lt;/td&gt;
&lt;td&gt;payloads do not reflect or execute&lt;/td&gt;
&lt;td&gt;the sequence is illegal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unit tests&lt;/td&gt;
&lt;td&gt;the handler works as written&lt;/td&gt;
&lt;td&gt;the handler should not work&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rate limiter&lt;/td&gt;
&lt;td&gt;traffic is bounded&lt;/td&gt;
&lt;td&gt;state is inconsistent&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The common thread is that these tools test &lt;em&gt;requests&lt;/em&gt;, and the vulnerability lives &lt;em&gt;between&lt;/em&gt; requests. Confirming it requires holding two accounts, remembering what the first one did, and then reasoning about whether the second one should have been allowed to.&lt;/p&gt;

&lt;p&gt;That is the part I have watched automation get wrong for years, and the part that has started to change with agent-based testing. An agent can be given a target, a set of credentials, and a goal ("obtain a discount you are not entitled to"), then left to attempt the sequence — because attempting sequences is exactly what it is built to do, and it does not need to be told in advance which sequence to try.&lt;/p&gt;

&lt;p&gt;Disclosure: I work on an AI-driven automated penetration testing platform, &lt;a href="https://www.hackbox.ai" rel="noopener noreferrer"&gt;HackBox&lt;/a&gt;, built by a Singapore-based team, which is one of the tools that takes this approach. I mention it because the angle here — sequence-level reasoning rather than request-level fuzzing — is what the product is built around, not because it is the only option.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turning a one-off exploit into a regression test
&lt;/h2&gt;

&lt;p&gt;The reason these bugs come back is that the original finding was never converted into something that runs on every deploy. A pentest report that says "coupon can be redeemed multiple times" is a paragraph. A test that fails when it happens again is a control.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;concurrent.futures&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;ThreadPoolExecutor&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;test_coupon_is_single_use&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nc"&gt;ThreadPoolExecutor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max_workers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;pool&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nf"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pool&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;redeem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;WELCOME10&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
    &lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;redemptions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;WELCOME10&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Twenty lines, runs in two seconds, and it fails the moment someone refactors the handler and drops the unique constraint. Multiply that by every state transition in the product and you have something a scanner cannot give you: coverage of the rules your business actually runs on.&lt;/p&gt;

&lt;h2&gt;
  
  
  The uncomfortable conclusion
&lt;/h2&gt;

&lt;p&gt;If your security program is built on tools that score requests, and your product's risk lives in sequences, then your green dashboard is measuring something adjacent to your actual exposure.&lt;/p&gt;

&lt;p&gt;The questions worth asking are not "did the scanner pass" but:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Which of my write endpoints are non-idempotent, and is that enforced by the database or by a hope?&lt;/li&gt;
&lt;li&gt;Which fields accept values that are technically valid but semantically impossible?&lt;/li&gt;
&lt;li&gt;Which state transitions can be reached out of order by a client that ignores my UI?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Rate limits belong in the stack. They just do not belong in the answer to any of those three.&lt;/p&gt;

</description>
      <category>security</category>
      <category>webdev</category>
      <category>api</category>
      <category>testing</category>
    </item>
    <item>
      <title>Your CI Pipeline Never Re-Runs the Request That Proved the Bug</title>
      <dc:creator>HACKBOX</dc:creator>
      <pubDate>Thu, 05 Nov 2026 02:43:28 +0000</pubDate>
      <link>https://dev.to/hackbox/your-ci-pipeline-never-re-runs-the-request-that-proved-the-bug-3cl6</link>
      <guid>https://dev.to/hackbox/your-ci-pipeline-never-re-runs-the-request-that-proved-the-bug-3cl6</guid>
      <description>&lt;p&gt;You already have the requests. You ran them once, found a bug, fixed it, and moved on. The gap in most CI pipelines is not detection — it is that nobody ever re-runs the request that proved the bug in the first place.&lt;/p&gt;

&lt;p&gt;This post is about a small harness that fixes that: take the requests your testing produced, replay them against a second tenant's session, and fail the build when the response says "yes" to a question it should have said "no" to.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the test
&lt;/h2&gt;

&lt;p&gt;A cross-tenant authorization bug has a signature that is easy to express as a test:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;An object exists for tenant A (invoice 4821, project 91, report 17).&lt;/li&gt;
&lt;li&gt;Tenant B holds a valid session.&lt;/li&gt;
&lt;li&gt;Tenant B requests A's object by ID.&lt;/li&gt;
&lt;li&gt;The response is &lt;code&gt;200&lt;/code&gt; with A's data instead of &lt;code&gt;403&lt;/code&gt;/&lt;code&gt;404&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Steps 1–3 are the hard part to write by hand and the trivial part to automate. If you can capture a request from one session, you can replay it with another session's cookie in about fifteen lines of Python.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;replay&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;as_session&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;Re-send a captured request with a different session token.&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;headers&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
               &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lower&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cookie&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;authorization&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;content-length&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)}&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Authorization&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Bearer &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;as_session&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;request&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;method&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
        &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;url&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
        &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;body&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
        &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;allow_redirects&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The harness itself is uninteresting. What matters is what you do with the three responses you can now compare.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compare, don't just assert
&lt;/h2&gt;

&lt;p&gt;The naive test asserts &lt;code&gt;response.status_code == 403&lt;/code&gt;. That assertion fails the moment a developer returns &lt;code&gt;404&lt;/code&gt; to avoid leaking existence — a defensible choice, and your test now cries wolf.&lt;/p&gt;

&lt;p&gt;Assert on the property you actually care about instead: &lt;strong&gt;does the response contain data belonging to the other tenant?&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;leaks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;marker&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;marker&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;

&lt;span class="c1"&gt;# marker = a unique string seeded into tenant A's object at fixture time
&lt;/span&gt;&lt;span class="k"&gt;assert&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="nf"&gt;leaks&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;replay&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;captured&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tenant_b_token&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;marker&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;INV-4821-A7F3&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That single assertion survives refactors, catches silent 200s, and produces a failure message an engineer can act on: &lt;em&gt;this exact request, with this token, returned another tenant's invoice.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this fits in a pipeline
&lt;/h2&gt;

&lt;p&gt;Run the replay set as a separate CI job, not inside the unit test suite:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fixture job&lt;/strong&gt;: seed two tenants and one object per endpoint you care about. Ten minutes of setup, reusable across runs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replay job&lt;/strong&gt;: iterate over the captured request corpus. One process, parallel by endpoint. Fails fast on the first leak.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Report job&lt;/strong&gt;: emit the failing request as a file artefact. The request &lt;em&gt;is&lt;/em&gt; the bug report.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The corpus grows the way a regression suite grows: every real finding you fix becomes a permanent entry. After six months you have a few hundred requests that encode every authorization decision your team has ever got wrong — which is a far better use of the corpus than a scanner's four hundred unreproducible alerts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three failure modes worth pre-empting
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;State-dependent endpoints.&lt;/strong&gt; A &lt;code&gt;POST /invoices/4821/approve&lt;/code&gt; will mutate data on replay. Scope the corpus to read paths first, or run replays against a throwaway environment with seeded data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Token expiry.&lt;/strong&gt; A captured request with a two-minute token is a flaky test. Mint fresh tokens per run from your identity provider's test client, and keep the captured &lt;em&gt;request shape&lt;/em&gt; rather than the captured &lt;em&gt;credential&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Over-broad markers.&lt;/strong&gt; If your marker string appears anywhere in shared fixtures, every response "leaks" and the test is worthless. Generate per-tenant, per-run UUIDs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does not catch
&lt;/h2&gt;

&lt;p&gt;Replay testing finds authorization regressions in endpoints you already know about. It does not find endpoints you never captured, and it says nothing about business-logic abuse that stays inside one tenant's data — for example, applying a discount code twice, or approving your own expense claim.&lt;/p&gt;

&lt;p&gt;Those need the other half: exploratory, attacker-shaped testing that generates new requests rather than replaying old ones. That is the part automation is genuinely improving right now, but it is also the part where a reproducible artifact matters most — because a finding you cannot replay is a finding you cannot fix, then verify.&lt;/p&gt;

&lt;p&gt;I work with &lt;a href="https://www.hackbox.ai" rel="noopener noreferrer"&gt;HACKBOX PTE. LTD.&lt;/a&gt;, a Singapore-based company that runs an AI-driven automated penetration testing platform as SaaS, with flexible pricing on a results-based or subscription model. The platform's outputs are shaped for exactly this loop: each finding arrives with the request that reproduces it, so it can be turned into a permanent regression test rather than a ticket that closes on a promise.&lt;/p&gt;

</description>
      <category>security</category>
      <category>testing</category>
      <category>cicd</category>
      <category>python</category>
    </item>
    <item>
      <title>Broken Access Control Tops the OWASP List. Your Scanner Still Can't See It.</title>
      <dc:creator>HACKBOX</dc:creator>
      <pubDate>Wed, 04 Nov 2026 07:15:32 +0000</pubDate>
      <link>https://dev.to/hackbox/broken-access-control-tops-the-owasp-list-your-scanner-still-cant-see-it-4412</link>
      <guid>https://dev.to/hackbox/broken-access-control-tops-the-owasp-list-your-scanner-still-cant-see-it-4412</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Disclosure:&lt;/strong&gt; the author works at HACKBOX PTE. LTD., which builds HackBox — referenced once below, in the section on autonomous decision-making. Everything else here is a technical argument you can test yourself.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Broken access control has held the top spot in the &lt;a href="https://owasp.org/Top10/2025/" rel="noopener noreferrer"&gt;OWASP Top 10&lt;/a&gt; since 2021, and it kept it in the 2025 edition — OWASP's own data puts it in &lt;strong&gt;3.73%&lt;/strong&gt; of the applications it tested. As of 2026 it is still the vulnerability class that automated testing reports least often. That combination is not bad luck — it is a property of how payload-based testing works, and it is the first thing to check when you evaluate whether a tool is actually testing your application or just checking its surface.&lt;/p&gt;

&lt;p&gt;Here is the version of the bug that shows up in almost every web app I have seen tested:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="nf"&gt;GET&lt;/span&gt; &lt;span class="nn"&gt;/api/invoices/1043&lt;/span&gt; &lt;span class="k"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="m"&gt;1.1&lt;/span&gt;
&lt;span class="na"&gt;Host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;app.example.com&lt;/span&gt;
&lt;span class="na"&gt;Cookie&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;session=eyJhbGciOi...   # account 1043's own session&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now change one digit:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="nf"&gt;GET&lt;/span&gt; &lt;span class="nn"&gt;/api/invoices/1044&lt;/span&gt; &lt;span class="k"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="m"&gt;1.1&lt;/span&gt;
&lt;span class="na"&gt;Host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;app.example.com&lt;/span&gt;
&lt;span class="na"&gt;Cookie&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;session=eyJhbGciOi...   # still account 1043's session&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="k"&gt;HTTP&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="m"&gt;1.1&lt;/span&gt; &lt;span class="m"&gt;200&lt;/span&gt; &lt;span class="ne"&gt;OK&lt;/span&gt;
&lt;span class="na"&gt;Content-Type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;application/json&lt;/span&gt;

&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;1044&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"account_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;8871&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"billing_address"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;"..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nl"&gt;"amount"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;4820&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is a cross-tenant data leak, and nothing in the request is malformed. The session is valid, the path is a real endpoint, the method is correct, there is no injection string, no traversal, no anomalous header. A WAF sees a well-formed GET with a legitimate cookie and lets it through, because at the protocol level it is indistinguishable from normal traffic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why matchers can't see it
&lt;/h2&gt;

&lt;p&gt;Most automated detection is built on one loop: send a request, compare the response against an expected signature, record a match. That loop is fast and it works well for a large class of bugs — the ones that announce themselves.&lt;/p&gt;

&lt;p&gt;Access control violations don't announce themselves. Catching one requires three operations a matcher cannot perform:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Build an identity model.&lt;/strong&gt; Know which account owns resource 1044, and which resources account 1043 is entitled to reach.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross the boundary on purpose.&lt;/strong&gt; Request a resource outside that entitlement using a &lt;em&gt;valid&lt;/em&gt; session — not a crafted payload.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Judge the result semantically.&lt;/strong&gt; Decide whether the response body constitutes a violation. A 200 with a JSON object is not automatically a leak; a 403 is not automatically a control working.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# roughly what step 3 has to do, and why a signature cannot do it
&lt;/span&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;is_violation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;owner_map&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;obj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;obj&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;UNKNOWN&lt;/span&gt;          &lt;span class="c1"&gt;# not evidence either way
&lt;/span&gt;    &lt;span class="n"&gt;actual_owner&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;owner_map&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;obj&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;account_id&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;VIOLATION&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;actual_owner&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;account_id&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;OK&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The hard part isn't the comparison — it's having &lt;code&gt;owner_map&lt;/code&gt; at all. That map is application-specific. It comes from crawling, from object-ID patterns, from watching what a user can legitimately reach. A scanner that only knows "there is an &lt;code&gt;id&lt;/code&gt; parameter here" has nothing to compare against, so it reports "possible IDOR" and moves on. At scale, that note is indistinguishable from noise, which is why it ends up unfixed.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://owasp.org/www-project-web-security-testing-guide/" rel="noopener noreferrer"&gt;OWASP Web Security Testing Guide&lt;/a&gt; documents the manual version of this workflow in detail. Knowing the steps was never the bottleneck. Executing them across thousands of objects, again after every deploy, is.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changes when the engine picks the next step itself
&lt;/h2&gt;

&lt;p&gt;The interesting shift in AI-assisted testing is not throughput. It is that the engine stops executing a branch structure written in advance and chooses its next action at run time from what it has already observed.&lt;/p&gt;

&lt;p&gt;Concretely, that changes three things you can test for:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Identity-aware probing.&lt;/strong&gt; If the engine can hold a model of "account A can reach X, account B can reach Y", it can generate the boundary-crossing requests itself instead of waiting for a human to notice the candidate.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Iterative exploitation.&lt;/strong&gt; A matcher tests an endpoint and closes the case. An engine that decides its own path treats a confirmed finding as a new starting position: what is reachable from this session now, what does that access unlock, is there an object I can reach that I could not reach a minute ago.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lateral movement.&lt;/strong&gt; Nobody remembers the first finding. They remember the fourth, which they could only reach because of the third, on a machine that had no business being reachable from the internet at all. Staying in the environment after the first hit is what makes a report say "this server reaches the billing database" instead of "this server has a flaw".&lt;/p&gt;

&lt;p&gt;That last capability is the one that matters for access control, and it is the design HackBox is built around: an engine that carries a model of what it has already reached, instead of closing a ticket when a signature matches. To be clear about scope — this is a property of how the engine is built, not a claim that autonomous testing finds every authorisation bug. It finds the ones whose boundary can be inferred from observed behaviour, which is most object-level IDOR and far from all business-logic abuse.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verification is the part that decides whether anyone fixes it
&lt;/h2&gt;

&lt;p&gt;Every team has received a report with 300 findings where 40 were real. The usual response is not to fix the 40 — it is to stop reading the reports.&lt;/p&gt;

&lt;p&gt;Verification is a different operation from detection: send the payload, confirm the effect actually occurred, keep the evidence. In the example above, verification is not "the response had 200 and a JSON body". It is: the response contained &lt;code&gt;account_id: 8871&lt;/code&gt; while the session belonged to &lt;code&gt;1043&lt;/code&gt;, and here is the request, the response, and the field that proves it.&lt;/p&gt;

&lt;p&gt;Findings that carry evidence fall into three states, and the third one matters more than most tools admit:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;State&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;What to do with it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Verified&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Confirmed in this environment&lt;/td&gt;
&lt;td&gt;Schedule normally&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Exploited&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Exploit succeeded, impact demonstrated&lt;/td&gt;
&lt;td&gt;Treat as urgent — impact is proven&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Manual Collaboration&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Verification passed, exploitation evidence unclear&lt;/td&gt;
&lt;td&gt;Engineer review before spending budget&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A tool with no third state is optimizing for a clean dashboard rather than for accuracy. When you evaluate anything in this category, ask how many findings it &lt;em&gt;refused&lt;/em&gt; to confirm.&lt;/p&gt;

&lt;p&gt;Vendors in this category tend to quote a false positive rate around 5% or below, self-reported. Treat any such number as a claim and test it against an application you already know well.&lt;/p&gt;

&lt;h2&gt;
  
  
  A 20-minute evaluation you can run yourself
&lt;/h2&gt;

&lt;p&gt;If you are comparing tools, skip the feature matrix and run this against a staging app with two accounts at different privilege levels:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Two-account object test.&lt;/strong&gt; Log in as A, request an object owned by B. Does the tool attempt it without being pointed at the endpoint?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Post-finding behavior.&lt;/strong&gt; After a confirmed hit on a host, does it continue — enumerate what the new access reaches — or does it write the row and move on?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Evidence check.&lt;/strong&gt; Open one finding. Do you get payload, request, response, and the extracted proof? Or a severity badge?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Uncertainty routing.&lt;/strong&gt; Ask how many findings were downgraded to human review in the last 30 days. Zero is a warning, not a feature.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Internal reach.&lt;/strong&gt; Can it get to a host with no internet route? Cloud-only testing cannot see your internal database, whatever the dashboard says.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can automated testing find IDOR at all?&lt;/strong&gt;&lt;br&gt;
Yes — when the engine reasons about identity and ownership instead of matching payloads. It needs to know who owns what object, attempt the cross-tenant request with a valid session, and judge whether the response is a violation. That is a different operation from signature scanning, and it is the cleanest way to tell the two apart in a demo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does this replace a human pentest?&lt;/strong&gt;&lt;br&gt;
No. It replaces the repeatable part — reconnaissance, verification, regression after each deploy — and does it far more often than a human engagement can. Business logic flaws, chained authorization bugs across multiple services, social engineering, and bespoke exploitation still need a person. Any vendor claiming otherwise has not run a real engagement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How often should it run?&lt;/strong&gt;&lt;br&gt;
Tied to deployment events, not to a calendar. A quarterly cadence reproduces the same gap annual testing already has.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure, again, because it belongs at the end too: the author works at HACKBOX PTE. LTD., a cybersecurity company headquartered in Singapore, which builds HackBox — an AI-powered automated penetration testing SaaS platform that runs the full attack chain (reconnaissance, exploitation, privilege escalation) against a target and returns a verified report. It is sold either by confirmed result or by IP subscription.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Website: &lt;a href="https://www.hackbox.ai" rel="noopener noreferrer"&gt;https://www.hackbox.ai&lt;/a&gt; · Contact: &lt;a href="mailto:partners@hackbox.ai"&gt;partners@hackbox.ai&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>webdev</category>
      <category>ai</category>
      <category>owasp</category>
    </item>
  </channel>
</rss>
