RavensPort

Call filters new in 5.1.0

RavensPort can check every call an agent sends before any server sees it, and block it, log it, or let it through. Filters are set up on the Filters tab as profiles, and a profile is chosen per endpoint: a route, an API-to-MCP bridge, an MCP funnel, or one upstream inside a funnel.

The Filters tab with a profile for calls that leave the network: secrets denied, personal-data patterns on, an entity model looking for people, addresses and medical conditions, and an embedding model watching for calls that delete data or move money

Everything can run on this PC, on the CPU or a chosen GPU. No model ships with the app — you download the ones you want and point RavensPort at them.


The five steps#

A call goes through the steps of its profile in this order. Each step can be off, or on with an action: Block (the call is refused) or Watch (logged only, so you can try a step before you trust it).

# Step What it finds What decides
1 Secrets API keys, tokens, private keys, passwords, usernames, refresh/bearer tokens, credentials in URLs, connection strings Rules from one editable file — Off or Deny, nothing in between
2 RegEx Emails, card numbers (Luhn), IBANs (mod-97), phone numbers, German tax and social IDs, IP addresses, street addresses… Built-in patterns you can switch off, edit and reset, plus your own regexes
3 Entities Names, places, medical conditions — any label you write in plain words A GLiNER entity model in ONNX, run in RavensPort
4 Meaning Calls that mean something you deny ("deletes files or databases") An embedding model: similarity to your deny list, deny examples and allow look-alikes
5 Decision Statements you write ("This text is about deleting files or data.") A classifier returns the probability each statement holds; at or over the threshold, the step acts

What is guaranteed:


Setting up a profile#

  1. On the Filters tab, give the profile a name (e.g. Leaves the network, Trusted internal) and press Add profile.
  2. Open it and switch on the steps you want. Steps 3–5 need a model from the Models card (see below); Entities, Meaning and Decision take a level (Relaxed, Balanced, Strict) or a threshold of your own.
  3. In Try it, paste a call and press Check to see each step's verdict, its score, and the redacted text the next step reads — green for allowed, red for blocked.
  4. Choose the profile under Filter profile in the editor of a route, an API bridge or a funnel.

A profile can serve many endpoints; editing it changes all of them on their next call. Each card says who uses it, and a profile in use cannot be removed. Duplicate copies one as a starting point.

Which profile a call gets

Endpoint Profile
Route The route's profile, or none
API bridge The bridge's profile, or none
MCP funnel The upstream's profile in that funnel; else the funnel's; else none

Inside a funnel, give an upstream its own profile when you trust it more or less than the rest — a strict one for anything that leaves your network, a relaxed one for your own servers.

Funnels that had filters before 5.1.0 are converted automatically: their filters become a profile named after the funnel, and the funnel points at it.


Models#

Add models on the Models card, then pick them in a profile. Each has a Test button. Setting up filter models walks through downloading and adding GLiNER PII, embedding models, Laya and a zero-shot model step by step.

Step Kind Examples
3 Entities GLiNER in ONNX, in RavensPort onnx-community/gliner_multi_pii-v1 (German and English, tuned for personal data). Use model.onnx or model_fp16.onnx; quantized int8 files find almost nothing. About 1.2 GB of RAM
4 Meaning ONNX in RavensPort stella-en-400M-v5, all-MiniLM-L6-v2, bge, e5, gte — with vocab.txt beside the model
4 Meaning API Ollama, llama.cpp / any OpenAI-compatible server, OpenAI, Voyage AI
5 Decision ONNX in RavensPort Any zero-shot (NLI) or cross-encoder model, e.g. MoritzLaurer/deberta-v3-base-zeroshot-v2.0; a Laya checkpoint exported to ONNX
5 Decision API The Jev protocol: TypeSafe's hosted Jev, or laya-serve on this PC

CPU or GPU. Every ONNX model runs on the CPU or a GPU you choose. On Windows the GPU runs through DirectML, and GPUs are listed as Windows sees them. If the GPU cannot start a model, it runs on the CPU and the activity log says so. For short calls the CPU is usually faster, so it is the default.

APIs. A model reached over the network shows a warning: every call that step checks — the tool's arguments, which can hold your files and messages — is sent to it. Only what steps 1–3 did not recognise goes out: a call they block never gets there, and a match on a step that only watches is replaced first. Anything those steps miss is sent as it is. Use only an API you trust. Its key is an ordinary credential and stays in your password manager.

Writing statements for step 5. Wording matters. "This text is about sending money." scored a transfer 1.00; "The call sends money." scored the same transfer 0.01. Start statements with "This text is about …".

Rough timings on a laptop CPU: deberta-v3-base-zeroshot-v2.0 about 50 ms per call for three statements, stella-en-400M-v5 about 70 ms.


The secret rules#

Step 1 reads one file: %LocalAppData%\RavensPort\filters\secret-rules.toml on Windows (~/.local/share/RavensPort/filters/secret-rules.toml on Linux). It starts with 247 rules:

The file uses gitleaks' format, so any gitleaks rule can be added. After editing it, press Reload rules. Reset rules puts the original back and keeps yours as secret-rules.toml.bak.


When a call is blocked#

The activity log records each match as blocked or watched, with the profile that chose it and the step and field that matched — never the value.

Limits#

Edit this page on the wiki Request support · Report vulnerabilities privately