GhostKey
About 606 wordsAbout 2 min
GhostKey covers CVE-2026-98260. The chain calibrates kernel addresses, injects rootd to establish a temporary root channel, then optionally hands over to KernelSU.
Entry: Manual escalation → More actions → GhostKey.
Preflight
| Check | Behavior when missing |
|---|---|
| ADB connected | "ADB not connected" |
| Shell identity is 2000 | "Shell identity is not 2000" |
| No seccomp filter on the shell | "Shell carries a seccomp filter" |
| Payload binary present | "Payload file missing" |
| A profile exists for this kernel | "No profile for this kernel version" |
| No other GhostKey task running | "A task is already running" |
When the preflight ends as "not started", the terminal runs no stages and the progress panel is not shown.
Confirmation
| Field | Value |
|---|---|
| Manager | Selected manager, or "not selected" |
| Kernel version | Device release |
| Shell uid | Current uid |
| Seccomp | Raw value |
| Profile hit | Yes / no |
| Take over KSU | Yes / no |
| Accept degraded offset | Yes / no |
The two toggles come from the GhostKey group in Settings:
| Setting | Notes |
|---|---|
| Take over KernelSU | Hands kernel capability to KernelSU after a successful run |
| Accept degraded offset | Continues injection when linear-map confidence is low instead of aborting |
Risk note: the operation calibrates kernel mappings and injects rootd, and the device may be briefly unavailable. The primary action is Start escalation.
Five stages
While running, a progress panel above the terminal lists each stage with state and duration (seconds, one decimal):
| Stage | Name | In-progress hint |
|---|---|---|
| 1 | KASLR slide calibration | Locate the kernel base |
| 2 | Linear map calibration | Calibrate the linear map |
| 3 | Inject rootd | Inject and start rootd |
| 4 | Verify temporary root | Verify the root channel |
| 5 | Take over KernelSU | Hand over to KernelSU |
A fallback confidence in stage 2 does not abort; the run is classified as a degraded success. A failure in stage 2 stops the remaining stages.
Final classifications
| Conclusion | Meaning |
|---|---|
| GhostKey finished; temporary root ready | All five stages passed |
| GhostKey finished but linear-map confidence is low | Degraded success |
| KASLR slide calibration failed | calib_a failed, exit code 2 |
| Linear-map base calibration failed | calib_b failed, exit code 3 |
| Injection failed: rootd not ready | Inject stage failed, exit code 4 |
| Temporary root channel verification failed | verify stage failed, exit code 5 |
| Temporary root ready but KernelSU takeover failed | Exit code 0 with the ksu stage marked failed |
| GhostKey timed out | Stage wait timed out or local reading was cancelled |
| GhostKey did not start: reason | Acceptance failure |
| GhostKey failed | Evidence without a conclusion |
Acceptance failures:
| Reason code | Display |
|---|---|
alreadyRunning | A task is already running |
noAdb | ADB not connected |
notShell | Shell identity is not 2000 |
seccompFiltered | Shell carries a seccomp filter |
missingBinary | Payload file missing |
noProfile | No profile for this kernel version |
badRequest | Invalid request parameters |
Stop
A stop button appears while running. It ends local reading while device-side processes continue, and the terminal then writes a timeout conclusion.
After success
Whether KernelSU is taken over depends on the "take over KernelSU" toggle. When takeover fails, the conclusion states that temporary root is ready but KernelSU takeover failed; a handoff can still be started separately from Hand off to current manager in the menu.
Kernel profiles
GhostKey needs a profile for the current release. Under Settings → Kernel profiles → GhostKey:
- My profiles lists imported documents; tapping the dot on the left sets the active one.
- Built-in is read-only; the row matching the local kernel is labelled.
- When neither is selected, the runtime uses the most recently imported document with the same release, then falls back to an exact built-in match.
Generation is described in Kernel Profiles.