Upgrading from 4.x? 5.x needs Node 22.14+ or 24+; Node 20 and 23 are unsupported. On Node 20, npm warns and still installs unless engine-strict is set; the database engine will not load. Read the guide.

Security for AI agents

Your agent remembers.
Make sure it remembers safely.

ShieldCortex scans memory writes that go through it. On Claude Code and OpenClaw the tool gate stays off until you turn it on; the Hermes plugin enforces by default once you enable it (it has an explicit advisory opt-out). Fetched pages are scored when you ask.

npm total downloads GitHub stars MIT licensed · open source · runs on your machine
shieldcortex · audit feed example
09:41:07 BLOCKED memory write — prompt injection in fetched page (“ignore previous instructions…”)
09:41:23 BLOCKED tool call — curl …/install.sh | sh (catastrophic tier, hard block)
09:42:01 QUARANTINE dependency — axios@1.14.1 known-malicious package
09:42:38 REDACTED credential — API key stripped before it reached storage
09:43:12 STORED memory — “team decided on pnpm workspaces” (salience 0.82)
$ npm install -g shieldcortex && shieldcortex setup

After install: shieldcortex scan "ignore previous instructions"

Runs on your machine

Your agent's memory lives on your host. No account. No ShieldCortex cloud required.

For teams that have to keep data in-house — banks, healthcare, the public sector, offline and OT sites. The defence pipeline, memory store, recall, Action Guard and dashboard all run locally. Memories and scanned content are not sent to ShieldCortex servers unless you turn Cloud on.

No account

Every local feature is on the free tier. No sign-up and no API key to install, scan, store or recall.

Stays on localhost

Memories live in a SQLite file on the host. The API and dashboard listen on 127.0.0.1 only by default.

Works offline

Tested with the network removed: scan, memory write, recall, doctor and the dashboard all ran.

Local models

Detection and recall run on local rules and a local embedding model. No hosted model is needed.

Air-gapped hosts

Semantic recall uses an embedding model of about 90 MB that downloads once from Hugging Face on first use. On a host with no internet, copy it into ~/.cache/shieldcortex/models/ from a connected machine; since 5.12, SHIELDCORTEX_MODEL_DIR relocates that cache, SHIELDCORTEX_EMBEDDINGS_OFFLINE=1 refuses to download, and HF_ENDPOINT points at a mirror. Without it, recall falls back to keyword search and the semantic detection layer is skipped; the pattern scanner, Action Guard and dashboard still work.

Cloud is opt-in

Cloud is off until you enable it and add an API key. It adds cross-machine audit, memory sync and team management. When it is on, memories classified CONFIDENTIAL or higher are excluded from memory sync by default.

Other outbound connections, so you can plan for them: the dashboard asks the npm registry whether a newer version exists (it fails harmlessly offline), and CLI commands can trigger npm's own update notifier (NPM_CONFIG_UPDATE_NOTIFIER=false turns it off). Optional auto-memory capture sends conversation excerpts to the LLM provider your agent already uses; it is on by default for OpenClaw after a fresh global install, and shieldcortex config --openclaw-auto-memory false turns it off. Data residency details →

The problem

Most memory tools help agents remember more. None of that matters if what they remember is a lie.

The moment an agent gets persistent memory, tool access, and a web connection, it exposes three attack surfaces — and a single poisoned write, hijacked tool call, or injected page can quietly become permanent, trusted context.

Poisoning

Hostile content written into memory today is recalled as truth in every future session. The agent doesn't just make a mistake — it learns one.

Hijack

Prompt injection can steer an agent into running commands it was never asked to run. Guardrails on what it remembers mean nothing without guardrails on what it does.

Exposure

Every fetched web page and tool result is untrusted input. Hidden instructions in the outside world become inside instructions the moment the model reads them.

The product

Three surfaces, one shield

01 · Stores

Memory Firewall

Writes that go through ShieldCortex run a six-layer defence pipeline. Recognised injection and leaked credentials are quarantined or blocked before they stick. It does not replace OpenClaw, Hermes, or Claude memory.

