beelzebub
v3.2.7
Beelzebub是一个高级蜜罐框架,旨在提供一个可用于检测和分析网络攻击的高度安全环境。它提供了一种易于实施的低代码方法,并使用AI模仿了高相互作用的蜜罐的行为。
通过加入我们的专用电报频道:Telegram Channel,请继续更新实时攻击
为了更好地了解Beelzebub的功能,您可以探索我们的示例存储库:MarioCandela/beelzebub-example
我们为构建和运行Beelzebub提供了两个快速启动选项:使用Docker Compose或Go Compiler。
构建Docker图像:
$ docker-compose build以独立模式启动beelzebub:
$ docker-compose up -d下载必要的GO模块:
$ go mod download构建beelzebub可执行文件:
$ go build运行beelzebub:
$ ./beelzebub安装头盔
部署beelzebub:
$ helm install beelzebub ./beelzebub-chart下一个版本
$ helm upgrade beelzebub ./beelzebub-chart我们提供两种类型的测试:单位测试和集成测试。
运行单元测试:
$ make test.unit运行集成测试:
$ make test.dependencies.start
$ make test.integration
$ make test.dependencies.downBeelzebub提供了广泛的功能来增强您的蜜罐环境:
Beelzebub允许为不同的服务和端口轻松配置。只需为/configurations/services目录中的每个服务/端口创建一个新文件。
要使用自定义路径执行beelzebub,请使用以下命令:
$ ./beelzebub --confCore ./configurations/beelzebub.yaml --confServices ./configurations/services/以下是一些针对不同蜜罐场景的示例配置:
apiVersion : " v1 "
protocol : " http "
address : " :80 "
description : " Wordpress 6.0 "
commands :
- regex : " ^(/index.php|/index.html|/)$ "
handler :
<html>
<header>
<title>Wordpress 6 test page</title>
</header>
<body>
<h1>Hello from Wordpress</h1>
</body>
</html>
headers :
- " Content-Type: text/html "
- " Server: Apache/2.4.53 (Debian) "
- " X-Powered-By: PHP/7.4.29 "
statusCode : 200
- regex : " ^(/wp-login.php|/wp-admin)$ "
handler :
<html>
<header>
<title>Wordpress 6 test page</title>
</header>
<body>
<form action="" method="post">
<label for="uname"><b>Username</b></label>
<input type="text" placeholder="Enter Username" name="uname" required>
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw" required>
<button type="submit">Login</button>
</form>
</body>
</html>
headers :
- " Content-Type: text/html "
- " Server: Apache/2.4.53 (Debian) "
- " X-Powered-By: PHP/7.4.29 "
statusCode : 200
- regex : " ^.*$ "
handler :
<html>
<header>
<title>404</title>
</header>
<body>
<h1>Not found!</h1>
</body>
</html>
headers :
- " Content-Type: text/html "
- " Server: Apache/2.4.53 (Debian) "
- " X-Powered-By: PHP/7.4.29 "
statusCode : 404 apiVersion : " v1 "
protocol : " http "
address : " :8080 "
description : " Apache 401 "
commands :
- regex : " .* "
handler : " Unauthorized "
headers :
- " www-Authenticate: Basic "
- " server: Apache "
statusCode : 401 Openai GPT-4的示例:
apiVersion : " v1 "
protocol : " ssh "
address : " :2222 "
description : " SSH interactive OpenAI GPT-4 "
commands :
- regex : " ^(.+)$ "
plugin : " LLMHoneypot "
serverVersion : " OpenSSH "
serverName : " ubuntu "
passwordRegex : " ^(root|qwerty|Smoker666|123456|jenkins|minecraft|sinus|alex|postgres|Ly123456)$ "
deadlineTimeoutSeconds : 60
plugin :
llmModel : " gpt4-o "
openAISecretKey : " sk-proj-123456 "与Ollama Llama3的示例:
apiVersion : " v1 "
protocol : " ssh "
address : " :2222 "
description : " SSH Ollama Llama3 "
commands :
- regex : " ^(.+)$ "
plugin : " LLMHoneypot "
serverVersion : " OpenSSH "
serverName : " ubuntu "
passwordRegex : " ^(root|qwerty|Smoker666|123456|jenkins|minecraft|sinus|alex|postgres|Ly123456)$ "
deadlineTimeoutSeconds : 60
plugin :
llmModel : " llama3 "
host : " http://example.com/api/chat " # default http://localhost:11434/api/chat apiVersion : " v1 "
protocol : " ssh "
address : " :22 "
description : " SSH interactive "
commands :
- regex : " ^ls$ "
handler : " Documents Images Desktop Downloads .m2 .kube .ssh .docker "
- regex : " ^pwd$ "
handler : " /home/ "
- regex : " ^uname -m$ "
handler : " x86_64 "
- regex : " ^docker ps$ "
handler : " CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES "
- regex : " ^docker .*$ "
handler : " Error response from daemon: dial unix docker.raw.sock: connect: connection refused "
- regex : " ^uname$ "
handler : " Linux "
- regex : " ^ps$ "
handler : " PID TTY TIME CMD n 21642 ttys000 0:00.07 /bin/dockerd "
- regex : " ^(.+)$ "
handler : " command not found "
serverVersion : " OpenSSH "
serverName : " ubuntu "
passwordRegex : " ^(root|qwerty|Smoker666)$ "
deadlineTimeoutSeconds : 60 我们对Beelzebub的未来计划包括将其开发为强大的PAAS平台。
Beelzebub团队欢迎捐款和项目参与。无论您要报告错误,贡献新功能还是有任何疑问,请参阅我们的撰稿人指南以获取详细信息。我们鼓励所有参与者和维护者遵守我们的行为准则,并培养一个支持性和尊重的社区。
快乐黑客!
Beelzebub已获得MIT许可证的许可。