PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Prompt Injection Detection Python Packages

Python packages with the GitHub topic prompt-injection-detection. Sorted by relevance, with stars and monthly downloads.
sunglasses-dev
sunglasses

Sunglasses for AI agents. Protection layer + neighborhood watch.

9K 3 2
bastion-soft
bastion-prompt-protection

Lightweight prompt-injection detector built for AI agents, copilots, and LLM apps. Fast, local, calibrated.

3K 8 1
0xsl1m
shadowshield

Unified open-source security shield for agentic AI systems — defense-in-depth prompt-injection protection (canary tokens, agent-trace alignment audit, tool-call guarding, PII/secret scanning).

1K 0 0
lockllm
lockllm

Official Python SDK for LockLLM

541 0 0
esoteric1entity
ai-agent-shield

Defensive overlay for AI agents — an 8-layer security stack that inspects, sanitizes, audits, and blocks risky actions before they reach the host.

474 0 0
bastion-soft
llama-index-postprocessor-bastion-guardrail

llama-index Bastion Prompt Protection guardrail integration

461 8 1
roli-lpci
little-canary

Sacrificial LLM instances as behavioral probes for prompt injection detection

361 22 4
yfedoseev
jailguard

Pure-Rust prompt-injection detector with 1.5MB embedded MLP classifier. 98.40% accuracy, p50 14ms CPU inference, bindings for Python/JS/Go. Apache-2.0/MIT alternative to Rebuff (archived) and Lakera Guard.

303 5 1
aisecuritygateway
aisg

Self-hosted AI security proxy. Redact PII, block prompt injection, route to any LLM provider. OpenAI-compatible.

219 26 2
    • Data from PyPI, GitHub, ClickHouse, and BigQuery