Answers for the TryHackMe Cluster Hardening Room

The TryHackMe Cluster Hardening Room is a free room from TryHackMe that is also part of their DevSecOps learning path. It is available for everyone at: https://tryhackme.com/r/room/clusterhardening

1.1 What lives at the highest level of Kubernetes architecture and is comprised of all lower-level components?

Answer: Kubernetes cluster

1.2 What mindset is always beneficial in the world of cyber?

Answer: Security-first

2.1 What standards are used to check a clusters’ level of security?

Answer: security benchmarks

2.2 What CIS security benchmark ensures anonymous traffic is disallowed? 

Answer: 4.2.1

2.3 What open-source tool can perform automated security assessments on a Kubernetes cluster?

Answer: Kube-bench

3.1 Which port does Kubelet serve the kubelet-api and allow for full access?

Answer: 10250

3.2 What value has to be set to “false” to ensure unauthorised traffic is locked down?

Answer: authentication:anonymous:enabled

3.3 One method of kubelet request authentication is “X509 Client Certificate Authentication”, what is the other?

Answer: API Bearer Token

4.1 Which component acts as both a ‘Server’ and a ‘Client’?

Answer: Kube-apiserver

4.2 Which CIS security benchmarks would TLS encryption implement?

Answer: 1.2.24 – 27

5.1 Which type of admission controller can modify the object related to the request they admit?

Answer: Mutating

5.2 Which built-in admission controller helps avoid a problem where the Kubernetes API gets flooded with requests to store new events?

Answer: EventRateLimit

5.3 What can be used if your organisation wants to enforce custom security standards or bespoke pod deployment checks specific to its organisation?

Answer: Admission Controller Webhooks

5.4 What are the names of the two built-in admission controllers that call upon a defined admission controller webhook? Format: Answer1, Answer2

Answer: ValidatingAdmissionWebhook, MutatingAdmissionWebhook

6.1 What Kubernetes resource is used to restrict pod-to-pod communication?

Answer: NetworkPolicy

6.2 If we had an app running with the label “database”, what field would we put this label in if we wanted to restrict traffic to this app?

Answer: spec:PodSelector:matchLabels:app

7.1 What is the Encoded Policy?

Answer:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.