Akto LLM Guard
LLM-Guard is a comprehensive tool designed to fortify the security of Large Language Models (LLMs).
Features
- Prompt Injection Detection: Detect and prevent prompt injection attacks
- PII Detection: Identify and handle personally identifiable information
- Toxicity Detection: Filter harmful and toxic content
- Code Detection: Identify and manage code in prompts
- Data Leakage Prevention: Prevent sensitive information leakage
- URL Scanning: Detect malicious URLs in outputs
- Bias Detection: Identify biased content in model outputs
Installation
pip install akto-llm-guard
For ONNX runtime support:
pip install akto-llm-guard[onnxruntime]
For GPU support:
pip install akto-llm-guard[onnxruntime-gpu]
Quick Start
from llm_guard.input_scanners import PromptInjection
scanner = PromptInjection()
sanitized_prompt, is_valid, risk_score = scanner.scan("Your prompt here")
if is_valid:
print("Prompt is safe")
else:
print(f"Prompt failed security check. Risk score: {risk_score}")
Repository
GitHub: https://github.com/akto-api-security/llm-guard
License
MIT License
Metadata
Release files for akto-llm-guard 0.3.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| akto_llm_guard-0.3.17.tar.gz | 67.4 kB | Without provenance | Details for akto_llm_guard-0.3.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| akto_llm_guard-0.3.17-py3-none-any.whl | Python 3 | none | any | Details for akto_llm_guard-0.3.17-py3-none-any.whl |
Total release size: 206.6 kB
Release files / akto_llm_guard-0.3.17.tar.gz
| Download URL | akto_llm_guard-0.3.17.tar.gz |
|---|---|
| Size | 67.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ce8f0f4ea3500ab07c915b878b48261bca81103dfc383efbc9239d62af368f3
|
|
BLAKE2b-256 checksum How to use checksums |
f79a6191daf99f197f331183943fbff30422c1ea24e951097b5f4b293ee4b44b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Release files / akto_llm_guard-0.3.17-py3-none-any.whl
| Download URL | akto_llm_guard-0.3.17-py3-none-any.whl |
|---|---|
| Size | 139.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76997bc20b5fb75a0f5c63b05fe8c0b165241e17adcb4bc5473e0aec8376c09d
|
|
BLAKE2b-256 checksum How to use checksums |
246a888b627a8f34766c83fb2945ff7ad0fa6cddd5c357708b2450081aefc0cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Security for akto-llm-guard 0.3.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.