News for hackers. Stuff that matters.
Re:AWS Fargate Deep Dive by staticassertion on Sunday September 15, 2019 @02:22AM (#20975857)
Fargate solves problems like patch management, but there are other issues. If an attacker were to compromise a Fargate service they'd have less to work with, but otherwise there are a lot of advantages they'd have over EC2.

On EC2 I can deploy monitoring tools like OSQuery, or rely on audit/ other OS subsystems to monitor for suspicious behavior. On Fargate I don't think anything like this is possible.

Re:AWS Fargate Deep Dive by tptacek on Sunday September 15, 2019 @10:16AM (#20977301)
What security problem would you be addressing with osquery that Fargate doesn't already address? If you're worried that AWS is owned up, it doesn't matter which AWS service you use.
Re:AWS Fargate Deep Dive by staticassertion on Monday September 16, 2019 @02:10PM (#20986930)
Attacker owns my service, spawns a shell. OSQuery will tell me that a new process is running. Fargate will not tell me anything, to my knowledge.

OSQuery as a sidecar might work, if you stuff it in the container, but I doubt it can access the audit subsystem and I'm unsure if it's really been tested in that sort of environment.

I'm not concerned about container escapes or the underlying host being owned.

Re:AWS Fargate Deep Dive by tptacek on Monday September 16, 2019 @03:30PM (#20987707)
My take: you can run osquery in a container, but people don't, because osquery does a lot of stuff that doesn't make sense in a container environment, where you start from minimized, fine-grained control over the environment (honestly, I see a lot more productionized osquery in endpoint security than I do in serverside security). Anything you're trying to accomplish with osquery in a Fargate container, you can presumably accomplish with it or something else.
Re:AWS Fargate Deep Dive by staticassertion on Monday September 16, 2019 @05:51PM (#20988927)
OSQuery was merely a strawman, I also mentioned the audit subsystem, but these are just implementation details.

I can not easily, in a supported fashion, track things like process executions or file interactions in a Fargate container. Maybe OSQuery could run as a sidecar, maybe auditd is actually exposed to the container, I honestly don't know.

The end result is that companies leveraging things like aws lambda or fargate are also likely giving up instrumentation that they would consider standard on EC2.

I don't think this is really controversial to say. You can absolutely justify to me that instrumentation is not worth 3rd party patch management and a nice ACL system etc.

Re:AWS Fargate Deep Dive by fovc on Sunday September 15, 2019 @01:00PM (#20978172)
I was thinking of this very limitation when posting the original Q. If e.g., there a RCE issue with my PHP server on Fargate, as the attacker I have a foothold and there's no monitoring inside the container as I try to move laterally. I guess the same is true with EC2 backed containers though
Re:AWS Fargate Deep Dive by tptacek on Sunday September 15, 2019 @01:47PM (#20978435)
You can instrument the container itself (the environment in which RCE against PHP would provide an attacker).

You can't instrument the container engine or the host server, because AWS owns the security of those. But AWS will do a better job with those than you will, or at least, your whole usage of AWS is premised on that.

Re:AWS Fargate Deep Dive by fovc on Sunday September 15, 2019 @07:59PM (#20980191)
How often do people actually instrument their containers? I guess my original premise is wrong if you can simply set up the same monitoring inside your container
Re:AWS Fargate Deep Dive by tptacek on Sunday September 15, 2019 @08:51PM (#20980335)
You can't do the same things; for instance, some container instrumentation schemes want an LKM to be resident, and that obviously won't work on Fargate. But you can generally accomplish the same goals.