Skip to main content
Ctrl K

little-canary

Prompt-injection risk sensor that reads attacks by their effect on a powerless sacrificial canary model, returning block, flag, or pass with explicit coverage state.

1
contributor
Get started
112 commitsLast commit ≈ 5 days ago27 stars4 forks

Cite this software

Description

little-canary is a prompt-injection risk sensor that combines a structural decode-then-recheck filter with a behavioral probe: raw untrusted input is fed to a powerless sacrificial model first, and the canary's response is inspected for compromise residue. It returns block, flag, or pass routing while reporting explicit degraded and coverage state. It supports Ollama and an adapter for endpoints implementing the expected OpenAI chat-completions subset.

It is an inbound preflight sensor, not a formal security guarantee, and deliberately preserves fail-open routing while exposing failed coverage.

Keywords
Programming languages
  • Python 96%
  • HTML 4%
License
</>Source code
Packages

Reference papers

Contributors