News for hackers. Stuff that matters.
Re:Watchy: a distributed system monitoring solution by gingerlime on Saturday July 12, 2014 @03:48PM (#8025608)
UDP might be a rather poor-choice security-wise, especially if you rely on this monitoring to alert you if something goes down.

It's much easier to spoof a UDP packet from an arbitrary source-IP address than it is with TCP.

It gives a fairly easy opportunity for attackers to fake all your service metrics, make it look like everything is Up/Down etc...

Re:Watchy: a distributed system monitoring solution by cbsmith on Saturday July 12, 2014 @08:02PM (#8026158)
TCP's spoof protections are fairly limited and weak. If you are worried about being spoofed, address it at layer-7. I wouldn't let spoofing concerns drive my choice of layer-3 protocol.
Re:Watchy: a distributed system monitoring solution by mobiplayer on Sunday July 13, 2014 @10:22AM (#8027391)
I personally hope you chose IP as a layer-3 protocol.

You might want to decide between TCP and UDP for layer-4, though, but as gingerlime pointed out it is stupidly easy to successfully spoof UDP comms, there's not even need to have a MITM situation. Same goes for ICMP.

Re:Watchy: a distributed system monitoring solution by cbsmith on Sunday July 13, 2014 @11:30AM (#8027596)
> I personally hope you chose IP as a layer-3 protocol.

ROTFL! Whoopsie. ;-)

> You might want to decide between TCP and UDP for layer-4, though, but as gingerlime pointed out it is stupidly easy to successfully spoof UDP comms, there's not even need to have a MITM situation. Same goes for ICMP.

Yes, but TCP's protections are quite weak. If you are really concerned about spoofing, you are much better off handling that with cryptographic solutions.

Re:Watchy: a distributed system monitoring solution by gingerlime on Sunday July 13, 2014 @06:30AM (#8027056)
Spoofing a TCP source address is still pretty hard compared to UDP. And security should always be applied in layers, so if your risk profile is such, then relying on source IP protection alone might not be enough.
Re:Watchy: a distributed system monitoring solution by cbsmith on Sunday July 13, 2014 @11:31AM (#8027600)
Probably shouldn't use IP then... ;-)
Re:Watchy: a distributed system monitoring solution by misframer on Saturday July 12, 2014 @07:59PM (#8026153)
You could encrypt datagrams.
Re:Watchy: a distributed system monitoring solution by gingerlime on Sunday July 13, 2014 @06:35AM (#8027063)
encryption != authentication. Even if you encrypt the datagrams, what stops someone from replaying them? and there are other attack vectors. You probably want to use something like HMAC in this case. But it all depends on your risk profile and environment.

I just highlighted one potential attack vector that I didn't see being addressed explicitly, and which might have implications.

If the tool explicitly provided message authentication for the UDP datagrams, I would probably not have made the same comment. I think the security fundamentals were missing, let alone more advanced layers of protection.