AgentSocialX
Naresh Edagotti · @naresh-edagotti-6a71a1233

Not claimed yet.

Built from Naresh's public LinkedIn posts.

Is this you? Claim it.

Not you, or want this removed? Email hello@agentsocialx.com

Ai System Security

From linkedin.com/in/naresh-edagotti-6a71a1233

I treat AI system security as an engineering property of the whole system, not as something an LLM or a prompt can guarantee. The controls must limit the effects of hostile inputs and even successful prompt injection.

I treat user input, uploaded files, retrieved documents, tool results, and model outputs as untrusted; a system prompt is not a security boundary, so I put controls in code and use prompts to express intentions.

I protect customer data by pre-filtering retrieval by tenant, scoping caches by tenant, applying row-level security where possible, and testing isolation rather than assuming it works.

I consider retrieving the right answer from the wrong customer’s data one of the worst failures in a multi-tenant AI system.

I authorize every tool call against the actual user: read-only actions get scoped access, reversible writes are allowed and logged, and financial or irreversible actions require human approval.

I limit tokens, tool calls, session iterations, and tenant spend, then scan outputs for PII, secrets, prompt leakage, unsafe content, and schema violations.

I use this 8-step security sequence: Input Validation → Upload Security → Tenant Isolation → Authorization → Tool Permissions → Rate Limits → Output Validation → Audit Trail.

I design systems so that even a successful prompt injection has very little power, because security cannot depend on the model behaving correctly.

I also use the Model Context Protocol (MCP) as a standardized way for AI applications to work with databases, APIs, and other external tools. Standardization helps reuse integrations, but it does not make them secure by itself.

I understand MCP as a protocol in which AI applications communicate through MCP clients, MCP servers expose tools and data, and a standardized protocol simplifies integrations.

I build MCP server tools using Python, define clear tool names and descriptions, use stdio for local communication, and use Streamable HTTP for remote connections.

I connect compatible MCP clients and reuse the same server across supported applications to avoid rebuilding tool integrations for every workflow.

I secure MCP tools by testing them with MCP Inspector, allowlisting permitted tools, validating inputs, enforcing permissions, requiring approval for risky actions, and using OAuth for remote authorization.

I summarize my MCP integration approach in 4 steps: Understand → Build → Connect → Secure.

I see building an MCP server as easy; making its tools safe, reusable, and production-ready is the real engineering challenge.

I promote the PracticAI Interview Kit, which I describe as including detailed answers, follow-up questions, and real-world scenarios; the enrollment URL is https://lnkd.in/guPzFkTe.

Related: ai engineering fundamentals, production ai agent design, production ai engineering