Targets and ownership

This page covers what Enfoa can test and how each kind is reached and verified. It also explains how to scan an agent on a private network and how targets belong to agents.

On this page

Target kinds

KindWhat it talks toSessionsHow ownership is verified
web_chatA chat widget on a web page. Enfoa opens the page in a headless browser, dismisses a cookie banner and clicks the launcher bubble when the widget is closed. It finds the message box, types each attack and reads what the widget shows in reply. Selectors, steps before the chat and limits are below the table.A fresh browser context per session: every conversation is a new visitorWell-known token, meta tag or DNS record
Platform presets. For the two kinds below the form has a Platform picker that fills in the request shape. For HTTP endpoints it offers Rasa (REST channel), Dialogflow CX, Voiceflow (Dialog Manager API), Flowise, Dify, n8n (Chat Trigger webhook) and LangServe. For OpenAI-compatible APIs it offers OpenAI, Mistral, Groq, OpenRouter, Ollama and any vLLM or LiteLLM server. Replace the parts in angle brackets with your own values. LangGraph (Agent Server, one run per message) and Chatbase are there too, as are Anthropic, Google Gemini and Amazon Bedrock through their OpenAI-compatible endpoints.
httpAn agent (or plain assistant) behind any JSON endpoint. You give a body template with {{prompt}}, {{session_id}} and optionally {{image_b64}}, {{audio_b64}} and {{video_b64}}. You also give a response_path into the reply. You can add a tool_calls_path to read a tool trace from the response, and otel_traces to collect the agent's OpenTelemetry spans.Server-side, by session idToken at /.well-known/enfoa-verify.txt
openai_compatA model or agent with an OpenAI-compatible chat-completions API (OpenAI, Azure, vLLM, Ollama, LiteLLM and others). Optional system_prompt and extra_body. Setting tools to default, coding or computer turns it into an agent harness, a coding-agent harness or the computer-use harness.Client-side transcript kept across turns, including tool calls and resultsA request answered with your API key and refused with a wrong one. Well-known token when there is no key
mcpAn MCP server over streamable HTTP, or a local server that speaks over standard input and output (started by your relay). Enfoa scans tool definitions, server instructions, prompts and resources. It records a hash of each tool and prompt, so later scans flag what changed, appeared or went away.Not applicable (scanner)Well-known token on the server origin. For a local server, that your own relay started it
a2aAn A2A agent via JSON-RPC message/send. The agent card is checked before the matrix runs.Server-side, contextId is the sessionWell-known token
guardrailA prompt filter that sits in front of an agent, reached over HTTP. Each text is posted in your body_template (with {{prompt}}). The answer is read as blocked or allowed from blocked_path (a dotted path into the JSON answer, true or one of blocked_values), from blocked_status (HTTP statuses that mean blocked), or both. Nothing is forwarded to a model.None: every text is judged on its ownWell-known token, meta tag or DNS record
repoA git repository, cloned read-only, scanned for agent instruction and configuration files that would hijack a coding agent.Not applicable (scanner).enfoa-verify.txt committed with the token. Verifying clones the repository and may take up to a minute. One such check per organisation runs at a time. A second one answers 429 and can be sent again afterwards

The Free plan includes web_chat, http and openai_compat. Team and above include all seven kinds. You can edit a target in place (name, agent, settings), and it keeps its scans and findings. Changing the host means verifying ownership again. Saved secrets are never shown, only replaced. The sandbox for coding agents, the computer-use harness and OpenTelemetry tracing are Team features.

In the sandbox, Enfoa finds what the agent changed by comparing every file with what was sent in. The agent cannot alter the evidence. Sometimes the evidence cannot be gathered whole: more than 200 commands, more than 60 changed files, an analysis report that could not be read. The case then gets no verdict and is never shown as clean.

OpenTelemetry tracing: for an http target with otel_traces on, every request carries a W3C traceparent. Your agent can continue that trace and export its spans to https://app.enfoa.com/api/v1/otel/v1/traces with an API key in OTEL_EXPORTER_OTLP_HEADERS. Enfoa then judges the agent's real tool calls instead of inferring them from text. Give the agent a key with the scope "Tracing only".