Memory docs →

02 · Does

Iron Dome

On Claude Code and OpenClaw, once Action Guard is on and enforcing, a catastrophic command is a hard stop and a risky call needs approval. There the guard stays off until you turn it on, for example with sudo shieldcortex protect. The Hermes plugin enforces by default once enabled and has no approval prompt, so it blocks those calls instead. A broken Claude Code hook can also stop a routine recursive delete.

Explore Iron Dome →

03 · Sees

Environment Firewall

Scores a URL when you run env scan or scanUrl(). Advisory by default: flagged content still passes. Enforce mode is opt-in. It does not wrap Cursor or Codex fetch. X-Ray inspects packages and files.

See X-Ray →

Proof, not promises

60-second scripted walkthrough

A re-enactment of a prompt injection and a privilege escalation. One minute, no signup. Reproduce the catch locally with the command under the feed.

Known-malicious packages

shieldcortex audit --deps checks ./node_modules against a known-malicious list that includes plain-crypto-js and color-diff-napi. X-Ray scans a project directory: try shieldcortex xray .

Built-in injection patterns

Grouped by attack category. They run when a write goes through ShieldCortex, or when the tool gate is on. Up to 50 custom patterns, free.

Guard and memory decisions logged

A local audit trail of what Action Guard held or blocked and what memory was stored or recalled, and why. New rows form a tamper-evident chain you can verify with shieldcortex ledger verify, and the trail exports as JSON or CSV. Limits.

What you get

Scan what comes in. Gate what goes out. Keep the receipts.

Three things ShieldCortex does on your machine, each with what it does not do. Release-by-release detail is in the docs and the changelog.

Catch a poisoned skill or prompt before you act on it

Scan a prompt, a tool result or a skill file before you act on it and get a plain verdict with the matched pattern. shieldcortex scan takes text, scan-skill takes a skill or instruction file, and the dashboard's Skill & package scanner does the same. Built-in injection patterns, plus up to 50 of your own, free.

What it is not: a guarantee. Detection is pattern-based and not complete, so pair it with the tool gate and least privilege. On Codex, Cursor and other MCP hosts it is a memory scanner the model may call, not a gate.

Put a human between the agent and a dangerous command

With Action Guard enforcing, a tool call the guard recognises as dangerous waits for your approval and a catastrophic one is stopped. A call it recognises as switching itself off or changing its own configuration is held too. How the gate works, posture by posture.

What it is not: on by default. You turn it on for Claude Code and OpenClaw; Hermes enforces once its plugin is enabled and blocks rather than holds. The config is signed, with a root-owned lock option (sudo shieldcortex protect); see limits.

Check what happened, and what is configured, from your own box

Decisions land in a local audit ledger whose rows form a tamper-evident chain you can verify with ledger verify. guard posture reads the configured Action Guard posture of the Claude Code hook, the OpenClaw plugin and Hermes, and doctor fails when the hook and plugin disagree or Hermes reports looser. Details.

What it is not: live monitoring. These read configured settings and self-reports, not running processes, and the chain shows consistency, not completeness; see limits.

Quickstart

Install, then turn the guard on

OpenClaw

openclaw skills install shieldcortex
openclaw plugins install @drakon-systems/shieldcortex-realtime

Restart the gateway to load the hook. Action Guard stays off until you enable it.

Node.js / CLI

npm install -g shieldcortex
shieldcortex setup

setup asks before wiring. Codex and MCP get a memory scanner, not a deny hook. Node 22.14+ or 24.

Python

pip install shieldcortex
Sends content to ShieldCortex Cloud. Needs a free API key (500 scans/month).

For a local scan, run shieldcortex api and call it over REST. Python docs →

Node.js 22.14+ or Node 24 (not Node 20, not Node 23) or Python 3.9+ · macOS, Linux & Windows · free and open source

Start protecting your agents

Full protection is free and open source. Enterprise adds fleet management, memory sync at scale, and SSO for teams and servers.

Compare plans
npm install -g shieldcortex

Running a team or a fleet? Talk to us about Enterprise