🇰🇷 한글 설명
Rundeck의 커뮤니티 및 엔터프라이즈 Docker 이미지에 사전 생성된 SSH 키 쌍이 포함되어 있어 발생하는 보안 취약점입니다. 만약 이 공개 키가 원격 호스트의 authorized_keys 파일에 복사되었다면, 노출된 개인 키를 가진 누구나 해당 호스트에 접근할 수 있습니다.
💡 쉬운 설명
Rundeck이라는 프로그램의 설치 이미지 안에 미리 만들어진 '마스터 열쇠'가 들어있었습니다. 만약 이 열쇠를 다른 컴퓨터에 등록해 두었다면, 열쇠를 손에 넣은 누구나 그 컴퓨터에 마음대로 들어올 수 있는 위험이 있습니다.
🇺🇸 원문 (English)
Rundeck is an open source automation service with a web console, command line tools and a WebAPI. Rundeck community and rundeck-enterprise docker images contained a pre-generated SSH keypair. If the id_rsa.pub public key of the keypair was copied to authorized_keys files on remote host, those hosts would allow access to anyone with the exposed private credentials. This misconfiguration only impacts Rundeck Docker instances of PagerDuty® Process Automation On Prem (formerly Rundeck) version 4.0 and earlier, not Debian, RPM or .WAR. Additionally, the id_rsa.pub file would have to be copied from the Docker image filesystem contents without overwriting it and used to configure SSH access on a host. A patch on Rundeck's `main` branch has removed the pre-generated SSH key pair, but it does not remove exposed keys that have been configured. To patch, users must run a script on hosts in their environment to search for exposed keys and rotate them. Two workarounds are available: Do not use any pre-existing public key file from the rundeck docker images to allow SSH access by adding it to authorized_keys files and, if you have copied the public key file included in the docker image, remove it from any authorized_keys files.
📍 영향받는 시스템
Rundeck Docker images (version 4.0 and earlier)
⚔️ 공격 벡터
노출된 Docker 이미지 내의 id_rsa 개인 키를 사용하여 인증된 원격 호스트에 SSH 접속
🛡️ 대응 방법
Docker 이미지 내의 공개 키를 사용하지 않도록 하고, 이미 사용 중인 경우 해당 키를 모든 호스트의 authorized_keys에서 제거 및 키 교체(Rotation) 수행
🔧 검증 코드
출력된 이미지 목록 중 버전이 4.0 이하인 Rundeck Docker 이미지가 있는지 확인합니다.
docker images | grep rundeck