Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save nirohfeld/7a7c82c62321de9c2ef95d266b241fcb to your computer and use it in GitHub Desktop.

Select an option

Save nirohfeld/7a7c82c62321de9c2ef95d266b241fcb to your computer and use it in GitHub Desktop.
id: exposed-ingress-nginx-admission
info:
name: Publicly exposed Ingress NGINX Admission
author: Wiz research
severity: high
description: Ingress Nginx admission controller endpoint should not be exposed
metadata:
max-request: 1
tags: ssl,tls
ssl:
- address: "{{Host}}:{{Port}}"
matchers:
- type: dsl
dsl:
- 'contains(issuer_org, "nil1")'
- 'contains(subject_org, "nil2")'
- 'contains(subject_an, "nginx")'
condition: and
extractors:
- type: json
name: issuer_org
json:
- ".issuer_org[0]"
- type: json
name: subject_org
json:
- ".subject_org[0]"
- type: json
name: subject_an
json:
- ".subject_an[0]"
@Kylianghd
Copy link
Copy Markdown

Oh and i see that you don't specify a port. You can modify the {{Port}} variable and define 80 or 443 for example.

@ranjanrajat
Copy link
Copy Markdown

Hi @atoolchain for me its also coming same like urs , can u plz tell how u veried

@SecOpsGrogu1
Copy link
Copy Markdown

Thanks for the template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment