Unrestricted usage of ptrace allows compromised binaries to run ptrace on other processes of the user. The attacker can then steal sensitive information from the target processes (e.g., SSH sessions, web browser, etc.) without any additional assistance from the user (i.e., without resorting to phishing).
Check
Verify RHEL 10 restricts the usage of ptrace to descendant processes.
Check the status of the "kernel.yama.ptrace_scope" kernel parameter with the following command: