Microsoft Windows Print Spooler 원격 코드 실행(RCE) 취약점 (PrintNightmare, CVE-2021-34527) 분석 및 대응 가이드
실무자 핵심 요약 (Executive Summary)
SECOPS ASSESSMENTWindows 7, 8.1, 10, 11 및 Windows Server 2008, 2012, 2016, 2019, 2022 등 Windows Print Spooler 서비스가 활성화된 시스템
인증된 원격 공격자가 SYSTEM 권한으로 임의 코드를 실행하여 도메인 컨트롤러를 포함한 인프라 전체를 장악할 수 있음
공식 누적 보안 패치를 적용하고, 불필요한 Print Spooler 서비스를 비활성화하거나 Point and Print 레지스트리 설정을 강화해야 함
영향받는 제품 및 버전 범위
권장 패치 및 임시 완화(Workaround) 가이드
패치 및 우회 명령어1. 공식 보안 패치 및 버전 업그레이드 명령어
Microsoft에서 제공하는 최신 누적 보안 업데이트를 적용해야 합니다. Windows Update 서비스를 통해 패치를 설치하거나, PowerShell을 사용하여 즉각적인 업데이트를 강제 실행할 수 있습니다.
# Windows Update 모듈 설치 및 최신 보안 패치 확인/설치
Install-Module PSWindowsUpdate -Force -Verbose
Get-WindowsUpdate -AcceptAll -Install -AutoReboot2. 패치 전 임시 완화(Workaround) 및 접근 제어 설정
패치 적용이 불가능한 시스템의 경우, Print Spooler 서비스를 완전히 중지하고 비활성화하여 공격 경로를 차단해야 합니다. 또한 Point and Print 관련 취약한 레지스트리 설정을 제거해야 합니다.
# Print Spooler 서비스 중지 및 시작 유형을 '사용 안 함'으로 설정
Stop-Service -Name 'Spooler' -Force
Set-Service -Name 'Spooler' -StartupType Disabled
# Point and Print 취약한 레지스트리 설정 방어 (0 또는 정의되지 않음으로 설정)
$RegistryPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint'
if (-not (Test-Path $RegistryPath)) {
New-Item -Path $RegistryPath -Force
}
New-ItemProperty -Path $RegistryPath -Name 'NoWarningNoElevationOnInstall' -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path $RegistryPath -Name 'UpdatePromptSettings' -Value 0 -PropertyType DWORD -Force3. 침해 흔적(IoC) 및 로그·버전 점검 스크립트
Print Spooler가 비정상적인 경로에서 DLL을 로드했는지 여부와 서비스 상태를 점검하는 스크립트입니다.
# Print Spooler 서비스 상태 확인
Get-Service -Name 'Spooler'
# 이벤트 뷰어를 통한 드라이버 로드 관련 의심스러운 로그 검색 (Event ID 316, 808 등)
Get-WinEvent -LogName 'Microsoft-Windows-PrintService/Admin' -ErrorAction SilentlyContinue |
Where-Object { $_.Id -eq 316 -or $_.Id -eq 808 } |
Select-Object TimeCreated, Id, Message | Out-GridView -Title 'Suspicious Print Spooler Events'패치 재부팅 전까지 서버와 엔드포인트를 노리는 커널 권한 상승(LPE) 공격을 AI 행위 탐지로 차단하세요
Windows 및 Linux 서버의 긴급 OS 패치에는 점검 창(Maintenance Window)이 필요합니다. 패치 전까지 비정상 프로세스 생성과 메모리 악용을 실시간으로 격리하세요.
취약점 발생 원리 및 공격 메커니즘
1. 취약점 개요 및 발생 원인 (Root Cause)
본 취약점(CVE-2021-34527, 일명 PrintNightmare)은 Windows Print Spooler 서비스가 권한이 부여된 파일 작업(Privileged File Operations)을 부적절하게 수행할 때 발생하는 원격 코드 실행(RCE) 및 권한 상승 취약점입니다. Windows 인쇄 시스템의 드라이버 설치 메커니즘인 RpcAddPrinterDriverEx() 함수가 드라이버 파일의 경로와 유효성을 검증하는 과정에서 논리적 결함이 존재하여, 일반 도메인 사용자 권한을 가진 공격자가 악성 DLL 파일을 드라이버로 위장하여 시스템에 로드할 수 있도록 허용합니다.
2. 공격 메커니즘 및 익스플로잇 시나리오
공격자는 먼저 대상 시스템(예: Active Directory 도메인 컨트롤러 또는 구성원 서버)에 대해 유효한 일반 사용자 자격 증명을 획득합니다. 이후 RPC(Remote Procedure Call) 프로토콜을 통해 Print Spooler 서비스에 연결한 뒤, 악성 페이로드가 담긴 DLL 파일을 네트워크 공유(SMB)를 통해 전달합니다. Spooler 서비스는 이 요청을 처리하는 과정에서 적절한 권한 검증 없이 SYSTEM 권한으로 해당 DLL을 로컬 디렉터리(C:\Windows\System32\spool\drivers\...)로 복사하고 실행(LoadLibrary)하게 됩니다. 이로 인해 공격자는 대상 서버에서 즉각적으로 최고 권한(SYSTEM)을 획득하게 됩니다.
3. 비즈니스 및 인프라 파급 영향
이 취약점은 Active Directory(AD) 환경에서 치명적인 위협으로 작용합니다. 도메인 컨트롤러(DC)는 기본적으로 Print Spooler 서비스가 활성화되어 있는 경우가 많아, 공격자가 일반 사용자 계정 하나만 탈취하더라도 단 몇 초 만에 전체 도메인 관리자(Domain Admin) 권한을 장악할 수 있습니다. 이는 기업 내부망 전체의 데이터 유출, 랜섬웨어 유포, 백도어 설치 등 비즈니스 연속성을 완전히 마비시키는 결과로 이어질 수 있습니다.
공식 보안 권고문 및 참조 링크
A remote code execution vulnerability exists when the Windows Print Spooler service improperly performs privileged file operations. An attacker who successfully exploited this vulnerability could run arbitrary code with SYSTEM privileges. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. UPDATE July 7, 2021: The security update for Windows Server 2012, Windows Server 2016 and Windows 10, Version 1607 have been released. Please see the Security Updates table for the applicable update for your system. We recommend that you install these updates immediately. If you are unable to install these updates, see the FAQ and Workaround sections in this CVE for information on how to help protect your system from this vulnerability. In addition to installing the updates, in order to secure your system, you must confirm that the following registry settings are set to 0 (zero) or are not defined (Note: These registry keys do not exist by default, and therefore are already at the secure setting.), also that your Group Policy setting are correct (see FAQ): HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint NoWarningNoElevationOnInstall = 0 (DWORD) or not defined (default setting) UpdatePromptSettings = 0 (DWORD) or not defined (default setting) Having NoWarningNoElevationOnInstall set to 1 makes your system vulnerable by design. UPDATE July 6, 2021: Microsoft has completed the investigation and has released security updates to address this vulnerability. Please see the Security Updates table for the applicable update for your system. We recommend that you install these updates immediately. If you are unable to install these updates, see the FAQ and Workaround sections in this CVE for information on how to help protect your system from this vulnerability. See also KB5005010: Restricting installation of new printer drivers after applying the July 6, 2021 updates. Note that the security updates released on and after July 6, 2021 contain protections for CVE-2021-1675 and the additional remote code execution exploit in the Windows Print Spooler service known as “PrintNightmare”, documented in CVE-2021-34527.
자주 묻는 실무 질문 (FAQ — CVE-2021-34527)
FAQQ1. CVE-2021-34527 취약점의 위험도와 실제 악용 가능성은 어느 정도입니까?
CVE-2021-34527의 기본 점수는 CVSS 8.8 (HIGH)이며, 향후 30일 내 실제 악용 확률을 나타내는 EPSS 점수는 99.8%입니다. 현재 미국 CISA KEV(실제 악용이 확인된 취약점 카탈로그)에 등재되어 있으므로 최우선 긴급 패치가 필요합니다.
Q2. CVE-2021-34527에 영향을 받는 벤더와 제품은 무엇입니까?
주요 영향 벤더는 microsoft이며, 대상 컴포넌트는 windows, windows_server입니다. 상세 영향 범위: Windows Print Spooler 서비스가 활성화된 모든 Windows 및 Windows Server 운영체제 버전 (패치 미적용 상태)
Q3. 서버 재기동이나 정규 패치 전 즉시 적용할 수 있는 완화 조치(Workaround)는 무엇입니까?
[권장 조치] 공식 누적 보안 패치를 적용하고, 불필요한 Print Spooler 서비스를 비활성화하거나 Point and Print 레지스트리 설정을 강화해야 함 본문의 패치 및 우회 명령어 섹션과 자가 점검 체크리스트를 참고하여 외부 노출 포트를 차단하거나 WAF 탐지 규칙을 선적용하십시오.
CVE-2021-34527 사내 보안 패치 공지문 · CISO 경영진 보고서 초안 자동 생성
클릭 한 번으로 사내 이메일·노션·결재 문서에 바로 붙여넣을 수 있는 공식 보고서 양식을 생성합니다.
🔗 함께 점검해야 할 동일 벤더·스택 연관 취약점 (microsoft)
동일 카테고리 전체 보기 →Windows IKE 확장 모듈 이중 해제(Double Free) 취약점 원격 코드 실행 경보 (CVE-2026-33824)
[영향 대상] Windows 및 Windows Server 운영체제에서 실행되는 IKE(Internet Key Exchange) 확장 서비스
Windows 원격 액세스 연결 관리자(RasMan) Null 포인터 역참조 로컬 서비스 거부(DoS) 취약점 (CVE-2026-21525) 분석 및 대응 가이드
[영향 대상] Windows Remote Access Connection Manager(RasMan) 서비스를 사용하는 Windows 및 Windows Server 운영체제 전반.
Windows ALPC 힙 기반 버퍼 오버플로우 권한 상승 취약점 (CVE-2026-85880) 긴급 보안 권고
[영향 대상] Windows 운영체제 전반의 로컬 인증된 사용자 계정
Windows Update Stack 링크 확인 오류로 인한 로컬 권한 상승 취약점 (CVE-2026-81963) 분석 및 대응 가이드
[영향 대상] Windows Update Stack을 사용하는 Microsoft Windows 운영체제 전반
일간 취약점 브리핑 및 긴급 Zero-Day 경보 구독
보안 실무자와 인프라·백엔드 엔지니어를 위해 매일 아침 주요 취약점과 패치 우선순위를 요약해 발송합니다.