Skip to content

v2.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Nov 15:43

Приватность Windows 11 — v2.1.0

Что нового

Исправления безопасности и надёжности (по итогам аудита)

  • Окно больше не собирает командную строку движка из данных. Раньше имя раздела реестра для запрета доступа к камере, микрофону или геолокации уходило в неё как есть, а в нём может быть кавычка (завести такой раздел в своём профиле может любая программа пользователя): остаток строки движок разбирал как свои команды и выполнял их с правами администратора. Так же уходил и путь к рабочему столу — при каждом запуске. Теперь командная строка движка постоянная, а операция и её данные идут ему отдельным запросом через стандартный ввод: движок сам проверяет запрос по белому списку операций и форму каждого значения и при любой ошибке не делает ничего. Кавычка или «-Ключ» внутри данных остаются данными. Те же запросы использует и тихий режим (--profile, --audit).
  • Запрет доступа к датчику снова работает: движок принимает настоящие ключи ConsentStore — приложения из Store и обычные программы (NonPackaged), в том числе с кириллицей в пути, — и отвергает всё остальное (пустые сегменты, «..», корни реестра, сетевые пути), не трогая реестр.
  • Резервная копия реестра больше не кладётся на рабочий стол: программа хранит её у себя, в C:\ProgramData\Win11Privacy\backups, где менять её могут только администраторы, а вернуть её можно на странице «Изменения» («Из резервной копии»); «Открыть папку резервных копий» открывает это хранилище. Копия выгружается, проверяется и подписывается в защищённой рабочей папке и переносится в хранилище целиком, одним переименованием. Раньше reg.exe писал прямо в папку на рабочем столе, и файл можно было подменить между выгрузкой и подписью. У списка подписей теперь своя подпись: убрать из копии файл незаметно нельзя. В хранилище остаются самая первая копия и 20 последних. Копии прежних версий на рабочем столе по-прежнему видны в списке и возвращаются.
  • Возврат из копии: если в папке есть лишний, недостающий или изменённый файл, ссылка или чужая ветка реестра, не импортируется ничего — раньше импортировалось «всё, кроме подозрительного». Подпись сверяется ещё раз прямо перед импортом, пока файл открыт без права записи для других. Копии прежних версий со списком подписей возвращаются как раньше, а список подписей прежнего вида у копии, сделанной этой версией, считается подменой. Если reg.exe не принял часть файлов, окно пишет «Готово, с ошибками», а не «Готово».
  • Политики Firefox (policies.json) записываются одним действием: во временный файл рядом, с проверкой и заменой целиком. Раньше оборванная запись могла оставить файл пустым и стереть все политики, в том числе корпоративные. Кириллица в чужих политиках больше не портится при записи, а двое пишущих одновременно не теряют правки друг друга: у окна и у задач автозащиты (от имени системы) теперь один общий замок — раньше при ошибке открытия замка каждый брал свой и они могли писать одновременно. Замок, заранее заведённый чужой программой, не используется: запись отменяется.
  • Запрет доступа к датчику сообщает о неудаче честно: код выхода совпадает с ответом движка, и окно считает успехом только «ok» вместе с кодом 0.
  • Запрет выхода в сеть отдельной программе учитывает полный путь к ней, а не только имя файла: две программы с одинаковым именем в разных папках больше не мешают друг другу.
  • Честные коды возврата: «Вернуть всё» и установка стража, слежения и уведомлений сообщают об ошибке, если она была, а не всегда «Готово».
  • Папка карантина создаётся сразу с правами только для системы и администраторов.
  • Проверка прав папок и файлов учитывает и унаследованные права: раньше папка, открытая обычным пользователям через родительскую, считалась защищённой. Проверяются и запреты, право удалять вложенное, менять права и владельца, а для папки данных и папки Firefox — весь путь до них: если папку выше может переименовать не администратор, программа ей не доверяет.

Журнал

  • Журнал на странице «О программе» читается легче: название действия и разделы движка — полужирными заголовками с пустой строкой перед ними, вместо полос из чёрточек; итог («Готово.» или ошибка) выделен; текст больше не прижат к левому краю поля.

