Remix.run Logo
▲ littlecranky67 7 hours ago

I'd suggest to use ssh keys inside the secure enclave on macOS that require your fingerprint for every new session [0]. That way agents cannot initiate anything, and you will always be aware when a new ssh connection is being made.

[0]: https://gist.github.com/arianvp/5f59f1783e3eaf1a2d4cd8e952bb...

▲bradfa 6 hours ago | parent | next [-]

Or in a Yubikey and set the touch-required mechanism (light in the key will blink when it needs a touch to continue the auth).

▲causal 2 hours ago | parent | prev | next [-]

1Password also supports this BUT that does not prevent your agent from being forwarded and you still have to inspect each command being used if you don't trust your agent.

Halfway better would be a separate key for each concern, then check that the key you expect to be used is being used before authorizing.

▲itissid 6 hours ago | parent | prev | next [-]

I've been using secretive on the mac for exactly this.

▲lucasoshiro 4 hours ago | parent [-]

Secretive is amazing! I know that it's not its purpose, but it would be great if it could store more than ssh keys, like providing a safe place for my .envs

▲vulture916 3 hours ago | parent [-]

I know it's not open-source, but this is how I use 1Password with FIFO .envs. I'm unsure if 1P stores its SSH in the enclave, but it works the same way - whenever SSH key is accessed, it prompts for TouchID or password.

Besides the open source, any reason why I should use secretive over 1P?

- someone trying to be better about security no matter how annoyed.

▲petesergeant 2 hours ago | parent [-]

> I'm unsure if 1P stores its SSH in the enclave

I am reasonably sure the answer is no, as evidenced by it being exportable

▲france_france 2 hours ago | parent | prev [-]

[flagged]