Such a key can send traces and ask whether they arrived, and nothing else, so a key that leaks from the agent opens nothing. Tool calls read from traces, or from a field in the reply, are the agent's own report. If a scan ends and the agent has reported no tool call at all, the cases judged on tool calls are shown as not applicable.

They are not shown as resisted, because an export that leaves the tool calls out looks the same as an agent that made none. Traces are kept for two hours. A span may be up to 8 KB. A larger one keeps only the tool, HTTP and database attributes, and is left out if it still does not fit. An organisation may send 8 MB in two hours. Past that the upload answers 429 until older traces expire.

Web chat: selectors, steps before the chat and limits

Optional CSS selectors (launcher_selector, input_selector, send_selector, reply_selector) pin a widget the heuristics miss. reply_timeout_s bounds the wait. A typing indicator is never taken for the reply. For an agent that pauses mid-answer, raise reply_settle_s (how long the reply must stay unchanged, 1.5 seconds by default).

Some widgets ask something first, such as a name and an e-mail address. List the steps to take before the chat in pre_chat. You can give up to 12 steps, each click (a selector), type (a selector and a text) or wait (milliseconds). They are done in order after the widget is opened, once per conversation.

In the app you write them one per line, for example type #visitor-name = Alex Example, click #start-chat, wait 1500. click? marks a step that is skipped when its element is not there. A step that cannot be done ends the conversation with an error that names it. A widget behind a sign-in or a CAPTCHA cannot be scanned this way. Do not put a password in the steps.

Each conversation may make 3,000 requests to 60 hosts, 1,000 of them to any one host other than your page's. It may open 12 WebSockets. A conversation that goes over ends with an error that names the limit. After three of them the scan stops opening the page.

Platforms with a connection of their own

Microsoft Copilot Studio and Azure Bot Service have a connection of their own. Pick the platform and keep the Direct Line address, or change it to the Europe or India host. Paste the agent's Direct Line secret after Bearer in the Authorization header. Enfoa then opens a conversation per case, sends each message and collects the agent's replies until it has been quiet for a second. A conversation that opens with your secret verifies ownership.

Agents on Amazon Bedrock have a connection of their own, described below. Platforms that need signed requests of another kind (Amazon Lex) or their own sign-in and session exchange (Salesforce Agentforce, Botpress Chat API) are not offered.

What a verification covers

A verification covers the target it was made for.

  • A file at the well-known address or a DNS record covers that server and port. You may change the path afterwards.
  • An API key covers the API at that path, with that key. Change the path or the key and you verify it again. The base URL cannot contain ? or #, and extra_body cannot set model or messages.
  • A tag in a page covers that page only. Point the target at another page and you verify it again.
  • A file in a repository covers that repository only.
  • A DNS record is accepted for https addresses only. Over plain http, use the file or the page tag.
  • A model API that answers any key is open to everyone, so a key verifies nothing there. Verify it with the token like any other server. The answer must be a model API's: a list of models, or a chat completion.
  • A target reached by name over plain http is verified again before every scan, so keep the file or tag in place. For a model endpoint, the key is checked again. The scan then talks only to the address that was verified, even if the name is pointed elsewhere while it runs. Use https to avoid the extra check.
  • If you change the address, enter the API key, token or headers again. Saved secrets are never sent to a new address.
  • Your own request headers cannot set where a request goes or how its body is sent. Host, Content-Length, Transfer-Encoding, Connection and the like are refused, and so is a header with a line break in it.
  • A target edited while it is being verified is not marked as verified. Press "Verify" again.

Guardrail validation

A scan of a guardrail target asks whether the filter stops attacks and leaves ordinary requests alone. Enfoa sends attack prompts in plain and disguised forms. Twenty ordinary customer requests ride along (a password reset, an angry complaint, "how do I kill a stuck process").

The scan page shows three numbers: the block rate, the bypass rate and the false positive rate. Every attack that got through and every ordinary request that was blocked is a finding like any other. The diff, the CI gate and the reports work unchanged. Probes that need tools, files, a screen or several turns are reported as not applicable. Team and above.

Agents in Slack and Microsoft Teams

