RepositoryPythonUSUnited States
protectai

protectai/llm-guard

The Security Toolkit for LLM Interactions

3.2kstars
476forks
12issues
5views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: adversarial-machine-learning

#1 Repository Của Tuần

2
TINIX TRENDING·Chủ đề: llm-security

#2 Repository Của Tuần

3
TINIX TRENDING·Chủ đề: prompt-injection

#3 Repository Của Tuần

🛡️ LLM Guard — Bộ công cụ bảo mật toàn diện cho LLM

Bộ công cụ bảo mật cho các tương tác với Large Language Models, từ phát hiện prompt injection đến ngăn chặn rò rỉ dữ liệu.

LLM Guard bởi Protect AI là bộ công cụ mã nguồn mở thiết kế để bảo vệ tương tác với Large Language Models (LLMs). Dự án cung cấp khả năng lọc đầu vào và đầu ra, phát hiện ngôn ngữ độc hại, ngăn chặn rò rỉ dữ liệu nhạy cảm, và chống lại các cuộc tấn công prompt injection.

Cài đặt đơn giản bằng pip install llm-guard, tương thích Python 3.9+. Dễ dàng tích hợp vào pipeline production hoặc triển khai dưới dạng API.

✅ Điểm nổi bật

  • 35+ scanner: Bộ công cụ quét đầu vào (prompt scanners) và đầu ra (output scanners) đa dạng, bao gồm PromptInjection, Toxicity, Secrets, Gibberish, Language, Sentiment, TokenLimit
  • Phát hiện prompt injection: Chống lại các cuộc tấn công chèn prompt nhằm thao túng mô hình
  • Bảo vệ dữ liệu: Phát hiện secrets, thông tin nhạy cảm và ngăn chặn rò rỉ dữ liệu
  • Phân tích đầu ra: Kiểm tra factual consistency, bias, malicious URLs, JSON validity, relevance, reading time
  • Anonymize/Deanonymize: Ẩn và khôi phục thông tin nhận dạng trong văn bản
  • Hỗ trợ API: Triển khai dễ dàng dưới dạng API phục vụ production
  • MIT License: Mã nguồn mở hoàn toàn, miễn phí sử dụng

💡 Vì sao đáng chú ý

LLM Guard giải quyết bài toán bảo mật LLM theo cách tiếp cận toàn diện — không chỉ dừng lại ở một loại tấn công duy nhất mà bao phủ cả đầu vào lẫn đầu ra với 35+ scanner chuyên biệt. Mỗi scanner tập trung vào một khía cạnh cụ thể: từ phát hiện mã độc, ngôn ngữ thù địch, cho đến kiểm tra tính nhất quán thực tế của kết quả.

Dự án đặc biệt phù hợp cho các team đang triển khai LLM trong production mà cần kiểm soát rủi ro bảo mật nghiêm ngặt. Việc tích hợp vào pipeline là đơn giản, và tài liệu chi tiết cùng playground trên HuggingFace giúp người dùng thử nghiệm nhanh chóng.


#LLM #LLMSecurity #PromptInjection #OpenSource #Python #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
deadbits/vigil-llm

⚡ Vigil ⚡ Detect prompt injections, jailbreaks, and other potentially risky Large Language Model (LLM) inputs

511
Jan 31, 2024
RepositoryPython
NousResearch/hermes-agent

The agent that grows with you

265.6k
Nov 23, 2026
RepositoryPython
langchain-ai/langchain

The agent engineering platform.

150.0k
Nov 22, 2026
Dataset
fka/prompts.chat

a.k.a. Awesome ChatGPT Prompts This is a Dataset Repository mirror of prompts.chat — a social platform for AI prompts. 📢 Notice This Hugging Face dataset is a mirror. For the latest prompts, features, and community contributions, please visit: 🌐 Website: prompts.chat 📦 GitHub: github.com/f/awesome-chatgpt-prompts About prompts.chat is an open-source platform where users can share, discover, and collect AI prompts from the community. The project can… See the full description on the dataset page: https://huggingface.co/datasets/fka/prompts.chat.

♥0
21.5k
Nov 23, 2026
RepositoryJavaScript
DietrichGebert/ponytail

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

197.4k
Nov 22, 2026
RepositoryTypeScript
firecrawl/firecrawl

Knowledge infrastructure to make your agents smarter. Search, scrape and access 550+ data providers through one API.

207.6k
Nov 23, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
164.7M
Jun 1, 2026
RepositoryPython
langflow-ai/langflow

Langflow is a powerful tool for building and deploying AI-powered agents and workflows.

156.9k
Nov 23, 2026
RepositoryPython
hiyouga/LlamaFactory

Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)

76.2k
Nov 23, 2026