Окно при крупном масштабе Windows (125–200 %)

  • Окно всегда открывается одного вида под ваш экран — просторным, чтобы описания настроек и строки журнала помещались, но не больше экрана, — и всё в нём помещается: страницы перестраиваются под ширину окна. Размер из прошлого запуска больше не берётся: он хранился в пикселях и после смены масштаба Windows давал окно то такое, где всё сбивалось в кучу, то огромное.
  • «Наблюдение → Сеть»: описание больше не обрезается — карточка растёт по тексту, кнопки переносятся под него, как на других страницах.
  • Плитки со сводкой не разваливаются на 3 + 1: в узком окне они сужаются и остаются в одном ряду, а если не влезают и так — встают ровно, 2 × 2.
  • «Сбор данных» и «Хронология» в невысоком окне (например, 1366 × 768 при 125 %): кнопка «Сохранить отчёт» стоит в общем ряду кнопок, а график делит высоту со списком — список под ними больше не сжимается в полоску. Боковая панель в узком окне сворачивается до значков раньше и оставляет место страницам.
  • Кнопки компактнее — с полями, как у кнопок Windows 11, — и всегда в один ряд: на «Автозащите» все семь кнопок теперь умещаются в окне обычного размера. Если окно совсем узкое, кнопки, которым не хватило места, уходят в меню «Ещё ▾» в конце ряда, а не на вторую строку.
  • «О программе»: кнопки стоят в один ряд (раньше переносились, хотя места хватало), полоса прокрутки тёмная, как на остальных страницах.
  • Поиск на «Приложениях», «Автозагрузке» и «Изменениях» стоит вровень с карточками и одной ширины с поиском на «Настройках».
  • В окне, сжатом почти до минимума, сводка из двух рядов плиток прячется — список под ней остаётся виден.
  • Сборка проверяет все страницы ещё и с крупным шрифтом (как при 150 %) и ловит текст, обрезанный по высоте, и список, сжатый в полоску. Раньше страницы проверялись только при 100 %, и такие ошибки проходили.

Установщик

  • Появился установщик Win11Privacy-Setup.exe на русском и английском (язык — по Windows). В мастере на выбор: обычная установка — в Program Files, с ярлыком в «Пуске» и удалением через «Параметры → Приложения» — или портативная версия: программа распаковывается в выбранную папку (например, на флешку) вместе с portable.txt, все её данные хранятся там же, а в системе ничего не регистрируется.
  • При удалении задачи автозащиты и слежения убираются вместе с программой. Перед удалением установщик напоминает, что применённые настройки останутся в Windows и как вернуть всё как было, а после — спрашивает, стереть ли данные программы (по умолчанию — нет: без журнала изменений вернуть настройки будет нечем).
  • Открытую программу установщик не меняет «на ходу» — попросит её закрыть.
  • Лицензия в русском мастере — на русском (перевод; юридическую силу имеет английский текст, он ставится вместе с программой). Лишний значок в правом верхнем углу страниц мастера убран.
  • Установщик собирается на GitHub вместе с релизом и там же проверяется по-настоящему: установка, установка поверх, удаление с данными и без, портативная версия. Компилятор Inno Setup закреплён по версии и SHA-256.
  • winget теперь ставит программу установщиком (обычная установка в Program Files), а не отдельным exe. Кто ставил её через winget раньше, удалите старую копию и поставьте заново: winget uninstall N0deZ3r0.Win11Privacy, затем winget install N0deZ3r0.Win11Privacy. Win11Privacy.exe без установки по-прежнему лежит в каждом релизе.

Безопасность: замки, временные файлы, восстановление из копии

  • Замки программы по имени (Global\Win11Privacy-FirefoxPolicies, Global\Win11Privacy-App). Повышенный движок раньше считал «своим» замок, который завела любая обычная программа того же пользователя (у неё тот же SID), а новый замок открывал этому SID полный доступ — такая программа могла взять и держать настоящий замок или переписать его права. Теперь «свои» — только система и администраторы: новый замок заводится с владельцем «Администраторы» и правами только для них, у существующего проверяются владелец и все права (ждать, менять права и владельца, удалять — только им). Чужой замок — отказ записи policies.json сразу и без запасного пути. Окно с чужим объектом на месте своего замка больше не закрывается молча, будто уже запущено, — открывается (данные защищают замки движка). Заранее занять имя по-прежнему можно — это отказ в работе, а не путь к правам.
  • Копия политики аудита (auditpol /backup) больше не пишется во временную папку пользователя: только в свою папку с правами для системы и администраторов — в защищённом корне или в Windows\Temp. Копия читается, только если в папке ровно она, это обычный свежий файл и его владелец — администраторы; иначе политика «не прочиталась», а монитор не включается вслепую.
  • Восстановление из резервной копии идёт по шагам с подписанной записью о ходе: до импорта состояние «до» сохраняется обычной копией в хранилище; каждый файл после reg.exe import сверяется с копией (ветка выгружается заново); итог — «восстановлено», «восстановлено частично» или «не тронуто», код 0 / 2 / 1. Если восстановление оборвалось (закрыли окно, выключили питание), следующий запуск говорит об этом над списком копий; довести — выбрать ту же копию ещё раз, вернуть как было — выбрать снимок «до». Сама программа незаконченный импорт не повторяет. Два восстановления одновременно не идут.
  • Журнал отката, занятый другой программой, больше не читается как отсутствующий. На Windows PowerShell 5.1 ошибка «файл занят другим процессом» после нескольких десятков проверок попадала не в ту ветку обработки, и программа считала файл несуществующим: откат говорил «возвращать нечего», а следующая запись могла затереть историю «как было». Найдено при проверке этого прохода.

