Scan your whole stack
Are you using agentx-security-sdk?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.5.14
agentx-security-sdk was last scanned on 29 Nov 2026 at version 0.5.14. Risk score 0 of 100. High-severity rules fired.
| Version | Published | Status |
|---|---|---|
| 0.5.14 LATEST | 29 Nov 2026 | 1 rule fired |
| 0.5.13 | 27 Nov 2026 | 1 rule fired |
| 0.5.12 | 21 Nov 2026 | 1 rule fired |
| 0.5.10 | 10 Nov 2026 | Not shown |
| 0.5.9 | 30 Oct 2026 | Not shown |
Findings for v0.5.14. 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.
Several behaviors that are each common on their own, such as reading registry credentials, contacting a variable host or running shell commands, appear together in this package in a combination associated with attacks. The finding message lists the behaviors that were combined.
HIGHThe score describes 0.5.14; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
This package (agentx-security-sdk) is MIT licensed. The gateway and control plane are separate, closed-source products; see Licensing below.
An agent that can act will eventually act badly: a DROP TABLE arriving through a prompt-injected field, a secret read, an SSRF to a cloud metadata endpoint, an installer piped straight into a shell. Most agent frameworks already give you a place to stop a tool call before it runs. What they don't give you is the decision about which calls are worth stopping.
AgentX is that decision, and it starts with zero keys. A deterministic floor runs inside your process, with no LLM call and no network hop. It knows the never-legitimate call (DROP TABLE, SSRF, secret reads, supply-chain RCE, destructive shell such as rm -rf / or wiping a disk) from the one that can be legitimate and needs a human (payments over a limit, external publishes, runaway spend), which the gateway holds for a person. Cloud teardown (terraform destroy, whole bucket and volume deletes) is checked by the gateway, not yet by the keyless floor.
Out of the box it watches. Every call your wrapped tools make is screened and written down, and nothing is stopped, so adding AgentX cannot break an agent that already works. When the catches look right, AGENTX_POSTURE=enforce makes the same floor hard-block that first list (for Claude Code, agentx hook install --enforce). No API key, no signup. Keyless, your calls never leave the machine; the only thing sent is an anonymous daily usage count, which AGENTX_TELEMETRY=off turns off (see What leaves your machine).
A block is not a dead end. Every block hands your agent a coaching message naming a safe path to try instead, so the run continues rather than ending. Add a Gemini key and the gateway's reasoning layer writes that message to fit the specific task rather than from a template, catches what a keyword floor cannot see, and runs the retry for you.
For your customer's security reviewer: give each agent a site allowlist, and agentx evidence writes a file for them: the rules, and the calls AgentX stopped or flagged. No key, and the file is written on your machine.
AgentX needs no changes to your agent logic, your tools, or your payload schemas. It reads your function signatures at runtime and works out what to inspect on its own.
pip install agentx-security-sdk
agentx demo
Runs a canned agent twice against the in-process floor, offline and with no key: first in the default watching posture, where the DROP TABLE is recorded and still runs, then enforcing, where it is stopped. The fastest way to confirm the install works, and to see both postures, before you wire it into your own agent. (agentx demo --audit and agentx demo --enforce run one half each; agentx demo --drift shows how agentx audit lists an agent doing something new.)
Hit a block you're proud of? Turn it into a postable card:
agentx share
Renders your most recent catch as a clean, screenshot-able receipt + a ready-to-post draft and link. Privacy-safe by construction: it uses the policy class and your own tool name only, never the query or payload (the local ledger never stores one).
Attach the @agentx_protect decorator over any high-risk system tool. The SDK automatically serializes parameters and enforces the evaluation wedge:
# ✅ MODERN REFLECTIVE IMPORTS (No boilerplate functions required)
from agentx_sdk.decorators import agentx_protect
@agentx_protect(agent_id="crm_worker")
def run_sql(query: str, db=None):
"""
AgentX reads the argument NAMED for what it runs, ignores connection objects
like 'db', and evaluates intents out-of-prompt natively in RAM.
"""
return db.execute(query)
The shield reads SQL, shell, paths and URLs in an argument named for them. If no argument is, it
reads every text argument of a tool whose own name says what it runs. A free-text argument is not
read as a statement: a ticket note stays a ticket note however it is worded. Name the argument that
carries the command, or return it from extract_query_func, and the floor can see it.
Trying it on a live agent? Out of the box a keyless install watches: calls are screened and
recorded, none are blocked. Set AGENTX_API_KEY, or AGENTX_POSTURE=enforce, and the same floor
blocks. To hard-block one dangerous tool while the rest keep watching, pin it:
@agentx_protect(agent_id="crm_worker", posture="enforce")
def run_sql(query: str, db=None):
...
Run agentx audit to see what your tools have really been doing, and set AGENTX_POSTURE=enforce
on a keyless run when you want every catch blocked. A per-tool posture= beats the variable, in
either direction.
Using Claude Code? You do not need to decorate anything. In your project folder run:
agentx hook install
It adds a hook to your project's Claude Code settings (merged into what is there) so Claude Code asks AgentX
before every shell command and MCP call, with the same rules. It watches: a call the rules would
stop still runs, and Claude Code shows you a line saying so. To block those calls in every
session, install it with agentx hook install --enforce (--watch switches back); the call is
refused and the agent is told why. Other tools (reading and editing files) are not checked yet,
and neither are commands you type yourself with !: Claude Code does not pass those to any
hook, so they are not recorded either.
agentx hook uninstall removes it again and leaves the rest of your settings, and your record,
as they were.
What it costs and where it writes: each checked call starts Python once, which took about 0.3
seconds per call on our Windows test machine (a slower or busier machine takes longer). The
record goes in your project folder, in .agentx.db (with .agentx.db-wal and .agentx.db-shm
beside it) and small per-session files under .agentx/hook-sessions/; install gives you the
.gitignore lines for them. The hook is tied to the Python you installed it with: if you move
or rebuild that environment, run agentx hook install again (agentx status tells you when).
Installed the hook before 0.5.6? Run agentx hook install again too: it now starts Python with
the project folder off its import path, so a file the agent writes there cannot switch the check
off (agentx status warns until you do).
Correcting your agent about the same thing again? Turn the correction into a team rule:
agentx rule add "run_suites.py" --why "the suites run once, at the end, with my go-ahead"
Before any shell command containing every phrase you gave, Claude Code asks you first, and shows
your reason. The rule is written to .agentx/team-rules.json with who added it (your git name)
and when; commit the file and teammates who use the AgentX hook get the same rule.
agentx rule list shows each rule and what it did; agentx rule remove <id> takes one out.
An SDK agent's call is checked by a gateway, which holds a matching call for you to answer with
agentx holds. If your gateway lists an admin key in AGENTX_ADMIN_KEYS, set it as
AGENTX_ADMIN_KEY in your own shell, not the agent's, so the agent cannot answer its own hold.
Where nobody can answer a hold, such as a gateway you share with other teams and no admin key for
your key, the gateway stops the call instead and says why. The hosted gateway holds it, and you
answer at agentx-core.com/app. The SDK on its own does not check team rules. Name the agent's tool in the rule (--tool run_shell), since shell means Claude
Code's and Codex's shell. A gateway you run from the project reads the file; for the hosted
gateway, or any other gateway your agent reaches with AGENTX_API_KEY (gateway 2026.10.26.2 or
later), send the rules with agentx rule push, and agentx rule list says whether the
gateway's copy matches the file. On the hosted gateway you can also add,
edit, switch off and remove them on the website (agentx-core.com/app, Rules tab). With
AGENTX_API_KEY set where Claude Code or Codex runs (its environment, or the project's .env),
each developer's hook also checks your gateway's rules and tells the gateway only about the calls
a rule matched; agentx rule list then shows what each rule did across the team. The gateway's
list wins: a rule changed on the website reaches every machine within 5 minutes, agentx rule push refuses to undo a change made there, and agentx rule pull takes those changes into the
file for you to commit.
Nothing is written without a person at the
terminal (or --yes from a script you run yourself). In Claude Code's auto mode (and when
permission prompts are skipped) Claude Code does not stop to ask, so AgentX stops the call
instead and gives the command back to you to run yourself as !<command>, which the agent cannot
type. The same check runs in Codex once you add it there with agentx hook install --codex;
Codex cannot ask, so a team rule warns there and the call runs, unless you add the rule with
--stop-where-cannot-ask.
A rule can also hold a call by a number in it: 50 VMs may be fine on dev and not on production.
agentx rule add --tool provision_instances --argument count --hold-at prod=25 --hold-at dev=500 --why "more than a handful of VMs needs a second look"
A call to provision_instances waits for a person when its count is at or above the limit for
where the agent runs. That comes from AGENTX_ENVIRONMENT in the agent's process, such as
AGENTX_ENVIRONMENT=prod, named as in --hold-at; with none set, or one the rule doesn't list,
the lowest limit applies. A call whose count is missing or not a number waits too.
For money, add --currency USD, and --unit cents if the call's amount is in cents (an amount
of 2550 is 25.50); --hold-at stays in the currency. The gateway
already holds a payment at or above a set amount, $10 on the hosted gateway. A money rule
replaces that amount for its tool, higher or lower, unless a limit set on your own gateway is
lower. With --currency-field naming the argument that carries the call's currency, a call in
another currency waits for a person too.
With --recipient customer_id naming the argument that says who is paid, payments to the same
recipient add up. Without it, the gateway looks for one such as to, payee or customer, and adds up
the tool's payments together when it finds none.
A call counts as a payment when it has an argument named amount, or ending in amount (not a min,
max_, lower_ or upper_ bound; nested objects too), and something says it is money: a currency
argument beside it, a value marked as money such as "$250", or a tool or action name that moves
money, such as refund, pay or transfer. A call whose text says it moves money, such as "transfer $50
to the vendor", counts too, and a team money rule names its own argument. The gateway holds one
at or above the money limit for a person: $10 by default, or your money rule's number. A
payment under the money limit can wait for a person too: when payments to the same recipient in the
last 24 hours reach the limit; when the same call, with the same arguments, comes twice within 10
minutes, such as a retry after a timeout; or when an argument named order_id, invoice_id,
payment_id, charge_id or transaction_id (orderId counts too) has the same value as in another call
to the same tool in the last 24 hours, whatever else changed, such as a refund for order 4417
retried the next morning. A retry of the same payment (the same id and amount, or the same call
within 10 minutes) while it waits for a person takes its place, so one approval pays once; the
earlier call never runs. When a payment a person denied comes again (the same id within 24 hours, or the same call
within 10 minutes), the held call says so, in agentx holds and on agentx-core.com/app.
When a tool a team rule names changes, the SDK says so once on stderr, so you can check the rule still fits. It reads the rules file in your project, so a rule kept only on the gateway is not seen.
Everything @agentx_protect takes. Only agent_id is required.
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.