Beelzebubは、サイバー攻撃を検出および分析するための非常に安全な環境を提供するように設計された高度なハニーポットフレームワークです。簡単に実装するための低コードアプローチを提供し、AIを使用して高相互作用ハニーポットの動作を模倣します。
専用のTelegramチャンネル:Telegram Channelに参加して、リアルタイム攻撃を最新の状態に保ちます
Beelzebubの機能をよりよく理解するには、例のリポジトリを調べることができます:Mariocandela/Beelzebub-example
Build and Run Beelzebubの2つのクイックスタートオプションを提供します。DockerComposeまたはGoコンパイラを使用します。
Docker画像を作成します:
$ docker-compose build分離モードでBeelzebubを開始します:
$ docker-compose up -d必要なGOモジュールをダウンロードしてください:
$ go mod downloadBeelzebub実行可能ファイルを構築します:
$ go buildRun Beelzebub:
$ ./beelzebubヘルムをインストールします
Beelzebubを展開:
$ helm install beelzebub ./beelzebub-chart次のリリース
$ helm upgrade beelzebub ./beelzebub-chart単体テストと統合テストの2種類のテストを提供します。
ユニットテストを実行するには:
$ 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ライセンスに基づいてライセンスされています。