Номер устройства (GDID)

  • «Кто сидит за компьютером» определяется только по своему сеансу Windows. Раньше, когда в Windows вошли двое, задачи от имени пользователя и чистка кэша устройств могли уйти второму. Если Windows не ответила, кто вошёл, номер не стирается. Учётные записи Entra ID учитываются и при чистке учётных данных устройства.
  • Сбой чтения хранилища учётных данных (cmdkey) больше не принимается за «учётных данных не осталось».
  • Оборванная смена номера больше не оставляет службы (CDPSvc и другие) остановленными до перезагрузки: стирание записывает на диск, какие службы работали до него, «Вернуть как было» и следующая смена номера запускают их снова, а вкладка «Номер устройства» говорит, что прошлое стирание не закончилось.
  • Отчёт: docs/security/SECURITY_REMEDIATION_REPORT.md (раздел T-1…T-4).

Номер устройства (GDID): аудит и исправления

  • «Передача номера» проверяется по всем трём службам, которые отключает модуль: CDPSvc, CDPUserSvc и DoSvc, — и по копиям CDPUserSvc у каждого вошедшего пользователя (CDPUserSvc_…). Раньше вкладка «Номер устройства» и «Цифровой след» смотрели только CDPSvc и DoSvc, а «службы нет» и «реестр не прочитался» не различали. Теперь у каждой службы — тип запуска словом (отключена, вручную, автоматически, нет на этой системе, не прочиталось), проверка одна на обе страницы, и «закрыта» говорится, только когда прочиталось всё. Если службы отключены, но ещё действует прежнее (служба не остановилась, копия CDPUserSvc заведена до отключения, Windows до перезагрузки помнит прежний тип запуска), плитка пишет «после перезагрузки», а при ошибке чтения — «не проверено».
  • «Копий не нашлось» больше не выдаётся за «номера нет», если часть мест не прочиталась или профили пользователей, которые сейчас не вошли в Windows, не проверялись: и проверка модуля, и стирание отвечают «не проверено». Не прочитавшийся список профилей или подключённых кустов тоже учитывается — раньше это молча давало «проверены все». Автозащита «не проверено» сбитой настройкой не считает и не стирает номер при каждом запуске.
  • Смена номера идёт по шагам с ответом каждого: службы → учётные данные у пользователей → у системы → реестр → кэш платформы подключённых устройств → проверка → службы как были. Проверка теперь идёт, пока службы ещё остановлены: раньше вернувшаяся служба учётных записей Microsoft успевала завести новый номер, и он считался «копией, которую Windows не отдала». Службы возвращаются, даже если посреди стирания случился сбой. Итог — одно из: стёрто, копий не было, частично, не стёрто, Windows не дала, не проверено; успехом считаются только первые два.
  • Служба учётных записей Microsoft (wlidsvc) на время стирания отключается только после записи «как было» в журнал отката. Раньше её тип запуска помнил только сам движок: оборвись он посреди стирания — служба (а с ней вход в учётную запись Microsoft, Магазин, Xbox) осталась бы отключённой навсегда. Теперь её вернёт следующее стирание, «Вернуть как было» или общий откат.
  • Учётные данные «личности» устройства убираются у того, кто сидит за компьютером, и у других пользователей, которые сейчас в Windows. Раньше, если пароль администратора вводил обычный пользователь, чистилось хранилище администратора, а его — нет. Кэш платформы подключённых устройств проверяется в той же папке, которую чистили (раньше — в папке учётной записи администратора).
  • «Вернуть как было»: тип запуска возвращается из журнала только тем службам, которые меняла программа, и если вернуть не вышло (журналу нельзя верить, Windows не дала), это ошибка, а не «программа её не меняла». Службы с автоматическим запуском запускаются сразу; что Windows применит только после перезагрузки или нового входа (например, DoSvc), названо прямо. Автозащита перестаёт следить за номером до возврата, а не после. Возвращается и wlidsvc, оставленная отключённой прерванным стиранием. Повторный возврат ничего не ломает.
  • Смена номера и «Вернуть как было» завершаются кодом 2 («Готово, с ошибками»), если что-то не прошло, — раньше всегда кодом 0. В ответе смены — итог каждого шага.
  • hosts: блоки «серверы каталога устройств» и «запрет выдачи» узнаются по парным меткам. Блок со стёртой закрывающей меткой больше не уносит при снятии строки, которые человек вписал сам, а осиротевшая метка не «открывает» новый блок. Побитый, пустой или повторённый блок не считается стоящим: «Выдача нового: закрыта» говорится, только если блок цел и в нём сервер выдачи, а повторное применение оставляет ровно один блок. Что hosts записался, сверяется сразу: если его тут же изменил антивирус, это ошибка, а не «заблокировано».
  • Запрет выдачи: вход через учётную запись Microsoft проверяется у того, кто сидит за компьютером (по SID), а не у учётной записи из переменной USERNAME. Если проверить, принадлежит ли компьютер организации, не удалось (WMI или реестр не ответили), номер не трогается. Перед запретом программа предупреждает, если на компьютере есть другие учётные записи Microsoft.
  • Отчёт аудита: docs/security/GDID_AUDIT.md.
  • Третий проход аудита. Смена номера начинается только после предварительной проверки, которая ничего не меняет: все места, где лежит номер, прочитались, список профилей пользователей прочитался, и о каждой службе, которую стирание трогает (wlidsvc, CDPSvc, DoSvc, CDPUserSvc и её копии у пользователей), известно, какой у неё тип запуска и работает ли она. Если чего-то из этого нет, не меняется ничего: ни службы, ни реестр. Раньше стирание начиналось и при местах без доступа, ошибки опроса служб глотались, а служба, о которой ничего не узнали, после стирания могла остаться остановленной.
  • Службы на время стирания — как одна операция: запоминается, какими они были, останавливаются только работавшие, и после стирания (на любом пути, и при сбое тоже) запускаются ровно они. Итог сверяется с тем, что было: тип запуска и «работает» проверяются заново, а не считаются по ответу команды запуска. Если тип запуска wlidsvc не прочитался, стирание не начинается (раньше шло дальше с включённой службой).
  • Реестр: стирается ровно то, что нашла опись, — каждое значение и каждая «личность» по отдельности, и каждое удаление проверяется. Раньше удалялась вся ветка DeviceIdentities\production — вместе с историей выдачи (Logs), счётчиками и всем, чего программа не знает. Теперь Logs и чужие значения остаются на месте, «личность» с незнакомым содержимым не удаляется (итог — «частично»), а кэш NegativeCache без доступа — «не проверено», а не «пусто».
  • Кэш платформы подключённых устройств проверяется после чистки своим обходом: по ссылкам (junction) он не ходит, а сама ссылка считается оставшимся; папка без доступа — «не проверено», а не «пусто»; ссылка на месте самой папки не чистится.
  • Пробный запуск смены номера больше не отвечает «успех» всегда: если часть мест не прочиталась или есть профили вне Windows, он говорит, что настоящий запуск полного «стёрто отовсюду» не даст.
  • «Вернуть как было»: служба, которой больше нет, — «нет на этой системе», отказ Windows — «нет доступа», возврат, который не сошёлся, — ошибка; запись журнала остаётся, пока возврат не проверен. Снятие блоков hosts, правила брандмауэра и правка профиля автозащиты теперь тоже проверяются; если хоть одна стадия не прошла, итог — «частично» или «не вернулось», код 2.
  • Смена номера и возврат отдают итог одной формы (wipe / restore.result: статус, сколько найдено, убрано, осталось, не проверено, службы до и после); код выхода берётся из того же итога — окно, журнал работы и код не расходятся.
  • Учётные записи и организация: локальная учётная запись, у которой учётная запись Microsoft подключена только к приложениям, — не «вход через учётную запись Microsoft»; учётные записи Entra ID и профили S-1-12-1-… учитываются. Различаются домен, Entra ID, гибридное подключение (оба сразу), управление (MDM, в том числе OMA-DM) и рабочая учётная запись без управления устройством; что не прочиталось — отказ, а не «домашний компьютер».
  • «Вернуть как было» после перезагрузки с отключёнными службами: тип запуска теперь всегда передаётся и диспетчеру служб. Раньше он менялся только в реестре, диспетчер до перезагрузки помнил «отключена», и CDPSvc не запускалась (ошибка 1058, найдено на тестовой машине). Если Windows не даёт его передать (DoSvc), служба названа «заработает после перезагрузки», а не сбоем.
  • Отчёт третьего прохода: docs/security/GDID_AUDIT_3.md.

