Scan your whole stack
From OX Research Newsroom
Are you using site-paths?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.12
site-paths was last scanned on 29 Nov 2026 at version 0.1.12. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.12 LATEST | 29 Nov 2026 | No rules fired |
| 0.1.11 | 29 Nov 2026 | No rules fired |
| 0.1.10 | 29 Nov 2026 | No rules fired |
| 0.1.9 | 29 Nov 2026 | Not shown |
| 0.1.8 | 29 Nov 2026 | Not shown |
Findings for v0.1.12. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.12; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Stop your site from telling attackers which private routes and records exist.
site-paths is Toller's open-source toolkit for the first step of an
attack: finding out what a site has. It makes that step expensive, or
gives it nothing. No dependencies. Types included. Apache-2.0.
Attacks are now run by AI-driven frameworks. In November 2026 Google's Threat Intelligence Group reported threat actors using such frameworks "to fully automate vulnerability discovery and exploitation without a human in the loop for the first time". One campaign ran "systematic reconnaissance and vulnerability scanning against a wide range of organizations in Asia".
Every attack starts with reconnaissance, and most sites answer it for
free. If /admin/reports answers "sign in" and a made-up path answers
"not found", anyone can tell that the reports page exists without
seeing a single report. Ask for a list of likely names and you get back
the list of what is there.
The fix is to answer both the same way. Then the scan learns nothing it can build on. More on why.
We run AI-driven attack frameworks against test sites in a closed lab and count what they get.
| What the frameworks tried | Unprotected | Protected |
|---|---|---|
| Find which of 8 private staff routes exist. 7 runs each way, 2 frameworks, 2 models | Right about all 8, in every run | Behind the wall: not one route could be told from a made-up name, in any run. The frameworks had the wall's source code |
| Read other customers' orders by changing the number in the URL | 142 and 102 records read, in the 2 runs counted | Behind a wall for single records: 0 records, in 20 runs of 20 |
These numbers are from one test application with flaws we put there, a handful of runs, and two frameworks. The application ran the JavaScript wall. The walls for the other languages read paths by the same test cases and pass the same check from outside. The numbers show what the wall closes. They are not a share of attacks stopped. How we tested.
| What it does | What it needs | |
|---|---|---|
| The wall | Middleware that runs before your router. Callers you don't let in get your normal "not found" for every path of a private part, whether the route exists or not | Node.js, or any server on Request/Response |
| The check | A command that asks a deployment from outside and fails if any answer gives a private route away | The deployment's address. The site can be written in any language |
| The hand-off | Tells you who came probing | An account at Toller's hosted service, which is not open to everybody yet |
The wall also exists for Python, Ruby, Rust, Go and PHP.
npm install site-paths
Node.js 20 or later. The package is ES modules. To load it with
require, use Node.js 20.19+, 22.12+ or any later line.
1. Ask your deployment what it gives away. Name the private part and one route in it that exists. Use the address your visitors use, so the CDN and hosting in front of your server are asked too.
npx -p site-paths site-paths-check --url https://staging.shop.example --under /admin --has /admin/reports
It asks as a stranger for that route and for made-up names beside it. If anything tells them apart, it says what and exits with 1.
2. If it fails, add a wall. Put it after whatever identifies the signed-in user and before your routes:
// Express
import finalhandler from "finalhandler";
import { walled } from "site-paths/node";
app.use(
walled({
under: "/admin",
allow: (request) => request.user?.role === "staff",
missing: (request, response) => finalhandler(request, response)(),
}),
);
allow is your decision about who is let in.missing is what your site answers for a path that doesn't exist.
finalhandler is Express's own 404.Everyone else now gets that 404 for every path under /admin. Staff
reach your routes as before.
3. Run the check again, and keep it in CI. It fails if a later change starts leaking again.
- run: npm ci
- name: The deployment gives no private route away
run: node_modules/.bin/site-paths-check --url "$PREVIEW_URL" --under /admin --has /admin/reports
env:
WALL_STAFF: ${{ secrets.STAFF_SESSION_HEADER }}
This runs the version your lockfile pins. Give it a staff session made for the check alone, on a preview deployment, that expires soon. The output names the routes you asked about, so don't run it where logs are public.
The wall runs before your site looks a route up. That order is the point: an answer made to look the same after routing can still be told apart by how long it took.
httpimport { walled } from "site-paths/node";
app.use(walled({ under: "/admin", allow: (request) => request.user?.role === "staff" }));
walled() returns a (request, response, next) handler. allow and
missing get the server's own request and response.
import { wall } from "site-paths";
const keep = wall({ under: "/admin", allow: (request) => isStaff(request) });
app.use(async (c, next) => ((await keep(c.req.raw)) ? c.notFound() : next()));
// proxy.js: callers who are kept out are sent to a path the site does
// not have, so they get Next's own 404 page.
import { NextResponse } from "next/server";
import { wall } from "site-paths";
const keep = wall({ under: "/admin", allow: (request) => isStaff(request) });
export async function proxy(request) {
return (await keep(request)) ? NextResponse.rewrite(new URL("/nothing-here", request.url)) : NextResponse.next();
}
export const config = { matcher: ["/admin", "/admin/:path*"] };
Next.js adds its own header (x-middleware-rewrite) to a rewritten
answer, so a caller can tell that something is kept there. Which
routes exist does not show. The check warns about it.
Request and Responseimport { wall } from "site-paths";
const staff = wall({
under: "/admin",
allow: (request) => isStaff(request),
missing: (request) => notFound(request),
});
export default {
async fetch(request, env) {
return (await staff(request)) ?? site(request, env);
},
};
wall() returns a function that resolves to a Response for a caller
it keeps out, and to null when the request is your site's to answer.
| Option | |
|---|---|
under |
The start of the private part: that path and everything below it. / is the whole site |
match |
Instead of under: a RegExp for the paths to keep, such as /\.js\.map$/. Matched case-insensitively, because paths are compared in lower case. Not time-limited: avoid patterns that are slow on long input |
allow |
Your decision. Only true lets a caller in. Anything else, or an error, keeps the caller out. An awaited decision that takes more than 3 seconds also keeps the caller out; a synchronous one is never cut short |
missing |
What your site answers for a path that doesn't exist. Optional: without it, or if it fails, a bare 404 is sent |
undecided |
Only with match: what to answer when allow threw or timed out, such as a "try again" page with 503. Optional: without it such callers are kept out like anyone else. See single records |
patience |
Milliseconds an awaited allow may take. Default 3000 |
failed |
Called with any error from allow, missing or undecided, so a bug there doesn't lock your staff out unseen. Default: console.error |
A wall refuses to be created with no part or two, with a start or
pattern that is empty, or with no allow. A wall that keeps nothing,
or everything because of an unset variable, should fail loudly at
startup.
/Admin//reports, /%61dmin/reports and /admin;v=1/reports are all
/admin/reports, so no alternate spelling gets past.app.use(walled(...)) and
app.use("/admin", walled(...)) keep the same paths./admin/../reports, because some servers route on the path as
written. So is any path deeper than 64 segments.cache-control: private, no-store on them. Mark your staff's answers
the same way: a cache in between would serve them to the next caller
without asking the wall.cache-control: private, no-store
and pass it as missing.missing must answer. If it calls the next handler, the caller
reaches your routes./orders/17 should answer its owner. If it answers anyone signed in,
every order can be read by counting. If it answers "forbidden" for
someone else's order and "not found" for a free number, nobody reads an
order but everybody learns which numbers exist.
Put a wall before single records. It runs your own ownership rule before the handler, and answers everyone else exactly as for a record that doesn't exist.
// Express: single orders, not the list at /orders
app.use(
walled({
match: /^\/orders\/[^/]+$/,
allow: (request) => {
const number = request.path.match(/^\/orders\/(\d{1,18})$/)?.[1];
return number !== undefined && mayReadOrder(request.user, number);
},
missing: (request, response) => finalhandler(request, response)(),
}),
);
mayReadOrder is your application's rule. The wall decides nothing
itself: a wrong rule is wrong here too.
Use a pattern for single records. under: "/orders" would also
keep everyone out of the list at /orders.
The rule sees every spelling and everything below a record:
/Orders/17, /orders//17, /orders/17/items. Have it say yes only
to a path it parses the way your handler does, as the inner pattern
above does. Anything else is then kept from everybody. The
\d{1,18} limit avoids numbers a database would reject with an
error.
Say no when there is no record and when nobody is signed in. A
rule that compares a missing record's owner with a missing user
compares undefined with undefined and says yes.
Ask your database one question: does this caller have a record
with this number?
SELECT EXISTS (SELECT 1 FROM orders WHERE customer_id = $1 AND id = $2),
over an index on both columns. Asking whose the record is takes a
different path for someone else's record than for a free number. We
measured that difference at 3 millionths of a second in PostgreSQL;
asked the first way, nothing showed
(measurement).
Decide what happens when the rule fails or is slow. By default a
rule that throws, or an awaited rule that takes over 3 seconds, keeps
the caller out, so while your database is down an owner is told their
own record doesn't exist. Give undecided to answer "try again"
instead:
undecided: (request, response) => {
response.statusCode = 503;
response.end("Try again in a moment");
},
This is safe only if the rule fails the same way for a record that exists and one that doesn't, as the one-question rule above does. A rule that fails for some records and not others reveals which. If the wall sits inside a part that another wall keeps, put the outer wall first.
Signed-out callers get "not found", not "sign in". A sign-in redirect at an order's address says the order exists.
A number in a request body is not in the path. The wall reads paths. Run the same rule where you read the body.
Lists are your code's job. What /orders shows to whom is not the
wall's decision.
WALL_STAFF="cookie: session=…" WALL_CUSTOMER="cookie: session=…" \
node_modules/.bin/site-paths-check --url https://staging.shop.example \
--under /admin --has /admin/reports --has /admin/export.csv --customer-can /account
It asks for each route you name and for made-up names beside it, twenty times each in random order, as a stranger and as each caller you give it. It exits with 1 if anything tells a real route from a made-up one: status, headers, body, how often each answer comes, or response time. It works on a site written in any language.
Outside a JavaScript project, run it with a pinned version:
npx -p site-paths@0.1.12 site-paths-check --help
It can also check:
--has-not, --shows);--alike);--typed).The check: every option, what fails, and what it cannot see.
The same checks are functions for your own tests:
import { check, alike, typed } from "site-paths/check".
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.