Notes
Field notes on agentic AI security, LLM red teaming, ML supply-chain security and offensive research — written by a practitioner who builds these systems and attacks them.
-
Wiring an agentic AI system into Wazuh: detect, log and prevent every integration attack
An agent's attack surface is its integrations — the input channel, the RAG store, the MCP servers, the tool calls, the memory, the peer agents, the model file itself. This is a build guide for routing all of them into Wazuh: the telemetry contract the runtime must emit, the decoders and rules to detect direct and indirect prompt injection, RAG poisoning, MCP tool-poisoning, chaining and exfiltration, and the active-response playbook to contain a compromised agent — surface by surface, with the config.
-
Stopping malicious tool-call chaining: detect, remediate, alert
In an agentic system the crime is rarely a single tool call — it is the sentence those calls spell out together. Read a secret, encode it, send an email: three allowed calls, one exfiltration. This is how to design against chained abuse across all three stages — detecting a malicious chain as it forms, remediating by breaking it mid-sequence, and alerting with telemetry an on-call can act on — and which frameworks and tools do each job.
-
RBAC, ABAC, ReBAC: three doormen for your AI agents
An agent is a principal that acts on someone else's behalf and borrows other agents' trust. Deciding what it may do needs the right authorisation model — and the classic three answer three different questions. RBAC asks what badge you hold, ABAC asks what the whole situation looks like, ReBAC asks who vouches for you. This walks all three for agentic systems, with examples, and shows why secure agentic architecture layers them instead of picking one.
-
OWASP SAMM in the age of agentic AI: an old maturity model meets a new principal
SAMM measures how mature your software assurance is across fifteen practices. Agentic AI does not need a new maturity model — it needs you to re-answer SAMM's existing questions for a principal that is non-deterministic, persuadable, and holds its own credentials. This walks all five SAMM business functions and shows what each practice looks like when the software writes its own next action.
-
Open Policy Agent for agentic systems: authorisation that lives outside the model
An agent's tool calls need a decision point the model cannot talk its way past. Open Policy Agent gives you one: a policy engine outside the agent that answers 'is this agent allowed to make this call with these parameters?' before the call runs. This is how least privilege, inter-agent re-authorisation and human gates stop being prose and become enforced code.
-
An agentic AI red team checklist: 222 tests, WSTG-style
A forced-order, 222-test checklist for authorized agentic AI engagements — 20 categories from recon to voice, each test mapped to OWASP ASI, the LLM Top 10, the MCP Top 10 and a MITRE ATLAS tactic, with how-to-test, tools and a detection mode. Free download, built to work top-to-bottom like the OWASP WSTG.
-
Excessive agency is an authorisation bug wearing an AI costume
The severity of an LLM compromise is set by what the agent is permitted to do, not by how it was tricked. Scoping tools to least privilege converts most agent vulnerabilities from critical to cosmetic — and it is ordinary authorisation work, not AI work.
-
LLM cost is a security control, not a finance problem
Running every security alert through your most capable model is a denial-of-wallet vulnerability and a detection gap at the same time. Severity-tiered routing cut our per-alert cost 30× — and the reason it works is a security argument, not a budget one.
-
Prompt injection is not a prompt problem
Prompt injection cannot be fixed with better prompts because LLMs have no channel separation between instructions and data. The durable mitigations are architectural: least-privilege tool scopes, output handling, and human gates on irreversible actions.
-
The agentic AI regulatory map is mostly blank — and one set of supervisors said so
Two regulators have published an agentic-specific risk taxonomy: FINRA and the FSB. US banking supervisors expressly carved agentic AI out of scope in April 2026. For ecommerce, platforms and the cross-cutting instruments, primary-source evidence does not yet exist.
-
Threat modeling agentic AI orchestration: a component-by-component map
An agentic system has six trust boundaries and most teams have drawn none of them. This maps the orchestration stack node by node — planner, tool layer, memory, RAG, inter-agent messaging, agent identity — to the attacks each edge carries and the MITRE ATLAS techniques that name them.
-
Your model file is a code execution primitive
Downloading a model from a public hub is running untrusted code. Pickle deserialisation, Keras Lambda layers (CVE-2024-3660) and GGUF parsing all give an attacker execution before inference ever starts — and most ML pipelines scan none of it.
-
Securing LLMOps: the GenAI pipeline from fine-tuning to guardrails
LLMOps is MLOps with the attack surface turned up: the data stage now includes a live RAG index, the model is a downloaded base you fine-tune, and inference takes untrusted natural language as input. Part 10 — the finale of the Secure MLOps series — maps every earlier stage onto the GenAI pipeline and adds what's new: fine-tuning data poisoning, RAG security, prompt management, guardrails, LLM evals, and the bridge into agentic systems.
-
Governance, risk and compliance for ML systems
Technical controls fix a problem once; governance keeps them true over time and proves it to anyone who asks. Part 9 of the Secure MLOps series covers the management layer: NIST AI RMF as the operating function, ISO/IEC 42001 and the EU AI Act as the standards and law, model cards and datasheets as the documentation, and the risk register, audit trail and third-party model risk that turn a pile of controls into a programme.
-
MLSecOps monitoring: drift, detection and incident response
A model is secure on deploy day and decaying by week two. Part 8 of the Secure MLOps series covers production monitoring as a security function: data and concept drift, adversarial and abuse detection, continuous red-teaming, routing ML signals to a SIEM, and an incident-response runbook built around the one thing software IR lacks — the ability to roll back to a known-good model.
-
Identity, secrets and infrastructure for MLOps
The connective tissue of a secure ML pipeline is identity, secrets and infrastructure — the part that spans every stage and, when weak, lets a compromise at one stage become a compromise of all of them. Part 7 of the Secure MLOps series covers workload identity and least privilege, secrets management, network and tenancy isolation, and container/compute hardening across the whole estate.
-
Securing deployment and inference: endpoints, extraction and adversarial robustness
At inference the model meets the open world, and a new set of attacks that only exist once it's queryable: model extraction, inversion, membership inference, and adversarial inputs. Part 6 of the Secure MLOps series covers hardening the serving endpoint, defending against model theft and privacy attacks, adversarial robustness, and inference-time DoS — with tools and concrete controls.
-
Secure CI/CD for machine learning: pipelines, policy gates and SLSA
The ML pipeline is privileged automation touching data, secrets, registries and prod — compromise it and you compromise every model it ships. Part 5 of the Secure MLOps series covers hardening the pipeline itself, policy-as-code promotion gates, SLSA provenance and attestations, and the IaC/dependency security around it — so only verified models reach production and the pipeline can't be turned against you.
-
The ML supply chain: model artifacts, signing and MLBOM
A model file is not data — load the wrong one and it runs code on your box. Part 4 of the Secure MLOps series covers the model artifact and supply chain: serialization RCE and safe formats, model signing and provenance, the ML bill of materials, and locking down the model registry — so that what you deploy is what you trained, and loading it can't own you.
-
Securing the training pipeline: isolation, reproducibility and backdoors
Clean data can still become a compromised model. The training stage is where backdoors are implanted, secrets leak into logs, and an unreproducible build means you can never prove what you shipped. Part 3 of the Secure MLOps series covers compute isolation, reproducibility and integrity, backdoor detection, and securing experiment tracking and secrets — with tools.
-
Securing the data layer: provenance, poisoning and governance
The data stage is where ML security is quietly won or lost. Poisoning is cheap, invisible and permanent once it's in the weights; PII mishandling is a breach with a model attached. Part 2 of the Secure MLOps series covers data provenance and lineage, poisoning defences, PII governance and privacy, and the versioning that makes any of it auditable — with the tools that do each job.
-
Secure MLOps, end to end: the lifecycle, the threats, the frameworks
Most ML security advice is a pile of tips with no spine. This is the spine: the MLOps lifecycle drawn as a pipeline, the attack that hits each stage, and the frameworks that name them — OWASP ML Top 10, MITRE ATLAS, NIST AI RMF, ISO 42001. Part 1 of a complete Secure MLOps series that walks every stage from data to decommission.