Re:The Ptrace Anti-Re Trick
by adtac on Sunday August 27, 2023 @08:01PM
(#37287944)
The malware will then rely on actual ptrace behaviour as a check. You could instead use seccomp_unotif and let the target ptrace itself as much as it wants: https://man.archlinux.org/man/seccomp_unotify.2.en
[ Parent
| on HN ]
I don't know reverse engineering. But, I guess the ultimate solution would be running a custom OS to fake ptrace results in the kernel level?
Re:The Ptrace Anti-Re Trick
by scandinavian on Monday August 28, 2023 @03:30AM
(#37290956)
You can just use LD_PRELOAD to load your own version of ptrace. Not as stealthy though.