SecGPT Pack
SecGPT is an LLM-based system that secures the execution of LLM apps via isolation. The key idea behind SecGPT is to isolate the execution of apps and to allow interaction between apps and the system only through well-defined interfaces with user permission. SecGPT can defend against multiple types of attacks, including app compromise, data stealing, inadvertent data exposure, and uncontrolled system alteration. The architecture of SecGPT is shown in the figure below. Learn more about SecGPT in our paper.
We develop SecGPT using LlamaIndex, an open-source LLM framework. We use LlamaIndex because it supports several LLMs and apps and can be easily extended to include additional LLMs and apps. We implement SecGPT as a personal assistant chatbot, which the users can communicate with using text messages.
A comprehensive notebook guide is available here. In the meantime, you can explore its features by comparing the execution flows of SecGPT and VanillaGPT (a non-isolated LLM-based system defined here) in response to the same query.
SecGPT original GitHub repository link: https://github.com/llm-platform-security/SecGPT
If you build on this work, considering citing our paper:
Citation
@article{wu2024secgpt,
title={{SecGPT: An Execution Isolation Architecture for LLM-Based Systems}},
author={Wu, Yuhao and Roesner, Franziska and Kohno, Tadayoshi and Zhang, Ning and Iqbal, Umar},
journal={arXiv preprint arXiv:2403.04960},
year={2024},
}
Contribution and Support
We welcome contributions to the project, e.g., through pull requests to the original GitHub repo. Please also feel free to reach out to us if you have questions about the project and if you would like to contribute.
Research Team
Yuhao Wu (Washington University in St. Louis) Franziska Roesner (University of Washington) Tadayoshi Kohno (University of Washington) Ning Zhang (Washington University in St. Louis) Umar Iqbal (Washington University in St. Louis)
Metadata
Release files for llama-index-packs-secgpt 0.3.1
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 |
|---|---|---|---|---|
| llama_index_packs_secgpt-0.3.1.tar.gz | 18.7 kB | Without provenance | Details for llama_index_packs_secgpt-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_packs_secgpt-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for llama_index_packs_secgpt-0.3.1-py3-none-any.whl |
Total release size: 42.0 kB
Release files / llama_index_packs_secgpt-0.3.1.tar.gz
| Download URL | llama_index_packs_secgpt-0.3.1.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f904d8a244102b2fe643d9332c7568c9d7b790853c188079debff99d1ad257e
|
|
BLAKE2b-256 checksum How to use checksums |
40362b9ddb9b474e011dcf155c3a9bd322c32b391f4e574d1ded2202bafd5c17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.17
|
Release files / llama_index_packs_secgpt-0.3.1-py3-none-any.whl
| Download URL | llama_index_packs_secgpt-0.3.1-py3-none-any.whl |
|---|---|
| Size | 23.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
478592c55131af92258d98bd35a4c093c51cbeb9481d0c2fec9649f8cf8227ed
|
|
BLAKE2b-256 checksum How to use checksums |
1d2318dac3e15ae1bcfa9d71cb8d298e11125760a4adc9800439d9dd43f1c277
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.17
|
Security for llama-index-packs-secgpt 0.3.1
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.