Окно

  • «Проверка» не показывает разделы программ, которых нет на компьютере (VS Code, Firefox, Office, Visual Studio, PowerShell 7 / .NET SDK, NVIDIA, Chrome). Раньше они висели с «0 из 3» и тянули вниз общий итог, индекс на «Обзоре», отчёт и код выхода тихой проверки, хотя применить их было нельзя. Теперь такие пункты в счёт не входят, а программы перечислены одной свёрнутой строкой «Не установлены на этом компьютере». Определяются программы так же, как для раздела «Настройки»; если определить не удалось, не скрывается ничего.
  • «Хронология» в невысоком окне (например, экран 1024 × 768 или крупный масштаб) прокручивается целиком. Раньше график сплющивался так, что подписи оси наезжали друг на друга, а список «Что случилось» сжимался меньше чем до двух строк.
  • В журнале перед командой движка стоял непонятный знак вместо дефиса («Команда движка: ?PurgeData»): окно меняло дефисы команды на неразрывные, чтобы ключи не рвались на переносе, а в шрифте журнала (Consolas, Courier New) такого знака нет. Теперь неразрывный дефис ставится, только если он есть в шрифте журнала, иначе остаётся обычный.

What's new

Security and reliability fixes (from the audit)

  • The window no longer builds the engine's command line from data. The registry key name used to deny an app the camera, microphone or location went into it verbatim, and it can contain a quote (any program of the user can create such a key in their profile): the rest of the line was parsed as engine commands and run with administrator rights. The Desktop path went the same way, on every run. Now the engine's command line is constant, and the operation and its data go to it as a separate request on standard input: the engine checks the request against an allowlist of operations and the shape of every value itself, and does nothing if anything is off. A quote or a -Switch inside the data stays data. Silent mode (--profile, --audit) uses the same requests.
  • Denying an app a sensor works again: the engine accepts real ConsentStore keys — Store apps and ordinary programs (NonPackaged), Cyrillic paths included — and rejects everything else (empty segments, "..", registry roots, network paths) without touching the registry.
  • The registry backup is no longer put on the desktop: the program keeps it itself in C:\ProgramData\Win11Privacy\backups, where only administrators can change it, and it is restored from the "Changes" page ("From a backup"); "Open backup folder" opens that store. The backup is exported, checked and signed in a protected work folder and moved into the store whole, in a single rename. reg.exe used to write straight into the desktop folder, where a file could be swapped between export and signing. The signature list now has a signature of its own, so a file cannot be dropped from a backup unnoticed. The store keeps the very first backup and the 20 newest. Backups from earlier versions on the desktop are still listed and restore.
  • Restoring a backup: an extra, missing or changed file, a link or a foreign registry branch in the folder means nothing is imported — it used to import "everything except the suspicious part". The signature is checked again right before the import, while the file is held open without write sharing. Backups from earlier versions with a signature list still restore, while an old-style signature list on a backup made by this version is treated as tampering. If reg.exe rejects some files, the window says "Done, with errors" instead of "Done".
  • Firefox policies (policies.json) are written in one step: to a temporary file next to it, checked, then swapped in whole. An interrupted write could leave the file empty and wipe every policy, corporate ones included. Non-Latin text in other policies is no longer mangled on write, and two writers at once no longer lose each other's changes: the window and the auto-protection tasks (running as SYSTEM) now share one lock — before, when opening the lock failed, each took its own and both could write at the same time. A lock pre-created by another program is not used: the write is cancelled.
  • Denying a sensor reports failure honestly: the exit code matches the engine's answer, and the window counts as success only "ok" together with exit code 0.
  • Blocking a single program from the network now keys on its full path, not just the file name: two programs with the same name in different folders no longer collide.
  • Honest exit codes: "Restore all" and installing the guard, the watches and the notifications report an error when one occurred, instead of always "Done".
  • The quarantine folder is created with a system-and-administrators-only ACL from the start.
  • The check of folder and file permissions now counts inherited rights too: a folder opened to ordinary users through its parent used to pass as protected. Deny entries, the right to delete children and to change permissions or the owner are checked as well, and for the data folder and the Firefox folder the whole path to them: if a folder above can be renamed by a non-administrator, the program does not trust it.

