Using RedGuard redirector on Kubernetes.
Use this Helm-chart to run RedGuard redirector on k8s (k3s) clusters.
What is RedGuard RedGuard, a derivative tool based on command and control (C2) front flow control technology, has a lighter design, efficient traffic interaction, and reliable compatibility with development in the go programming language.As cyber attacks are constantly evolving , the red and blue team exercises become progressively more complex, RedGuard is designed to provide a better C2 channel hiding solution for the red team, that provides the flow control for the C2 channel, blocks the "malicious" analysis traffic, and better completes the entire attack task.
RedGuard is a C2 front flow control tool that can avoid Blue Team, AVS, EDR, Cyberspace Search Engine detects.
- ConfigMap with RedGuard Config
- Port forwarding (LoadBalancer, NodePort or Ingress-controller port streaming)
service:
type: LoadBalancer
ports:
- name: http
port: 80
targetPort: 80
protocol: TCP
- name: https
port: 443
targetPort: 443
protocol: TCP
You can change (customize) ports in value.yaml
.
Before running helm in k8s, you need to build a Docker image with RedGuard. An example would be the Dockerfile
from the repository.
- Kubernetes or k3s
- Helm install
kubectl
configured to authenticate to a Kubernetes cluster with a validkubeconfig
file- Docker on local machine
- Clone repo.
git clone https://github.com/3ayazaya/RedGuard-k8s
cd RedGuard-k8s/charts
- Build Docker image with RedGuard (if you need it).
export BUILD_ARCHS="linux/amd64,linux/arm64"
docker buildx build --platform $BUILD_ARCHS --progress plain --pull -t <image:tag> --push . --no-cache
- Change
values.yaml
if need incharts
folder. - Install Helm-chart with RedGuard in k8s (k3s) cluster.
helm install redguard redguard -f redguard/values.yaml -n <namespace> --create-namespace
- Add a chart repository.
helm repo add shmel https://charts.shmel.xyz
- Download
values.yaml
if need.
helm show values shmel/redguard > values.yaml
- Change
values.yaml
if need. - Install Helm-chart with RedGuard in k8s (k3s) cluster.
helm install redguard shmel/redguard -f values.yaml -n <namespace> --create-namespace