def Initialize(self):
    super(AFF4MemoryStreamBase, self).Initialize()
    contents = ""

    if "r" in self.mode:
      contents = self.Get(self.Schema.CONTENT)
      try:
        if contents is not None:
          contents = zlib.decompress(utils.SmartStr(contents))
      except zlib.error:
        pass

    self.fd = StringIO.StringIO(contents)
    self.size = len(contents)
    self.offset = 0
Set some sensible restrictions in Ubuntu /etc/ssh/sshd_config and restart sshd
dataset/ETHPy150Open google/grr/grr/lib/aff4.py/AFF4MemoryStreamBase.Initialize--crossover with--dataset/ETHPy150Open bretth/woven/woven/linux.py/restrict_ssh