Log

  • The log on the About page is easier to read: the action name and the engine's sections are bold headings with a blank line before them instead of dashed rules, the outcome ("Done." or the error) stands out, and the text no longer hugs the left edge.

The window at large Windows scaling (125–200 %)

  • The window always opens with the same look for your screen — roomy enough for setting descriptions and log lines, but never larger than the screen — and everything in it fits: pages reflow to the window width. The size from the previous run is no longer reused: it was stored in pixels, and after a Windows scaling change it gave either a window with everything crammed together or a huge one.
  • "Observation → Network": the description is no longer cut off — the card grows with the text and the buttons wrap below it, as on the other pages.
  • Summary tiles no longer fall apart as 3 + 1: in a narrow window they get narrower and stay in one row, and if even that does not fit they line up evenly, 2 × 2.
  • "Data collection" and "Timeline" in a short window (e.g. 1366 × 768 at 125 %): the "Save report" button sits in the common button row and the chart shares the height with the list, so the list below no longer shrinks to a strip. In a narrow window the sidebar collapses to icons sooner and leaves room for the pages.
  • Buttons are more compact — with the padding of Windows 11 buttons — and always in one row: on "Auto-protection" all seven buttons now fit in a window of ordinary size. In a very narrow window the buttons that do not fit go into a "More ▾" menu at the end of the row instead of a second line.
  • "About": the buttons stay in one row (they used to wrap although there was room), and the scroll bar is dark, as on the other pages.
  • The search box on "Apps", "Startup" and "Changes" lines up with the cards and has the same width as on "Settings".
  • In a window shrunk almost to its minimum, a two-row summary of tiles hides, so the list below it stays visible.
  • The build now also checks every page with a large font (as at 150 %) and catches text clipped vertically and lists squeezed into a strip. Pages used to be checked at 100 % only, so such errors went through.

