Category: Uncategorized

  • AI Security Companies: Questions to Ask Before You Buy

    The market for AI security companies is crowded, and the pitches tend to sound alike: “protect your models”, “stop prompt injection”, “secure your AI”. Before you sign anything, you need to know what each vendor actually covers, how they prove it, and what happens to your data along the way. This article gives you a practical list of questions to take into vendor calls so you can compare them on equal terms.

    First, Define What “AI Security” Means for You

    The phrase covers at least two different things, and many vendors blur them:

    • Security for AI: protecting your models, prompts, training data, AI-powered applications and agents from attack or misuse.
    • Security AI: using machine learning or generative AI inside security tools, for example for detection, triage or investigation.

    Searching for an ai security solution may return both. Decide which problem you are buying for before the first demo. If you want both, ask each vendor to treat them as separate scopes with separate evidence.

    Write down your own situation too: which AI systems you run (third-party APIs, self-hosted models, internal copilots, customer-facing chatbots, autonomous agents), who owns them, and what data they touch. A vendor can only be judged against a clear target.

    Questions About Scope and Fit

    Any ai security company should be able to answer these plainly.

    1. Which threats do you cover, specifically? Ask for a list mapped to a recognised taxonomy. The OWASP Top 10 for LLM Applications and MITRE ATLAS are common reference points for AI-specific risks and adversary techniques. A vendor who cannot relate their features to any shared framework is asking you to take their word for it.
    2. Where in the lifecycle do you operate? Design, training, deployment, runtime monitoring and incident response each need different controls. Ask which ones are in scope and which are left to you.
    3. Do you support the way we use AI? Hosted APIs, open-weight models, retrieval pipelines and agents with tool access each have a different attack surface. Ask for a concrete example of how they handle yours.
    4. What is explicitly out of scope? Honest vendors can say what they do not do. Vague answers here often show up later as gaps.

    Questions About Evidence

    Claims are cheap in a fast-moving field. Ask how the vendor knows their approach works.

    • How do you test your own detection or controls? Ask for the methodology, not just a headline number. Find out what attacks were used, how recent they were, and whether results were reproduced by anyone independent.
    • Can we run a proof of concept on our own systems? Results on a vendor’s demo environment say little about yours. A time-boxed pilot with agreed success criteria is a fair request.
    • How do you handle false positives and false negatives? Ask what the operational burden looks like for your team, and how tuning works.
    • How do you keep up with new attack techniques? Ask who does the research, how updates reach customers, and how quickly.
    • What do your reference customers look like? Ask to speak with organisations of similar size and AI maturity, and ask them what did not go well.

    If a vendor cites statistics or benchmark results, ask for the source and the date. Treat any number you cannot trace as marketing.

    Questions About Data and Privacy

    An AI security product often sits in the path of your most sensitive prompts, outputs and logs. That makes the vendor part of your own risk surface.

    • What data do you collect, and where is it processed and stored? Ask about prompts, responses, metadata and telemetry separately.
    • Is our data used to train or improve your models or anyone else’s? Get the answer in the contract, not just on a call.
    • How long do you retain data, and how can we delete it? Ask what happens at termination.
    • Who at your company can access our data? Ask about access controls, logging and subcontractors.
    • How do you secure your own platform? Ask for independent assurance such as audit reports or certifications, and check them directly. Do not rely on a logo on a web page.

    Questions About Governance and Standards

    Regulation and good practice around AI are changing quickly, so ask how the vendor will help you stay aligned.

    • How does your product support a risk framework we already use? The NIST AI Risk Management Framework is a widely referenced voluntary starting point for mapping, measuring and managing AI risk.
    • What reporting and audit trails do you provide? You may need to show regulators, customers or your board what controls were in place and when.
    • How do you handle legal and regulatory change? Ask who tracks it and how product changes are communicated.
    • How do you approach responsible disclosure? Ask how they handle vulnerabilities found in their own product, and how they notify customers.

    Questions About Integration and Operations

    A technically strong tool that your team cannot run is a poor purchase.

    • How does it fit our stack? Ask about integration with your existing logging, identity, ticketing and incident response processes.
    • What does deployment involve? Ask about latency impact on AI applications, changes to code or architecture, and who does the work.
    • What skills do we need in-house? Be wary of products that assume specialist AI security staff you may not have.
    • What does support look like? Ask about response times, escalation paths and whether you get access to people who understand the product deeply.
    • What happens if we leave? Ask about data export, contract terms and lock-in.

    Questions About Commercial Terms

    Keep this part short and direct.

    • How is pricing structured, and what drives it? Usage, seats, models protected and data volume can scale very differently as your AI use grows.
    • What is included in the base offering, and what costs extra?
    • What are the contract length, renewal and exit terms?
    • What service commitments do you put in writing?

    Ask for everything in writing and compare vendors on the same assumptions.

    Red Flags When Comparing AI Security Companies

    Watch for these patterns:

    • Claims of complete protection or “100% detection”. No control is perfect, and this kind of claim suggests the vendor does not understand the problem.
    • Unwillingness to run a pilot on your own environment.
    • Statistics with no source, date or method.
    • Vague answers on data handling, or terms that allow broad reuse of your data.
    • A pitch that never asks about your actual AI systems.

    How to Run the Comparison

    A simple process keeps the evaluation fair:

    1. Write down your AI systems, data and top risks.
    2. Turn the questions above into a scorecard and send the same one to every vendor.
    3. Weight the criteria by what matters most to you before you see any demos.
    4. Run a pilot with agreed success criteria.
    5. Involve security, legal, procurement and the teams who own the AI systems.

    If you would like to talk through your own evaluation or sanity-check a shortlist, you can get in touch with us.

    Sources

  • AI Agent Security: Risks Across the Agent Lifecycle

    Secondary: llm agent security, llm coding agents security, security for llm

    A chatbot answers questions. An agent acts: it reads files, calls APIs, runs code and sends messages, often with little human review. That shift changes the security problem. A bad answer from a chatbot is a content problem, but a bad action from an agent can be an incident.

    This article walks through AI agent security in the order a team meets it: design, tool use, then deployment and operations. If you are new to the topic, our overview of AI agents covers the basics.

    Image 1 – lifecycle diagram. Alt text: “Diagram of the AI agent lifecycle showing design, tool use, deployment and monitoring stages with security risks at each stage”

    Why agents widen the attack surface

    Most LLM agent security problems come from one property of language models. They do not reliably separate instructions from data. Text the agent reads, such as a web page, an email or a code comment, can be interpreted as a command.

    Researchers described this as indirect prompt injection. Greshake et al. showed that attackers can plant instructions in content an LLM-integrated application later retrieves, without ever talking to the model directly (Greshake et al., 2023). OWASP lists prompt injection as the first risk in its Top 10 for LLM applications, and “Excessive Agency” (an LLM given too much functionality, permission or autonomy) as another (OWASP GenAI Security Project).

    Simon Willison’s “lethal trifecta” is a useful mental model. An agent is at serious risk of data theft when it combines access to private data, exposure to untrusted content and the ability to communicate externally (Willison, 2025). Remove any one leg and the risk drops sharply.

    Stage 1: Design

    Most of the important decisions are made before any code runs.

    Define the agent’s job narrowly. A broad “do anything” agent needs broad permissions. A narrow one, such as “triage support tickets and draft replies”, needs few. Write down what the agent must never do as well as what it should do.

    Threat-model the data flows. For each agent, ask:

    • What untrusted content can reach the model (web pages, inbound email, uploaded files, tool outputs, other agents’ messages)?
    • What sensitive data can it see?
    • What outward channels does it have (HTTP requests, email, rendered links or images, commits)?

    If all three answers are “a lot”, redesign before building. Split the work across agents with different privileges, or put a human approval step on the risky edge.

    Decide where humans stay in the loop. Irreversible or outward-facing actions (payments, deletions, external messages, production deploys) are the natural places for approval. Approval has to be informative: showing “Allow tool call?” with no detail trains people to click yes.

    Use a shared vocabulary. The NIST AI Risk Management Framework gives governance language for mapping, measuring and managing AI risk (NIST AI RMF). MITRE ATLAS catalogs adversary tactics against AI systems (MITRE ATLAS). Both help security and engineering teams talk about the same threats.

    Stage 2: Tool use

    Tools are where model output becomes real-world effect, so this is where security for LLM systems looks most like classic application security.

    Least privilege, per tool. Give each tool the minimum scope: read-only database credentials where reads are enough, a token limited to one repository, an allowlist of domains the agent may fetch. Don’t reuse a developer’s personal credentials for an agent.

    Treat model output as untrusted input. Validate tool arguments against a schema, and never pass model-generated strings straight into a shell, SQL query or file path. This is ordinary injection hygiene applied to a new source.

    Treat tool results as untrusted too. A search result or a fetched document may contain instructions. Keep retrieved content clearly separated from instructions in your prompts, and don’t let it silently expand the agent’s permissions.

    Be careful with third-party tools and connectors. Every plugin, MCP server or integration you add extends the trusted computing base. Review what it can access, pin versions, and prefer sources you can audit. The Model Context Protocol specification includes security considerations around user consent and tool safety that are worth reading before you connect servers (MCP specification).

    Close the exfiltration paths. Even with no “send” tool, agents can leak data through rendered markdown images, link previews or URLs they are allowed to request. Restrict outbound destinations and sanitize rendered output.

    Special case: coding agents

    LLM coding agents security deserves its own mention because these agents combine file access, shell execution and package installation. Typical concerns include:

    • Malicious instructions hidden in a repository, README, issue or dependency that the agent reads while working.
    • Commands run with the developer’s full local permissions and credentials.
    • Secrets in environment variables or config files being read into the model’s context.
    • Generated code or dependency suggestions that introduce vulnerabilities and get merged unreviewed.

    Useful controls: run the agent in a sandbox or container with no access to production secrets, require approval for commands outside an allowlist, keep network access restricted, and review all agent-written changes through your normal code review and CI checks.

    Image 2 – tool permission model. Alt text: “Illustration of an AI coding agent running in a sandbox with limited file, network and credential access”

    Stage 3: Deployment and operations

    A well-designed agent can still fail in production if the surrounding system is loose.

    Isolate execution. Run agents in sandboxes with constrained filesystem, network and process access. Assume the model can be manipulated and limit what a manipulated agent can reach.

    Manage identity and secrets properly. Give each agent its own identity so actions are attributable and revocable. Keep secrets in a vault and inject them at the tool layer, not in the prompt.

    Log everything that matters. Record prompts, tool calls, arguments, results and approvals, with sensitive fields handled according to your data policy. Without a trace you cannot investigate an incident or tell a model mistake from an attack.

    Monitor and set limits. Rate-limit tool calls, cap spend and loop depth, and alert on unusual behavior such as unexpected domains, bulk reads or repeated failed actions. Have a kill switch that disables an agent or a single tool quickly.

    Test adversarially before and after launch. Include prompt injection cases, poisoned documents and malicious tool outputs in your test suite, and rerun them when you change models, prompts or tools. Model updates can change behavior in ways your earlier tests did not cover.

    Plan for multi-agent setups. When agents pass messages to each other, one compromised agent can influence the rest. Treat inter-agent messages as untrusted input, and don’t let low-privilege agents trigger high-privilege actions without a check.

    A short checklist

    StageQuestion to answer
    DesignDoes the agent combine private data, untrusted input and an outbound channel?
    DesignWhich actions require human approval?
    Tool useIs each tool scoped to least privilege, with validated arguments?
    Tool useAre tool results and retrieved content treated as untrusted?
    DeploymentIs execution sandboxed, with per-agent identity and secrets in a vault?
    OperationsCan you trace every action, alert on anomalies and shut the agent off fast?

    Takeaway

    No single control makes an agent safe. The reliable approach is layered: limit what the agent can do, limit what it can see, limit where data can go, and keep a human on the actions that cannot be undone. Start by mapping your agent against the three questions in the design stage, then work outward to tools and deployment.

    For background on how agents are built and used, see our AI agents page.

  • Self-Hosted AI Agents: Control, Exposure, and Trade-offs

    Target link: AI agents overview

    Running your own AI agent sounds like the safe option. Your data stays on your infrastructure, nobody changes the terms under you, and you can read the code. All of that can be true. But an agent isn’t a passive application. It reads untrusted input, decides what to do, and acts with real credentials. Moving it in-house moves the responsibility for those actions to you as well.

    This article is for technical readers who are deciding whether to host and adapt an agent system themselves. For the broader background on what agents are and how they work, see our AI agents overview.

    Image 1 (hero), alt text: “Diagram of a self-hosted AI agent inside a network boundary, with arrows to a model, tools and an external web source”

    What “self-hosted” actually means

    The term covers several different setups, and the security picture differs for each:

    1. Self-hosted orchestration, hosted model. The agent loop, tools and memory run on your servers, but prompts go to a third-party model API. You control the actions, not the inference.
    2. Fully self-hosted. The orchestration and an open-weight model both run on your hardware. Prompts and outputs stay inside your boundary.
    3. Self-hosted and modified. You fork an open-source project, add tools, change prompts or patch behavior. You now own a divergent codebase.

    Before you judge any of these, work out which one you are really proposing. “Our data never leaves the building” is only true for the second and third, and only if every tool and plugin also stays inside.

    The open-source landscape

    Searches for open-source AI agents and open source AI coding agents are growing because the appeal is practical. You can audit the code, avoid vendor lock-in, and adapt the system to your workflow. Open-source agent frameworks and coding agents vary a lot in maturity, maintenance and permission models.

    Open source gives you the ability to inspect. It does not give you an inspection. Most teams never read the code of the tools they deploy, and an agent framework with hundreds of dependencies is hard to review by hand. Treat “open source” as a precondition for a security review, not as evidence that one happened.

    What you gain by hosting yourself

    Data locality. When the model and tools run in your environment, sensitive documents, source code and customer records don’t have to pass through a third party. For regulated data this can simplify compliance conversations, though it doesn’t replace them.

    Configurable permissions. You decide which tools exist, which credentials the agent holds and which networks it can reach. A hosted product gives you whatever knobs the vendor chose to expose.

    Auditability. You can log every prompt, tool call and result in the format your security team already uses.

    Stability. Nobody silently swaps the model or changes defaults under you. You upgrade when you decide to.

    What you take on

    You own the whole attack surface. A hosted service has a security team patching its infrastructure. A self-hosted agent has you: the host, container runtime, dependencies, secrets store, network rules and the web interface you put in front of it.

    Prompt injection doesn’t go away. The OWASP Top 10 for LLM Applications lists prompt injection as a leading risk (OWASP GenAI Security Project). Hosting locally doesn’t change the cause: the model can’t reliably separate instructions from data. If your agent reads a web page, an email or a repository issue, the author of that content may be able to steer the agent.

    Excessive agency. OWASP also flags the problem of giving an LLM-based system too many functions, permissions or autonomy. Self-hosting makes this easier to get wrong, because it is tempting to hand a trusted internal agent broad access “since it’s ours”.

    The “lethal trifecta”. Simon Willison describes a combination that makes data theft possible: access to private data, exposure to untrusted content, and a way to communicate externally (Simon Willison, “The lethal trifecta”). Many useful agents have all three by design. A useful design question is which one you can remove.

    Tool and plugin supply chain. Agents extend through plugins, skills and tool servers. The Model Context Protocol specification has its own security guidance on authorization and trust (MCP specification). Every connector you install runs with some level of trust, and you are the one who vetted it, or didn’t.

    Model weaknesses stay with you. With an open-weight model you choose the model, and you also inherit its safety behavior, its tool-calling reliability and its update cadence. A smaller local model may follow injected instructions more readily than a larger one, so test with your own adversarial cases and don’t assume.

    Image 2, alt text: “Three overlapping circles labelled private data, untrusted content and external communication, with the overlap highlighted as high risk”

    Coding agents deserve their own threat model

    Open source AI coding agents are among the most searched categories, and they are the highest-privilege agents most teams will run. A coding agent typically reads your repository, runs shell commands, installs packages and edits files. That makes several risks concrete:

    • Untrusted repository content. A README, a code comment, a dependency’s docs or an issue description can contain instructions aimed at the agent.
    • Command execution. If the agent can run arbitrary commands on a developer laptop, a successful injection runs with that developer’s permissions and credentials.
    • Secrets in reach. Environment variables, SSH keys and cloud credentials in the same session are available to anything the agent can execute.
    • Package installation. An agent that adds dependencies on its own can pull in a malicious or typosquatted package.

    Reasonable controls are not exotic: run the agent in a disposable container or VM, give it a scoped, short-lived token instead of your own, block outbound network access except to an allowlist, and require human approval for commands that write outside the working directory or touch the network.

    A practical hardening checklist

    • Isolate execution. Sandbox tool execution (container, VM or separate user), with read-only mounts where possible.
    • Least privilege. One credential per agent, scoped to one job, rotated, never your personal account.
    • Egress control. Default-deny outbound traffic. Exfiltration needs a channel, so close it.
    • Human in the loop for irreversible actions. Payments, deletions, deployments, external messages and permission changes should need approval.
    • Don’t expose the control plane. Keep the agent’s admin interface off the public internet and behind authentication.
    • Pin and review dependencies. Lock versions, scan them, and review the plugins and tool servers you add.
    • Log everything. Keep prompts, tool calls and outputs so incidents can be reconstructed.
    • Red-team it. Test with injected instructions in the data sources your agent actually reads.

    For a governance structure around these controls, the NIST AI Risk Management Framework gives a general vocabulary for mapping, measuring and managing AI risk (NIST AI RMF).

    When self-hosting is the right call

    Self-hosting tends to make sense when:

    • the data is sensitive enough that a third-party processor is a real blocker,
    • you have people who can patch, monitor and respond,
    • you need custom tools or behavior a vendor will not offer,
    • the agent’s permissions can be tightly scoped.

    It tends to make less sense when you have no one to operate it, when the agent needs broad access and open internet exposure, or when the main motivation is an assumption that “local means safe”.

    The bottom line

    Self-hosting changes who holds the risk. It does not remove it. You gain control over data, permissions and change management, and you accept responsibility for sandboxing, patching, supply-chain review and monitoring. Start with the smallest useful permission set, assume the agent will eventually read something hostile, and design so that this is survivable.

    To compare approaches and see how agent systems fit together, continue to our AI agents hub.