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許可證的許可。