
제공된 절차에 설명된 CVE-2026-45585 YellowKey BitLocker/WinRE 우회 완화를 위한 Intune 수정 패키지입니다.
이 패키지는 오프라인 WinRE 이미지의 BootExecute 값에서 autofstx.exe를 제거하고 WinRE 등록을 새로 고쳐 BitLocker 신뢰가 다시 설정되도록 합니다.
YellowKey-WinRE-Remediation/
scripts/
Detect-YellowKeyWinRE.ps1
Remediate-YellowKeyWinRE.ps1
.editorconfig
.gitattributes
.gitignore
README.md
수정 패키지에는 다음 설정을 사용하세요.
| 설정 | 값 |
|---|---|
| 감지 스크립트 | scripts/Detect-YellowKeyWinRE.ps1 |
| 수정 스크립트 | scripts/Remediate-YellowKeyWinRE.ps1 |
| 로그온된 자격 증명을 사용하여 이 스크립트 실행 | 아니요 |
| 스크립트 서명 확인 적용 | 아니요 (스크립트에 서명하지 않은 경우) |
| 64비트 PowerShell에서 스크립트 실행 | 예 |
감지:
reagentc.exe /mountre를 사용하여 WinRE를 마운트합니다.SYSTEM 하이브를 임시 HKLM 이름으로 로드합니다.ControlSet###\Control\Session Manager\BootExecute 값에서 autofstx.exe를 확인합니다.autofstx.exe가 발견되거나 감지를 안전하게 완료할 수 없으면 1로 종료합니다.0으로 종료합니다.수정:
reagentc.exe /mountre를 사용하여 WinRE를 마운트합니다.SYSTEM 하이브를 로드합니다.autofstx.exe를 포함하는 BootExecute 항목을 제거합니다.BootExecute를 쓸 때 명시적으로 RegistryValueKind.MultiString을 사용합니다.BootExecute 쓰기를 거부합니다. 필터링 결과 비어 있으면 Windows 기본값인 autocheck autochk *를 씁니다.reagentc.exe /unmountre /commit으로 WinRE 이미지를 커밋합니다.reagentc.exe /disable 및 reagentc.exe /enable을 실행하여 WinRE 등록과 BitLocker 신뢰를 새로 고칩니다.스크립트는 의도적으로 보수적으로 설계되었습니다.
BootExecute 값이 아닌 오프라인 WinRE 이미지만 편집합니다.C:\ProgramData\IntuneRemediations\YellowKey에 기록됩니다.감지 로그:
C:\ProgramData\IntuneRemediations\YellowKey\Detect.log
수정 로그:
C:\ProgramData\IntuneRemediations\YellowKey\Remediate.log
수정을 실행하지 않고 구문 유효성 검사 실행:
$paths = @(
'.\scripts\Detect-YellowKeyWinRE.ps1',
'.\scripts\Remediate-YellowKeyWinRE.ps1'
)
foreach ($path in $paths) {
$tokens = $null
$errors = $null
[System.Management.Automation.Language.Parser]::ParseFile($path, [ref] $tokens, [ref] $errors) | Out-Null
if ($errors.Count -gt 0) {
$errors | Format-Table
throw "Parse failed: $path"
}
}
설치된 경우 Script Analyzer 실행:
Invoke-ScriptAnalyzer -Path .\scripts -Recurse
reagentc.exe /info로 대표 장치에서 WinRE가 정상인지 확인하세요..ps1 파일에 서명하고 서명 확인을 사용하도록 설정하세요.| 스크립트 | 종료 0 | 종료 1 |
|---|---|---|
| 감지 | 규정 준수 또는 WinRE 비활성화/해당 없음 | 취약 또는 감지를 안전하게 완료할 수 없음 |
| 수정 | 수정이 성공적으로 완료됨 | 수정 실패 또는 정리 필요함 |