LLM Security & Guardrails

LLM Security & Guardrails

Deep technical articles on this topic.

559Articles
559Topics covered
Articles in this category

All 30 articles, sorted alphabetically

Advertisement
ARTICLE · 01

Federated Prompt Engineering

Cross-org sharing of prompt patterns. Emerging community norms.

Read article
ARTICLE · 02

LLM Data Exfiltration

How attackers extract data (system prompts, retrieved context, chat history) from LLMs through carefully-crafted queries.

Read article
ARTICLE · 03

LLM Deployment Hardening

Container security, network, secrets, monitoring. Standard cloud hardening + LLM.

Read article
ARTICLE · 04

LLM Hallucination Risk

How LLMs generate plausible but false information, why hallucinations happen, and how to mitigate in production systems.

Read article
ARTICLE · 05

LLM PII Leakage

How LLMs memorize training data, why they can leak PII in responses, and mitigation strategies including differential privacy.

Read article
ARTICLE · 06

Agent Tool Permissions: Least Privilege Between a Model and Real Actions

Why an LLM agent's security must live in a broker outside the model — per-tool allowlists, argument constraints, identity sco…

Read article
ARTICLE · 07

LLM audit logging architecture

Deep-dive on audit logging for LLM systems: capturing request context, assembled prompts, model I/O and tool effects; redaction to hashed placeholders…

Read article
ARTICLE · 08

LLM security canary tokens architecture

Deep-dive on canary tokens for LLM systems: why detection matters where prevention is incomplete, what makes a good canary (uniqueness, plausibility, …

Read article
ARTICLE · 09

Confused Deputy Attacks on Agents

Agent acts with its privileges on attacker behalf.

Read article
ARTICLE · 10

Data poisoning -- corrupting the model through its training data

Deep-dive on data poisoning: corrupting a model via malicious training data, poisoning types (backdoor/bias/degradation), backdoor triggers (hidden be…

Read article
ARTICLE · 11

LLM Defense in Depth: The Full Security Stack

A 2500-word walkthrough of a production LLM security architecture: perimeter, identity, rate, input, firewall, model, retrieval, tools, output, egress…

Read article
ARTICLE · 12

LLM egress filtering architecture

Deep-dive on egress filtering for LLM agents: the forced choke point, destination allowlists, content inspection for secrets and PII, canary tokens, m…

Read article
ARTICLE · 13

LLM Security Evals

How to systematically evaluate LLM security via benchmark suites.

Read article
ARTICLE · 14

Human-in-the-loop approval gates for AI agents

Deep-dive on human-in-the-loop approval gates for agent actions: a risk classifier that routes by risk and reversibility, an auto-execute path for saf…

Read article
ARTICLE · 15

LLM Jailbreak Defense Architecture in Depth

A 2500-word walkthrough of jailbreak defense architecture: input classifier, safety-tuned model, system prompt hardening, constrained decoding, output…

Read article
ARTICLE · 16

Membership Inference

How membership inference attacks determine if a specific data point was in the training set.

Read article
ARTICLE · 17

Model extraction

Deep-dive on model extraction attacks and defenses: systematic API querying, response collection, surrogate training, behavior-not-weights theft, dete…

Read article
ARTICLE · 18

LLM moderation architecture

Deep-dive on layered LLM moderation: heuristics + ML + policy engine + human review with a training loop that closes on hard examples.

Read article
ARTICLE · 19

LLM output handling -- treating model output as untrusted

Deep-dive on LLM output handling: the untrusted-output threat, output flowing into injection sinks (HTML/SQL/shell/code), context-aware encoding and e…

Read article
ARTICLE · 20

LLM PII Detection and Redaction Architecture in Depth

A 2500-word walkthrough of LLM PII architecture: detection layers, redactor, reversible tokens, output scanning, log redaction, audit, right to erasur…

Read article
ARTICLE · 21

LLM output provenance architecture

Deep-dive on LLM output provenance: source citations, watermark, audit records, verifier tool, provenance UI, policy, and metrics.

Read article
ARTICLE · 22

RAG Defense Architecture in Depth

A 2500-word walkthrough of RAG defense architecture: source allowlist, signing, sanitization, tenant-scoped retrieval, quarantine, citations, hallucin…

Read article
ARTICLE · 23

LLM Red Teaming

How red teaming (structured adversarial testing) discovers LLM vulnerabilities before attackers.

Read article
ARTICLE · 24

Agent tool-execution sandboxing architecture

Deep-dive on sandboxing LLM agent tool calls: policy engines, Firecracker/gVisor/WASM isolation tiers, warm slot pools, secrets brokering, egress prox…

Read article
ARTICLE · 25

Secrets management architecture for LLM applications

Deep-dive on LLM secrets security: why context windows and prompt logs leak credentials, vault-issued short-lived credentials, opaque secret reference…

Read article
ARTICLE · 26

Spotlighting

Spotlighting: mark untrusted content clearly.

Read article
ARTICLE · 27

System prompt leakage architecture

Deep-dive on LLM system prompt leakage: why the system role is not a privilege boundary, extraction via direct ask, roleplay, continuation, encoding, …

Read article
ARTICLE · 28

Multi-tenant LLM isolation architecture

Deep-dive on tenant isolation for LLM platforms: unforgeable tenant context, retrieval namespaces vs filters, cache-key design, per-tenant adapters, e…

Read article
ARTICLE · 29

Unicode smuggling defense architecture

Deep-dive on defending LLMs against Unicode smuggling: hidden Unicode Tag-block payloads, zero-width and bidirectional controls, homoglyph/confusable …

Read article
ARTICLE · 30

RAG Document Curation

Prevent poisoned documents entering KB. Curation + moderation patterns.

Read article