Skip to main content

Protecting LLM-integrated applications from prompt injection attacks

Project description

SecPrompt: Protect your LLM-integrated applications

The tool uses the analysis model and two analysis mechanisms (intention analysis and behavior analysis) to detect prompt injection attack.

Analysis Model

Through experiments, it is currently to achieve good attack detection results by letting GPT-3.5-turbo serve as an analysis model.

two Analysis Mechanisms

  • Intent Analysis(IA): analyze the essential intention of the user prompt before transmitting it to the LLM integrated application, using it as context.
  • Behavioral Analysis(BA): decompose user prompt tasks and mobilize analysis models to conduct security checks at each step.

Installation

# install from PyPI
pip install secprompt

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

secprompt-0.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

secprompt-0.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file secprompt-0.0.1.tar.gz.

File metadata

  • Download URL: secprompt-0.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.4

File hashes

Hashes for secprompt-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9779503e11a38fc9756b43a1d218b88de96faf8b631fcbbd13272bc09746c9a1
MD5 cbf91239ccd6d79ec42ce87812d1e58e
BLAKE2b-256 650427f5807dc4856299179019c10cabf855acc914551fe159ecc1d5bacfc8d9

See more details on using hashes here.

File details

Details for the file secprompt-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: secprompt-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.4

File hashes

Hashes for secprompt-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82d54d672d3e6dbe81103191c078d4e914d7187b2d8e880589bcaae70c21a6d9
MD5 cab3bdd1c58a840b284cc46fb4632053
BLAKE2b-256 c8cd440c87fac480f56625da8704363a94668c8bcb979af6f1170a4012a97779

See more details on using hashes here.

Supported by

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