zap-operator

module
v0.0.0-...-60a75fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2019 License: MIT

README

Docker Repository on Quay

zap-operator

A little operator that makes it easy to hack your existing applications in production. This tool is intended to run again your application, that you have permissions to attack. Please do not use it for malicious purposes :)

OWASP Zaproxy is a great security tool, that can be used to detect a lot of security tools. This operator makes it easier to test your application in production. To attack an application, all you need to do is:

  • Install the operator (helm repo add omerlh https://omerlh.github.io/zap-operator/ && helm install omerlh/zap-operator)
  • Create the CRD:
apiVersion: zaproxy.owasp.org/v1alpha1
kind: Zaproxy
metadata:
 name: example-zaproxy
spec:
 attackType: Passive
 tragetNamespace: default
 tragetIngress: <a name of exisitng ingress>
  • Profit :)

The operator will create a new Zaproxy pod, and an Nginx Canary Ingress with 5% weight. All traffic passed to the canary ingress will be proxied by Zap. Let it run for a while, you can always inspect Zap for alerts by running:

kubectl port-forward <zap pod name> 8090:8090
curl http://localhost:8090/OTHER/core/other/htmlreport/?formMethod=GET //get alerts in HTML format

Known Limitations

  • Only support Nginx Ingress
  • Only support ingress with one host and one path
  • Only support Ingress with backend service listening on port 80

Roadmap

  • Support Active attacks
  • Support other ingress types
  • Support service mesh (e.g. Istio/Linkerd)
  • Publish to operator marketplace

Directories

Path Synopsis
cmd
pkg
apis/zaproxy
Package zaproxy contains zaproxy API versions.
Package zaproxy contains zaproxy API versions.
apis/zaproxy/v1alpha1
Package v1alpha1 contains API Schema definitions for the zaproxy v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=zaproxy.owasp.org Package v1alpha1 contains API Schema definitions for the zaproxy v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=zaproxy.owasp.org
Package v1alpha1 contains API Schema definitions for the zaproxy v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=zaproxy.owasp.org Package v1alpha1 contains API Schema definitions for the zaproxy v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=zaproxy.owasp.org

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL