Application-native security / PharosHub

Proof in.Accessdenied.

Turn proven hostile intent into a closed door. PharosHub embeds deception and route-level containment inside your Next.js or Express app—right beside your WAF.

Local

request decision

Proof

before containment

Scoped

to named routes

THE SELECTIVE BOUNDARYPH / 001
PROVEN HOSTILE SOURCENot this way.POST /api/payments → 403
One policy. A different outcome.Interactive illustration · not live traffic
Runs where your application runsNext.jsExpressNode.jsWorks beside any CDN or WAF
01 / INTENT BECOMES ACTION

Open for customers.
Closed to proven threats.

A different kind of defense.

Follow the decision

01 / PROVE

Intent leaves a trace.

A real customer has no reason to use a signed honeytoken. Application-native traps turn impossible actions into evidence—not another guess about an IP address.

Signed canary usedproof: verified

02 / CONTAIN

Close the routes that matter.

Once proof crosses your policy gate, the guard denies that source access to the sensitive routes and methods you configured. The decision runs inside your application.

Protected route deniedPOST /api/payments → 403

03 / CONTINUE

Keep the good traffic moving.

Public pages and unlisted routes stay available. Decisions expire automatically; evidence and containment state synchronize in the background, without holding up customer requests.

Public route remains availableGET /products → allowed
ILLUSTRATIVE FLOW · NOT LIVE TELEMETRY

The control your edge cannot provide

Filtering traffic is not the same as stopping an attacker.

A firewall evaluates requests one by one. PharosHub remembers behavior across the session, creates actions a real customer would never take, and turns that proof into a narrow enforcement decision inside the application.

No traffic proxy No opaque score Automatic expiry
Containment walkthroughILLUSTRATIVE DATA
CONTAINMENT ACTIVEINC-2048

Proven source isolated from sensitive routes.

92/100
14:02:11/.envTRAP
14:02:18/admin/loginDECOY
14:02:46pk_live_•••TOKEN USED
ATTACKER FINGERPRINT

185.220.••.••

3 traps · 1 token · 46 seconds

ENFORCEMENT RESULT

7 protected requests denied across admin, auth, and payment actions.

Public site remains available

One embedded control plane

Four capabilities. One closed loop.

From the first impossible action to the last denied request, the same runtime keeps the context and the evidence.

01

Containment, not another alert

Once deception proves hostile intent, PharosHub denies that source access to the sensitive routes you name—admin, authentication, payment mutations, or internal APIs.

Route policies · method policies · automatic expiry

02

Deception built into the app

Believable routes, admin flows, files, and credentials turn reconnaissance into proof. Persistent actors are engaged while ordinary users never enter the decoy surface.

Tripwires · decoys · signed honeytokens

03

A release that can prove itself

Seal every approved release outside your infrastructure. If hosting, CI, or a CDN is compromised, the altered application can no longer verify as the build you shipped.

Pages · scripts · release manifests

04

Attack memory across instances

A containment decision made on one process follows the attacker to the others. Every prevented action joins the same evidence ledger instead of disappearing into edge logs.

Cross-instance state · evidence · release

Release provenanceInteractive model
Trace the build back to its signature.

An approved release has a verifiable identity.

Release integrity

Know the code online is the code you approved.

PharosHub signs the pages, scripts, and manifest that define a trusted deployment. A modified copy can look identical to a customer and still fail verification immediately.

Build identityIndependent of hosting
Tamper evidenceCryptographically verifiable
Examine the trust model
proxy.ts
import { NextResponse } from "next/server";
import { createNextGuard } from "@pharoshub/guard/next";

const guard = createNextGuard({
  siteKey: process.env.PHAROS_SITE_KEY,
  secret: process.env.PHAROS_SECRET,
  enforcement: {
    enabled: true,
    protectedRoutes: [
      "/admin/*",
      { path: "/api/payments", methods: ["POST"] }
    ]
  }
});

export async function proxy(request, event) {
  return (await guard(request, event)) ?? NextResponse.next();
}

Application-native by design

Local decisions. Your requests keep moving.

The guard evaluates cached, short-lived containment state inside the application process. Existing decisions remain active until their configured expiry. Synchronization and evidence reporting are detached; the customer’s request never waits on PharosHub.

Read the five-minute install guide

Questions before installation

Know the boundary before you trust it.

Active defense should be explainable before it enters a production request path.

Does PharosHub replace a WAF or CDN bot product?

No. A WAF filters individual requests at the edge. PharosHub uses application-owned tripwires and signed canaries to establish intent, then applies a short-lived decision to the sensitive routes you explicitly configured. The two layers are complementary.

What can cause a source to be contained?

A repeated sequence across distinct trap routes, exploit-shaped activity corroborated by other probing, a valid signed honeytoken, or definitive proof supplied by your own application. IP reputation, geography, and a user-agent string cannot open containment by themselves.

Can containment take the public website offline for a visitor?

No. The decision applies only to the routes and HTTP methods in your protectedRoutes policy. Public pages and every unlisted route remain available to that source, and the decision expires automatically.

What happens if PharosHub is unavailable?

Request decisions use local in-memory state and never wait for the collector. Existing local decisions continue until their TTL, reporting retries from a bounded queue, and ordinary application traffic continues.

Which application frameworks are supported?

The package includes an Express-compatible middleware adapter and a separate Web Crypto adapter for Next.js Proxy or Middleware environments. The policy and evidence format are shared between them.

Start with active defense

Make sensitive routes unreachable to proven attackers.

Defend starts at $55/month for one application. Cancel from the console.