//: MD content is automatically formatted; be sure to follow standard MD writing conventions. //: A table of contents is generated automatically. Follow the levels marked below and be sure to remove any extras. //: Please modify the environment description fields to make the content easier to understand and reproduce. //: ****************************************************
Environment Description
| IP | HOSTNAME | NOTE |
|---|---|---|
| 10.10.10.91 | N/A | CentOS |
Environment Preparation
Install kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x ./kubectl
mv kubectl /usr/bin/kubectl
Enumerate kubernet secret Objects
- A
Kubernetes Secretis an object used to let users store and manage sensitive information, such as passwords and connection strings inkubernetes. ASecretcan be used through references in apodconfiguration. An attacker with permission to retrieve data from theAPI Server(for example, by using apodservice account) can access sensitive information such as credentials for various services.
Enumerate Namespaces Currently Used in the Kubernetes Cluster
kubectl get namespace
- The result is shown below:

Obtain secret Objects in a Namespace
# 这里尝试获取kube-system下的secret对象
kubectl get secrets -n kube-system
- The result is shown below:
