Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

LLM Security Python Packages

Python packages with the GitHub topic llm-security. Sorted by monthly downloads, with stars and forks.
NVIDIA-NeMo
nemoguardrails

NeMo Guardrails is an open-source library for applying programmable safety and security controls to LLM and agentic applications.

459K 8K 917
Project-Navi
navi-sanitize

Deterministic input sanitization for untrusted text — invisible characters, homoglyphs, and encoding tricks, handled before your code sees them. Zero dependencies, no ML. Python 3.12+.

232K 3 0
protectai
llm-guard

The Security Toolkit for LLM Interactions

124K 3K 477
NVIDIA
garak

the LLM vulnerability scanner

59K 10K 2K
Tencent
aig-skill-scan

A full-stack AI Red Teaming platform securing AI ecosystems via Agent Scan, Skills Scan, MCP scan, AI Infra scan and LLM jailbreak evaluation.

54K 8K 812
wan9yu
argus-redact

Encrypt PII, not meaning. Locally.

49K 12 1
datafog
datafog

Offline PII firewall for AI agents and LLM apps: fast local detection and redaction, Claude Code hook, LiteLLM guardrail. Zero network calls, one dependency.

33K 80 15
Agent-Threat-Rule
pyatr

Open detection-rule standard for AI agent security threats — like Sigma, but for AI agents. Executable, testable rules for prompt injection, tool poisoning, context exfiltration and MCP attacks. Merged into open-source projects at Microsoft, Cisco, Gen Digital, MISP and FINOS. MIT-licensed.

25K 445 71
gy15901580825
argus-probe

Open-source red-team testing for AI agents. 320 bundled probes with OWASP LLM Top 10, MITRE ATLAS, and NIST AI RMF mappings. Selected probes use recorded browser requests, MCP tool calls, or mock payments. CLI, SARIF, GitHub Action.

25K 219 35
pezhik
skilltotal

Static security scanner for npm/PyPI packages, MCP servers, agent skills, VS Code extensions and repos. Runs locally, never runs the code, no LLM. CLI, Claude Code plugin, Action.

24K 16 1
gautamvarmadatla
mcpsafetywarden

MCP servers expose tools with no information about what they actually do at runtime. mcpsafetywarden sits between your agent and any MCP server, profiling tool behavior, blocking destructive calls, and running active security audits before you trust them in a workflow.

23K 9 2
mcp-hangar
mcp-hangar

MCP policy enforcement plane — deterministic policy on every Model Context Protocol call: identity, RFC 8707 audience binding, tool schema digest pinning, full audit trail. Python, self-hosted, MIT.

21K 18 10
PrismorSec
prismor

Self-hosted runtime control plane for AI agents. Observe or HITL approve or Block rogue tool calls before it executes: secret leaks, prompt injection, supply chain etc in a local dashboard. Agent agnostic (Claude, codex, langchain etc.)

19K 679 73
PrismorSec
immunity-agent

Self-hosted runtime control plane for AI agents. Observe or HITL approve or Block rogue tool calls before it executes: secret leaks, prompt injection, supply chain etc in a local dashboard. Agent agnostic (Claude, codex, langchain etc.)

18K 679 73
Giskard-AI
giskard

🐢 Open-Source Evaluation & Testing library for LLM Agents

17K 6K 582
ohp1x
privyx

AI data privacy gateway: privacy engine + proxy for LLM providers

15K 2 0
navid72m
mcp-behave

Runtime behavioral auditor for MCP servers — detects undeclared network egress, credential reads, and rug-pulls via native syscall interposition.

14K 4 0
sunglasses-dev
sunglasses

Open source input firewall for AI agents, beta. A local scanner checks text, code, PDFs, images, QR codes, audio and video with 1,569 patterns across 117 categories and reports findings and incomplete scans. A Claude Code hook blocks secret material in tool calls and the paths and hosts your policy lists before tools run.

13K 11 3
batrapulkit
squidbrake

Agents propose. People approve. Change control for AI agents: everyday work runs on its own, anything an agent can't take back waits for a teammate's sign-off, every action on a tamper-evident record. Open source.

11K 19 35
EnXan
vipi-scanner

Visual prompt injection scanner for images with OCR, a Python CLI, and a GitHub Action

11K 1 0
guardana
guardana-core

Open-source AI security verification for model artifacts, live endpoints, MCP servers, and recorded agent traces. Reproducible evidence for release decisions.

11K 232 21
adudley78
mcp-audit-scanner

Security scanner for MCP (Model Context Protocol) server configurations. Detects prompt injection, credential exposure, supply chain risks, and more.

11K 8 4
blitzcrieg1
agentmetry

Open-source security for AI coding agents: record, detect and block at the tool boundary, with a verifiable audit trail in the SIEM you already run.

10K 51 19
OWASP
agent-memory-guard

Runtime defense against memory poisoning in AI agents (OWASP ASI06). Drop-in for LangChain, OpenAI Agents, AutoGen, CrewAI and mem0.

10K 214 65
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology