<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: .desktop file security</title>
	<atom:link href="http://www.purinchu.net/wp/2009/02/21/desktop-file-security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.purinchu.net/wp/2009/02/21/desktop-file-security/</link>
	<description>The answer to life, the universe, and everything</description>
	<lastBuildDate>Fri, 10 Feb 2012 03:15:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=a6697fd0b6d16996a64686d67c7f972a&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/7232a83dd020e8e.png" alt="sir Identicon Icon" height="35" width="35" /> sir</title>
		<link>http://www.purinchu.net/wp/2009/02/21/desktop-file-security/comment-page-1/#comment-6022</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=a6697fd0b6d16996a64686d67c7f972a&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/7232a83dd020e8e.png" alt="sir Identicon Icon" height="35" width="35" /> sir</dc:creator>
		<pubDate>Thu, 21 May 2009 08:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=385#comment-6022</guid>
		<description>What about some information?

You&#039;re going to run &quot;xy&quot; application with exec command &quot;zy&quot;</description>
		<content:encoded><![CDATA[<p>What about some information?</p>
<p>You&#8217;re going to run &#8220;xy&#8221; application with exec command &#8220;zy&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=083254988d8b2a261340a7c32d4096d4&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/0ecf405eb3149a1.png" alt="Gonzalo Porcel Identicon Icon" height="35" width="35" /> Gonzalo Porcel</title>
		<link>http://www.purinchu.net/wp/2009/02/21/desktop-file-security/comment-page-1/#comment-5955</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=083254988d8b2a261340a7c32d4096d4&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/0ecf405eb3149a1.png" alt="Gonzalo Porcel Identicon Icon" height="35" width="35" /> Gonzalo Porcel</dc:creator>
		<pubDate>Mon, 23 Feb 2009 07:43:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=385#comment-5955</guid>
		<description>Better and shorter warning:

This icon is not marked as an executable program.

If you created this shortcut, click &quot;Make Service Executable
and Continue&quot;. Otherwise, click &quot;Cancel&quot; as it is likely
a malicious program.</description>
		<content:encoded><![CDATA[<p>Better and shorter warning:</p>
<p>This icon is not marked as an executable program.</p>
<p>If you created this shortcut, click &#8220;Make Service Executable<br />
and Continue&#8221;. Otherwise, click &#8220;Cancel&#8221; as it is likely<br />
a malicious program.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=4de0467507ae74077768badca4764aaf&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/3e79f27b40e8339.png" alt="Karellen Identicon Icon" height="35" width="35" /> Karellen</title>
		<link>http://www.purinchu.net/wp/2009/02/21/desktop-file-security/comment-page-1/#comment-5954</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=4de0467507ae74077768badca4764aaf&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/3e79f27b40e8339.png" alt="Karellen Identicon Icon" height="35" width="35" /> Karellen</dc:creator>
		<pubDate>Sun, 22 Feb 2009 14:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=385#comment-5954</guid>
		<description>@Afief Halumi

The problem is that at the moment they are not required to be executable. So people have existing .desktop files that are not executable which currently work.

If you suddenly require that they are executable, you will break people&#039;s existing environments. This is bad.</description>
		<content:encoded><![CDATA[<p>@Afief Halumi</p>
<p>The problem is that at the moment they are not required to be executable. So people have existing .desktop files that are not executable which currently work.</p>
<p>If you suddenly require that they are executable, you will break people&#8217;s existing environments. This is bad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=b1d1ddcf50bc79e821d1763a1f404a0c&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/5854bee4eda9871.png" alt="Afief Halumi Identicon Icon" height="35" width="35" /> Afief Halumi</title>
		<link>http://www.purinchu.net/wp/2009/02/21/desktop-file-security/comment-page-1/#comment-5953</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=b1d1ddcf50bc79e821d1763a1f404a0c&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/5854bee4eda9871.png" alt="Afief Halumi Identicon Icon" height="35" width="35" /> Afief Halumi</dc:creator>
		<pubDate>Sun, 22 Feb 2009 11:25:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=385#comment-5953</guid>
		<description>Maybe I&#039;m just uninformed, but could someone tell me what&#039;s wrong with requiring the .desktop files to be executable? as far as I am concerned most of the functionality of .desktop files can be replaced with a python script(overkill, but just for the sake of example) and I&#039;d be damned if I didn&#039;t require that one to be executable.

Sorry if I&#039;m asking a stupid question but I&#039;d really like to understand.

Thanks,
Afief</description>
		<content:encoded><![CDATA[<p>Maybe I&#8217;m just uninformed, but could someone tell me what&#8217;s wrong with requiring the .desktop files to be executable? as far as I am concerned most of the functionality of .desktop files can be replaced with a python script(overkill, but just for the sake of example) and I&#8217;d be damned if I didn&#8217;t require that one to be executable.</p>
<p>Sorry if I&#8217;m asking a stupid question but I&#8217;d really like to understand.</p>
<p>Thanks,<br />
Afief</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; Virus para (GNOME/KDE)+Linux &#124; Computadora Z3 &#124; La primera máquina programable y completamente automática !!!</title>
		<link>http://www.purinchu.net/wp/2009/02/21/desktop-file-security/comment-page-1/#comment-5952</link>
		<dc:creator>&#187; Virus para (GNOME/KDE)+Linux &#124; Computadora Z3 &#124; La primera máquina programable y completamente automática !!!</dc:creator>
		<pubDate>Sun, 22 Feb 2009 00:45:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=385#comment-5952</guid>
		<description>[...] Esta es la solución que están implementando: purinchu.net [...]</description>
		<content:encoded><![CDATA[<p>[...] Esta es la solución que están implementando: purinchu.net [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=11e6e55135a922bad882786d9efdd226&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/d4e52726eec317c.png" alt="bobp Identicon Icon" height="35" width="35" /> bobp</title>
		<link>http://www.purinchu.net/wp/2009/02/21/desktop-file-security/comment-page-1/#comment-5951</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=11e6e55135a922bad882786d9efdd226&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/d4e52726eec317c.png" alt="bobp Identicon Icon" height="35" width="35" /> bobp</dc:creator>
		<pubDate>Sun, 22 Feb 2009 00:16:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=385#comment-5951</guid>
		<description>I do not agree about the right-click/properties/chmod+x comment that users would just do this if the OK dialog wasnt there. The properties box is a bothersome enough action to have to perform that it discourages you from just running any old thing you click on. When you click something and expect it to run, clicking &quot;OK&quot; is just something people tend to automatically do without thinking. Going into the properties menu takes some thought, the options look a bit scary, you&#039;re having to think more about what you&#039;re doing. 

I don&#039;t think I&#039;ve ever  seen any linux software offer to chmod+x things and its for a very good reason. You&#039;re better off with the rare occurance of users not being able to run some shortcuts (this is going to be very rare as only powerusers are going to be playing with custom .desktop files) than opening up a huge attack vector that plagues Windows.

Seriously, you really need to consider this more IMO. Having some bullet points and some nicely worded buttons is not going to discourage people who click on random email attachments. Having to save/right-click/click a tab/click a specific checkbox etc. requires some knowledge and perseverance which is good at stopping naive users.</description>
		<content:encoded><![CDATA[<p>I do not agree about the right-click/properties/chmod+x comment that users would just do this if the OK dialog wasnt there. The properties box is a bothersome enough action to have to perform that it discourages you from just running any old thing you click on. When you click something and expect it to run, clicking &#8220;OK&#8221; is just something people tend to automatically do without thinking. Going into the properties menu takes some thought, the options look a bit scary, you&#8217;re having to think more about what you&#8217;re doing. </p>
<p>I don&#8217;t think I&#8217;ve ever  seen any linux software offer to chmod+x things and its for a very good reason. You&#8217;re better off with the rare occurance of users not being able to run some shortcuts (this is going to be very rare as only powerusers are going to be playing with custom .desktop files) than opening up a huge attack vector that plagues Windows.</p>
<p>Seriously, you really need to consider this more IMO. Having some bullet points and some nicely worded buttons is not going to discourage people who click on random email attachments. Having to save/right-click/click a tab/click a specific checkbox etc. requires some knowledge and perseverance which is good at stopping naive users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virus para (GNOME/KDE)+Linux - BLOG Eduardo Escobar</title>
		<link>http://www.purinchu.net/wp/2009/02/21/desktop-file-security/comment-page-1/#comment-5950</link>
		<dc:creator>Virus para (GNOME/KDE)+Linux - BLOG Eduardo Escobar</dc:creator>
		<pubDate>Sun, 22 Feb 2009 00:10:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=385#comment-5950</guid>
		<description>[...] Esta es la solución que están implementando: purinchu.net [...]</description>
		<content:encoded><![CDATA[<p>[...] Esta es la solución que están implementando: purinchu.net [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=4baa5310589ccbfbaecc61acd654be53&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/282020d27add603.png" alt="TheBlackCat Identicon Icon" height="35" width="35" /> TheBlackCat</title>
		<link>http://www.purinchu.net/wp/2009/02/21/desktop-file-security/comment-page-1/#comment-5949</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=4baa5310589ccbfbaecc61acd654be53&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/282020d27add603.png" alt="TheBlackCat Identicon Icon" height="35" width="35" /> TheBlackCat</dc:creator>
		<pubDate>Sat, 21 Feb 2009 18:20:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=385#comment-5949</guid>
		<description>When the user first uses KDE, after a random period of time between 2 hours and 24, the user should get the following message:



If you pay attention to warning messages, hold ctrl+meta+r and hit Home three times.  Do not press either of the buttons below

OK    Cancel



And if the user presses either of the buttons then KDE knows they are dealing with someone who doesn&#039;t pay attention and changes the system appropriately.

Yeah, it isn&#039;t actually a very good idea but it would be pretty funny to see.</description>
		<content:encoded><![CDATA[<p>When the user first uses KDE, after a random period of time between 2 hours and 24, the user should get the following message:</p>
<p>If you pay attention to warning messages, hold ctrl+meta+r and hit Home three times.  Do not press either of the buttons below</p>
<p>OK    Cancel</p>
<p>And if the user presses either of the buttons then KDE knows they are dealing with someone who doesn&#8217;t pay attention and changes the system appropriately.</p>
<p>Yeah, it isn&#8217;t actually a very good idea but it would be pretty funny to see.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=77bfae11a6e64f5e8dba6236fbc65bbc&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/85999e16b245759.png" alt="mpyne Identicon Icon" height="35" width="35" /> mpyne</title>
		<link>http://www.purinchu.net/wp/2009/02/21/desktop-file-security/comment-page-1/#comment-5948</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=77bfae11a6e64f5e8dba6236fbc65bbc&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/85999e16b245759.png" alt="mpyne Identicon Icon" height="35" width="35" /> mpyne</dc:creator>
		<pubDate>Sat, 21 Feb 2009 18:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=385#comment-5948</guid>
		<description>Whoa, lots of comments while I was away.  Let me just go through some of the points I saw raised:

- I am just as opposed to dialogs as the rest of you, trust me.  I&#039;d be much happier simply picking &quot;the right thing&quot; to do in code and having it done, as then I wouldn&#039;t be having to write user-visible text.  The problem is that there really are two valid choices here, the user thought they were running a program (i.e. desktop shortcut), or that the user had no idea they were running a program (i.e. OPEN THIS EMAIL!!).  One the user chooses to run, the .desktop file is &quot;fixed&quot; and they&#039;ll never receive the prompt again.  If the user chooses to Cancel I can&#039;t simply &quot;neuter&quot; the file to remove the dialog because the user may have just then decided that they know it&#039;s a program but they didn&#039;t feel like running it.

- Thiago recommended adding a description of what&#039;s being executed.  I actually have added &quot;details text&quot; with that so KMessageBox is supposed to create a Details &gt;&gt; button with it, but that doesn&#039;t happen.  I&#039;m still looking into it, but I agree we should do that too.

- I like asd&#039;s &quot;bullet format&quot;, I may re-do it that way even at the expense of space.

- Lots of people have suggested upgrade scripts so that we don&#039;t have to allow situations where we launch a desktop file without +x permission.  I suggested that too at first, but unless you spend the amount of time to search all of $HOME you may miss some scripts in use and more dangerously, what if the user has already downloaded a trojan to their Desktop?  Adding +x would be incredibly hurtful in that situation.  And if you do search all of $HOME, that would take forever to complete.

- People are wary of allowing &quot;known services&quot; to run but the fact of the matter is that the three locations checked contain actual programs by definition.  For the vast majority of people this rule won&#039;t matter since the &quot;known service&quot; will be owned by root and therefore already have an exception.  This exception is to allow for KDE installations by single user or shared with a non-root owner.  The alternative is that all of your commands in the kickoff or old-style K menu, and most of the commands accessible via KRunner stop working or require that nasty UAC-style prompt.

Another thing to keep in mind is that once you&#039;re assuming that the user can be fooled into saving a file deep into say, $HOME/kde-4/share/applications/kde4, you may as well assume that the user can be easily fooled into right clicking that desktop file and checking the &quot;Is executable&quot; checkbox.  Allowing only executable files to run is a safety measure to avoid the user accidentally run a program when they were trying to open a file in a editor to see what it was, or to avoid running a attachment they happened to save to their desktop.

Once you start assuming that the user will start following instructions from the attacker as well, they are already 0wned. ;)

New .desktop file creations and new KDE installations will have executable .desktop files where necessary, the prompt is to allow for users to have a chance at using their old shortcuts without too much pain, and will only show up once for each shortcut.  By the time 4.4 rolls around a user should probably never have to see the dialog again (at which time perhaps we&#039;ll remove it and make users click that check box themselves) ;)</description>
		<content:encoded><![CDATA[<p>Whoa, lots of comments while I was away.  Let me just go through some of the points I saw raised:</p>
<p>- I am just as opposed to dialogs as the rest of you, trust me.  I&#8217;d be much happier simply picking &#8220;the right thing&#8221; to do in code and having it done, as then I wouldn&#8217;t be having to write user-visible text.  The problem is that there really are two valid choices here, the user thought they were running a program (i.e. desktop shortcut), or that the user had no idea they were running a program (i.e. OPEN THIS EMAIL!!).  One the user chooses to run, the .desktop file is &#8220;fixed&#8221; and they&#8217;ll never receive the prompt again.  If the user chooses to Cancel I can&#8217;t simply &#8220;neuter&#8221; the file to remove the dialog because the user may have just then decided that they know it&#8217;s a program but they didn&#8217;t feel like running it.</p>
<p>- Thiago recommended adding a description of what&#8217;s being executed.  I actually have added &#8220;details text&#8221; with that so KMessageBox is supposed to create a Details >> button with it, but that doesn&#8217;t happen.  I&#8217;m still looking into it, but I agree we should do that too.</p>
<p>- I like asd&#8217;s &#8220;bullet format&#8221;, I may re-do it that way even at the expense of space.</p>
<p>- Lots of people have suggested upgrade scripts so that we don&#8217;t have to allow situations where we launch a desktop file without +x permission.  I suggested that too at first, but unless you spend the amount of time to search all of $HOME you may miss some scripts in use and more dangerously, what if the user has already downloaded a trojan to their Desktop?  Adding +x would be incredibly hurtful in that situation.  And if you do search all of $HOME, that would take forever to complete.</p>
<p>- People are wary of allowing &#8220;known services&#8221; to run but the fact of the matter is that the three locations checked contain actual programs by definition.  For the vast majority of people this rule won&#8217;t matter since the &#8220;known service&#8221; will be owned by root and therefore already have an exception.  This exception is to allow for KDE installations by single user or shared with a non-root owner.  The alternative is that all of your commands in the kickoff or old-style K menu, and most of the commands accessible via KRunner stop working or require that nasty UAC-style prompt.</p>
<p>Another thing to keep in mind is that once you&#8217;re assuming that the user can be fooled into saving a file deep into say, $HOME/kde-4/share/applications/kde4, you may as well assume that the user can be easily fooled into right clicking that desktop file and checking the &#8220;Is executable&#8221; checkbox.  Allowing only executable files to run is a safety measure to avoid the user accidentally run a program when they were trying to open a file in a editor to see what it was, or to avoid running a attachment they happened to save to their desktop.</p>
<p>Once you start assuming that the user will start following instructions from the attacker as well, they are already 0wned. ;)</p>
<p>New .desktop file creations and new KDE installations will have executable .desktop files where necessary, the prompt is to allow for users to have a chance at using their old shortcuts without too much pain, and will only show up once for each shortcut.  By the time 4.4 rolls around a user should probably never have to see the dialog again (at which time perhaps we&#8217;ll remove it and make users click that check box themselves) ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=0ed54ce645dc7d5fb59f9400ef532943&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/f10a5e11acc6907.png" alt="Nathan Identicon Icon" height="35" width="35" /> Nathan</title>
		<link>http://www.purinchu.net/wp/2009/02/21/desktop-file-security/comment-page-1/#comment-5947</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=0ed54ce645dc7d5fb59f9400ef532943&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/f10a5e11acc6907.png" alt="Nathan Identicon Icon" height="35" width="35" /> Nathan</dc:creator>
		<pubDate>Sat, 21 Feb 2009 16:09:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=385#comment-5947</guid>
		<description>The UAC style box would only be coming up in a pretty limited set of circumstances, ie when a user has done some customization of launchers and after an upgrade that enforced the new +x rules and only once for each launcher if the user decides to trust it, so i think the potential is that a few power-ish user may see the dialogue up 5 or 10 times in their life. Not exactly over burdensome or the MS-UAC-Click through hell that is vista. The only other case is when there actually is an attempted attack in progress, and that seems like something the user should know about.</description>
		<content:encoded><![CDATA[<p>The UAC style box would only be coming up in a pretty limited set of circumstances, ie when a user has done some customization of launchers and after an upgrade that enforced the new +x rules and only once for each launcher if the user decides to trust it, so i think the potential is that a few power-ish user may see the dialogue up 5 or 10 times in their life. Not exactly over burdensome or the MS-UAC-Click through hell that is vista. The only other case is when there actually is an attempted attack in progress, and that seems like something the user should know about.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
