Security framework for LLM-generated SQL queries
Project description
LangSec: A Security Framework for Text-to-SQL
A security framework for validating and securing LLM-generated SQL queries. LangSec helps prevent SQL injection, unauthorized access, and other security vulnerabilities when working with language models that generate SQL.
Demonstration of making a malicious query using Vanna. LangSec helps prevent such attacks by validating generated queries against a security schema.
Installation
pip install langsec
Documentation
For a detailed guide on how to use LangSec, please refer to the documentation.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
APACHE 2.0 © 2024 LangSec
Support
For issues and feature requests, please create an issue on GitHub or contact dev@lang-sec.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file langsec-0.0.1.tar.gz
.
File metadata
- Download URL: langsec-0.0.1.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9395e621c7bd8d00b29751a5f40360fb01f4299114e198de727cb991bae809ed |
|
MD5 | c97be8a529c239222da14493b71f152d |
|
BLAKE2b-256 | 7a40ec798144cf982102be2a6bb97d7041ac415cab631a4f1792482f719f6c6e |
File details
Details for the file langsec-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: langsec-0.0.1-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7436cdb5c540d60ad24ecf5eb0f1ad01abfaeb67853dc4927e9680eefcc9f072 |
|
MD5 | ae36d8dcba4739e4e5cf0f307a50c9bb |
|
BLAKE2b-256 | d8efc20eba42fe325aff22b94a180a83e888a7abe350dc93716a4c8defc06814 |