Reference
Security, tokens and data handling
Updated
Captures hold the most sensitive data a network has, so this page says plainly where a capture goes when your agent analyzes it through the PcapAI MCP server, how long each part is kept, what a token can and cannot do, and what reaches your agent.
The short version: the capture is uploaded to PcapAI and analyzed on its servers, not on your machine; the file itself is deleted within 24 hours; secret values never reach your agent; and you decide per token whether the agent may spend credits. If your captures may not leave your network at all, skip to on-premise.
Where the capture goes
The agent reads the capture on your machine, but the analysis happens on PcapAI's servers. Each analysis follows the same path:
- The agent measures the file and calls
upload_capture. The server answers with a signed HTTPS link to PcapAI's storage in Amazon S3 (us-west-2) that accepts exactly that many bytes, once, for 15 minutes. - The agent uploads the file with
curlstraight into storage over TLS. The file does not pass through the agent's model provider or through PcapAI's web servers. - The PcapAI engine analyzes the capture in an isolated container with its rules. No language model is involved in the analysis or in the answers the MCP server sends.
- The agent receives the free summary, and after an unlock the details it asks for, as JSON. That text becomes part of your conversation with the agent, so it reaches your agent's model provider under that provider's terms, like anything else you paste into the chat.
Step 4 is the one to think about: the findings, host addresses and names the agent asks for go wherever your agent sends its conversation. Ask only for what you need, and use a token set to Never spend credits where the free summary is enough.
How long PcapAI keeps it
Retention depends on whether you unlocked the analysis. Nothing from an MCP analysis appears in your web account's report list, and nothing is kept longer than the table says:
| What is kept | Not unlocked | Unlocked |
|---|---|---|
| The capture file | Deleted 24 hours after the upload | Deleted 24 hours after the upload |
| Free summary | Deleted 24 hours after the upload | Kept 30 days after the unlock |
| Findings, details and PDF | Never kept | Kept 30 days after the unlock; on the Advanced plan, while you are subscribed |
delete_analysis removes the capture, the summary, the details and the PDF at once; ask your agent to delete an analysis when you are done with it. Deleting your PcapAI account deletes every analysis with it.
What a token can do
A token starts with pcapai_pat_ followed by 40 random characters. PcapAI stores only its SHA-256 hash, so nobody, PcapAI included, can show it to you again; if it is lost, revoke it and create a new one. Each token expires after 30 days, 90 days or a year, as you choose, and an account can hold ten.
The Report credits choice you make when creating a token sets what it may do. Ask before each unlock lets the agent unlock only after the server has told it the price and it has asked you. Unlock without asking is for scripts with nobody to ask. Never spend credits removes the permission to spend at all, so the server refuses every unlock from that token. The install guide lists the exact scopes.
Keep the token in an environment variable, the macOS Keychain or your secret manager, never in a file you commit. Revoke it in your profile the moment it may have leaked: every agent using it loses access at once, and the profile shows when each token was last used.
Secrets found in captures
The engine finds passwords, NTLM hashes, Kerberos tickets, session cookies and authorization headers in captures; that is part of what it checks. The MCP server never sends those values to your agent, not even masked: they are removed from every answer, and where a masked value existed the agent sees [withheld]. The agent still learns which protocol carried a credential, between which hosts and in which frame, which is what you need to fix it. The PDF shows secrets masked, like S******! (11): the first and last character and the length.
Text from the network is untrusted
Host names, domain names, URLs, user agents, file names and certificate fields in a capture were written by whoever sent the traffic, attackers included, and an attacker can write instructions aimed at AI agents. Every MCP answer that quotes such text carries a note telling the agent to treat it as data, never as instructions, and the server's own instructions say the same.
Keep your agent's approvals on for anything outside PcapAI, and read a command the agent proposes because of a finding before you let it run. The read-only checks in troubleshooting findings, such as ping, mtr or dig, are safe to run from a host you control; the reports describe configuration changes in words and never hand out commands that change a device.
When captures cannot leave your network
The MCP server always uploads the capture, and it does not run offline or in an air-gapped network. If policy or a contract keeps your captures inside your network, a local tool that wraps tshark is one option, at the cost of the engine's findings and the report; an on-premise deployment of PcapAI is the other. For the storage of uploads made through the website, see the FAQ and the terms and privacy policy.
Was this page helpful?
Thanks. Missing something? Tell us what.