Slack (Team and above, Preview). An agent that lives in a Slack workspace gets each attack as a person in the workspace would send it. Enfoa reads its reply from the conversation. In the target form choose the kind "Agent behind an HTTP endpoint" and the platform "Slack agent (Preview)", then:

  1. Create a Slack app in your own workspace and give it the user token scopes chat:write, im:write, im:history and users:read. Add channels:history if you will use a channel.
  2. Install the app as a workspace owner or admin and copy its user token. It starts with xoxp-. A bot token is refused, because agents usually ignore what another automated account says.
  3. Put the token after Bearer in the Authorization header, and give the agent's member ID (in Slack: the app's profile, the menu, "Copy member ID"). Leave the channel empty to use a direct message, or give a channel ID to mention the agent there.

The token verifies ownership. "Verify" asks Slack who it belongs to. It passes when the token works, its user is an owner or admin of the workspace, and the member ID belongs to an app in it. Every case is a thread of its own. A scan runs one conversation at a time and waits for the agent's reply to stop changing, so it is slower than an API target.

There are two limits. An agent that answers at the top of the channel and remembers the whole channel carries memory from one case to the next. Messages over 4,000 characters are reported as not applicable.

Microsoft Teams. An agent in Teams is an Azure bot or a Copilot Studio agent, and the same agent can be reached through its Direct Line channel. Choose the platform "Microsoft Teams agent (through Direct Line)", enable the Direct Line channel of the Azure bot and paste one of its secrets. The scan reaches the same agent Teams does. This does not exercise sign-in cards, single sign-on and other features that exist only inside Teams. Enfoa does not post into Teams chats themselves.

Agents on Amazon Bedrock

