Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
51aa2de549
|
No files matched your search
@@ -28,6 +28,18 @@ numeric core and does not move; the heading is the full version — corrected 20
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- **An anti-cheat kept beside a game's executable is found before anything is injected.** The safety check looked three folder
|
||||
levels into a game's install folder and no further, so an anti-cheat beside an executable that is itself three levels down
|
||||
was never seen: Wuthering Waves keeps Tencent's Anti-Cheat Expert in `Client\Binaries\Win64\AntiCheatExpert\`, its
|
||||
page read clean, and a session with hooking turned on was hooked for 37 seconds before the check that runs every 30 seconds
|
||||
met the anti-cheat's driver — and because a driver counts for the whole PC, the game's hooking stayed on. The check now also
|
||||
looks in the executable's own folder, on the game's page and before every injection. Wuthering Waves is also named by its
|
||||
Steam id (owner decision D58), and ACE's files, its second driver, its driver's service and its module are named (detection
|
||||
rules `2026.10.4`). Every game is checked for anti-cheat once more after the update; one found this way has its hooking
|
||||
turned off, as any finding does (`docs/19_SAFETY_AND_ANTICHEAT.md` §Pre-injection checks, item 4).
|
||||
|
||||
## [0.1.0-beta.20] - 2026-10-12
|
||||
|
||||
**The twentieth pre-release: the engine version of Ren'Py games.** The same unsigned installer: verify its hash against
|
||||
|
||||
@@ -16,7 +16,7 @@ A C++ DLL (`FrameLedger.Overlay.dll`) is injected into games the user explicitly
|
||||
> **Amended 2026-09-22 (owner decision): the override of 2026-09-21 is withdrawn, and the sentence above is the rule again.** For one day (releases `0.1.0-beta.3` and `beta.4`) a per-game override existed. The owner withdrew it: no entry point, no message, no column (schema 0008 drops 0007's five), no string. Do not add one in any form.
|
||||
>
|
||||
> **A finding turns the game's hooking off** (`19_SAFETY` §What a finding does to the game). An anti-cheat named in the game itself — its process, its title lists, its folder — is written to the row exactly as the pre-scan always wrote it (`hook_enabled = 0`, `hook_blocked_reason`, `hook_prescan_state = 'blocked'`), and since 2026-09-22 also when the guard finds it at a session's start or at the 30 s re-scan (`AntiCheatVerdict.IsFindingAboutTheGame`). A machine-wide driver or service refuses that session only. The notice, the game's page, the session's notes and the Agent's log all say it happened. Nothing clears the block, as before.
|
||||
> **Amended 2026-09-26 (owner decision D33): one narrow, evidence-bound exception.** Asked with the 2026-09-22 withdrawal and this rule quoted back, the owner chose a per-game exception for anti-cheat that is **user-mode throughout** — a Settings option off by default, then the user ticks each eligible game through a versioned disclosure (bans are possible and can arrive days later). Eligible only when every finding about the game is `BlockedModule` / `AntiCheatFile` / `AntiCheatDirectory` of ONE family whose floor-and-file footprint has no driver, service or `.sys` (`fl::guard::FamilyIsUserModeOnly` — the GUARD decides, from a family NAME the caller passes), no `.sys` is anywhere in the install tree, no title list names the game, and the ledger holds ≥ 2 successful Tier-1 sessions of it. Drivers, services, title lists, the `.sys` rule, the fuzzy tier, scan failures, `TargetUnreadable`, 32-bit, the kill switch and Vulkan are never excepted. The guard runs every check and keeps scanning past the tolerated family (`kAllowedUserModeException`, reason 28); the Overlay learns the family from `Local\FrameLedger.Tolerate.<pid>` before its loader detour exists. A new finding, a crash / safety unhook / floor stop under it, or an executable change ends it; the block is never cleared. **No other form of override is to be added** (`19_SAFETY` §The user-mode exception).
|
||||
> **Amended 2026-09-26 (owner decision D33): one narrow, evidence-bound exception.** Asked with the 2026-09-22 withdrawal and this rule quoted back, the owner chose a per-game exception for anti-cheat that is **user-mode throughout** — a Settings option off by default, then the user ticks each eligible game through a versioned disclosure (bans are possible and can arrive days later). Eligible only when every finding about the game is `BlockedModule` / `AntiCheatFile` / `AntiCheatDirectory` of ONE family whose floor-and-file footprint has no driver, service or `.sys` (`fl::guard::FamilyIsUserModeOnly` — the GUARD decides, from a family NAME the caller passes), no `.sys` is anywhere in the install tree *(within check 4's reach: three levels under the install root and, since 2026-10-13, under the executable's own folder)*, no title list names the game, and the ledger holds ≥ 2 successful Tier-1 sessions of it. Drivers, services, title lists, the `.sys` rule, the fuzzy tier, scan failures, `TargetUnreadable`, 32-bit, the kill switch and Vulkan are never excepted. The guard runs every check and keeps scanning past the tolerated family (`kAllowedUserModeException`, reason 28); the Overlay learns the family from `Local\FrameLedger.Tolerate.<pid>` before its loader detour exists. A new finding, a crash / safety unhook / floor stop under it, or an executable change ends it; the block is never cleared. **No other form of override is to be added** (`19_SAFETY` §The user-mode exception).
|
||||
> **Amended 2026-10-03 (owner decision D38): the evidence moved from before the grant to its trial.** "≥ 2 successful Tier-1 sessions" above could never be met by a game blocked at add time — since beta.8 that is every blocked game — nor after a ledger reset. Asked with that, the owner chose: a grant needs no session; the first two hooked sessions under it are a trial, and any end during the trial (a crash, a safety unhook, a floor stop, a new finding, or a stored hooked session with no frames or an abnormal exit) ends the exception **for good** (`games.ac_exception_trial_failed_at`, schema 0017, never cleared). Every other condition above is unchanged, and so is the last sentence.
|
||||
3. **Never implement evasion.** No manual mapping, no PE header erasure, no thread hiding, no signature obfuscation, no unlinking from the PEB module list. Injection uses documented `LoadLibraryW`. The DLL keeps its real name, real exports, and version info. A performance tool must be *visible* to anti-cheat, not hidden from it. Any PR that makes FrameLedger harder to detect is rejected on principle.
|
||||
4. **Never read or write game memory outside our own hooks.** We read arguments passed to APIs we hooked and COM/handle objects we legitimately own. No pattern scanning for game internals, no reading player/entity state, no writing to game memory. Ever.
|
||||
|
||||
@@ -434,12 +434,12 @@ it does not claim who loaded it.
|
||||
|
||||
Before a game is ever launched with hooking enabled, the static scan checks for anti-cheat SDKs shipped alongside it (`EasyAntiCheat/` directory, BattlEye binaries, EOS anti-cheat components, etc.). A hit **disables the hooking toggle for that game entirely** in the UI, with an explanation — the user cannot enable it, so the guard never even has to fire at launch. Prevention beats interception.
|
||||
|
||||
**Implemented in the native guard, not here** (`fl_prescan.cpp`, exposed as ~~`FlStaticPreScan`~~ `FlStaticPreScanGame` since 2026-09-25, which takes the executable, resolves the install root itself and runs check 3 as well). It uses the same `MatchName` and the same rules file as the injection guard, matching directory names against the `anticheat.directories` group and file names against `anticheat.files`. Nothing managed matches a blocklist (§S15 item 1).
|
||||
**Implemented in the native guard, not here** (`fl_prescan.cpp`, exposed as ~~`FlStaticPreScan`~~ `FlStaticPreScanGame` since 2026-09-25, which takes the executable, resolves the install root itself and runs check 3 as well). It uses the same `MatchName` and the same rules file as the injection guard, matching directory names against the `anticheat.directories` group and file names against `anticheat.files`. Nothing managed matches a blocklist (§S15 item 1). **It walks two folders since 2026-10-13:** the install root and, when the executable lives below it, the executable's own folder — each three levels deep. The root alone missed Wuthering Waves' `Client\Binaries\Win64\AntiCheatExpert\`, which sits beside the executable and four levels under the root (`19_SAFETY` §Pre-injection checks, item 4; `spike-notes.md` §19).
|
||||
|
||||
Three things this section previously implied that are not true, and are worth stating:
|
||||
|
||||
- **The UI answer is advisory.** It decides whether the toggle is *offered*; it does not gate injection. The same scan runs a second time inside the guard's chokepoint against a directory derived from the target's own pid, so "prevention beats interception" is a convenience, not the enforcement.
|
||||
- **A hit disables the toggle; "could not scan" must not.** The scan is tri-state. `Reason::kPreScanFailed` — directory absent, unlistable, past a bound, or behind a reparse point — is *neither* a hit nor a pass. It must surface as "could not verify", distinct from "anti-cheat found": disabling the toggle on it would be a false refusal with no appeal, and clearing it would be a fail-open.
|
||||
- **A hit disables the toggle; "could not scan" must not.** The scan is tri-state. `Reason::kPreScanFailed` — directory absent, unlistable, past the entry bound, or behind a reparse point — is *neither* a hit nor a pass. *("Past a bound" until 2026-10-13: the depth bound is a reach, not a refusal — a folder at the last level is named and never opened, and the walk still reads as complete.)* It must surface as "could not verify", distinct from "anti-cheat found": disabling the toggle on it would be a false refusal with no appeal, and clearing it would be a fail-open.
|
||||
- **The token list is thin.** `directories` and `files` ~~carry three tokens today~~ *(corrected 2026-10-04: rules 2026.10.1 carry 9 directory families (12 names) and 18 file families (55 names), and since 2026-09-25 any `*.sys` in the install tree is a finding by code, not data)*. Widening needs verified names; a guessed token fails closed by never firing, which is a silent hole (`19_SAFETY` §Blocklist seed).
|
||||
|
||||
## Caching & privacy constraints
|
||||
|
||||
@@ -267,13 +267,17 @@ Implemented in `FrameLedger.Injector` and reached from managed code through a th
|
||||
> be read (a manifest that will not open, more than 4096 of them, a listing error) refuses as `PreScanFailed`. With
|
||||
> nothing listed, nothing is read. Epic has no reader: an Epic install carries no identity to this check.
|
||||
>
|
||||
> **What is listed, and why a title list at all:** 33 Steam app ids and 33 executable names across ten families —
|
||||
> **What is listed, and why a title list at all:** ~~33~~ 34 Steam app ids and 33 executable names across ten families —
|
||||
> Valve VAC (CS2, Dota 2, TF2, Deadlock and Valve's older VAC titles), Riot Vanguard, Roblox Hyperion, Blizzard's
|
||||
> online titles ("Blizzard Warden"), Call of Duty (Activision Ricochet), NetEase (Marvel Rivals, NARAKA, FragPunk,
|
||||
> Once Human), ACE (Delta Force, Arena Breakout: Infinite), HoYoverse and EA (Battlefield 2042/6, EA SPORTS FC 25/26),
|
||||
> and since 2026-10-03 (rules `2026.10.1`, owner's list) HyperTech's **CrackProof** (Umamusume: Pretty Derby
|
||||
> `3224770`, Heaven Burns Red `1973710`, Madoka Magica Magia Exedra `2987800` — Steam ids only: no executable name
|
||||
> was verified, and a guessed one is a false refusal waiting for an unrelated game).
|
||||
> was verified, and a guessed one is a false refusal waiting for an unrelated game). **Since 2026-10-13 (rules
|
||||
> `2026.10.4`, owner decision D58) Wuthering Waves `3513350`, under ACE**, by its Steam id alone (its executable,
|
||||
> `Client-Win64-Shipping.exe`, is a name Unreal games share): its ACE sits beside the executable, where check 4 did
|
||||
> not reach until the same rules (item 4 below), and a session was hooked for 37 s on 2026-10-12 before the 30 s
|
||||
> re-scan met the driver — a machine-wide finding, which turned nothing off (`spike-notes.md` §19).
|
||||
> These are the titles whose anti-cheat leaves nothing of the game's own for checks 1, 2 and 4 to find — VAC runs
|
||||
> inside Steam, Blizzard's scanner is built into the game — or whose kernel driver loads only after the checks run.
|
||||
> CrackProof is the second kind: a Proton log of Umamusume shows its driver loaded from `C:\Windows\System32` under a
|
||||
@@ -337,7 +341,8 @@ Implemented in `FrameLedger.Injector` and reached from managed code through a th
|
||||
> `ResolveInstallRoot`, plus check 3 on the executable's name and the install's store identity.
|
||||
|
||||
> **Implemented, and stated narrowly.** `fl_prescan.cpp` walks the target's
|
||||
> own directory (derived from its pid, never from a caller-supplied path) to
|
||||
> install root and, since 2026-10-13, its executable's own folder (both derived from its pid, never from a
|
||||
> caller-supplied path — "Which directory" below) to
|
||||
> **depth 3** — raised from 2 on 2026-08-04 (§S22, `spike-notes.md` §13), because a
|
||||
> title shipping its own kernel driver two levels below the install root was
|
||||
> invisible from where the scan starts, so the blocklist row naming it could not
|
||||
@@ -382,6 +387,21 @@ Implemented in `FrameLedger.Injector` and reached from managed code through a th
|
||||
> appeal. A nested executable outside a recognised store layout is therefore
|
||||
> still scanned narrowly; that residual is stated, not closed.
|
||||
>
|
||||
> **Amended 2026-10-13: the root AND the executable's folder.** The root replaced the executable's folder, and
|
||||
> that was half the answer. The walk reaches three levels below where it starts, and an Unreal executable is
|
||||
> already three below its root, so a folder **beside** the executable is four: MEASURED on Wuthering Waves, whose
|
||||
> Tencent ACE lives in `Client\Binaries\Win64\AntiCheatExpert\` (with `ACE-BASE.sys` and `ACE-CORE.sys` in it). The
|
||||
> walk from the root listed `Win64` and never opened it, so the library pre-scan read the game clean three times,
|
||||
> hooking stayed available, and the first session was hooked for 37 s until the 30 s re-scan met ACE's driver —
|
||||
> machine-wide, so nothing was turned off (`spike-notes.md` §19). Neverness To Everness keeps a second
|
||||
> `AntiCheatExpert\` beside its `HTGame.exe`, six levels down, that no walk had seen either. Check 4 now walks the
|
||||
> root and then, when the executable lives below it, the executable's own folder — same walk, same reach, its own
|
||||
> 4096-entry budget, the same matcher and the same D33 tolerance (`ScanGameFolders`). `ImageDirectory` names the
|
||||
> executable's folder and the checks resolve the root from it. Raising the reach instead was measured and rejected:
|
||||
> depth 4 still misses NTE's folder, and at depth 5 three installed titles overrun 4096 entries (Yu-Gi-Oh! Master
|
||||
> Duel: 41,251), which would refuse them. Measured across the owner's 83 Steam installs, the second walk costs at most
|
||||
> 103 entries and newly finds exactly those two folders.
|
||||
>
|
||||
> **What it does not cover.** Beyond the above, the residual is an anti-cheat
|
||||
> SDK sitting on disk whose service is not installed and whose module is not
|
||||
> loaded; checks 1, 2 and 2b already cover the rest. And today the `directories` + `files`
|
||||
@@ -393,9 +413,11 @@ Implemented in `FrameLedger.Injector` and reached from managed code through a th
|
||||
> closed by never firing, which is a silent hole.
|
||||
>
|
||||
> **Every uncertainty refuses**, with `Reason::kPreScanFailed` rather than a
|
||||
> hit: directory absent or unlistable, either bound exceeded, a name we could
|
||||
> hit: directory absent or unlistable, ~~either bound exceeded~~ the 4096-entry bound exceeded, a name we could
|
||||
> not convert, or a reparse point — which is never followed, because a
|
||||
> junction can hide an `EasyAntiCheat/` beneath it. **Unmeasured:** how often
|
||||
> junction can hide an `EasyAntiCheat/` beneath it. *(Corrected 2026-10-13: the DEPTH bound never refused. It is a
|
||||
> reach — a folder at the last level is named and not opened, and the walk still reads as complete — which is how
|
||||
> Wuthering Waves' ACE was missed; the paragraph above is what answers it.)* **Unmeasured:** how often
|
||||
> a legitimate library trips the reparse-point rule or the 4096-entry bound.
|
||||
> That needs a real game library, and it is a false-refusal path, so it is
|
||||
> recorded rather than assumed benign.
|
||||
@@ -544,7 +566,7 @@ says so, including that a ban can arrive days later and that FrameLedger cannot
|
||||
FredaikisAntiCheat and Roblox Hyperion *(Hyperion added 2026-10-04: its rows are one module and one file; its only title
|
||||
is on the executable list, so it is never excepted in practice)*; Easy Anti-Cheat, BattlEye, ACE, NetEase Anti-Cheat, mihoyo protect, Vanguard, Ricochet and every
|
||||
other family carry a driver or a service and are never excepted;
|
||||
- no `*.sys` anywhere in the install tree — the kernel-driver rule (D30) is never excepted, whichever family a driver
|
||||
- no `*.sys` anywhere in the install tree *(within check 4's reach: three levels under the install root and, since 2026-10-13, under the executable's own folder)* — the kernel-driver rule (D30) is never excepted, whichever family a driver
|
||||
belongs to (so *Aniimo*, which unpacks `NEPKernel.sys` beside `NEP2.dll` on its first run, stays blocked);
|
||||
- the game is on no title list (`BlockedExecutable`, `BlockedStoreId` — the notorious titles are there by design);
|
||||
- ~~the ledger holds **at least two successful Tier-1 sessions** of the game: hooked, frames recorded, `exit_status = normal`
|
||||
@@ -726,10 +748,13 @@ normative documentation. Write tokens here exactly as the data must hold them.
|
||||
| mihoyo protect | `services` | name | `mhyprot2`, `mhyprot3`, `HoYoKProtect` | 2026-09-25 |
|
||||
| mihoyo protect | `files` | name | `mhypbase.dll`, `mhyprot2.sys`, `mhyprot3.sys`, `HoYoKProtect.sys` | 2026-09-25 |
|
||||
| Anti-Cheat Expert | `modules` | prefix | `SGuard`, `AntiCheatExpert` | 2026-09-25 |
|
||||
| Anti-Cheat Expert | `modules` | exact | `ACE-Base64.dll` | 2026-10-13 |
|
||||
| Anti-Cheat Expert | `drivers` | exact | `ACE-BASE.sys`, `ACE-ADVT.sys`, `ACE-GAME.sys` — **machine-wide refusal** (check 2) | seed |
|
||||
| Anti-Cheat Expert | `drivers` | exact | `ACE-CORE.sys` — **machine-wide refusal** (check 2) | 2026-10-13 |
|
||||
| Anti-Cheat Expert | `directories` | name | `AntiCheatExpert`, `AceAntibotClient` | 2026-09-25 |
|
||||
| Anti-Cheat Expert | `services` | name | `AntiCheatExpert Protection`, `AntiCheatExpert Service` | seed |
|
||||
| Anti-Cheat Expert | `services` | name | `AntiCheatExpert Protection`, `AntiCheatExpert Service`, `ACE-BASE` | seed; `ACE-BASE` 2026-10-13 |
|
||||
| Anti-Cheat Expert | `files` | name | `PGameProtectDriver_X64.sys`, `SGuard64.exe`, `SGuardSvc64.exe` | seed; `SGuard64.exe`, `SGuardSvc64.exe` 2026-09-25 |
|
||||
| Anti-Cheat Expert | `files` | name | `ACE-BASE.sys`, `ACE-CORE.sys`, `ACE-Base64.dll`, `ACE-Service64.exe`, `ACE-Setup64.exe` (measured in Wuthering Waves' folder) | 2026-10-13 |
|
||||
| EA AntiCheat | `modules` | prefix | `EAAntiCheat` | 2026-09-25 |
|
||||
| EA AntiCheat | `drivers` | exact | `EAAntiCheat.sys` — **machine-wide refusal** (check 2) | 2026-09-25 |
|
||||
| EA AntiCheat | `files` | name | `EAAntiCheat.Installer.exe`, `EAAntiCheat.GameServiceLauncher.exe`, `EAAntiCheat.GameServiceLauncher.dll` | 2026-09-25 |
|
||||
|
||||
@@ -2683,3 +2683,48 @@ renpy_vc_version` in 79 ms; Dialoop (`unity 6000.3.3f1`), Plethora of Bullets 2
|
||||
|
||||
- **Not measured:** an older Ren'Py (no other install), whose `vc_version.py` may name no `version` — it then reads as
|
||||
not found; a build that ships the engine compiled only (none seen).
|
||||
|
||||
## 19 · Anti-cheat beside the executable — Wuthering Waves *(2026-10-13, beta.21, owner decision D58)*
|
||||
|
||||
The owner's report: FrameLedger found no anti-cheat in `D:\SteamLibrary\steamapps\common\Wuthering Waves` (Steam
|
||||
`3513350`, Unreal Engine 4.26.2). Read-only, on the owner's disk and in the Agent's own log.
|
||||
|
||||
**The layout.** The install root holds the launcher `Wuthering Waves.exe` (483,768 bytes), `Client\`, `Engine\` and
|
||||
`ClearThirdParty.exe`; the library entry is the shipping binary `Client\Binaries\Win64\Client-Win64-Shipping.exe`
|
||||
(169,213,960 bytes). Beside it, `Client\Binaries\Win64\AntiCheatExpert\` holds Tencent's ACE: `ACE-BASE.sys`
|
||||
(4,125,432), `ACE-CORE.sys` (3,923,120) with `ACE-CORE.sys2`, `.sysa` and `.sysa2`, `ACE-Base64.dll` (69,736,848),
|
||||
`ACE-Service64.exe`, `ACE-Setup64.exe`, `ACE-Base.dat` and `pld.dat`. The folder is **four levels** under the root;
|
||||
entries per level under the root: 6, 10, 31, 276, 109, 136 (levels 1–6). Neverness To Everness keeps a second
|
||||
`AntiCheatExpert\` beside its `HTGame.exe`, at `Client\WindowsNoEditor\HT\Binaries\Win64\` — **six** levels down.
|
||||
|
||||
**Why it read clean.** Check 4 walked the install root only (since 2026-09-25), three levels deep, and a folder at the
|
||||
last level is named and never opened, silently: the walk listed `Win64` and reported a complete, clean tree. The rules
|
||||
already named the folder (`directories`: `AntiCheatExpert`); the walk never handed the name to the matcher.
|
||||
|
||||
**What it cost, from the Agent's log.** Added by import 2026-10-11 19:50:19 → `prescan: scanned 2 — anti-cheat 1, clean 1`
|
||||
(the anti-cheat was NTE's `PGameProtectDriver_X64.sys`, three levels down); re-scanned after the game's update at
|
||||
21:22:14, clean; re-added 2026-10-13 18:30:44, clean. With hooking turned on, the session of 2026-10-12 started at
|
||||
21:10:20 found nothing — ACE's driver not yet loaded, its services stopped — and was injected; at 21:10:57 the 30 s
|
||||
re-scan met `ACE-BASE.sys` (written to `System32\drivers` at 21:10 by the game's ACE setup) and unhooked:
|
||||
`SafetyUnhook; Saved (tier 1, exit=UnhookedSafety, frames=0); guard=BlockedDriver/Anti-Cheat Expert`. A driver is a
|
||||
machine-wide finding, which refuses the session and turns nothing off, so the game's hooking stayed on. Registered on
|
||||
the machine afterwards: the kernel service `ACE-BASE` (demand start) and the user-mode `AntiCheatExpert Protection`.
|
||||
|
||||
**The options, measured across the owner's 83 Steam installs** (read-only listings):
|
||||
|
||||
| Option | Cost | Newly finds | Verdict |
|
||||
|---|---|---|---|
|
||||
| Walk the executable's own folder too | ≤ 103 entries (NTE), 95 for Wuthering Waves | exactly the two `AntiCheatExpert\` folders above | **taken** |
|
||||
| Depth 3 → 4 | one constant; peak 1,627 entries (Half-Life 2) | Wuthering Waves' folder name only — NTE's is six levels down, and the folder's files stay out of reach | rejected |
|
||||
| Depth 5 or more | over 4096 entries for Yu-Gi-Oh! Master Duel (41,251), Yasha (12,215), GIRLS' FRONTLINE 2 (9,969) | — | rejected: those games would read *could not verify* and be refused at session start, GF2 under its D33 exception included |
|
||||
| Make the depth cap refuse | — | — | rejected: it would refuse nearly every game |
|
||||
|
||||
**Taken (rules `2026.10.4`):** check 4 walks the install root, then the executable's folder when it lives below the
|
||||
root (`ScanGameFolders`, `fl_prescan.cpp`), each with its own 4096-entry budget; the five `ACE-*` names join the
|
||||
`files` group, `ACE-CORE.sys` the `drivers` group, `ACE-BASE` the `services` group and `ACE-Base64.dll` a `modules`
|
||||
row of its own (so an injected Overlay stops itself if it loads); and Wuthering Waves' Steam id is on the title list.
|
||||
The version bump is what makes every game's pre-scan run again: the sweep re-scans only when the rules version or the
|
||||
executable changes.
|
||||
|
||||
- **Not measured:** that the game loads `ACE-Base64.dll` (no session has run since), and whether ACE's other titles
|
||||
keep the same layout.
|
||||
@@ -42,7 +42,7 @@
|
||||
"level, which made it a check that could not fire."
|
||||
],
|
||||
"schemaVersion": 2,
|
||||
"rulesVersion": "2026.10.3",
|
||||
"rulesVersion": "2026.10.4",
|
||||
|
||||
"engines": [
|
||||
{
|
||||
@@ -223,7 +223,9 @@
|
||||
{ "family": "EQU8", "match": "prefix", "values": [ "equ8" ],
|
||||
"note": "Splitgate. Documented (SteamDB EQU8); module names unmeasured." },
|
||||
{ "family": "Xigncode3", "match": "exact", "values": [ "x3.xem" ],
|
||||
"note": "x3.xem is XIGNCODE3's loader, LoadLibrary'd as an ordinary module (documented). The files row names the same token in the install tree." }
|
||||
"note": "x3.xem is XIGNCODE3's loader, LoadLibrary'd as an ordinary module (documented). The files row names the same token in the install tree." },
|
||||
{ "family": "Anti-Cheat Expert", "match": "exact", "values": [ "ACE-Base64.dll" ],
|
||||
"note": "ACE's user-mode module, MEASURED on disk 2026-10-13 in Wuthering Waves' AntiCheatExpert/ folder; that the game loads it is unmeasured. Exact, not prefix: 'ACE-' is four characters over a namespace we do not own. Appended, as every row since 2026-09-25." }
|
||||
],
|
||||
"drivers": [
|
||||
{ "family": "Riot Vanguard", "match": "exact", "values": [ "vgk.sys" ], "scope": "machine" },
|
||||
@@ -233,6 +235,8 @@
|
||||
"note": "MEASURED 2026-08-04: EasyAntiCheat_EOSSys was Running as a kernel driver while a real EAC title played, and matched NOTHING in this group — the refusal came from the service check instead. A family caught through only one of five groups is one rename away from being missed." },
|
||||
{ "family": "Anti-Cheat Expert", "match": "exact", "values": [ "ACE-BASE.sys", "ACE-ADVT.sys", "ACE-GAME.sys" ], "scope": "machine",
|
||||
"note": "ACE-BASE.sys and ACE-ADVT.sys MEASURED under System32\\drivers on the dev machine 2026-08-04. ACE-GAME.sys is a documented sibling and is UNMEASURED: a blocklist may over-cover, never under-cover. Exact not prefix — 'ACE-' is four characters over a namespace we do not own." },
|
||||
{ "family": "Anti-Cheat Expert", "match": "exact", "values": [ "ACE-CORE.sys" ], "scope": "machine",
|
||||
"note": "On disk beside ACE-BASE.sys in Wuthering Waves' AntiCheatExpert/ folder (MEASURED 2026-10-13); that it loads is unmeasured. Exact, as the row above." },
|
||||
{ "family": "BattlEye", "match": "exact", "values": [ "BEDaisy.sys" ], "scope": "machine",
|
||||
"note": "BattlEye's kernel driver, loaded by BEService while a protected game runs and unloaded after (documented, BattlEye FAQ). Unmeasured." },
|
||||
{ "family": "FACEIT", "match": "exact", "values": [ "FACEIT.sys" ], "scope": "machine",
|
||||
@@ -262,7 +266,7 @@
|
||||
{ "family": "Easy Anti-Cheat", "values": [ "EasyAntiCheat", "EasyAntiCheat_EOS" ] },
|
||||
{ "family": "BattlEye", "values": [ "BattlEye" ] },
|
||||
{ "family": "Anti-Cheat Expert", "values": [ "AntiCheatExpert", "AceAntibotClient" ],
|
||||
"note": "Documented (SteamDB FileDetectionRuleSets, AntiCheatExpert). Unmeasured." },
|
||||
"note": "Documented (SteamDB FileDetectionRuleSets). AntiCheatExpert MEASURED 2026-10-13 beside the executables of Wuthering Waves and Neverness To Everness, reached from the executable's own folder and never from the root. AceAntibotClient is unmeasured." },
|
||||
{ "family": "nProtect GameGuard", "values": [ "GameGuard" ] },
|
||||
{ "family": "Xigncode3", "values": [ "XIGNCODE", "XIGNCODE3" ] },
|
||||
{ "family": "AhnLab HackShield", "values": [ "HShield" ],
|
||||
@@ -278,8 +282,8 @@
|
||||
{ "family": "Easy Anti-Cheat", "values": [ "EasyAntiCheat", "EasyAntiCheat_EOS", "EasyAntiCheat_EOSSys" ] },
|
||||
{ "family": "Riot Vanguard", "values": [ "vgc", "vgk" ],
|
||||
"note": "vgk is the kernel driver's service, started at boot like vgk.sys itself." },
|
||||
{ "family": "Anti-Cheat Expert", "values": [ "AntiCheatExpert Protection", "AntiCheatExpert Service" ],
|
||||
"note": "'AntiCheatExpert Protection' MEASURED registered on the dev machine 2026-08-04 by Neverness To Everness. The sibling name is unmeasured." },
|
||||
{ "family": "Anti-Cheat Expert", "values": [ "AntiCheatExpert Protection", "AntiCheatExpert Service", "ACE-BASE" ],
|
||||
"note": "'AntiCheatExpert Protection' MEASURED registered on the dev machine 2026-08-04 by Neverness To Everness; 'ACE-BASE', the kernel service of ACE-BASE.sys, MEASURED registered there 2026-10-13. 'AntiCheatExpert Service' is unmeasured." },
|
||||
{ "family": "BattlEye", "values": [ "BEService", "BEDaisy" ],
|
||||
"note": "BEService is started by a protected game and stops after it; BEDaisy is the driver's service. A stopped service is absent (19_SAFETY). Unmeasured." },
|
||||
{ "family": "FACEIT", "values": [ "FACEIT", "FACEITService" ],
|
||||
@@ -298,6 +302,8 @@
|
||||
"note": "Shipped beside the game. This note said 'not a loadable module' until 2026-09-25: XIGNCODE3 LoadLibrary's x3.xem as its loader (documented), which is why the modules group names it too." },
|
||||
{ "family": "Anti-Cheat Expert", "values": [ "PGameProtectDriver_X64.sys", "SGuard64.exe", "SGuardSvc64.exe" ],
|
||||
"note": "A KERNEL DRIVER shipped inside the game install. MEASURED at 'Neverness To Everness/NTEGlobal/driver/' 2026-08-04, where check 4 returned Allow: no group named it, and the fuzzy tier is modules-only — so a name containing 'protect' sat in the game's tree and the static scan walked past." },
|
||||
{ "family": "Anti-Cheat Expert", "values": [ "ACE-BASE.sys", "ACE-CORE.sys", "ACE-Base64.dll", "ACE-Service64.exe", "ACE-Setup64.exe" ],
|
||||
"note": "MEASURED 2026-10-13 in Wuthering Waves' Client/Binaries/Win64/AntiCheatExpert/, beside its executable and four levels under its install root, which the walk from the root never opened: check 4 also walks the executable's own folder since then." },
|
||||
{ "family": "Easy Anti-Cheat", "values": [ "EasyAntiCheat_EOS_Setup.exe", "EasyAntiCheat_Setup.exe", "EasyAntiCheat_x64.dll", "EasyAntiCheat_x86.dll", "EasyAntiCheat_EOS.sys", "start_protected_game.exe", "eac_server64.dll" ],
|
||||
"note": "For a layout where the EasyAntiCheat folder sits deeper than the scan reaches. start_protected_game.exe is the EAC launcher FromSoftware titles ship (ELDEN RING's appeared in the owner's Windows Application log on 2026-09-21)." },
|
||||
{ "family": "BattlEye", "values": [ "BEService.exe", "BEService_x64.exe", "BEClient.dll", "BEClient_x64.dll", "BEDaisy.sys" ],
|
||||
@@ -418,6 +424,7 @@
|
||||
{ "store": "steam", "id": "2139460", "family": "NetEase Anti-Cheat", "reason": "Protected by NetEase's kernel anti-cheat (NEAC)." },
|
||||
{ "store": "steam", "id": "2507950", "family": "Anti-Cheat Expert", "reason": "Protected by Tencent Anti-Cheat Expert (ACE), a kernel anti-cheat." },
|
||||
{ "store": "steam", "id": "2073620", "family": "Anti-Cheat Expert", "reason": "Protected by Tencent Anti-Cheat Expert (ACE), a kernel anti-cheat." },
|
||||
{ "store": "steam", "id": "3513350", "family": "Anti-Cheat Expert", "reason": "Wuthering Waves, protected by Tencent Anti-Cheat Expert (ACE), a kernel anti-cheat." },
|
||||
{ "store": "steam", "id": "1517290", "family": "EA AntiCheat", "reason": "Protected by EA AntiCheat (Javelin), a kernel anti-cheat." },
|
||||
{ "store": "steam", "id": "2807960", "family": "EA AntiCheat", "reason": "Protected by EA AntiCheat (Javelin), a kernel anti-cheat." },
|
||||
{ "store": "steam", "id": "2669320", "family": "EA AntiCheat", "reason": "Protected by EA AntiCheat (Javelin), a kernel anti-cheat." },
|
||||
|
||||
@@ -320,15 +320,17 @@ struct Sources {
|
||||
|
||||
// Check 4 — the static pre-scan.
|
||||
//
|
||||
// The directory the target's image lives in. kFailed means we could not
|
||||
// The directory the target's image lives in — its OWN folder (2026-10-13;
|
||||
// until then the seam resolved the install root itself, and a folder beside
|
||||
// a nested executable was out of check 4's reach). The checks resolve the
|
||||
// install root from it (ResolveInstallRoot). kFailed means we could not
|
||||
// name it, which refuses: check 4 cannot run against a directory we cannot
|
||||
// find, and "we did not look" has never been a pass in this file.
|
||||
Collected (*ImageDirectory)(std::uint32_t pid, wchar_t* out, std::size_t cap) = nullptr;
|
||||
|
||||
// The target's executable LEAF NAME, for check 3. A separate seam from
|
||||
// ImageDirectory because it is a different fact: that one deliberately
|
||||
// resolves the INSTALL ROOT (Unreal puts the exe three levels below it), and
|
||||
// the name is exactly what it throws away.
|
||||
// ImageDirectory because it is a different fact: that one strips the name
|
||||
// to name the folder, and the name is exactly what it throws away.
|
||||
//
|
||||
// NARROW on purpose. `blockedExecutables` is ASCII by schema and
|
||||
// MatchesBlockedExecutable compares ASCII, so converting here keeps one
|
||||
|
||||
@@ -90,7 +90,10 @@ FL_GUARD_ABI void FlGuardedInjectWhenReady(std::uint32_t targetPid, const wchar_
|
||||
// It replaced FlStaticPreScan(gameDirectory) on 2026-09-25. That export scanned the directory it was given, and its
|
||||
// one caller gave the executable's own folder, so an Unreal title's root-level EasyAntiCheat/ was never seen by the
|
||||
// scan that decides whether hooking may be enabled. This one resolves the install root itself (ResolveInstallRoot, as
|
||||
// the chokepoint always did) and adds check 3: the executable's name and the install's store identity.
|
||||
// the chokepoint always did) and adds check 3: the executable's name and the install's store identity. Since
|
||||
// 2026-10-13 check 4 walks the executable's own folder too when it lives below the root, here and in the chokepoint
|
||||
// alike: the root's walk reaches three levels, and Wuthering Waves keeps its AntiCheatExpert\ beside an executable
|
||||
// that is already three levels down.
|
||||
//
|
||||
// It reports through FlGuardResult rather than an outcome enum of its own, so there is ONE reason table and ONE
|
||||
// mirror surface: kAllow means clean; BlockedExecutable, BlockedStoreId, AntiCheatDirectory and AntiCheatFile name
|
||||
|
||||
@@ -54,8 +54,18 @@ namespace fl::guard {
|
||||
// because the entry cap is a REFUSAL: overrunning it does not scan less, it
|
||||
// refuses the title.
|
||||
//
|
||||
// Both caps are REFUSALS, not truncations. A walk that stopped early has not
|
||||
// seen the directory, and this file has no "scanned what we could" state.
|
||||
// THE TWO CAPS ARE NOT THE SAME KIND — corrected 2026-10-13. This said both were
|
||||
// refusals, and only the ENTRY cap is: overrunning it, an unreadable name or a
|
||||
// reparse point is kIncomplete, which refuses. The DEPTH cap is a REACH: a folder
|
||||
// at the last level is reported by name and never opened, silently — so what it
|
||||
// holds is not seen, and the walk still reads as complete. Raising it is not the
|
||||
// answer: at depth 5 three installed titles overrun 4096 entries (Master Duel
|
||||
// 41,251), which would refuse them. What the reach cost was measured instead:
|
||||
// Wuthering Waves keeps `AntiCheatExpert\` beside its executable at
|
||||
// `Client\Binaries\Win64\` — four levels under the install root — and the walk
|
||||
// from the root read it clean. Check 4 therefore walks the root AND, when the
|
||||
// executable lives below it, the executable's own folder (ScanGameFolders,
|
||||
// fl_prescan.cpp): each with this reach and its own entry budget.
|
||||
inline constexpr std::size_t kMaxPreScanDepth = 3;
|
||||
inline constexpr std::size_t kMaxPreScanEntries = 4096;
|
||||
|
||||
@@ -84,6 +94,11 @@ inline constexpr std::size_t kMaxPreScanPathLen = 1024;
|
||||
// `D:\games\Title\` is a folder of other games, and refusing this title because
|
||||
// a sibling ships anti-cheat is a false refusal with no appeal.
|
||||
//
|
||||
// The root REPLACED the executable's folder as check 4's one walk on 2026-09-25,
|
||||
// and that was half right: what sits at the root (Lies of P's EasyAntiCheat/) is
|
||||
// seen, what sits beside a nested executable is not (kMaxPreScanDepth). Since
|
||||
// 2026-10-13 check 4 walks both.
|
||||
//
|
||||
// Returns false if the result does not fit, which the caller treats as
|
||||
// "cannot determine".
|
||||
[[nodiscard]] bool ResolveInstallRoot(const wchar_t* exeDir, wchar_t* out, std::size_t cap) noexcept;
|
||||
@@ -96,8 +111,9 @@ inline constexpr std::size_t kMaxPreScanPathLen = 1024;
|
||||
// game's hooking off like any finding (19_SAFETY §What a finding does to the game); the owner took that trade.
|
||||
inline constexpr const char* kKernelDriverInTreeFamily = "Kernel driver in the game folder";
|
||||
|
||||
// Check 4, as EvaluateImpl runs it: derive the target's directory from its pid,
|
||||
// then scan it.
|
||||
// Check 4, as EvaluateImpl runs it: derive the target's own folder from its pid
|
||||
// (Sources::ImageDirectory), resolve the install root from it, then walk the root
|
||||
// and — when they differ — the executable's folder.
|
||||
//
|
||||
// Takes Sources because every evidence input in this guard is a seam — an input
|
||||
// whose failure path cannot be exercised is an input whose failure path is
|
||||
@@ -119,13 +135,14 @@ inline constexpr const char* kKernelDriverInTreeFamily = "Kernel driver in the g
|
||||
// read.
|
||||
[[nodiscard]] Verdict CheckStoreIdentity(const Sources& s, const Rules& rules, const wchar_t* installRoot) noexcept;
|
||||
|
||||
// The same, as EvaluateImpl runs it: the install root derived from the pid, exactly as check 4 derives it.
|
||||
// The same, as EvaluateImpl runs it: the install root resolved from the target's own folder, exactly as check 4
|
||||
// resolves it.
|
||||
[[nodiscard]] Verdict CheckBlockedStoreId(const Sources& s, const Rules& rules, std::uint32_t targetPid) noexcept;
|
||||
|
||||
// The advisory form, for the question "can this game be enabled at all?" (FR-2.2) and for the Agent's pre-scan of
|
||||
// the library (19_SAFETY §What a finding does to the game). Same matcher, same polarity, no pid: check 3 (the
|
||||
// executable's own name, and the store identity of its install root) and check 4 (the install root's tree), from the
|
||||
// EXECUTABLE's path.
|
||||
// executable's own name, and the store identity of its install root) and check 4 (the install root's tree, and the
|
||||
// executable's own folder's tree when it lives below the root — 2026-10-13), from the EXECUTABLE's path.
|
||||
//
|
||||
// It takes the executable, not a directory, since 2026-09-25. It took a directory, and its one caller passed the
|
||||
// executable's own folder while nothing resolved the install root — so the pre-scan that decides whether hooking may
|
||||
|
||||
@@ -337,13 +337,15 @@ Collected ImageDirectoryImpl(std::uint32_t pid, wchar_t* out, std::size_t cap) n
|
||||
}
|
||||
*lastSep = L'\0';
|
||||
|
||||
// The INSTALL ROOT, not the executable's directory. Unreal puts the exe at
|
||||
// <root>\<Project>\Binaries\Win64\, and EasyAntiCheat/ sits at the root —
|
||||
// measured on Lies of P, where the pre-scan saw seven files none of which
|
||||
// could have been an anti-cheat SDK.
|
||||
if (!ResolveInstallRoot(path, out, cap)) {
|
||||
// The executable's OWN folder (2026-10-13). The checks derive the install
|
||||
// root from it (ResolveInstallRoot) and check 4 walks both. Until then this
|
||||
// returned the root, which is where Lies of P keeps EasyAntiCheat/ — and
|
||||
// that alone left a folder BESIDE an Unreal executable, three levels below
|
||||
// the root, out of the walk's reach: Wuthering Waves' AntiCheatExpert\.
|
||||
if (wcslen(path) + 1 > cap) {
|
||||
return Collected::kFailed; // truncating a path yields a DIFFERENT directory
|
||||
}
|
||||
wcscpy_s(out, cap, path);
|
||||
return Collected::kOk;
|
||||
}
|
||||
|
||||
|
||||
@@ -158,6 +158,23 @@ Verdict ScanWith(const Sources& s, const Rules& rules, const wchar_t* dir, const
|
||||
return Passed();
|
||||
}
|
||||
|
||||
// Check 4's two walks (2026-10-13): the install root's tree, then — when the executable lives below the root — the
|
||||
// executable's own folder's tree. The walk reaches kMaxPreScanDepth levels below the folder it starts from
|
||||
// (fl_prescan.h), and an Unreal executable sits three levels below its root, so a folder BESIDE it is four: MEASURED on
|
||||
// Wuthering Waves, whose `Client\Binaries\Win64\AntiCheatExpert\` the root's walk listed the parent of and never
|
||||
// opened, and which therefore read clean. Same walk, same caps, same tolerance and the same record of a tolerated
|
||||
// finding; the first refusal is the answer.
|
||||
Verdict ScanGameFolders(const Sources& s, const Rules& rules, const wchar_t* root, const wchar_t* exeDir,
|
||||
const Tolerance* tolerance, ToleratedFinding* finding) noexcept {
|
||||
if (Verdict v = ScanWith(s, rules, root, tolerance, finding); !v.Allowed()) {
|
||||
return v;
|
||||
}
|
||||
if (exeDir == nullptr || exeDir[0] == L'\0' || _wcsicmp(root, exeDir) == 0) {
|
||||
return Passed(); // the executable lives at its root: the one walk saw its folder
|
||||
}
|
||||
return ScanWith(s, rules, exeDir, tolerance, finding);
|
||||
}
|
||||
|
||||
// Case-insensitive comparison of one path segment.
|
||||
bool SegmentIs(const wchar_t* begin, const wchar_t* end, const wchar_t* literal) noexcept {
|
||||
const std::size_t n = static_cast<std::size_t>(end - begin);
|
||||
@@ -240,15 +257,16 @@ Verdict PreScanGameWith(const wchar_t* exePath, const Sources& s, const char* to
|
||||
return Refused(Reason::kBlockedExecutable, hit->family, leaf);
|
||||
}
|
||||
|
||||
// Check 3's store half, then check 4 — both over the install root. Title lists are never tolerated (D33): only
|
||||
// check 4 takes the exception, and only for a user-mode family.
|
||||
// Check 3's store half over the install root, then check 4 over the root and the executable's own folder. Title
|
||||
// lists are never tolerated (D33): only check 4 takes the exception, and only for a user-mode family.
|
||||
if (Verdict v = CheckStoreIdentity(s, rules, root); !v.Allowed()) {
|
||||
return v;
|
||||
}
|
||||
Tolerance tolerance;
|
||||
ResolveTolerance(rules, toleratedFamilies, tolerance);
|
||||
ToleratedFinding finding;
|
||||
if (Verdict v = ScanWith(s, rules, root, tolerance.any ? &tolerance : nullptr, &finding); !v.Allowed()) {
|
||||
if (Verdict v = ScanGameFolders(s, rules, root, dir, tolerance.any ? &tolerance : nullptr, &finding);
|
||||
!v.Allowed()) {
|
||||
return v;
|
||||
}
|
||||
return finding.seen ? ToleratedVerdict(finding) : Passed();
|
||||
@@ -335,7 +353,11 @@ Verdict CheckStaticPreScan(const Sources& s, const Rules& rules, std::uint32_t t
|
||||
// 19_SAFETY has no "three of four checks passed" state.
|
||||
return Refused(Reason::kPreScanFailed, nullptr, "could not establish the target's directory");
|
||||
}
|
||||
return ScanWith(s, rules, dir, tolerance, finding);
|
||||
wchar_t root[kMaxPreScanPathLen] = {};
|
||||
if (!ResolveInstallRoot(dir, root, kMaxPreScanPathLen)) {
|
||||
return Refused(Reason::kPreScanFailed, nullptr, "could not establish the game's install root");
|
||||
}
|
||||
return ScanGameFolders(s, rules, root, dir, tolerance, finding);
|
||||
}
|
||||
|
||||
Verdict CheckStoreIdentity(const Sources& s, const Rules& rules, const wchar_t* installRoot) noexcept {
|
||||
@@ -370,10 +392,14 @@ Verdict CheckBlockedStoreId(const Sources& s, const Rules& rules, std::uint32_t
|
||||
if (s.ImageDirectory == nullptr) {
|
||||
return Refused(Reason::kPreScanFailed, nullptr, "no image-path source");
|
||||
}
|
||||
wchar_t root[kMaxPreScanPathLen] = {};
|
||||
if (s.ImageDirectory(targetPid, root, kMaxPreScanPathLen) != Collected::kOk || root[0] == L'\0') {
|
||||
wchar_t dir[kMaxPreScanPathLen] = {};
|
||||
if (s.ImageDirectory(targetPid, dir, kMaxPreScanPathLen) != Collected::kOk || dir[0] == L'\0') {
|
||||
return Refused(Reason::kPreScanFailed, nullptr, "could not establish the target's directory");
|
||||
}
|
||||
wchar_t root[kMaxPreScanPathLen] = {};
|
||||
if (!ResolveInstallRoot(dir, root, kMaxPreScanPathLen)) {
|
||||
return Refused(Reason::kPreScanFailed, nullptr, "could not establish the game's install root");
|
||||
}
|
||||
return CheckStoreIdentity(s, rules, root);
|
||||
}
|
||||
|
||||
|
||||
+183
-10
@@ -154,6 +154,14 @@ struct Fake {
|
||||
std::wstring imageDirectory = L"C:\\Games\\Example";
|
||||
Collected imageDirectoryResult = Collected::kOk;
|
||||
std::wstring lastScannedDir; // what check 4 was asked to walk
|
||||
// 2026-10-13: check 4 walks the install root AND the executable's own folder. A directory named here answers with
|
||||
// its own listing; any other answers with `dirEntries`, so every case written before keeps its meaning.
|
||||
struct Listing {
|
||||
std::vector<std::pair<std::string, bool>> entries;
|
||||
Collected result = Collected::kOk;
|
||||
};
|
||||
std::map<std::wstring, Listing> listingAt;
|
||||
std::vector<std::wstring> scannedDirs; // every directory check 4 was asked to walk, in order
|
||||
|
||||
// Check 3's store half (2026-09-25). Defaults to "this install carries no store identity", so every
|
||||
// pre-existing case keeps its meaning now that the floor lists store ids: check 3 asks, and allows.
|
||||
@@ -312,12 +320,15 @@ Collected FakeImageFileName(std::uint32_t, char* out, std::size_t cap) {
|
||||
|
||||
Collected FakeEnumDirEntries(const wchar_t* dir, DirEntrySink sink, void* ctx) {
|
||||
g.lastScannedDir = dir != nullptr ? dir : L"";
|
||||
for (const auto& e : g.dirEntries) {
|
||||
g.scannedDirs.push_back(g.lastScannedDir);
|
||||
const auto own = g.listingAt.find(g.lastScannedDir);
|
||||
const auto& entries = own != g.listingAt.end() ? own->second.entries : g.dirEntries;
|
||||
for (const auto& e : entries) {
|
||||
if (!sink(ctx, e.first.c_str(), e.second)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return g.dirEntriesResult;
|
||||
return own != g.listingAt.end() ? own->second.result : g.dirEntriesResult;
|
||||
}
|
||||
|
||||
Collected FakeStoreIdentity(const wchar_t* installRoot, char* out, std::size_t cap) {
|
||||
@@ -3759,10 +3770,13 @@ TEST_CASE("a directory listing that FAILED is undetermined, not clean", "[guard]
|
||||
}
|
||||
|
||||
TEST_CASE("a TRUNCATED directory listing is undetermined, not clean", "[guard][prescan][failclosed]") {
|
||||
// The entry cap, the depth cap and an unfollowed reparse point all arrive
|
||||
// The entry cap, an unreadable name and an unfollowed reparse point arrive
|
||||
// here as kIncomplete. An empty-but-incomplete listing is the exact shape
|
||||
// of this project's worst defect: it reads as "nothing found" when it means
|
||||
// "we did not finish looking".
|
||||
// "we did not finish looking". The DEPTH cap does not arrive here, and this
|
||||
// comment said it did until 2026-10-13: it is a reach — a folder at the last
|
||||
// level is named and never opened, and the walk still reports kOk — which
|
||||
// is why check 4 walks the executable's own folder too (fl_prescan.h).
|
||||
ResetFake();
|
||||
g.dirEntries = {{"game.exe", false}};
|
||||
g.dirEntriesResult = Collected::kIncomplete;
|
||||
@@ -3951,17 +3965,95 @@ TEST_CASE("the advisory pre-scan reaches the same verdict as the one inside the
|
||||
CHECK(StaticPreScanGameWithSources(L"C:\\Games\\Example\\", FakeSources()).reason == Reason::kPreScanFailed);
|
||||
}
|
||||
|
||||
TEST_CASE("the advisory pre-scan walks the INSTALL ROOT, not the executable's folder", "[guard][prescan]") {
|
||||
TEST_CASE("the advisory pre-scan walks the INSTALL ROOT first, then the executable's folder", "[guard][prescan]") {
|
||||
// Until 2026-09-25 the advisory pre-scan scanned the directory it was handed, and the Agent handed it the
|
||||
// executable's own folder: for Lies of P's layout, a folder of seven files, with EasyAntiCheat/ three levels up.
|
||||
// The chokepoint resolved the root all along; the scan that decides whether hooking may be enabled did not.
|
||||
// The chokepoint resolved the root all along; the scan that decides whether hooking may be enabled did not. A hit
|
||||
// at the root is the answer, so nothing is walked after it.
|
||||
const std::wstring root = LR"(D:\SteamLibrary\steamapps\common\Lies of P)";
|
||||
const std::wstring exe = root + LR"(\LiesofP\Binaries\Win64\LOP-Win64-Shipping.exe)";
|
||||
ResetFake();
|
||||
g.dirEntries = {{"EasyAntiCheat", true}};
|
||||
const Verdict v = StaticPreScanGameWithSources(
|
||||
LR"(D:\SteamLibrary\steamapps\common\Lies of P\LiesofP\Binaries\Win64\LOP-Win64-Shipping.exe)", FakeSources());
|
||||
const Verdict v = StaticPreScanGameWithSources(exe.c_str(), FakeSources());
|
||||
CHECK(v.reason == Reason::kAntiCheatDirectory);
|
||||
CHECK(g.lastScannedDir == LR"(D:\SteamLibrary\steamapps\common\Lies of P)");
|
||||
CHECK(g.lastStoreRoot == LR"(D:\SteamLibrary\steamapps\common\Lies of P)");
|
||||
CHECK(g.lastScannedDir == root);
|
||||
CHECK(g.scannedDirs.size() == 1);
|
||||
CHECK(g.lastStoreRoot == root);
|
||||
|
||||
// A clean root: the executable's own folder is walked next (2026-10-13), and both are clean.
|
||||
ResetFake();
|
||||
g.dirEntries = {{"LOP-Win64-Shipping.exe", false}};
|
||||
CHECK(StaticPreScanGameWithSources(exe.c_str(), FakeSources()).Allowed());
|
||||
REQUIRE(g.scannedDirs.size() == 2);
|
||||
CHECK(g.scannedDirs[0] == root);
|
||||
CHECK(g.scannedDirs[1] == root + LR"(\LiesofP\Binaries\Win64)");
|
||||
}
|
||||
|
||||
TEST_CASE("an anti-cheat folder beside a nested executable refuses -- Wuthering Waves", "[guard][prescan]") {
|
||||
// MEASURED 2026-10-13 (spike-notes §19). Wuthering Waves keeps Tencent's ACE in `Client\Binaries\Win64\
|
||||
// AntiCheatExpert\`, beside `Client-Win64-Shipping.exe` and four levels under its install root. The root's walk named
|
||||
// `Win64` and never opened it (kMaxPreScanDepth), so the library pre-scan read the game clean three times, and a
|
||||
// session was hooked for 37 s before the 30 s re-scan met ACE's driver — a machine-wide finding, which turned
|
||||
// nothing off. The root's listing here is what the real walk returns to that depth.
|
||||
const std::wstring root = LR"(D:\SteamLibrary\steamapps\common\Wuthering Waves)";
|
||||
const std::wstring exeDir = root + LR"(\Client\Binaries\Win64)";
|
||||
const std::wstring exe = exeDir + LR"(\Client-Win64-Shipping.exe)";
|
||||
|
||||
ResetFake();
|
||||
g.listingAt[root].entries = {
|
||||
{"Client", true}, {"Binaries", true}, {"Win64", true}, {"Engine", true}, {"Wuthering Waves.exe", false}};
|
||||
g.listingAt[exeDir].entries = {
|
||||
{"AntiCheatExpert", true}, {"ACE-BASE.sys", false}, {"Client-Win64-Shipping.exe", false}};
|
||||
|
||||
const Verdict advisory = StaticPreScanGameWithSources(exe.c_str(), FakeSources());
|
||||
REQUIRE_FALSE(advisory.Allowed());
|
||||
CHECK(advisory.reason == Reason::kAntiCheatDirectory);
|
||||
CHECK(std::strcmp(advisory.family, "Anti-Cheat Expert") == 0);
|
||||
CHECK(std::strcmp(advisory.signal, "AntiCheatExpert") == 0);
|
||||
REQUIRE(g.scannedDirs.size() == 2);
|
||||
CHECK(g.scannedDirs[1] == exeDir);
|
||||
|
||||
// The chokepoint, from the pid: the seam names the executable's folder, the store half asks the root resolved from
|
||||
// it, and check 4 walks both.
|
||||
g.scannedDirs.clear();
|
||||
g.imageDirectory = exeDir;
|
||||
const Verdict chokepoint = EvaluateWithSources(1234, FakeSources());
|
||||
REQUIRE_FALSE(chokepoint.Allowed());
|
||||
CHECK(chokepoint.reason == Reason::kAntiCheatDirectory);
|
||||
CHECK(std::strcmp(chokepoint.family, "Anti-Cheat Expert") == 0);
|
||||
CHECK(g.lastStoreRoot == root);
|
||||
REQUIRE(g.scannedDirs.size() == 2);
|
||||
CHECK(g.scannedDirs[0] == root);
|
||||
CHECK(g.scannedDirs[1] == exeDir);
|
||||
}
|
||||
|
||||
TEST_CASE("an executable at its install root is walked once", "[guard][prescan]") {
|
||||
ResetFake();
|
||||
g.dirEntries = {{"game.exe", false}};
|
||||
CHECK(StaticPreScanGameWithSources(LR"(D:\SteamLibrary\steamapps\common\Some Title\game.exe)", FakeSources())
|
||||
.Allowed());
|
||||
REQUIRE(g.scannedDirs.size() == 1);
|
||||
CHECK(g.scannedDirs[0] == LR"(D:\SteamLibrary\steamapps\common\Some Title)");
|
||||
|
||||
// So is one no store boundary names — its folder is its root — from the pid as from the path.
|
||||
ResetFake();
|
||||
g.dirEntries = {{"game.exe", false}};
|
||||
CHECK(EvaluateWithSources(1234, FakeSources()).Allowed());
|
||||
REQUIRE(g.scannedDirs.size() == 1);
|
||||
CHECK(g.scannedDirs[0] == L"C:\\Games\\Example");
|
||||
}
|
||||
|
||||
TEST_CASE("a walk of the executable's folder that could not finish refuses after a clean root",
|
||||
"[guard][prescan][failclosed]") {
|
||||
const std::wstring root = LR"(D:\SteamLibrary\steamapps\common\Nested)";
|
||||
const std::wstring exeDir = root + LR"(\Game\Binaries\Win64)";
|
||||
ResetFake();
|
||||
g.listingAt[root].entries = {{"Game", true}};
|
||||
g.listingAt[exeDir].entries = {{"Game-Win64-Shipping.exe", false}};
|
||||
g.listingAt[exeDir].result = Collected::kIncomplete;
|
||||
const Verdict v = StaticPreScanGameWithSources((exeDir + LR"(\Game-Win64-Shipping.exe)").c_str(), FakeSources());
|
||||
REQUIRE_FALSE(v.Allowed());
|
||||
CHECK(v.reason == Reason::kPreScanFailed);
|
||||
}
|
||||
|
||||
TEST_CASE("the advisory pre-scan runs check 3 on the executable's own name", "[guard][prescan][check3]") {
|
||||
@@ -4172,6 +4264,67 @@ TEST_CASE("the real seam reads a GOG product id, and a plain folder carries none
|
||||
RemoveDirectoryW(root.c_str());
|
||||
}
|
||||
|
||||
TEST_CASE("the real walk reaches an anti-cheat folder beside a nested executable", "[guard][prescan][real]") {
|
||||
// Wuthering Waves' layout, on disk (2026-10-13). From the root the real walk names `Win64` and never opens it — the
|
||||
// reach this test pins — and check 4's second walk, from the executable's own folder, finds `AntiCheatExpert\`.
|
||||
const std::wstring lib = MakeTempTree(L"nested");
|
||||
const std::wstring steamapps = lib + L"\\steamapps";
|
||||
const std::wstring root = steamapps + L"\\common\\Game";
|
||||
const std::wstring exeDir = root + L"\\Client\\Binaries\\Win64";
|
||||
const std::wstring ac = exeDir + L"\\AntiCheatExpert";
|
||||
for (const std::wstring& d : {lib, steamapps, steamapps + L"\\common", root, root + L"\\Client",
|
||||
root + L"\\Client\\Binaries", exeDir, ac}) {
|
||||
CreateDirectoryW(d.c_str(), nullptr);
|
||||
}
|
||||
const std::wstring exe = exeDir + L"\\Game-Win64-Shipping.exe";
|
||||
WriteText(exe, "MZ");
|
||||
WriteText(ac + L"\\ACE-Base64.dll", "MZ");
|
||||
|
||||
Sources s = SystemSources();
|
||||
REQUIRE(s.EnumerateDirEntries != nullptr);
|
||||
|
||||
std::vector<std::string> fromRoot;
|
||||
const DirEntrySink collect = [](void* ctx, const char* name, bool) {
|
||||
static_cast<std::vector<std::string>*>(ctx)->push_back(name);
|
||||
return true;
|
||||
};
|
||||
REQUIRE(s.EnumerateDirEntries(root.c_str(), collect, &fromRoot) == Collected::kOk);
|
||||
CHECK(std::find(fromRoot.begin(), fromRoot.end(), "Win64") != fromRoot.end());
|
||||
CHECK(std::find(fromRoot.begin(), fromRoot.end(), "AntiCheatExpert") == fromRoot.end());
|
||||
|
||||
// The pre-scan over the real walk and the real store seam (no manifest names this install), with the fixture's
|
||||
// rules: the floor carries ACE's folder whatever the file says.
|
||||
ResetFake();
|
||||
s.ReadRulesFile = &FakeReadRules;
|
||||
const Verdict v = StaticPreScanGameWithSources(exe.c_str(), s);
|
||||
REQUIRE_FALSE(v.Allowed());
|
||||
CHECK(v.reason == Reason::kAntiCheatDirectory);
|
||||
CHECK(std::strcmp(v.family, "Anti-Cheat Expert") == 0);
|
||||
|
||||
// The folder gone, the same tree is clean: the second walk refuses nothing it should not.
|
||||
DeleteFileW((ac + L"\\ACE-Base64.dll").c_str());
|
||||
RemoveDirectoryW(ac.c_str());
|
||||
CHECK(StaticPreScanGameWithSources(exe.c_str(), s).Allowed());
|
||||
|
||||
DeleteFileW(exe.c_str());
|
||||
for (const std::wstring& d :
|
||||
{exeDir, root + L"\\Client\\Binaries", root + L"\\Client", root, steamapps + L"\\common", steamapps, lib}) {
|
||||
RemoveDirectoryW(d.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("the real ImageDirectory names the executable's own folder", "[guard][prescan][real]") {
|
||||
// Not the install root (2026-10-13): the checks resolve that themselves, and check 4 walks both.
|
||||
wchar_t self[MAX_PATH] = {};
|
||||
REQUIRE(GetModuleFileNameW(nullptr, self, MAX_PATH) != 0);
|
||||
std::wstring folder(self);
|
||||
folder.resize(folder.find_last_of(L"\\/"));
|
||||
|
||||
wchar_t out[kMaxPreScanPathLen] = {};
|
||||
REQUIRE(SystemSources().ImageDirectory(GetCurrentProcessId(), out, kMaxPreScanPathLen) == Collected::kOk);
|
||||
CHECK(_wcsicmp(out, folder.c_str()) == 0);
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
// Check 2b against the REAL service control manager.
|
||||
//
|
||||
@@ -5887,6 +6040,26 @@ TEST_CASE("D33 -- the advisory pre-scan answers the same question the chokepoint
|
||||
CHECK(std::string(aniimo.family) == kKernelDriverInTreeFamily);
|
||||
}
|
||||
|
||||
TEST_CASE("D33 -- the executable's folder is walked under the same exception", "[guard][D33][prescan]") {
|
||||
// 2026-10-13: check 4's second walk takes the tolerance and the finding record exactly as the first does — the
|
||||
// family's file beside a nested executable is recorded, and a kernel driver there still refuses.
|
||||
const std::wstring root = LR"(D:\SteamLibrary\steamapps\common\Nested Yidun)";
|
||||
const std::wstring exeDir = root + LR"(\Game\Binaries\Win64)";
|
||||
const std::wstring exe = exeDir + LR"(\Game-Win64-Shipping.exe)";
|
||||
ResetFake();
|
||||
g.listingAt[root].entries = {{"Game", true}};
|
||||
g.listingAt[exeDir].entries = {{"Game-Win64-Shipping.exe", false}, {"NEP2.dll", false}};
|
||||
|
||||
const Verdict v = StaticPreScanGameWithSources(exe.c_str(), FakeSources(), kYidun);
|
||||
CHECK(v.reason == Reason::kAllowedUserModeException);
|
||||
CHECK(std::string(v.signal) == "NEP2.dll");
|
||||
|
||||
g.listingAt[exeDir].entries.push_back({"NEPKernel.sys", false});
|
||||
const Verdict driver = StaticPreScanGameWithSources(exe.c_str(), FakeSources(), kYidun);
|
||||
CHECK(driver.reason == Reason::kAntiCheatFile);
|
||||
CHECK(std::string(driver.family) == kKernelDriverInTreeFamily);
|
||||
}
|
||||
|
||||
TEST_CASE("D33 -- the excepted family's module loading late does not stop the Overlay; any other family still does",
|
||||
"[guard][inject][shm][loader][D33]") {
|
||||
// The Overlay's half. A decoy named `NEP2.dll` (NetEase Yidun's module, an exact floor match) loads 2.5 s after
|
||||
|
||||
Reference in new issue
Block a user