News for hackers. Stuff that matters.
Re:New ‘Meow’ attack has deleted almost 4k unsecured databases by usmannk on Sunday July 26, 2020 @02:14PM (#23958955)
Isn’t exposing ports in your docker-compose services:redis:ports, how you’d do that? (Docker hobbyist here)
Re:New ‘Meow’ attack has deleted almost 4k unsecured databases by jcrawfordor on Sunday July 26, 2020 @02:26PM (#23959026)
My guess would be that they went with "ports" instead of "expose" which makes it public. But even with careful composition of your docker-compose you might want to be careful, Docker can interact with iptables in surprising ways and long iptables rulesets are almost comically difficult to validate sometimes. The result is that if you're using both Docker (and even more if you use Compose, Kubernetes, some other orchestrator) and doing anything else with iptables (including using it as a host firewall) you need to take a lot of caution to make sure you don't mess anything up. These tools usually confine their changes to custom chains to make this stuff easier to sort out but at the same time it can make it more difficult to understand what's happening, particularly with the use of tagging and etc.

In general I would recommend putting some kind of protection between machines running Docker (and especially orchestrators) and the internet. This could be cloud provider mechanisms (security groups, ACLs, etc), a firewall appliance, NAT gateway configuration, etc. depending on the situation. It's not necessary, but it makes the situation easier to audit/validate, and more layers of protection seldom hurt. If nothing else it means that much of the time you'll need to make a mistake in two places instead of one, in order to have an unintended exposure.

Re:New ‘Meow’ attack has deleted almost 4k unsecured databases by gerdesj on Sunday July 26, 2020 @02:41PM (#23959146)
"and long iptables rulesets are almost comically difficult to validate sometimes."

Use nmap to evaluate your policy from the outside, don't try to validate it in your head by inspection.

Re:New ‘Meow’ attack has deleted almost 4k unsecured databases by acdha on Sunday July 26, 2020 @06:05PM (#23960541)
Use Shodan.io’s monitor feature and you’ll get alerting, too.
Re:New ‘Meow’ attack has deleted almost 4k unsecured databases by gavinray on Sunday July 26, 2020 @03:28PM (#23959497)
Friendly FYI, "EXPOSE" is a no-op that is only meant as visual documentation to end-users.

  "The EXPOSE instruction does not actually publish the port. It functions as a type of documentation between the person who builds the image and the person who runs the container, about which ports are intended to be published."
Second paragraph:

https://docs.docker.com/engine/reference/builder/#expose

Re:New ‘Meow’ attack has deleted almost 4k unsecured databases by jcrawfordor on Sunday July 26, 2020 @03:50PM (#23959652)
I'm referring to docker-compose, where 'port' and 'expose' are container configuration options that behave differently from the Dockerfile keyword.

Although the similar words with different meanings no doubt contribute to confusion.

Re:New ‘Meow’ attack has deleted almost 4k unsecured databases by gavinray on Sunday July 26, 2020 @04:09PM (#23959795)
Ah, my mistake. That comes off pretty asinine then, apologies.