Why is it wise to block internet traffic on your Kubernetes worker nodes?
Mutha Nagavamsi
Engineering is hard ? I simplify it for you ? You get Tech, Kubernetes, Devops, Cloud & AI updates ? 81361 Friends all socials ? My Email ID → is in the about section ??
Not the entire internet traffic, some trusted URL's should be allowed access. To run your microservices pods.
On our production clusters, we only ALLOW access to trusted public URL's.
Quick note. If you resonate with my work, consider checking out my Youtube and Medium. Appreciate your support. Thank you.
Real-world Kubernetes Security Use case
Threat actors can get access to API Server endpoint. That's bad. I know. The bad guys often find ways to get this. Because it is one of the common ways of compromising an insecure Kubernetes cluster.
Once done, threat actors second step is scheduling a malicious pod on the cluster.
The intent is likely about escaping from malicious container to worker node. This is just one use case. Many things are possible once they launch a malicious pod. Some of them include.
As a part of step 3 the attacker will attempt to download a second stage script from the internet. In some cases, the attacker can even attempt to download scripts from inside the pod too.
Running it means "game over" for us.
With multiple replicas of the malicious pod, this can get us into whole new level of trouble.
领英推荐
And that's where blocking outgoing internet traffic can help.
Stopping outgoing internet access can prevent so many security risks. This will help you prevent further damage.
Blocking internet: Is it a convenient approach? No, not at all.
But it is certainly a proactive approach to secure your cluster.
A wise choice to help you restore hope. To get things back on track if bad things happen. What do you think?
That's it for today.
And here are some of the LinkedIn posts published last week.
Alright, that's it for today.
Hope this is useful. Now, it's time to relax. Happy weekend. A REPOST helps everyone.
Senior Software Engineer | Building developer tooling & infrastructure | Kubernetes expert (CKA certified) | Technical mentor | Writer @ CloudNativeEngineer
9 个月Great article. Any suggestions on how to block Internet traffic? Network policies, Ip tables,... ?
Technical Lead at Rakuten India
9 个月Mutha Nagavamsi its good to block internet to all nodes. A good netpol also ensures the security between namespaces and applications. How about using proxy for connecting internet ? Anomaly detection and alerting is must to go with all clusters compromising time and cost for these will result in security issues.