Security
Protection of the system from attacks, data leaks, and unauthorized access. In the context of AI, this encompasses everything that makes the model, API, and infrastructure resilient to threats: from key theft to model constraint circumvention.
Why It Is Important in AI
- Models handle sensitive data — PII, communications, documents;
- API keys and secrets grant access to paid services;
- Vulnerability can lead to data leaks, breaches, or legal issues.
Key Areas
| Area | What It Protects |
|---|---|
| Authentication and authorization | Who has access and what their permissions are |
| Encryption | Data in transit and at rest |
| WAF | Application from external attacks |
| Prompt security | Model from prompt injection and jailbreak |
Security in LLM
A separate layer of threats specific to models:
- Prompt Injection — malicious instruction hidden in data;
- Jailbreak — model constraint circumvention;
- Prompt Leaking — system prompt theft;
- PII leak through responses and logs.
How It Is Protected
- Store secrets in environment variables, not in code;
- Use HTTPS and certificates;
- Limit token and tool permissions;
- Moderation of input and output — Guardrails;
- Test security through Red Teaming.