Just to note, it is not a given that "running as same user" implies "has control over all other user processes". Wayland for instance (famously) blocks that kind of attack.
It is certainly possible to enable authentication methods whereby two processes at the same privilege level cannot grab each other's secrets or tokens. Credential guard is one example, I am sure there are analogous implementations on Linux but I believe namespacing and SELinux attack this from different angles.
The next idea is to just steal the decrypted key out of RAM.
It is also not a given that a userland process can do this.