Windows Defender quarantines relinker.exe and loadexec_arguments output that the BUILD.md exclusion does not cover #16960

Closed
opened 2026-11-08 01:38:17 +00:00 by NathanFahey23 · 0 comments
NathanFahey23 commented 2026-11-08 01:38:17 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by NathanFahey23 on 2026-11-08T01:38:17Z.


What happens

On Windows, Defender's machine-learning detections quarantined build-full/core/relinker/relinker.exe itself (Trojan:Win32/Bearfoos.A!ml), and the programs loadexec_arguments builds in the user's %TEMP% (Trojan:Win32/Sabsik.FL.A!ml). Neither is in core/relinker/test-temp, the only folder docs/dev/BUILD.md says to exclude.

Title, test or build step

ctest loadexec_arguments, and every relinker test once relinker.exe is gone (about 200 in the full suite); docs/dev/BUILD.md:47

AnyPS5 commit

main 8bf9729d56, nothing merged on top.

System

Windows 11 Home 10.0.26300, i9-13900K, RTX 4080 (driver 32.0.16.2101), Windows Defender (default settings), WinLibs GCC 15.2.0 UCRT posix-seh r7, Release, BUILD_TESTING=ON.

Host report


Steps to reproduce

Run the full suite a few times in a row with Defender's default settings: ctest --test-dir build-full --parallel 6 --timeout 300.

  • loadexec_arguments failed in each of 3 runs. Its guest exits with 0xC0000409 after printing first because Defender removed picker.second.bin.exe / app.exe from %TEMP%\anyps5-loadexec-*\Документы 東京\native output\ mid-test.
  • During the second run Defender quarantined build-full\core\relinker\relinker.exe. Every later relinker test (cli_help, windows_*, linux_*, macos_*, guest_* …) then failed to start it, for about 200 failures per run.

Log

Get-MpThreatDetection:
10:38:16  Trojan:Win32/Sabsik.FL.A!ml  %TEMP%\anyps5-loadexec-uuobsqi1\Документы 東京\native output\picker.second.bin.exe
10:44:20  Trojan:Win32/Sabsik.FL.A!ml  %TEMP%\anyps5-loadexec-jlhvh83a\Документы 東京\native output\app.exe; ...\picker.second.bin.exe
10:46:56  Trojan:Win32/Bearfoos.A!ml build-full\core\relinker\relinker.exe

What was checked

  • After excluding the whole build directory and running ctest with TEMP/TMP pointed inside it, three more full runs had no detections and none of these failures.
  • loadexec_arguments (core/libs/prx/libSceSystemService/CMakeLists.txt:37) does not get the TMPDIR/TEMP/TMP → core/relinker/test-temp override that the relinker tests in core/relinker/CMakeLists.txt set, so its tempfile.mkdtemp lands in the user's %TEMP%. Giving it the same override would bring its output under the documented exclusion.
  • The BUILD.md note could say to exclude the whole build directory, since relinker.exe itself gets flagged.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6266367350 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/16960). Originally posted by [NathanFahey23](https://github.com/NathanFahey23) on 2026-11-08T01:38:17Z. --- ### What happens On Windows, Defender's machine-learning detections quarantined `build-full/core/relinker/relinker.exe` itself (Trojan:Win32/Bearfoos.A!ml), and the programs `loadexec_arguments` builds in the user's `%TEMP%` (Trojan:Win32/Sabsik.FL.A!ml). Neither is in `core/relinker/test-temp`, the only folder docs/dev/BUILD.md says to exclude. ### Title, test or build step ctest loadexec_arguments, and every relinker test once relinker.exe is gone (about 200 in the full suite); docs/dev/BUILD.md:47 ### AnyPS5 commit main 8bf9729d56, nothing merged on top. ### System Windows 11 Home 10.0.26300, i9-13900K, RTX 4080 (driver 32.0.16.2101), Windows Defender (default settings), WinLibs GCC 15.2.0 UCRT posix-seh r7, Release, `BUILD_TESTING=ON`. ### Host report ```text ``` ### Steps to reproduce Run the full suite a few times in a row with Defender's default settings: `ctest --test-dir build-full --parallel 6 --timeout 300`. - `loadexec_arguments` failed in each of 3 runs. Its guest exits with 0xC0000409 after printing `first` because Defender removed `picker.second.bin.exe` / `app.exe` from `%TEMP%\anyps5-loadexec-*\Документы 東京\native output\` mid-test. - During the second run Defender quarantined `build-full\core\relinker\relinker.exe`. Every later relinker test (`cli_help`, `windows_*`, `linux_*`, `macos_*`, `guest_*` …) then failed to start it, for about 200 failures per run. ### Log ```text Get-MpThreatDetection: 10:38:16 Trojan:Win32/Sabsik.FL.A!ml %TEMP%\anyps5-loadexec-uuobsqi1\Документы 東京\native output\picker.second.bin.exe 10:44:20 Trojan:Win32/Sabsik.FL.A!ml %TEMP%\anyps5-loadexec-jlhvh83a\Документы 東京\native output\app.exe; ...\picker.second.bin.exe 10:46:56 Trojan:Win32/Bearfoos.A!ml build-full\core\relinker\relinker.exe ``` ### What was checked - After excluding the whole build directory and running ctest with TEMP/TMP pointed inside it, three more full runs had no detections and none of these failures. - `loadexec_arguments` (core/libs/prx/libSceSystemService/CMakeLists.txt:37) does not get the `TMPDIR`/`TEMP`/`TMP` → `core/relinker/test-temp` override that the relinker tests in core/relinker/CMakeLists.txt set, so its `tempfile.mkdtemp` lands in the user's `%TEMP%`. Giving it the same override would bring its output under the documented exclusion. - The BUILD.md note could say to exclude the whole build directory, since `relinker.exe` itself gets flagged. AI-assisted: yes.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#16960
No description provided.