PlatformRuntime protection

Castle

Castle is a small open-source library that runs inside your application. It blocks injection, abusive traffic and unsafe AI behaviour in under a millisecond, and your traffic never passes through anyone else.

Covers
  • In-app firewall (RASP)
  • AI guardrails
  • Rate limiting
  • Virtual patching
  • Runtime evidence
Castle · checkout-api · example 3 blocked
  • 12:04:33.560POST /api/searchSQL injection in q0.3 msblocked
  • 12:04:33.123GET /api/invoices/4821normal request0.1 msallowed
  • 12:04:32.686POST /api/assistantprompt injection0.4 msblocked
  • 12:04:32.249GET /api/exportuser 8812 over limit0.1 mslimited
  • 12:04:31.812POST /api/uploadpath traversal in name0.2 msblocked
Every decision is made inside your appfails open if RookPhase is unreachable
Castle logs each decision and how long it took.
  • < 1 msdecision time, inside your application
  • 7languages, from Node.js to Ruby
  • Apache 2.0licence for every library

Castle covers six areas.

In-app firewall
SQL and command injection, path traversal and SSRF, stopped where they land.
AI guardrails
Prompt injection, personal data in model calls, spend caps and tool limits.
Rate limits
Limits per user or per account, and blocks known bad bots.
Virtual patching
Shields a vulnerable route while the real fix ships.
Runtime evidence
Reports what actually runs, which sharpens every other finding.
Fails open
If RookPhase is unreachable, your app keeps serving.

Teams choose Castle for three reasons.

  • It runs inside your app.

    It sees the real query, so it blocks attacks without WAF false positives.

  • Every library is open source.

    Apache 2.0 libraries for Node.js, Python, Go, Java, .NET, PHP and Ruby.

  • It is built for AI products.

    Model and agent guardrails are part of the core library.

Teams usually ask these questions first.

How much overhead does it add?

Decisions are made in-process and take well under a millisecond. Telemetry is batched and sent in the background.

What happens if RookPhase is down?

Nothing changes for your users. Castle keeps enforcing the last policy it received and never waits on our servers.

The other four products share the same graph.

Platform overview

Start with Castle.

Add the library for your language. Your traffic never passes through anyone else.

  • Runs in our cloud, your VPC or air-gapped
  • Data stays in the EU, US or Middle East
  • No source code kept after a scan