liveBook · Manning

Security

As explained in LLMs in Production

Security is the protection of systems, data, and operations against unauthorized access, misuse, disruption, or compromise.

Production LLM systems inherit ordinary application-security obligations, but agents add a sharper risk: model-driven execution can expose secrets or trigger harmful actions. section 6.3.6

Prioritize two failure cases:

  • An attacker persuades an agent to execute malicious code through tools, plugins, browsing, or other integrations. section 6.3.6
  • An attacker gains access to proprietary data, passwords, secrets, or other sensitive information available to the model. section 6.3.6
  • Treat prompt injection as a primary threat: malicious instructions can steer a model toward unauthorized actions or disclosure. section 6.3.6

Email agent

An assistant allowed to draft and send email may receive a prompt injection that instructs it to write malware and send it to every contact. Isolation and containment limit the blast radius. section 6.3.6

Apply layered controls:

  • Sandbox agents according to their use case, especially when they can execute code or act through external tools. section 6.3.6
  • Retain standard controls such as HTTPS, authentication, authorization, monitoring, logging, network security, and firewalls. section 6.3.6
  • Use context-aware filtering, including keyword search or a second LLM, as a defense against malicious prompts. section 6.3.6

How LLMs in Production covers it

How deep it goes
Explains ordinary controls, two major failure cases, prompt injection, sandboxing, and filtering without detailing implementation procedures.
Examples
Uses an email-writing agent, tool integrations, internet browsing, malicious prompts, malware, and proprietary secrets.
What it assumes
Assumes familiarity with regular application security while reinforcing its relevance to LLM services.
What you can do after
Operate/configure LLM agents with sandboxing, containment, standard application controls, and prompt-filtering defenses.
How it connects
Connects security with LLM agents, prompt injection, sandboxing, authentication, authorization, logging, and context-aware filtering.

Also explained in

Compare how 28 books explain security →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of LLMs in Production. The section links point to the parts of the book it draws on.