Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
YellowKey-WinRE-Remediation — Intune Remediation package for the CVE-2026-45585 YellowKey BitLocker/WinRE bypass mitigation described in the provided procedure. This package removes `autofstx.exe` from the offline WinRE image's `BootExecute` value and refreshes WinRE registration so BitLocker trust is reestablished. | Kitploit
도구/GitHubGitHub/everest90909/yellowkey-winre-remediation
Defensive ToolsVulnerability AnalysisScripting & AutomationConfiguration AuditingIncident Response
GitHubeverest90909/yellowkey-winre-remediation

YellowKey-WinRE-Remediation

저장소 보기

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →

소개

Intune Remediation package for the CVE-2026-45585 YellowKey BitLocker/WinRE bypass mitigation described in the provided procedure. This package removes `autofstx.exe` from the offline WinRE image's `BootExecute` value and refreshes WinRE registration so BitLocker trust is reestablished.

공유
13개월 전아직 검토되지 않음

YellowKey WinRE 수정

제공된 절차에 설명된 CVE-2026-45585 YellowKey BitLocker/WinRE 우회 완화를 위한 Intune 수정 패키지입니다.

이 패키지는 오프라인 WinRE 이미지의 BootExecute 값에서 autofstx.exe를 제거하고 WinRE 등록을 새로 고쳐 BitLocker 신뢰가 다시 설정되도록 합니다.

내용

root@kitploit:~
YellowKey-WinRE-Remediation/
  scripts/
    Detect-YellowKeyWinRE.ps1
    Remediate-YellowKeyWinRE.ps1
  .editorconfig
  .gitattributes
  .gitignore
  README.md

Intune 설정

수정 패키지에는 다음 설정을 사용하세요.

설정값
감지 스크립트scripts/Detect-YellowKeyWinRE.ps1
수정 스크립트scripts/Remediate-YellowKeyWinRE.ps1
로그온된 자격 증명을 사용하여 이 스크립트 실행아니요
스크립트 서명 확인 적용아니요 (스크립트에 서명하지 않은 경우)
64비트 PowerShell에서 스크립트 실행예

동작

감지:

  • 상승된 로컬 관리자 또는 SYSTEM 컨텍스트가 필요합니다.
  • 64비트 PowerShell이 필요합니다.
  • reagentc.exe /mountre를 사용하여 WinRE를 마운트합니다.
  • 오프라인 WinRE SYSTEM 하이브를 임시 HKLM 이름으로 로드합니다.
  • 모든 오프라인 ControlSet###\Control\Session Manager\BootExecute 값에서 autofstx.exe를 확인합니다.
  • 하이브를 언로드하고 WinRE 마운트를 폐기합니다.
  • autofstx.exe가 발견되거나 감지를 안전하게 완료할 수 없으면 1로 종료합니다.
  • 취약한 항목이 없으면 0으로 종료합니다.

수정:

  • 감지와 동일한 환경 보호 조치를 수행합니다.
  • WinRE가 비활성화되어 있고 활성화할 수 있으면 먼저 WinRE를 활성화합니다.
  • reagentc.exe /mountre를 사용하여 WinRE를 마운트합니다.
  • 오프라인 WinRE SYSTEM 하이브를 로드합니다.
  • 모든 오프라인 ControlSet에서 autofstx.exe를 포함하는 BootExecute 항목을 제거합니다.
  • BootExecute를 쓸 때 명시적으로 RegistryValueKind.MultiString을 사용합니다.
  • 빈 BootExecute 쓰기를 거부합니다. 필터링 결과 비어 있으면 Windows 기본값인 autocheck autochk *를 씁니다.
  • 커밋하기 전에 하이브를 언로드합니다.
  • reagentc.exe /unmountre /commit으로 WinRE 이미지를 커밋합니다.
  • reagentc.exe /disable 및 reagentc.exe /enable을 실행하여 WinRE 등록과 BitLocker 신뢰를 새로 고칩니다.
  • 실패 시 로드된 하이브와 마운트된 이미지를 정리합니다.

보호 장치

스크립트는 의도적으로 보수적으로 설계되었습니다.

  • BitLocker 보호기가 직접 일시 중단, 제거 또는 변경되지 않습니다.
  • 수정은 라이브 OS BootExecute 값이 아닌 오프라인 WinRE 이미지만 편집합니다.
  • 임시 하이브 이름과 마운트 경로에는 충돌을 방지하기 위한 임의 접미사가 포함됩니다.
  • 실패 시 정리에서는 임시 하이브를 언로드하고 WinRE 마운트를 폐기합니다.
  • 로그는 C:\ProgramData\IntuneRemediations\YellowKey에 기록됩니다.

로그

감지 로그:

root@kitploit:~
C:\ProgramData\IntuneRemediations\YellowKey\Detect.log

수정 로그:

root@kitploit:~
C:\ProgramData\IntuneRemediations\YellowKey\Remediate.log

로컬 검증

수정을 실행하지 않고 구문 유효성 검사 실행:

root@kitploit:~
$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 실행:

root@kitploit:~
Invoke-ScriptAnalyzer -Path .\scripts -Recurse

운영 참고 사항

  • 광범위한 배포 전에 소규모 파일럿 링에서 테스트하세요.
  • reagentc.exe /info로 대표 장치에서 WinRE가 정상인지 확인하세요.
  • WinRE가 없거나 비정상인 장치는 별도로 수정해야 합니다.
  • 조직에서 Intune 스크립트에 서명하는 경우 두 .ps1 파일에 서명하고 서명 확인을 사용하도록 설정하세요.
  • 수정은 필요할 때만 할당하고, 그 후에는 규정 준수 추적을 위해 감지/보고에 의존하세요.

종료 코드

스크립트종료 0종료 1
감지규정 준수 또는 WinRE 비활성화/해당 없음취약 또는 감지를 안전하게 완료할 수 없음
수정수정이 성공적으로 완료됨수정 실패 또는 정리 필요함
도구 다운로드