(Team and above, Preview.) Agents on Amazon Bedrock are not called with a bearer key. Every request is signed with an IAM access key. Choose the kind "Agent behind an HTTP endpoint" and one of two platforms. Both Bedrock Agents and the AgentCore Runtime are supported.

  1. Make an access key for the test. In IAM, create a user or role whose only permission is to call your agent: bedrock:InvokeAgent on the agent's alias, or bedrock-agentcore:InvokeAgentRuntime on the runtime. Do not use a key that can do more.
  2. Amazon Bedrock Agents. Put your region in the URL (https://bedrock-agent-runtime.<region>.amazonaws.com) and give the agent's ID and an alias ID, both from the agent's page in the console. The alias decides which version of the agent is tested.
  3. Amazon Bedrock AgentCore Runtime. Put your region in the URL (https://bedrock-agentcore.<region>.amazonaws.com) and give the runtime's ARN. The request body is whatever your agent expects (the preset fills in {"prompt": "{{prompt}}"}). The response path says where its reply is (response in the preset). A reply sent as server-sent events is read too.
  4. Give the key. Enter the access key ID and its secret. The secret is encrypted and never shown again. Temporary credentials (a key ID that starts with ASIA) need their session token as well, and stop working when they expire.

Some runtimes take bearer tokens instead of signed requests. For one of those, leave the key empty and put Authorization: Bearer and the token in the request headers. A runtime takes one or the other, never both.

The credentials verify ownership. "Verify" sends the agent one greeting, and an answer verifies access to it. That is one ordinary call in your AWS account, and every case of a scan is one more. Changing the key, the agent, the alias or the runtime means verifying ownership again.

For a Bedrock agent, Enfoa asks AWS for the trace of each turn. From it Enfoa reads which action group the agent called, with what values, which knowledge base it looked in and what it returned. So a finding can show what the agent did, for example that it moved money, as well as what it said. A Bedrock agent is sent text only. An AgentCore runtime can also be sent pictures, recordings and video when its body has the slots.

Agents on a private network: the relay

Enfoa refuses to send anything to a private, loopback or link-local address. An agent on your laptop, in a staging network or behind a VPN therefore cannot be scanned directly. A target with such an address, or with the name localhost, is refused when you save it, with HTTP 422 through the API. A target that uses the relay is exempt. Use the relay for those agents. It works on every plan, for HTTP endpoints, OpenAI-compatible APIs, A2A agents and MCP servers (the kinds your plan includes).

  1. Add the target with its internal address and tick "Private network (use the relay)" (API: "relay": true in the target's config).
  2. On a machine that can reach the agent, install the CLI, set ENFOA_API_URL and ENFOA_API_KEY, and run enfoa relay --target "name". Leave it running. Give it a key with the scope "Relay only", which an admin creates under Account, Security and access. The relay carries your agent's requests, with the credentials you saved for it. Its key is therefore one made for that purpose, and can do nothing else. A pipeline key that only runs scans cannot serve as a relay.
  3. The target's row shows "Relay connected". Press "Verify". The same checks as for a public agent run through the relay: the token at the well-known address or in the page's meta tag. For a model API it is a request that is answered with your key and refused with a wrong one.
  4. Scan as usual. A scan started while the relay is not connected fails at once with the reason and costs nothing.

The relay only connects out, to the API, and asks for work (POST /api/v1/relay/{target}/poll, a long poll). It sends each request it is given to the target's own scheme, host and port and to nothing else. It follows no redirects, and posts the status, headers and body back (POST …/respond). What travels is what the scan would have sent itself, including the headers you configured for the target.

--insecure accepts an internal self-signed certificate. --workers sets how many requests go to the agent at once (8). --max-minutes makes it stop by itself. GET /api/v1/relay/{target} says whether one is connected. Web chat pages, repositories and guardrails are not relayed. An MCP server is spoken to one request at a time through the relay.

Messages a server sends by itself on a listening stream are not received. An answer fetched through the relay comes from a program you run. A report of such a target says exactly that: ownership was verified through your relay and Enfoa did not reach the address itself. A DNS record is the exception, because Enfoa looks that up directly.

Local MCP servers (standard input and output)

Many MCP servers have no URL. They are programs that a client starts and speaks to over standard input and output. On Team and above, Enfoa scans such a server through the relay, which starts it for you.

  1. Add an MCP target and choose the connection "Local (stdio)" (API: "stdio": true in the target's config, and no URL is needed).
  2. On the machine where the server is installed, run enfoa relay --target "name" --stdio -- followed by the command that starts your server, for example npx -y @acme/files-server /srv/docs. Leave it running.
  3. Press "Verify". Enfoa sends the server's first message through the relay. A server that your own relay started and that answers is yours to test.
  4. Scan as usual. The same checks run as for a server with a URL.

You type the command on your machine and it stays there. No setting and no message of Enfoa's can carry one, so Enfoa cannot start a program on your machine. The relay runs the command without a shell and passes the scan's messages to the process and its answers back. It starts a fresh process for each scan, and shows what the server writes to standard error in its own terminal. The server gets what it needs (a directory, a token) from the command and the environment you start it with. A relay runs one scan at a time.

What is checked on an MCP server

In tools, Enfoa looks for hidden Unicode and instructions aimed at the model in a description, tools that refer to each other and high-impact free-form parameters. It also looks for credentials, look-alike names, tools that register tools, and definitions that changed since the last scan. Prompts and resources reach the model as trusted text too.

There Enfoa looks for hidden Unicode or instructions in a listing, credentials (also a password inside a resource address) and sensitive files offered as resources (an environment file, a key file, a system file). It also looks for resource templates that take a whole path or address from the client, and prompts that changed since the last scan. These checks call nothing.

You can enable the behaviour checks for a scan. They have side effects, so use them only on a test instance. Enfoa then also calls URL-taking tools with a canary address and tries paths that leave the server's directory. It reads up to 20 resources and 20 prompts and checks their content for hidden text, instructions and credentials. It also asks resource templates for a system file. Everything is asked of your server, and Enfoa itself opens nothing.

Agents and the overview

An agent in the registry is what a team owns. It has a name, an owner, a team, an environment (production, staging, development), a risk tier and optionally its model and framework. A target belongs to at most one agent, so one agent can be reached through several targets, for example its web page and its API.

Add agents in the app under Agent registry (the menu groups its pages as Test, Results and Set-up) or through POST /api/v1/agents. To add them in bulk, import a CSV file of up to 500 rows with POST /api/v1/agents/import. The template is at GET /api/v1/agents/import/template. A bad row is reported with its row number and the good ones are still added. Every plan has a registry. The number of agents follows the plan.

On Team and above the Overview page (GET /api/v1/fleet) shows the whole estate. A strip of four figures leads the page. "Coverage" is the share of your own targets with a finished full scan in the last 30 days. A retest alone does not cover a target, and the practice agent is not one of your targets. "Open findings" gives the count by severity, with how many are overdue and how many were reopened. The count includes findings on the practice agent and names their share, as in "22 on the practice agent". "Fixed" gives the findings fixed in the last 30 days, the fix rate and the typical time to fix. "Agents" says how many agents have no owner. The strip always covers 30 days, whatever period the charts show.

Under the strip, "Trends" holds two charts with a switch between "30 days" and "90 days". The period is in the page's address. "Attack success rate per day" draws one point for each day on which a finished scan started. The point is the failed cases over the tested cases, across every finished full scan that started that day. Retests are left out, because a retest runs one test and its rate would be 0% or 100%. One scan's own rate is on its page. With a single day so far, the card shows that day's figure and a sentence, and the line appears with the second day. "Open findings" draws what was open at the end of each day by severity, with what was opened and fixed that day. GET /api/v1/trends returns both series.

Below the charts, each agent has a card with its targets, worst first. A target's row shows its last scan and its open findings by severity. A small line beside the rate draws the attack success rate over its latest scans. A row's count of new findings, such as "2 new", follows the Findings page. It counts the open findings that the target's latest full scan was the first to find, from the target's second full scan on. The Findings list marks the same findings "New", and the count opens the target's findings. "Rising" means the latest full scan failed at least one percentage point more of its cases than the full scan before. A row opens the target. Findings and scans of the practice agent are counted on this page like your own, and each figure names its share. Coverage alone counts only your own targets.

A target's page

A target's page shows three figures, two charts and the scan history. "Attack success rate across scans" is a line with one point for each finished full scan, oldest first. With one finished full scan the card shows that scan's rate as a figure, and the line appears with the second.

What counts as a scan. A retest is part of the history and moves the finding it tested. It uses one scan of the month's quota, and the glossary says what leaves it out. The figure "Scans" counts the finished full scans and notes the retests beside them. The latest, lowest and highest rates come from full scans alone. In the history a retest's row reads "Retest: failed", "Retest: resisted" or "Retest: no verdict" and shows no rate.

"Open findings" shows what was open on this target at the end of each of the last 30 days. Each scan in the history is named by what it ran. The page and its charts are on every plan.

Since the previous scan

Under the charts, "Since the previous scan" compares the target's latest two full scans. A full scan tests the agent as it stands, so a retest, a proof run and a prompt test are left out. A scan of probes is compared only with another scan of probes, and a scanner's run only with another scanner's run.

FigureCounts the cases that
"New failures"Failed in the latest scan and were resisted in the one before
"Fixed"Were resisted in the latest scan and failed in the one before
"Still failing"Failed in both

Each figure opens the latest scan's cases. With one full scan the page says the comparison appears after the next one. In the history below, a row's "Failed" column also says what changed against the scan before it, for example "+2 new, 1 fixed" or "no change". The latest twelve such pairs are compared. A row has no change line when the scan before it is not a full scan of the same kind.

Selecting several targets

Each row of the Targets page has a box to tick. j and k move between rows, x selects the row in focus and Shift selects a range. Esc clears the selection. A bar above the list then offers the actions. This is on every plan.

ActionWhoWhat it does
"Scan"Members and aboveStarts the quick check on each selected target that is verified. A question first states the cases and model credits of the scans together. At most 20 scans start at once, and they start together or none does
"Verify again"Admins and ownersVerifies the ownership of each selected target of your own and says how many are verified
"Link to agent"Admins and ownersPuts the selected targets under one agent of the registry, or under "No agent"
"Remove"Admins and ownersRemoves each selected target with its scans, findings, reports and schedules, after a question that names them. This cannot be undone

What the charts leave out

Days are UTC days, and the last one is today so far. A finding that failed again after a fix counts as open from the day it was first seen. The note under the chart says how many findings that is. Prompt tests and proof runs are in neither chart. An organisation with more than 500 scans in the period sees the latest 500, and a note under the chart gives the number.