Installer

  • A new installer, Win11Privacy-Setup.exe, in English and Russian (following the Windows language). The wizard offers a choice: a regular installation — into Program Files, with a Start menu shortcut and removal in Settings → Apps — or a portable copy: the program is unpacked into a folder of your choice (a USB stick, for example) together with portable.txt, all its data stays there, and nothing is registered in the system.
  • Uninstalling removes the auto-protection and monitoring tasks together with the program. Before removal the uninstaller reminds you that the applied settings stay in Windows and how to put everything back, and afterwards it asks whether to wipe the program data (no by default: without the change journal the settings could no longer be restored).
  • The installer does not change a running program under its feet — it asks you to close it.
  • The Russian wizard shows the licence in Russian (a translation; the English text, installed with the program, is the binding one). The stray icon in the top-right corner of the wizard pages is gone.
  • The installer is built on GitHub together with the release and checked there for real: install, reinstall, uninstall with and without the data, the portable copy. The Inno Setup compiler is pinned by version and SHA-256.
  • winget now installs the program with the installer (a regular installation into Program Files) rather than as a bare exe. If you installed it with winget before, remove the old copy and install again: winget uninstall N0deZ3r0.Win11Privacy, then winget install N0deZ3r0.Win11Privacy. Win11Privacy.exe without installation is still attached to every release.

