Skip to content

WP1a: In-process mprotect cheat (fix skipped E2E test) #1

Description

@Brad-Edwards

Context

The mprotect_injector E2E test is skipped because the cheat runs as its own PID. The eBPF LSM file_mprotect hook only fires when is_protected(pid) is true. A real code injection attack does mmap+write+mprotect from within the game's address space.

Work

  • New cheats/mprotect_inject_via_ptrace.c: PTRACE_ATTACH to game, inject mmap+write+mprotect shellcode via PTRACE_POKEDATA, trigger execution from game's PID context
  • Modify scripts/verify.sh: replace skipped assertion with real detection check

Tests

2 new E2E assertions (mprotect detected, event emitted).

Part of v2.0.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions