<div dir="ltr">Cool, thanks! <br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jun 21, 2018 at 10:50 AM Brendan Dolan-Gavitt &lt;<a href="mailto:brendandg@nyu.edu">brendandg@nyu.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes; have a look at the &quot;osi&quot; plugin, which provides an API for<br>
getting information about the current process, its libraries, etc. An<br>
example use of the API can be found in the &quot;asidstory&quot; and &quot;osi_test&quot;<br>
plugins.<br>
<br>
On Wed, Jun 20, 2018 at 10:04 PM, shuai xi &lt;<a href="mailto:ahahanamea@gmail.com" target="_blank">ahahanamea@gmail.com</a>&gt; wrote:<br>
&gt; Thank you for answering my question. You say that there is a way to<br>
&gt; enabling and disabling the taint system  so that it&#39;s only active when the<br>
&gt; process you want is running. So, is there some ways to know what the current<br>
&gt; process&#39;s name or pid when replaying logs. I need some information like that<br>
&gt; to decide the place where the taint analysis should be enabled or not. Can I<br>
&gt; get this information from panda2 or qemu APIs?<br>
&gt;<br>
&gt; On Thu, Jun 21, 2018 at 9:09 AM shuai xi &lt;<a href="mailto:ahahanamea@gmail.com" target="_blank">ahahanamea@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Cool, thanks!<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Jun 20, 2018 at 11:22 PM Manolis Stamatogiannakis<br>
&gt;&gt; &lt;<a href="mailto:mstamat@gmail.com" target="_blank">mstamat@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Given the opportunity, a small update on my work on turning taint<br>
&gt;&gt;&gt; analysis on/off.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Plan A was to switch between LLVM/TCG when taint analysis is on/off.<br>
&gt;&gt;&gt; There are some waning comments in PANDA code that this should not work<br>
&gt;&gt;&gt; because of a bug in the LLVM pass registration code. But before reaching<br>
&gt;&gt;&gt; that point, I believe I&#39;ve hit a different bug. The bug seems to be<br>
&gt;&gt;&gt; allocation-related and I haven&#39;t been able to resolve it for some time now.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; So I&#39;ll probably switch to plan B, which is to stay in LLVM mode after<br>
&gt;&gt;&gt; taint analysis has been enabled and only switch off taint propagation when<br>
&gt;&gt;&gt; it is not needed.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;ll try to send a PR with what I&#39;ve done in the following days. In the<br>
&gt;&gt;&gt; meantime, my working branch is here:<br>
&gt;&gt;&gt; <a href="https://github.com/m000/panda/tree/taint2-wip" rel="noreferrer" target="_blank">https://github.com/m000/panda/tree/taint2-wip</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; M.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Στις Τετ, 20 Ιουν 2018 στις 5:03 μ.μ., ο/η Brendan Dolan-Gavitt<br>
&gt;&gt;&gt; &lt;<a href="mailto:brendandg@nyu.edu" target="_blank">brendandg@nyu.edu</a>&gt; έγραψε:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; There is no way to record just a single process. However, if the<br>
&gt;&gt;&gt;&gt; recording is too large you can use the &quot;scissors&quot; plugin to chop it<br>
&gt;&gt;&gt;&gt; down to just the part you care about. Also, I think Manolis<br>
&gt;&gt;&gt;&gt; Stamatogiannakis has done some work on selectively enabling and<br>
&gt;&gt;&gt;&gt; disabling the taint system so that it&#39;s only active when the process<br>
&gt;&gt;&gt;&gt; you want is running, but I don&#39;t know if that work is publicly<br>
&gt;&gt;&gt;&gt; available yet.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; -Brendan<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Wed, Jun 20, 2018 at 3:39 AM, shuai xi &lt;<a href="mailto:ahahanamea@gmail.com" target="_blank">ahahanamea@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; &gt; hello developer, i want to use panda2 plugins like &#39;taint2&#39; to<br>
&gt;&gt;&gt;&gt; &gt; analysis a<br>
&gt;&gt;&gt;&gt; &gt; program. But the &#39;record&#39; function records whole system. i want to<br>
&gt;&gt;&gt;&gt; &gt; just<br>
&gt;&gt;&gt;&gt; &gt; focus on this program&#39;s process and use the process&#39;s virtual address<br>
&gt;&gt;&gt;&gt; &gt; to<br>
&gt;&gt;&gt;&gt; &gt; taint a buffer of memory. Dose panda2 provide this functionality?<br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; &gt; panda-users mailing list<br>
&gt;&gt;&gt;&gt; &gt; <a href="mailto:panda-users@mit.edu" target="_blank">panda-users@mit.edu</a><br>
&gt;&gt;&gt;&gt; &gt; <a href="http://mailman.mit.edu/mailman/listinfo/panda-users" rel="noreferrer" target="_blank">http://mailman.mit.edu/mailman/listinfo/panda-users</a><br>
&gt;&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt; Brendan Dolan-Gavitt<br>
&gt;&gt;&gt;&gt; Assistant Professor, Department of Computer Science and Engineering<br>
&gt;&gt;&gt;&gt; NYU Tandon School of Engineering<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; panda-users mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:panda-users@mit.edu" target="_blank">panda-users@mit.edu</a><br>
&gt;&gt;&gt;&gt; <a href="http://mailman.mit.edu/mailman/listinfo/panda-users" rel="noreferrer" target="_blank">http://mailman.mit.edu/mailman/listinfo/panda-users</a><br>
<br>
<br>
<br>
-- <br>
Brendan Dolan-Gavitt<br>
Assistant Professor, Department of Computer Science and Engineering<br>
NYU Tandon School of Engineering<br>
</blockquote></div>