Security: locks, temporary files, restore from a backup

  • Program locks by name (Global\Win11Privacy-FirefoxPolicies, Global\Win11Privacy-App). The elevated engine used to trust a lock created by any ordinary program of the same user (it has the same SID), and a new lock gave that SID full access, so such a program could take and hold the real lock or rewrite its permissions. Now only SYSTEM and Administrators count: a new lock is created owned by Administrators with access for them only, and for an existing one the owner and every permission are checked (waiting, changing permissions or owner, deleting — only them). A foreign lock means the policies.json write is refused at once, with no fallback. The window no longer quits silently, as if already running, when a foreign object holds its lock name — it opens (the engine's own locks protect the data). Pre-creating the name is still possible: that is a denial of service, not a way to gain rights.
  • The audit policy copy (auditpol /backup) is no longer written to the user's temporary folder, only to a folder of its own with access for SYSTEM and Administrators — in the protected root or in Windows\Temp. The copy is read only if it is the one file in that folder, a regular recent file owned by Administrators; otherwise the policy "could not be read" and the monitor is not switched on blindly.
  • Restoring a registry backup runs in steps with a signed progress record: the state before the restore is saved as an ordinary backup in the store first; every file is verified after reg.exe import (the branch is exported again and compared with the backup); the result is "restored", "partly restored" or "not touched", exit code 0 / 2 / 1. If a restore was interrupted (window closed, power lost), the next run says so above the backup list; to finish it choose the same backup again, to go back choose the "before" snapshot. The program never repeats an unfinished import by itself. Two restores do not run at the same time.
  • An undo journal held open by another program is no longer read as missing. On Windows PowerShell 5.1 the "file is used by another process" error landed in the wrong handler after a few dozen checks and the program treated the file as absent: a rollback said "nothing to restore", and the next write could overwrite the "before" history. Found while verifying this pass.

Device ID (GDID)

  • "Who is at the computer" is decided from the engine's own Windows session only. When two people were signed in, tasks run as the user and the device cache cleanup could go to the other one. If Windows does not say who is signed in, the ID is not wiped. Entra ID accounts are included when device credentials are cleared.
  • A failure to list the credential store (cmdkey) is no longer taken as "no credentials left".
  • An interrupted ID change no longer leaves services (CDPSvc and others) stopped until a restart: the wipe writes to disk which services were running before it; "Restore" and the next ID change start them again, and the Device ID tab says the previous wipe did not finish.
  • Report: docs/security/SECURITY_REMEDIATION_REPORT.md (section T-1…T-4).

Device ID (GDID): audit and fixes

  • "Sending the ID" is checked on all three services the module disables — CDPSvc, CDPUserSvc and DoSvc — and on every signed-in user's copy of CDPUserSvc (CDPUserSvc_…). The Device ID tab and "Digital footprint" used to look at CDPSvc and DoSvc only, and could not tell "no such service" from "registry not readable". Each service now has a start type in words (disabled, manual, automatic, not on this system, could not be read), one check serves both pages, and "blocked" is shown only when everything was read. If the services are disabled but the old state still applies (a service did not stop, a CDPUserSvc copy was created before the change, Windows remembers the old start type until a restart), the tile says "after a restart", and on a read error "not verified".
  • "No copies found" is no longer reported as "no ID" when some places could not be read or the profiles of users who are not signed in were not checked: both the module check and the wipe answer "not verified". An unreadable profile list or hive list counts too — it used to mean "all checked". Auto-protection does not treat "not verified" as a drifted setting and no longer wipes the ID on every run.
  • Changing the ID runs in steps, each with its own result: services → users' credentials → system credentials → registry → Connected Devices Platform cache → verification → services back. Verification now happens while the services are still stopped: the Microsoft account service used to come back fast enough to get a new ID, which was then counted as "a copy Windows did not release". The services are restored even if the wipe fails half-way. The result is one of: wiped, nothing found, partial, not wiped, Windows refused, not verified; only the first two count as success.
  • The Microsoft account service (wlidsvc) is disabled for the wipe only after its "before" state is written to the rollback journal. Its start type used to live only in the engine's memory: had the engine been killed mid-wipe, the service — and with it Microsoft account sign-in, the Store and Xbox — would have stayed disabled for good. Now the next wipe, "Restore" on the Device ID tab or a full rollback brings it back.
  • The device identity's credentials are removed for the person at the computer and for other users who are signed in right now. If a standard user typed an administrator's password, the administrator's store used to be cleaned instead of theirs. The Connected Devices Platform cache is verified in the same folder that was cleaned (it used to be the administrator's).
  • "Restore": start types are restored from the journal only for services the program changed, and a failure (journal not trusted, Windows refused) is an error, not "the program did not change it". Automatic services are started right away; what Windows will apply only after a restart or a new sign-in (for example DoSvc) is said plainly. Auto-protection stops watching the ID before the restore, not after. A wlidsvc left disabled by an interrupted wipe is restored too. Running it again breaks nothing.
  • "Change the ID" and "Restore" end with exit code 2 ("Done, with errors") when something failed — they always returned 0. The change reports the result of every step.
  • hosts: the "device directory servers" and "issuing lock" blocks are matched by paired markers. A block whose closing marker was deleted no longer takes the user's own lines with it on removal, and an orphaned marker no longer "opens" a new block. A damaged, empty or repeated block does not count as in place: "New ID issuing: blocked" is shown only when the block is intact and contains the issuing server, and applying it again leaves exactly one block. The written hosts file is checked right away: if an antivirus changed it at once, that is an error, not "blocked".
  • Issuing lock: Microsoft account sign-in is checked for the person at the computer (by SID), not for the account in the USERNAME variable. If the program cannot tell whether the computer belongs to an organisation (WMI or the registry did not answer), the ID is left alone. Before the lock, the program warns when other Microsoft accounts exist on the computer.
  • Audit report: docs/security/GDID_AUDIT.md.
  • Third audit pass. Changing the ID starts only after a read-only preflight: every place the ID is stored was read, the user profile list was read, and for every service the wipe touches (wlidsvc, CDPSvc, DoSvc, CDPUserSvc and its per-user copies) the start type and running state are known. If any of that is missing, nothing changes — neither services nor the registry. The wipe used to start with unreadable places, errors from the service queries were swallowed, and a service nothing was learned about could stay stopped afterwards.
  • Services during the wipe are one transaction: their state is recorded, only the running ones are stopped, and afterwards (on every path, failures included) exactly those are started again. The result is checked against the recorded state — start type and running are read again instead of trusting the start command. If wlidsvc's start type cannot be read, the wipe does not start (it used to go on with the service enabled).
  • Registry: exactly what the inventory found is removed — each value and each device identity on its own, and every removal is verified. The whole DeviceIdentities\production branch used to be deleted, including the issuing history (Logs), counters and anything the program does not know. Now Logs and unrelated values stay, an identity with unknown content is left in place (result "partial"), and an unreadable NegativeCache is "not verified" rather than "empty".
  • The Connected Devices Platform cache is verified after cleaning with a walk of its own that does not follow links (junctions); a link left inside counts as left over, an unreadable folder is "not verified" rather than "empty", and a link in place of the folder itself is not cleaned.
  • A dry run of the ID change no longer always reports success: if some places could not be read or there are profiles of users who are not signed in, it says the real run will not reach "wiped everywhere".
  • "Restore": a service that no longer exists is "not on this system", a Windows refusal is "access denied", a restore that does not verify is an error, and the journal entry stays until the restore is verified. Removing the hosts blocks, the firewall rule and the auto-protection profile change are now verified too; if any stage fails, the result is "partial" or "not restored" with exit code 2.
  • Changing and restoring the ID return one result shape (wipe / restore.result: status, how much was found, removed, left, not verified, services before and after); the exit code comes from the same result, so the window, the log and the exit code cannot disagree.
  • Accounts and organisations: a local account with a Microsoft account connected only to apps is not "signing in with a Microsoft account"; Entra ID accounts and S-1-12-1-… profiles are taken into account. Domain join, Entra ID join, hybrid join (both), management (MDM, including OMA-DM) and a work account without device management are told apart; anything that cannot be read means refusal, not "home computer".
  • "Restore" after a restart with the services disabled: the start type is now always handed to the service manager too. It used to change only in the registry, the service manager remembered "disabled" until the next restart, and CDPSvc did not start (error 1058, found on the test machine). If Windows does not allow it (DoSvc), the service is reported as "will work after a restart", not as a failure.
  • Third-pass report: docs/security/GDID_AUDIT_3.md.

