Open to software engineering roles

Search ⌘K Résumé

AI Learning / Production / Days 78-85

Safety, Security, and Guardrails

AI security is not a checkbox. Learn prompt injection, jailbreak resistance, tool-call exfiltration, moderation, guardrail frameworks, PII redaction, abuse prevention, schema validation, and audit logging.

Advanced 9 subtopics 8 daily blocks

Outcome

Threat-model AI apps against prompt injection, exfiltration, jailbreaks, unsafe outputs, abuse, and compliance blind spots.

What to learn

  • Prompt injection: direct and indirect
  • Jailbreak resistance
  • Data exfiltration through tool calls and rendered links
  • Content moderation with Llama Guard, OpenAI moderation, Azure-style systems
  • Guardrail frameworks: NeMo Guardrails and Guardrails AI
  • PII redaction in inputs and outputs
  • Rate limiting and abuse prevention
  • Output validation against schemas
  • Audit logging for compliance

Daily study plan

  1. Day 78: Threat-model one AI feature and list trust boundaries.
  2. Day 79: Test direct and indirect prompt injection attempts.
  3. Day 80: Add allowlists for tools, domains, and sensitive actions.
  4. Day 81: Add schema validation and safe failure responses.
  5. Day 82: Add PII detection/redaction for logs and model inputs.
  6. Day 83: Add rate limits, quotas, and abuse prevention controls.
  7. Day 84: Add audit logging for user, prompt, tool, and output events.
  8. Day 85: Run a jailbreak and exfiltration red-team checklist.

Practice builds

Prompt injection labAI gateway guardrail middlewarePII-safe logging wrapper

Resources

↑↓ move↵ openesc close