LLM Security

Sensitive Information Disclosure

Improper Output Handling

Unbounded Consumption

System Prompt Leakage

Prompt-Jailbreaking

  • A model whose response has been influenced through a crafted input or context

Guardrails

  • https://docs.langchain.com/oss/python/langchain/guardrails
  • https://guardrailsai.com/hub
  • Implementation
    • Deterministic
      • Strict programmatic rules, regex matches, syntax trees etc.
    • Probabilistic
      • Secondary ML models checking the primary model’s behavior
  • Types
    • Input Layer
      • Prompt Injection & Jailbreak Prevention
      • PII/Sensitive Data Masking
    • Orchestrator Layer
      • ensuring it stays on-topic across multiple chat turns
      • Canonical Intent Mapping
      • Protecting the foundational configuration from being overwritten or leaked mid-conversation
    • Output Layer
      • Structural Type Enforcement
      • Content Sanitization & Safety
      • Hallucination & Grounding Checkers

Uncensored Model

  • Uncensored model is an informal label for fewer response restrictions, potentially achieved through different training or editing methods
  • It can be achieved by
    • Fine tuning
    • Abliteration

Abliteration