News for hackers. Stuff that matters.
Re:Socat – A utility for data transfer between two addresses... by cperciva on Saturday March 27, 2021 @12:41PM (#26603554)
A similar tool: spiped[0]. Connects two arbitrary TCP4, TCP6, or UNIX socket addresses, encrypting + authenticating data using a preshared key. For many applications it's basically socat + security.

[0] https://www.tarsnap.com/spiped.html

Re:Socat – A utility for data transfer between two addresses... by qbasic_forever on Saturday March 27, 2021 @02:38PM (#26604378)
Have they done any audits or had critical analysis of their security code? These days I'm super hesitant to consider anything that hasn't had a lot of eyes on it. It's just too easy for a tiny screwup in protocol design/implementation, random number generation, etc. that puts everything at risk. Why risk it when I can just use wireguard.
Re:Socat – A utility for data transfer between two addresses... by boulos on Saturday March 27, 2021 @02:51PM (#26604490)
cperciva is the author of spiped and a security expert [0].

But your question about an audit is still a good one! Tarsnap has bug bounties, but the top hit for “spiped security audit” led to a sort of amusing flame war on HN [1].

[0] https://www.tarsnap.com/about.html

[1] https://news.ycombinator.com/item?id=7539903

Re:Socat – A utility for data transfer between two addresses... by cperciva on Saturday March 27, 2021 @06:10PM (#26606073)
Lots of people have looked at the spiped source code; it has been around since 2011 and I've even handed out a few bug bounties.

It's also considerably simpler than wireguard, which reduces the potential for vulnerabilities; and operates on a per-connection basis, which means you can do things like establishing a secure connection to another host but have a socket endpoint which can only be accessed by certain users.

Re:Socat – A utility for data transfer between two addresses... by nirav on Saturday March 27, 2021 @07:29PM (#26606586)
"lots of people looking at source code" is contemporarily a weak argument against audit and review by experts, I really love spiped.
Re:Socat – A utility for data transfer between two addresses... by cperciva on Saturday March 27, 2021 @09:00PM (#26607122)
"lots of people looking at source code" is contemporarily a weak argument against audit and review by experts

I would absolutely love to get some deliberate code review from experts. I know tedu has looked at some of the code -- he sent me some minor corrections -- and I would certainly count him as an expert, but I don't know if his review was systematic or if he just glanced at a handful of files.

Re:Socat – A utility for data transfer between two addresses... by qbasic_forever on Saturday March 27, 2021 @08:48PM (#26607072)
That's awesome, thanks for clarifying! Looks like a really handy and useful tool to keep in the toolbox.