You need arbitrary <i>read and write</i> memory access to abuse it (how would you otherwise make the signing request? You can&#x27;t just steal one, as they&#x27;re unique for their purpose), not just read, which is <i>much</i> more than heartbleed was capable of. You of course have this with root, but I&#x27;d like to point it out regardless.<p>I wrote it because, in the case that you have an evil user that scans all physical memory, you can&#x27;t do anything on the computer and still be safe. ssh -W bypasses the host, and due to various cryptographic features of that setup, the only thing that could happen would be to have someone break the connection or present you with incorrect host keys, which the client would detect. I&#x27;m of course assuming that they don&#x27;t have a SSH vulnerability, as that&#x27;s a completely different story regardless of agent forwarding.<p>You can&#x27;t use that machine for anything else and still be safe, and the presence of that machine on your network is a bad sign, most likely indicating that other things will be taken over as well in the same way that they got first one, or already is compromised, including some of your endpoints. While agent forwarding to the final host isn&#x27;t necessary, your network is compromised, meaning that other important thing most likely got stolen, just not your private key. If your trumph card is that they don&#x27;t have your private key, it&#x27;s kind of like standing at a house that has been completely destroyed with all valuables in it, holding a key and saying &quot;Well, at least they didn&#x27;t get the key for the front door!&quot;. In this case, having private keys for different purposes would be a good way to isolate things, just in case. I personally separate work keys and private (as in spare time) keys.<p>I know I&#x27;m exaggerating the comparison a bit, but the setup required to take over agent forwarding on a network you control, means that you&#x27;re screwed regardless. Agent forwarding should be used with care, ssh-add -c being absolutely necessary, but agent forwarding has its uses, and many of the cases where I&#x27;d be attacked means that I have more pressing matters to deal with.