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.2.tar.gz (2.8 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.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: secprompt-0.0.2.tar.gz
  • Upload date:
  • Size: 2.8 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.2.tar.gz
Algorithm Hash digest
SHA256 98ccf5132c3b6a8acf3fe2ead8ebf41774abcf0be9a15a2acc72ca003d1672a0
MD5 baa9e950792bae79ab8c1a13aaceaf2d
BLAKE2b-256 04ac58bf23dd5a8b7735afd431b8ee7aa002700f97e048b2e30048b83bf8deda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: secprompt-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1dc097190909964b406665ad6f107c9a6bdb861f13126b13996c778a3839ecc3
MD5 1d3ad09ca2ab3dfdf2979d5e1e595fe3
BLAKE2b-256 d6c38d8268ab8cb42dc1f07fc5ecab0fd2d1c5d7ab37fe5868f7f1a0518712c7

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