Skip to main content

Security framework for LLM-generated SQL queries

Project description

Version License Stars

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.

Text To SQL Abuse

Demonstration of making a malicious query using Vanna. LangSec helps prevent such attacks by validating generated queries against a security schema.

LangSec

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langsec-0.0.1.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

langsec-0.0.1-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

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

Hashes for langsec-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9395e621c7bd8d00b29751a5f40360fb01f4299114e198de727cb991bae809ed
MD5 c97be8a529c239222da14493b71f152d
BLAKE2b-256 7a40ec798144cf982102be2a6bb97d7041ac415cab631a4f1792482f719f6c6e

See more details on using hashes here.

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

Hashes for langsec-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7436cdb5c540d60ad24ecf5eb0f1ad01abfaeb67853dc4927e9680eefcc9f072
MD5 ae36d8dcba4739e4e5cf0f307a50c9bb
BLAKE2b-256 d8efc20eba42fe325aff22b94a180a83e888a7abe350dc93716a4c8defc06814

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page