Beelzebub
  • Beelzebub framework docs
  • Getting Started
    • Quickstart
    • SSH LLM Honeypot
  • Basics
    • Kubernetes deployment
    • Beelzebub API v1
    • Logs
    • Beelzebub Labs
Powered by GitBook
On this page
  1. Basics

Kubernetes deployment

Kubernetes environments are particularly vulnerable to lateral movement due to their distributed nature, complex networking, and the potential for compromised pods, service accounts, or nodes to serve

PreviousSSH LLM HoneypotNextBeelzebub API v1

Last updated 1 month ago

Requirements:

  1. kubectl installed and context configured

  2. helm installed

Below are the commands to download, configure and deploy Beelzebub.

  1. Clone Beelzebub repository:

$ git clone https://github.com/mariocandela/beelzebub.git
  1. You can rewrite the chart with a custom-values.yaml

Follow example of custom-values.yaml

image:
  repository: m4r10/beelzebub
  pullPolicy: IfNotPresent
  tag: v3.0.0

beelsebubServiceConfigs: |
  apiVersion: "v1"
  protocol: "ssh"
  address: ":2222"
  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\n21642 ttys000    0:00.07 /bin/dockerd"
    - regex: "^(.+)$"
      handler: "command not found"
  serverVersion: "OpenSSH"
  serverName: "ubuntu"
  passwordRegex: "^(root|qwerty|Smoker666|123456|jenkins|minecraft|sinus|alex|postgres|Ly123456)$"
  deadlineTimeoutSeconds: 60

service:
  type: ClusterIP
  port: 2222

Deploy:

$ helm install beelzebub ./beelzebub-chart

Deploy using custom values:

$ helm install beelzebub ./beelzebub-chart -f custom-values.yaml

https://kubernetes.io/docs/tasks/tools/install-kubectl/
https://helm.sh/docs/intro/quickstart/
default values