Skip to content

llama-honeypot-python is a honeypot project that utilizes the large language model llama to simulate a shell environment. It is capable of generating output that appears to be from real shell commands, thus deceiving attackers, but in reality, it does not execute any commands.

License

Notifications You must be signed in to change notification settings

StudyingLover/llama-honeypot-python

Repository files navigation

llama-honeypot-python

drawed by stable diffusion

llama-honeypot-python 是一个使用 llama 大语言模型作为后端的蜜罐项目。它模拟了一个 shell 环境,但实际上并不执行任何指令。相反,它使用 llama 模型来生成看起来像是 shell 指令输出的文本,以欺骗攻击者。

开发笔记

请查看我的两篇博客

  1. 使用llama构建一个蜜罐(后端)
  2. 使用llama构建一个蜜罐(前端)

安装和使用

要使用 llama-honeypot-python,你需要安装 Python 3 和 pip。然后,你可以按照以下步骤进行操作:

  1. 克隆此仓库并进入项目目录:
git clone https://github.com/your-username/llama-honeypot-python.git cd llama-honeypot-python
  1. 安装依赖项:
pip install -r requirements.txt
  1. 启动 llama-honeypot-python: 启动llama服务器,修改/path/to/为真实地址
python3 -m llama_cpp.server --model /path/to/llama-2-13b-chat.ggmlv3.q4_1.bin

启动后端

python honeypot_backend.py

启动前端

python honeypot_frontend.py

参考项目

cutecuteyu/chatgpt-honeypot Coldwave96/llama-honeypot ggerganov/llama.cpp abetlen/llama-cpp-python

TODO

  1. 微调llama,或者使用更好的prompt,使其更好的输出。
  2. 优化假的终端,模拟一个终端的各种功能。

许可证

llama-honeypot-python 使用 Apache License 2.0 许可证。有关更多信息,请参见 LICENSE 文件。

About

llama-honeypot-python is a honeypot project that utilizes the large language model llama to simulate a shell environment. It is capable of generating output that appears to be from real shell commands, thus deceiving attackers, but in reality, it does not execute any commands.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages