百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

managed-kubernetes-auditing-toolkit

> 云原生
开源

一站式审计工具包,用于识别受管理 Kubernetes 环境中的常见安全问题。目前支持 Amazon EKS。

385 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一站式审计工具包,用于识别受管理 Kubernetes 环境中的常见安全问题。目前支持 Amazon EKS。

Managed Kubernetes Auditing Toolkit (MKAT)

MKAT is an all-in-one auditing toolkit for identifying common security issues within managed Kubernetes environments. It is focused on Amazon EKS at the moment, and will be extended to other managed Kubernetes environments in the future.

Features:

  • Identify trust relationships between K8s service accounts and AWS IAM roles - supports both IAM Roles for Service Accounts (IRSA), and Pod Identity, released on November 26 2023.
  • Find hardcoded AWS credentials in K8s resources.
  • Test if pods can access the AWS Instance Metadata Service (IMDS).

Installation

bash
brew tap datadog/mkat https://github.com/datadog/managed-kubernetes-auditing-toolkit
brew install datadog/mkat/managed-kubernetes-auditing-toolkit
mkat version

... or use a pre-compiled binary.

Then, make sure you are authenticated against your cluster, and to AWS. MKAT uses your current AWS and kubectl authentication contexts.

bash
aws eks update-kubeconfig --name 

In particular, you might need to set your AWS_REGION and AWS_PROFILE environment variables, if using profiles.

Features

Identify trust relationships between K8s service accounts and AWS IAM roles

MKAT can identify the trust relationships between K8s service accounts and AWS IAM roles, and display them in a table or as a graph. It currently supports:

  • IAM Roles for Service Accounts, a popular mechanism to allow pods to assume AWS IAM roles by exchanging a Kubernetes service account token for AWS credentials through the AWS STS API (AssumeRoleWithWebIdentity).

  • EKS Pod Identity, another newer mechanism that works in a similar way, but is easier to set up.

MKAT works by analyzing both the IAM roles in the AWS account, and the K8s service accounts in the cluster, and then matching them together based on these two mechanisms.

…

It can also generate a dot output for graphic visualization:

bash
$ mkat eks find-role-relationships --output-format dot --output-file roles.dot
$ dot -Tpng -O roles.dot
$ open roles.dot.png

Find hardcoded AWS credentials in K8s resources

MKAT can identify hardcoded AWS credentials in K8s resources such as Pods, ConfigMaps, and Secrets. It has a low false positive rate, and only alerts you if it finds both an AWS access key ID and a secret access key in the same Kubernetes resource. It's also able to work with unstructured data, i.e. if you have a ConfigMap with an embedded JSON or YAML document that contains AWS credentials.

…

Test if pods can access the AWS Instance Metadata Service (IMDS)

Pods accessing the EKS nodes Instance Metadata Service is a common and dangerous attack vector that can be used to escalate privileges. MKAT can test if pods can access the IMDS, both through IMDSv1 and IMDSv2.

It tests this by creating two temporary pods (one for IMDSv1, one for IMDSv2) that try to access the IMDS, and are then deleted.

…

FAQ

How does MKAT compare to other tools?

Tool Description
kube-bench kube-bench is a general-purpose auditing tool for Kubernetes cluster, checking for compliance against the CIS benchmarks
kubiscan kubiscan focuses on identifying dangerous in-cluster RBAC permissions
peirates peirates is a generic Kubernetes penetration testing tool. Although it has a get-aws-token command that retrieve node credentials from the IMDS, it is not specific to managed K8s environments.
botb botb is a generic Kubernetes penetration testing tool. It also has a command to retrieve node credentials from the IMDS, but it is not specific to managed K8s environments.
rbac-police rbac-police focuses on identifying in-cluster RBAC relationships.
kdigger kdigger is a general-purpose context discovery tool for Kubernetes penetration testing. It does not attempt to be specific to managed K8s environments.
kubeletmein kubeletmein is specific to managed K8s environments. It's an utility to generate a kubeconfig file using the node's IAM credentials, to then use it in a compromised pod.
hardeneks hardeneks is specific to managed K8s environments, but only for EKS. It identifies issues and lack of best practices inside of the cluster, and does not focus on cluster to cloud pivots.

What permissions does MKAT need to run?

See this page for a detailed list of the permissions MKAT needs to run.

Roadmap

We currently plan to:

  • Add a feature to identify EKS pods that are exposed through an AWS load balancer, through the aws-load-balancer-controller
  • Add support for GCP GKE
  • Allow scanning for additional types of cloud credentials

Acknowledgements

Thank you to Rami McCarthi and Mikail Tunç for their early testing and actionable feedback on MKAT!

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goaws-eksaws-securityekskubernetes

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类云原生
定价开源

> 相关工具

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,