From: Shiva V Subject: What to log in case of untrusted hypervisor Date: Wed, 13 Aug 2014 21:54:07 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from plane.gmane.org ([80.91.229.3]:39285 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751852AbaHMVy2 (ORCPT ); Wed, 13 Aug 2014 17:54:28 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XHgUt-0000ZB-3U for kvm@vger.kernel.org; Wed, 13 Aug 2014 23:54:19 +0200 Received: from 192.12.88.159 ([192.12.88.159]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Aug 2014 23:54:19 +0200 Received: from shivaramakrishnan740 by 192.12.88.159 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Aug 2014 23:54:19 +0200 Sender: kvm-owner@vger.kernel.org List-ID: Hello, I am working on testbed executing some secure applications on untrusted hypervisor (in my case kvm). In order to verify the run time integrity of applications,I am using an idea based on write xor execute protection protecting any of the page table updates of hypervisor&user code/data using WP bit making it read only. I am capturing the request in the handler,temporarily making it write,log and then make it read only again. I am also using tamper-evident logging mechanism to log any events related to it. I have a few questions. 1. What are the ideal events that one needs to log so that if one needs to replay the log,he can do so to verify. 2. How can one create tamper-evident logging mechanism? How could client and the provider verify that each events are logged as intended without a miss. 3.How can one create a logging mechanism (say per client basis). In that case, if required we could replay the log so that we could capture the malicious event.