Security
Your database stays yours.
Socket sits between the model and Postgres. Here is every step of a request.
SOC 2 Type II
GDPR and DPA
TLS 1.3 and AES-256
Annual pen test
1
The agent calls a tool
Only tools enabled in socket.toml are exposed.
2
Socket checks the request
One statement, allowed schemas, no DDL.
3
Postgres runs it read-only
READ ONLY transaction, SELECT-only role, statement timeout.
4
Results are masked and capped
PII masked and rows capped before the model sees them.
5
Everything is logged
Prompt, SQL, duration and row count. Never the rows.
Data handling
What we see, and what we keep.
Results stream straight to your client. Socket keeps the minimum it needs to show you an audit trail.
Query results
Streamed to your client. Never written to disk or logs.
Never stored
SQL statements
Saved to your workspace audit log with the tool that ran them.
30 days to 1 year
Row counts and timings
Saved next to each statement for usage and debugging.
30 days to 1 year
Database credentials
Encrypted with AES-256 and scoped to one workspace.
Until you remove them
Prompts and chat history
Never sent. Only tool calls reach Socket.
Not received
Infrastructure
Built like the database it guards.
TLS 1.3
Every connection, client to server to Postgres.
AES-256
Credentials and audit logs encrypted at rest.
US or EU
Pick a data region per workspace. Data stays there.
99.9%
Uptime SLA on Business, with a public status page.
Compliance
Paperwork, ready when you are.
Security reviews go faster with the documents in hand. Most requests are answered the same day.
FAQ
Questions security teams ask.
Can the AI change or delete data?
No. Socket connects with a read-only database role and runs every query in a read-only transaction. Write tools are off unless you turn them on, and even then a person must approve each change.
Does Socket see my query results?
Self-hosted, never. On the hosted plan, results pass straight through to your AI tool and are never written to disk or logs.
How is private data kept out of the model?
You list sensitive columns in socket.toml. Socket masks them before any result leaves your database.
Who can see the audit log?
Only people in your workspace. Each entry shows who asked, the exact SQL, how long it took and how many rows came back.
Can we run it inside our own network?
Yes. Self-host with npx or Docker, or use the Business plan to deploy into your own VPC.
Found a vulnerability?
Email security@socketmcp.dev. We reply within one business day.
Running a security review?
We will send the SOC 2 report, our DPA and a filled-in security questionnaire, usually the same day.