[libvirt] security: the qemu agent command "guest-exec" may cause Insider Access

Zhangbo (Oscar) oscar.zhangbo at huawei.com
Fri Aug 25 06:45:18 UTC 2017

Hi all:
     The Host Administrator is capable of running any exec in guests via the qemu-ga command "guest-exec", eg:

        virsh qemu-agent-command test_guest '{"execute": "guest-exec", "arguments": {"path": "ifconfig", "arg": [ "eth1", "" ],"capture-output": true } }'
       virsh qemu-agent-command test_guest '{"execute": "guest-exec-status", "arguments": { "pid": 12425 } }'

      The example above just change the guests' ip address, the Administrator may also change guests' user password, get sensitive information, etc. which causes Insider Access.
      The Administrator also can use other commands such as " guest-file-open" that also cause Insider Access.

      So, how to avoid this security problem, what's your suggestion?

Best Regrads

More information about the libvir-list mailing list