Add template for Kubernetes Fake Certificates

patch-1
kchason 2023-03-25 14:30:44 -04:00
parent 1d3f792d38
commit a07e3a0d96
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
id: kubernetes-fake-certificate
info:
name: Kubernetes Fake Ingress Certificate
author: kchason
severity: low
reference:
- https://snyk.io/blog/setting-up-ssl-tls-for-kubernetes-ingress/
description: |
Kubernetes Ingress controllers use a default self-signed certificate when no certificate is specified.
This certificate is not trusted by any browser and should be replaced with a proper certificate.
remediation: |
Purchase or generate a proper SSL certificate for this service.
https://snyk.io/blog/setting-up-ssl-tls-for-kubernetes-ingress/
tags: ssl,kubernetes,tls
ssl:
- address: "{{Host}}:{{Port}}"
matchers:
- type: dsl
dsl:
- 'subject_cn == "Kubernetes Ingress Controller Fake Certificate"'
- 'issuer_cn == "Kubernetes Ingress Controller Fake Certificate"'
condition: or
extractors:
- type: dsl
dsl:
- '"Subject: " + subject_cn'
- '"Issuer: " + issuer_cn'