diff --git a/README.md b/README.md index 5b2f8802..2688d95d 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,12 @@ Set-ExecutionPolicy RemoteSigned -scope CurrentUser kubescape scan framework nsa --exclude-namespaces kube-system,kube-public ``` + +* Scan a running Kubernetes cluster with [`mitre`](https://www.microsoft.com/security/blog/2020/04/02/attack-matrix-kubernetes/) framework +``` +kubescape scan framework mitre --exclude-namespaces kube-system,kube-public +``` + * Scan local `yaml`/`json` files before deploying ``` kubescape scan framework nsa *.yaml diff --git a/scapepkg/exceptions/exceptionprocessor.go b/scapepkg/exceptions/exceptionprocessor.go index eb0528b0..68ec5229 100644 --- a/scapepkg/exceptions/exceptionprocessor.go +++ b/scapepkg/exceptions/exceptionprocessor.go @@ -98,7 +98,7 @@ func hasException(designator *armotypes.PortalDesignator, workload k8sinterface. return false // if designators are empty } - if cluster != "" && cautils.ClusterName != "" && regexCompare(cluster, cautils.ClusterName) { // TODO - where do we receive cluster name from? + if cluster != "" && cautils.ClusterName != "" && !regexCompare(cluster, cautils.ClusterName) { // TODO - where do we receive cluster name from? return false // cluster name does not match }