aws eks 4

[AWS SecurityHub] AWS EKS Service Account 토큰 탈취시 조치 방법 [T]

해당과정에서 검출된 EKS Account 토큰 탈취에 대해 조치를 취해보겠다. [AWS SecurityHub] AWS GuardDuty를 통한 Runtime 탐지 조사하기 [T]필자의 EKS의 pod 서버는 누군가가 nc 명령어로 reverse shell을 외부로 연결시키는 공격을 당했다.AWS GuardDuty에서 어떻게 탐지되는지 확인해보자. 해당 환경에서 이어서 진행한다. [AWS SecurityHub] AWS Guseongduck.tistory.com공격자는 탈취한 EC2의 자격증명을 이용하여 EKS Pod에서 사용하는 Service Account를 탈취 후 Secret에 대한 접근까지 가능공격자는 Pod에 접근 시 kubectl exec 명령을 사용하여 Pod에 배포된 Container에 She..

[Trouble Shooting] AWS EKS rabbitmq pod 생성시 EBS 볼륨 에러 발생 "default-scheduler Successfully assigned default/rabbitmq-5d797cbcfd-8tv6s to ip-172-31-0-33.ap-northeast-2.compute.internal Warning FailedAttachVolume 70s (x2 over 3m11s) attachdetach-co

해당 에러는 AWS EBS CSI 드라이버가 없을 때 발생한다. 해결법eksctl utils associate-iam-oidc-provider --region --cluster --approveeksctl create addon --name aws-ebs-csi-driver --cluster --region --force

AWS EKS 생성 후 접속하기 (Node 그룹, Pod 생성하기, Pod 접속하기)

AWS EKS 클러스터를 생성하고 해당 EKS에 접속하기 위해서는 2가지 방법이 있다.EC2 접속AWS CLI 접속 필자는 EC2로 쉽게 실습해서 접속하는 방법을 소개합니다.이후 EKS를 생성하고 접속은 물론, Node 그룹을 만들며, Pod까지 생성 후 Pod에 접속까지 해보겠습니다.1) EKS 클러스터 환경 접속을 위한 전용 EC2(Bastion Server) 생성1-1) EC2 생성1) EC2를 생성할 Subnet 선택 -> 작업 -> 서브넷 설정 편집 -> 자동할당 IP 설정 체크(활성화)2) EC2 생성 - AWS Linux 2023 OS 선택 - 생성 1-2) EC2에서 EKS를 사용하기 위한 IAM 역할 생성1) IAM 역할 생성 - AdministratorAccess 정책 추가 후 생성 #..

[Trouble Shooting] AWS EKS Node 그룹 생성시 "One or more Amazon EC2 Subnets of [subnet-00accbc361050c2e5, subnet-034c6dea0f4b412b9] for node group eks-masternode does not automatically assign public IP addresses to instances launched into it. If you want your

AWS EKS 생성시 다음과 같은 에러가 뜬 경우가 있다.One or more Amazon EC2 Subnets of [subnet-00accbc361050c2e5, subnet-034c6dea0f4b412b9] for node group eks-masternode does not automatically assign public IP addresses to instances launched into it. If you want your instances to be assigned a public IP address, then you need to enable auto-assign public IP address for the subnet. See IP addressing in VPC guide: htt..