On Mon, Jul 21, 2014 at 05:48:34AM -0700, Ori Gil wrote:
>
>
> I'm trying to find a way to perform a memory dump on a docker container in
> order to perform memory forensics (to detect malware exploits for example).
> I would like to be able to perform the same methods I use on a virtual
> machine. The problem is that docker containers (and any kind of linux
> containers) use memory in a different way - containers share resources, use
> namespaces and cgroups...
>
> *I'd like to program a tool that performs this but am a bit lost as to
> where to begin.*
>
> How would one approach this problem?
>
> Thanks in advance!
>
Hi,
I'm not (yet?) a Docker developer, but I can answer a few general questions and give some hints.
A container is just a bunch of processes in a seperate namespace.
So sounds to me like you want to get a list of processes of which you need to dump the memory content of.
And you want to snapshot that memory as a whole, at the same time.
So you might want to freeze all the processes in the container before you dump the memory.
If it is specifically for malware, you might want to know a bit more about the kernel structures that are in use for these processes.
Have you looked at
http://criu.org/ yet ?
Hope this helps.
Have a good day,
Leen.
> --
> You received this message because you are subscribed to the Google Groups "docker-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
docker-dev+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.