<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 9, 2017 at 6:43 AM, Daniel Roethlisberger <span dir="ltr">&lt;<a href="mailto:daniel@roe.ch" target="_blank">daniel@roe.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Specifically, I am not interested in manually approving agent<br>
requests.  The ratio of hassle to mitigated risk is unreasonable<br>
in my opinion.  It addresses a narrow category of attacks while<br>
not helping against other attacks with similar prerequisites and<br>
risk (e.g. injecting commands into TTYs of SSH sessions from the<br>
compromised system, or replacing a legit auth challenge on the<br>
compromised server as it is being handed to the client machine&#39;s<br>
agent where it will be approved by the user).  So unless the<br>
confirmations can be easily removed by configuration or patching,<br>
I won&#39;t be overly excited about this.<br></blockquote><div><br></div><div>Thanks for your feedback, Daniel. I think if you try it, you will be pleasantly surprised.</div><div><br></div><div>On the issue of &quot;manually approving agent requests&quot; -- you don&#39;t have to. The local agent gets to see and approve each request, but the user can &quot;allow forever&quot; and doesn&#39;t need to approve each request manually.</div><div><br></div><div><div>Re: &quot;additional network and firewall considerations,&quot; Guardian Agent just runs over autossh. If you can SSH to the intermediary, you can run Guardian Agent.</div></div><div><br></div><div>On the &quot;other attacks with similar prerequisites&quot; -- if I understand you, Guardian Agent already prevents these attacks. The &quot;legit auth challenge&quot; is bound to the triple of { intermediary machine, command, server }, so it&#39;s not possible to &quot;replace&quot; a legit auth challenge and use the user&#39;s credentials to execute a different command (or on a different server, or from a different intermediary) than what was requested. (The way that Guardian Agent works is that the local agent actually issues the command to the remote server before handing over the session to the intermediary.) So while a compromised intermediary machine can *ask* to execute an evil command, the agent will know about it and it won&#39;t match some prior &quot;allow&quot; rule in the local configuration.</div><div><br></div><div>(To be clear, this works best for commands like &#39;git fetch-pack&#39; to a particular repository or something like that, where the command is not going to allow arbitrary follow-on commands to be executed. If the user wants to execute a shell or some other interactive session, then yes, this doesn&#39;t prevent a malicious intermediary from later inserting arbitrary input into the session. Probably the best thing in that case, if you really don&#39;t trust the intermediary, would be to just to use the intermediary to ferry ciphertext bytes and not to let it see the plaintext at all. But even in that case, at least Guardian Agent still lets you lock down which intermediaries can connect to which remote servers.)</div><div><br></div><div>-Keith</div></div></div></div>