6 Commits

Author SHA1 Message Date
PrimeBuild-pc ac84382841 security: follow-ups from the validation pass
- The launch task is re-registered on every elevated start again (now in the
  background), so a changed definition or another admin never keeps a stale one.
- Admin-only folders are owned by Administrators when elevated, so the user
  cannot rewrite their DACL with UAC off or a non-default owner policy.
- The update provider trusts only folders it created itself.
- Game Boost does not remember a foreground process as not-a-game while its
  path is still unreadable.
2026-10-22 10:54:37 +02:00
PrimeBuild-pc e9e5c39772 security: keep the task XML and update installer in admin-only folders
The elevated app wrote the scheduled-task definition and downloaded the update
installer into the user's %TEMP%, where a non-admin process can swap them (or
plant DLLs beside the installer) between the check and the elevated use. Both
now go into a fresh, unguessable folder under %SystemRoot%\Temp whose DACL
grants only Administrators and SYSTEM; users there cannot rename or delete
another account's folders.
2026-10-22 10:54:37 +02:00
PrimeBuild-pc 8070d1c31d security: register the no-UAC elevated tasks only for a Program Files install
ThreadPilot_Launch and ThreadPilot_Startup run with highest privileges and no
prompt, yet were bound to whichever copy last ran elevated, including portable
and dev folders any non-admin program can write to. Each elevated start now
deletes ThreadPilot tasks that point outside Program Files and registers them
only for an exe under Program Files, skipping the re-registration when the task
already points at this exe. Enabling autostart from a portable copy shows why
it is unavailable instead of a generic failure.
2026-10-22 10:54:37 +02:00
Prime Build 7953fc7774 Refactor repo with ponytail cleanup (#31) 2026-06-24 17:52:45 +02:00
PrimeBuild-pc 69cc510bc1 Harden services and release coverage pipeline 2026-04-21 19:50:56 +02:00
PrimeBuild-pc efb757d733 Add ElevatedTaskService and remove MSIX packaging
Introduce IElevatedTaskService and ElevatedTaskService to manage scheduled-task based elevated launch and autostart. Update App.xaml.cs to bootstrap elevation, attempt managed elevated launch, and handle task registration markers. Refactor AutostartService to delegate autostart operations to the elevated task service, remove legacy registry usage where appropriate, add logging, and update DI registration and unit tests. Remove MSIX packaging support and related tooling: delete build/build-msix.ps1, remove MSIX publish/validation/upload steps from GitHub Actions, drop MSIX-related csproj targets and EnableMsixTooling, and update docs/README/.gitignore to no longer reference MSIX artifacts.
2026-04-16 00:31:19 +02:00