Window

  • "Verify" no longer shows sections for programs that are not installed (VS Code, Firefox, Office, Visual Studio, PowerShell 7 / .NET SDK, NVIDIA, Chrome). They used to show "0 of 3" and pull down the overall result, the index on "Overview", the report and the exit code of the silent check, although they could not be applied. Such items are no longer counted, and the programs are listed in one collapsed row "Not installed on this computer". Programs are detected the same way as for "Settings"; if detection fails, nothing is hidden.
  • "Timeline" scrolls as a whole in a short window (for example a 1024 × 768 screen or a large scale). The chart used to be squashed until its axis labels overlapped, and the "What happened" list shrank to less than two lines.
  • The log showed an unreadable sign instead of the hyphen before the engine command ("Engine command: ?PurgeData"): the window turned the command's hyphens into non-breaking ones so that switches were not split at a line break, and the log font (Consolas, Courier New) has no such sign. The non-breaking hyphen is now used only when the log font has it; otherwise the plain hyphen stays.

Как установить: скачайте Win11Privacy-Setup.exe и запустите. Мастер (на русском или английском — по языку Windows) предложит на выбор обычную установку — в Program Files, с ярлыком в «Пуске» и удалением через «Параметры → Приложения» — или портативную версию: просто папку, например на флешке, где программа хранит и свои данные. Через winget — одной командой: winget install N0deZ3r0.Win11Privacy. Можно и без установки: скачайте Win11Privacy.exe, правый клик → Свойства → галочка «Разблокировать» → ОК, затем запустите. Программа запросит права администратора — они нужны, потому что она меняет системные настройки. Работает на встроенном в Windows .NET Framework 4.8, движок вшит внутрь exe.

How to install: download Win11Privacy-Setup.exe and run it. The wizard (in English or Russian, following the Windows language) offers a regular installation — into Program Files, with a Start menu shortcut and removal in Settings → Apps — or a portable copy: just a folder, on a USB stick for example, where the program keeps its data too. With winget it is one command: winget install N0deZ3r0.Win11Privacy. It also runs without installing: download Win11Privacy.exe, right-click → Properties → tick "Unblock" → OK, then run it. It asks for administrator rights because it changes system settings. It runs on the .NET Framework 4.8 built into Windows, and the engine is embedded in the exe.

Файл / File Зачем / What for
Win11Privacy-Setup.exe Установщик: обычная установка или портативная версия — на выбор / The installer: a regular installation or a portable copy, your choice
Win11Privacy.exe Само приложение, без установки / The application itself, no installation
Win11-Privacy-Engine.ps1 Движок отдельно — можно изучить и запустить без интерфейса / The engine on its own, to read or run without the window
SHA256SUMS.txt Контрольные суммы / Checksums
winget-manifest.zip Манифест winget этой версии / The winget manifest for this version

Проверить скачанный файл / Verify the download:

Get-FileHash Win11Privacy-Setup.exe -Algorithm SHA256

Проверить, что файл собран этим репозиторием из помеченного коммита (аттестация сборки GitHub, нужен GitHub CLI) / Check that the file was built by this repository from the tagged commit (GitHub build attestation, needs the GitHub CLI):

gh attestation verify Win11Privacy.exe --repo N0deZ3r0/Win11Privacy

Все изменения по версиям / All changes by version: CHANGELOG.md