<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Phocean.net / Computer Security &#187; System</title>
	<atom:link href="http://www.phocean.net/category/administration-systeme/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phocean.net</link>
	<description>&#34;A defense that hedgehogs possess is the ability to roll into a tight ball, causing all of the spines to point outwards.&#34; -- Wikipedia</description>
	<lastBuildDate>Wed, 30 Nov 2011 22:02:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Headphones not muting the speakers with a Gigabyte motherboard</title>
		<link>http://www.phocean.net/2011/05/28/headphones-not-muting-the-speakers-with-a-gigabyte-motherboard.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=headphones-not-muting-the-speakers-with-a-gigabyte-motherboard</link>
		<comments>http://www.phocean.net/2011/05/28/headphones-not-muting-the-speakers-with-a-gigabyte-motherboard.html#comments</comments>
		<pubDate>Sat, 28 May 2011 21:22:32 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[Alsa]]></category>
		<category><![CDATA[Intel]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=1078</guid>
		<description><![CDATA[It had been months since I had an weired issue with the embedded audio controller of my Gigabyte motherboard. Plugin the headphones on the front panel of my box didn&#8217;t mute the output to the speakers, which nullified the purpose of having headphones. I long thought that it was some hardware issue that I would [...]]]></description>
			<content:encoded><![CDATA[<p>It had been months since I had an weired issue with the embedded audio controller of my Gigabyte motherboard.</p>
<p>Plugin the headphones on the front panel of my box didn&#8217;t mute the output to the speakers, which nullified the purpose of having headphones.</p>
<p>I long thought that it was some hardware issue that I would have to sort some day by opening the box and checking the connections.</p>
<p>Yesterday, I decided to solve it for good and I started to google&#8230; and found out that it was a pure software issue!</p>
<p>The culprit sounded to be some unproper settings of the ALSA module and this <a title="Hda Intel Sound Howto" href="https://help.ubuntu.com/community/HdaIntelSoundHowto">Ubuntu guide</a> just saved me.</p>
<p>I carefully followed the steps and it appeared that for my <a title="Gigabyte GA-790FXTA-UD5" href="http://www.gigabyte.com/products/product-page.aspx?pid=3258" target="_blank">Gigabyte GA-790FXTA-UD5</a>, it was necessary to this line:</p>
<pre>add ﻿options snd-hda-intel model=3stack-hp</pre>
<p>to</p>
<pre>/etc/modprobe.d/alsa-base.conf</pre>
<p>Ok, it did not go so smoothly as I picked out randomly models from the list until I find the right one (I had no idea of what was embbeded on my board). I hope this may help, as I have quite a lot of people with similar issues with all kinds of vendors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2011/05/28/headphones-not-muting-the-speakers-with-a-gigabyte-motherboard.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Network virtualization and the DMZ paradigm</title>
		<link>http://www.phocean.net/2011/04/30/network-virtualization-and-the-dmz-paradigm.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=network-virtualization-and-the-dmz-paradigm</link>
		<comments>http://www.phocean.net/2011/04/30/network-virtualization-and-the-dmz-paradigm.html#comments</comments>
		<pubDate>Sat, 30 Apr 2011 19:15:53 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Defense]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[DMZ]]></category>
		<category><![CDATA[nexus]]></category>
		<category><![CDATA[vdc]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vswitch]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=1016</guid>
		<description><![CDATA[The virtualization buzz I have recently worked on network virtualization. Many people, especially the network guys, have been recently excited with the VMware Vswitch or Cisco Nexus stuff.  It is something that I understand because virtualization is cool. It brings many convenient features that truly make the life easier. But what about the security? Convenience [...]]]></description>
			<content:encoded><![CDATA[<h2>The virtualization buzz</h2>
<p>I have recently worked on network virtualization. Many people, especially the network guys, have been recently excited with the VMware Vswitch or Cisco Nexus stuff.  It is something that I understand because virtualization is cool. It brings many convenient features that truly make the life easier.</p>
<p>But what about the security? Convenience and security rarely come together, right? Oh, wait&#8230; we are in 2011, so lessons must have been learned. After all, Mr Salesman swear that it is more secure than ever. Convenience and security packed together, he says&#8230; it sounds promising. Let&#8217;s dig a little to find out what they won&#8217;t tell you&#8230;</p>
<p>I will focus on what really changes with virtualization : the architecture. One of the main goals of the technology is to reduce the number of physical devices to cut the costs, save space and energy. Of course, it goes with a simplification of the <strong>physical </strong>architecture. Therefore, some features previously handled by dedicated physical devices are now handled <strong>logically by a unique piece of hardware</strong>.</p>
<p>This obviously goes against the security best practices about designing network architectures with various degrees of exposure. But has the technology evolved so much that we should reconsider these recommendations?</p>
<h2>VMware Vswitches or Nexus 1000V</h2>
<p>These technologies are similar in the sense that they are designed to work directly inside the VMware platform. Vswitches are integrated with the solution of VMware, while Nexus benefits from the experience of Cisco and bring more layer 2 control (more settings, more protocols).</p>
<p>As well on the architecture documents of VMware as within the administration interface of Vcenter, it appears so easy to create segregated switches and build this way in a few clicks a DMZ architecture:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-1069" title="Vswitch" src="http://www.phocean.net/wp-content/uploads/2011/04/Sélection_002.resized.png" alt="" width="318" height="240" /></p>
<p>But it is slightly different in reality, as <strong>Brad Hedlund</strong> from Cisco shows in an interesting article: <a title="the vswitch illusion and DMZ virtualization" href="http://bradhedlund.com/2010/02/10/vswitch-illusion-dmz-virtualization/" target="_blank">the vswitch illusion and DMZ virtualization</a>. In short, whether you are using VMware Vswitches or Nexus 1000V, a single threaded program runs all the configured virtual switches. In clear, all the virtual switches share the same memory space. So, any vulnerability in the code would compromise all the switches, in other words: the entire network. And, not a surprise here, there have been many vulnerabilities. Just browse a <a title="CVE database" href="http://cve.mitre.org/cve/" target="_blank">CVE database</a> if you want to check.</p>
<p>So you don&#8217;t want to rely on such a design for your datacenter, right?</p>
<h2>Nexus 7000</h2>
<p>In the case of the Nexus 7000, it is a little bit different because most   of the switching work is handled by specific hardware, which have a   much smaller attack surface than the vswitches stuff. But is it really   safe?</p>
<p>The Nexus family is quite new and from what I could witness, they are  quite pushy selling that. Because it is new, there is still neither much  info surrounding the technologies used, nor user feedback, nor security  research. Anyway, below is a quick sum-up of what I could find.</p>
<h3>A few words about the architecture</h3>
<p>In a layer 3 Nexus architecture, Nexus 2000, 5000 and 7000 are designed to work together. Nexus 2000 are basically top-of-the-rack port panels, with no intelligence. Nexus 5000 takes care of most of the layer 2 switching, while Nexus 7000 adds layer 2 functionalities and layer 3 support. Nexus 2000 and 5000 can work without the 7000, but in that case there is not so much difference with a classic layer 2 switch in terms of security (but it has the advantage to be more flexible to integrate in a datacenter). <a title="Difference between Nexus 7000 and Nexus 5000" href="http://www.netcraftsmen.net/resources/technical-articles/348.html" target="_blank">This</a> and <a title="Nexus 7000 architecture" href="http://www.scribd.com/doc/33217473/RST-3009-Cisco-Nexus-7000-Switch-Architecture" target="_blank">this</a> may help you to visualize the differences.</p>
<p><img class="aligncenter size-full wp-image-1070" title="Nexus Architecture" src="http://www.phocean.net/wp-content/uploads/2011/04/nexus-architecture.resized.jpg" alt="" width="640" height="480" /></p>
<p>So we will focus on the Nexus 7000 architecture, which bring VDC as a way to handle DMZ architectures. VDC are somehow similar to VLANs. But whereas VLANs virtualized LANs on a switch, VDC virtualize switches. So, on the same Nexus 5000 device, VDC will add the capacity to have multiple virtual switches which are in theory properly isolated.</p>
<p>This is a very basic sum-up for what we are interested in, but if you want to learn more, I encourage you to read the <a title="Cisco VDC" href="http://www.cisco.com/en/US/prod/collateral/switches/ps9441/ps9402/ps9512/White_Paper_Tech_Overview_Virtual_Device_Contexts.html" target="_blank">Cisco whitepaper about VDCs</a>.</p>
<h3>The flaws</h3>
<p>Now that the presentations are made, the downside&#8230;</p>
<p><strong>George Hedfors</strong> is the only researcher that worked notably on this platform, as far as I am aware. He made some really great findings, that you can discover within <a title="NX OS Speech, George Hedfors" href="http://george.hedfors.com/content/slides-my-nx-os-speech-t2-helsinki" target="_blank">his slides</a>.<br />
At the time of his work &#8211; 2010, it appeared that the NX-OS consisted of a Linux Kernel 2.6.10 (released in 2004!). We can imagine that the OS has been signifiantly customized and hardened by Cisco. They may have include NX-bit support  (included since 2.6.8 and later improved). However, there is probably no ALSR support (2.6.12), no MAC system (SELinux or Tomoyo). Of course, I may be wrong but I haven&#8217;t found any documentation about that and my Cisco contact did not provide me with any consistent detail.</p>
<p>Anyway, he found a bunch of design flaws:</p>
<ul>
<li><strong>Poor CLI design</strong>: there are 686 hidden commands (system, debugging) that can be launched as root (sudo without password). One of these command is gdb, which can start a network daemon as root. The attacker can then connect to the socket to attach to any process on the system to elevate his privileges. Of course, it requires some shell access, so the exposure is limited. However, it is very instructive of how the system was designed!</li>
<li><strong>Insecure daemon configuration</strong>: Daemon are not chrooted and run with the root user.</li>
<li><strong>Embarassing CDP vulnerability</strong> : a vulnerability from 2001 was reintroduced in the code handling CDP. So it is possible to crash a daemon running as root. What if another vulnerability on a layer 2 daemon (vtp, hsrp, stp&#8230;) was discovered and allowed to rewrite the stack? Game over, the attacker is root.</li>
<li><strong>Strange hidden account</strong> : there is a ftpuser hidden account with a dumb password (nbv123). Secret backdoor? I don&#8217;t know, but anyway it is not serious at all and should have been revealed by any consistent audit.</li>
<li><strong>Shell design flaw</strong>: the VSH shell accepts a parameter (-a) that allow to spawn any command over the security roles normaly in place.</li>
<li>You can also get a root shell by simply spawning <strong><em>ssh `/bin/bash`</em></strong> from the CLI.</li>
</ul>
<p>To any serious security guy or unix administrator, these should look like amateurism. And what&#8217;s the hell are all the security audits for?</p>
<p>So concerning the Nexus 7000, it is obvious that at best it is not specifically designed to be secure, at worst it was simply as poorly designed (or released too quickly) as most stuff.</p>
<h2>Conclusion</h2>
<p>In conclusion, one thing we can tell for sure is that none of the virtualized networking solutions are designed to be secure. Of course, all these flaws are hopefully already or will be soon fixed. But, despite what Cisco may claim, the facts are here: there is no VDC miracle. The Nexus platform is certainly great, but not more bug-free, flaw-free than any other piece of code.<br />
No virtualized architecture can give the same degree of protection than physical segregation.</p>
<p>In the case of Vswitches or Nexus 1000, the attack surface is just too high to use it for DMZ segregation if you are serious about security. The vulnerabilities are already here and it will be feasible for a skillful and motivated attacker to own your datacenter.</p>
<p>Concerning the Nexus 7000 and its VDC, the attack surface is considerably reduced because there is less code and fewer protocols at layer 2. However, it is undoubtly less secure than physical segregation. Any zero-day vulnerability would potentially expose the datacenter (and we all know that some zero-day sometimes take years before coming to the public, which is a lot of time for the criminals or the government agencies to exploit it). You can&#8217;t take it lightly when it comes to the whole datacenter integrity and it doesn&#8217;t make sense if you have expensive (in cash or in labor hours) security at upper layers.</p>
<p>But, of course, it may depend on what you have to protect. If your datacenter hosts sensitive data for your company&#8217;s buisiness, then you should think twice on how you deploy virtualization or use the cloud.</p>
<p>Don&#8217;t get me wrong. These technologies are great and very useful. In many areas, there are an improvement. Simply, they must be used with as much care as always. Concerning the DMZ topic, as far as I am concerned, I will not rely on virtualization and keep physical segregation between zones, supported by different  devices from different makers.</p>
<p>One thing I keep an eye on, though, is the development of virtualized firewalls, IPS, etc. In a few years, if these technologies should became really mature (enforcing segregation on all OSI layers) and the hosting OS security should really improved, most of the concerns here would be addressed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2011/04/30/network-virtualization-and-the-dmz-paradigm.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How do you manage your passwords?</title>
		<link>http://www.phocean.net/2011/04/17/how-do-you-manage-your-passwords.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-do-you-manage-your-passwords</link>
		<comments>http://www.phocean.net/2011/04/17/how-do-you-manage-your-passwords.html#comments</comments>
		<pubDate>Sun, 17 Apr 2011 20:58:35 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Cracking]]></category>
		<category><![CDATA[Defense]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[aes]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=1028</guid>
		<description><![CDATA[We all know that passwords sucks, that they are the nightmare of all administrators and security guys. So many hacks have been eased because the victims reused the same password everywhere : email account, forum, bank, critical systems&#8230; Sadly, so far, there is even not the beginning of a replacement solution. Passwords will be there [...]]]></description>
			<content:encoded><![CDATA[<p>We all know that passwords sucks, that they are the nightmare of all administrators and security guys. So many hacks have been eased because the victims reused the same password everywhere : email account, forum, bank, critical systems&#8230;</p>
<p>Sadly, so far, there is even not the beginning of a replacement solution. Passwords will be there for long, so we would better use them accordingly.</p>
<p>Yes, I am aware of many on-line services like FisrtPass, KeePass, 1stPassword, etc. However, I don&#8217;t feel comfortable with having all my password somewhere on-line, even if they claim &#8211; and I believe they are sincere, that they use strong encryption and can&#8217;t access to it.</p>
<p>Instead, I use a combination of the Firefox password manager and the <a title="Pwgen for Firefox" href="https://addons.mozilla.org/en-us/firefox/addon/pwgen-password-generator/" target="_blank">Pwgen add-on</a>. I use this add-on to quickly and conveniently generate a random password when I subscribe to a web service. When Firefox prompts for it, I just choose to remember the password automatically. SSO quick and dirty.</p>
<p>For the other passwords that I can&#8217;t and don&#8217;t need to memorize, I store them in a local encrypted file.</p>
<p>To edit the file, I simply use Vim with this nice <a title="GPG Vim plugin" href="http://vim.wikia.com/wiki/Edit_gpg_encrypted_files" target="_blank">GPG plugin</a>:</p>
<ul>
<li>copy gpg.vim to /home/$user/.vim/plugin</li>
<li>if not done yet, generate you GPG key :
<pre> $ gpg --gen-key</pre>
</li>
<li>Encrypt your password file and erase it:
<pre>$ gpg --encrypt --recipient 'your name' passwords
$ rm passwords</pre>
</li>
<li>Now, it&#8217;s done. Just edit password.gpg to decrypt and access to your passwords (you will be prompted for your passphrase):
<pre>$ vim passwords.gpg</pre>
</li>
</ul>
<p>If you don&#8217;t like the overhead of GPG, a more straightforward solution is to use the <a title="OpenSSL Vim extension" href="http://www.vim.org/scripts/script.php?script_id=2012" target="_blank">OpenSSL extension</a> :</p>
<ul>
<li>Copy the openssl.vim file to /home/$user/.vim/plugin as well.</li>
</ul>
<ul>
<li>Now, to encrypt to file to, say, AES (note the .aes file extension which makes sense for the plugin):
<pre>$ openssl aes-256-cbc -in passwords -out passwords.aes</pre>
</li>
<li>Decryption will occur as soon as you edit the file with Vim:
<pre>$ vim passwords.aes</pre>
</li>
</ul>
<p>I believe that, if not perfect, it is pretty secure. I mean not more, not less than your system is. Anyway I don&#8217;t have any need for an on-line manager. And you, how do you manage your passwords? Let us know about your tips.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2011/04/17/how-do-you-manage-your-passwords.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Disk wiping : Myth broken</title>
		<link>http://www.phocean.net/2011/03/06/disk-wiping-myth-broken.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=disk-wiping-myth-broken</link>
		<comments>http://www.phocean.net/2011/03/06/disk-wiping-myth-broken.html#comments</comments>
		<pubDate>Sun, 06 Mar 2011 18:58:10 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[Privacy]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[Hard drive]]></category>
		<category><![CDATA[wiping]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=1024</guid>
		<description><![CDATA[There are many urban legends in the industry. I did believe in one of them : &#8220;wiping a disk to properly prevent data restore requires random writes and several passes&#8221;. At least until I found this very instructive article, &#8220;Disk Wiping &#8211; One pass is enough&#8220;. Don&#8217;t miss the second part which clarifies some points [...]]]></description>
			<content:encoded><![CDATA[<p>There are many urban legends in the industry. I did believe in one of them : &#8220;wiping a disk to properly prevent data restore requires random writes and several passes&#8221;.</p>
<p>At least until I found this very instructive article, &#8220;<a title="Disk Wiping - one pass is enough" href="http://www.anti-forensics.com/disk-wiping-one-pass-is-enough" target="_blank">Disk Wiping &#8211; One pass is enough</a>&#8220;. Don&#8217;t miss <a title="Disk Wiping - one pas is enought - part 2" href="http://www.anti-forensics.com/disk-wiping-one-pass-is-enough-part-2-this-time-with-screenshots" target="_blank">the second part</a> which clarifies some points and gives more details.</p>
<p>In short, after one pass, every bit of the disk is filled with zero and there is simply no way to find out what the previous value was. Even the best tools out there have no clue to do it.</p>
<p>Then, there is a theory of physically restoring each bit using a magnetic force microscope. It has always came with a high error rate, and with modern high density disks it is even less reliable. Now, considering any real world data length, errors occurring on the restored bits would make it impossible to rebuild any usable data. There is obviously no chance for such a technique to recover a file.</p>
<p>So, in the future, I will not only save time doing one pass, but I will replace :</p>
<pre>$ dd if=/dev/urandom of=/dev/sda</pre>
<p>with</p>
<pre>$ dd if=/dev/zero of=/dev/sda</pre>
<p>Note that formating just reset the partition table. In no way it clears out every bit of the disk.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2011/03/06/disk-wiping-myth-broken.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>World&#8217;s worst hacker</title>
		<link>http://www.phocean.net/2011/01/31/worlds-worst-hacker.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=worlds-worst-hacker</link>
		<comments>http://www.phocean.net/2011/01/31/worlds-worst-hacker.html#comments</comments>
		<pubDate>Mon, 31 Jan 2011 18:44:20 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[honeypot]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=1003</guid>
		<description><![CDATA[That was so funny !]]></description>
			<content:encoded><![CDATA[<p><a title="World's worst hacker" href="http://george.hedfors.com/content/worlds-worst-hacker" target="_blank">That</a> was so funny !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2011/01/31/worlds-worst-hacker.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Corrupted virtual disk with VMware</title>
		<link>http://www.phocean.net/2011/01/16/corrupted-virtual-disk-with-vmware.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=corrupted-virtual-disk-with-vmware</link>
		<comments>http://www.phocean.net/2011/01/16/corrupted-virtual-disk-with-vmware.html#comments</comments>
		<pubDate>Sun, 16 Jan 2011 17:02:50 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[File system]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=961</guid>
		<description><![CDATA[Wow, this article and especially one of its comments saved my day. My computer crashed and one of the VMware machine hosted on it could not start anymore : “Cannot open the disk ‘path of vmdk’ or one of the snapshot disks it depends on. Reason: the specific virtual disk needs repair. Checking on the [...]]]></description>
			<content:encoded><![CDATA[<p>Wow, <a title="Repair vmware" href="http://www.smoothblog.co.uk/2010/07/15/how-to-fix-vmware-the-specific-virtual-disk-needs-repair/" target="_blank">this article</a> and especially <a title="virtual disk development" href="http://www.smoothblog.co.uk/2010/07/15/how-to-fix-vmware-the-specific-virtual-disk-needs-repair/?cid=3319" target="_blank">one of its comments</a> saved my day.</p>
<p>My computer crashed and one of the VMware machine hosted on it could not start anymore :</p>
<blockquote><p>“Cannot open the disk ‘path of vmdk’ or one of the snapshot disks it depends on.<br />
Reason: the specific virtual disk needs repair.</p></blockquote>
<p>Checking on the VMware forums, I quickly found the command that was supposed to help :</p>
<pre class="brush: plain; title: ; notranslate">$ vmware-vdiskmanager -R /path/to/disk.vmdk
The virtual disk, '/path/to/disk.vmdk', is corrupted but the repair process has failed.</pre>
<p>Damned ! I almost resigned restoring the last backup and loosing a week of work when, by chance, I found the article mentioned above.</p>
<p>As recommended, I downloaded the <strong>Virtual Disk Development Kit 1.2</strong> from VMware, untared it and still doubtfully launched :</p>
<pre class="brush: plain; title: ; notranslate">$ ./bin64/vmware-vdiskmanager -R /path/to/disk.vmdk
The virtual disk, '/path/to/disk.vmdk', was corrupted and has been  successfully repaired.</pre>
<p>Saved! Thanks so much to the guys. I would have never thought about trying it, I wonder how they could find it.</p>
<p>But how is it possible that the utility coming with vmware workstation 7.1 suck so much and is not on par with other versions ?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2011/01/16/corrupted-virtual-disk-with-vmware.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Yet OpenSSL renegociation not fully fixed</title>
		<link>http://www.phocean.net/2010/10/16/yet-openssl-renegociation-not-fully-fixed.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=yet-openssl-renegociation-not-fully-fixed</link>
		<comments>http://www.phocean.net/2010/10/16/yet-openssl-renegociation-not-fully-fixed.html#comments</comments>
		<pubDate>Sat, 16 Oct 2010 07:35:59 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[openSSL]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[renegociation]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=924</guid>
		<description><![CDATA[How the hell is it possible that after so many months, the fix for OpenSSL renegociation has not been yet included in either Chrome (6.0.4) or Opera (10.61)? I haven&#8217;t tested other browsers though, except Firefox which at least has fixed the issue since several months.]]></description>
			<content:encoded><![CDATA[<p>How the hell is it possible that after so many months, <a title="OpenSSL renegociation issue" href="http://www.phocean.net/2010/04/05/updates-about-openssl-cve-2009-3555-client-renegociation.html" target="_self">the fix for OpenSSL renegociation</a> has not been yet included in either Chrome (6.0.4) or Opera (10.61)? I haven&#8217;t tested other browsers though, except Firefox which at least has fixed the issue since several months.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2010/10/16/yet-openssl-renegociation-not-fully-fixed.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>get rid off ConsoleKit / Dbus / Hal stuff on a server</title>
		<link>http://www.phocean.net/2010/10/04/get-rid-off-consolekit-dbus-hal-stuff-on-a-server.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=get-rid-off-consolekit-dbus-hal-stuff-on-a-server</link>
		<comments>http://www.phocean.net/2010/10/04/get-rid-off-consolekit-dbus-hal-stuff-on-a-server.html#comments</comments>
		<pubDate>Mon, 04 Oct 2010 20:41:09 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[ConsoleKit]]></category>
		<category><![CDATA[dbus]]></category>
		<category><![CDATA[hal]]></category>
		<category><![CDATA[service]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=915</guid>
		<description><![CDATA[Console-Kit spawns 35 threads on my system, which is a waste considering that I use at most 7 vty. But it is definitely useless on a server (you don&#8217;t need fast switching stuff). Dbus and Hal are also not useful on a server and consuming resources for nothing. Unfortunately, they are settled with the default [...]]]></description>
			<content:encoded><![CDATA[<p>Console-Kit spawns 35 threads on my system, which is a waste considering that I use at most 7 vty. But it is definitely useless on a server (you don&#8217;t need fast switching stuff). Dbus and Hal are also not useful on a server and consuming resources for nothing.</p>
<p>Unfortunately, they are settled with the default basic installation and they have some dependencies (e.g the kernel and zypper) that make them impossible to simply uninstall .</p>
<p>Here is a way to at least deactivate these services at startup on openSUSE 11.2 (it might also work with 11.3).</p>
<p>First, ConsoleKit is not a standalone daemon anymore on the latest versions of openSUSE. It is started along with dbus (you will see that if you stop dbus, all the ConsoleKit thread will magically vanish).</p>
<p>But trying straight to remove dbus from the startup doesn&#8217;t work, because of dependencies among services. On my system, it complained like this:</p>
<pre class="brush: plain; title: ; notranslate"># chkconfig dbus off
 insserv: Service dbus has to be enabled to start service bluez-coldplug
 insserv: Service dbus has to be enabled to start service network
 insserv: Service dbus has to be enabled to start service haldaemon
 insserv: Service dbus has to be enabled to start service earlyxdm
 insserv: exiting now!
 /sbin/insserv failed, exit code 1
 [1]    7954 exit 1     chkconfig dbus off</pre>
<p>So, let&#8217;s remove the bluetooth stuff:</p>
<pre class="brush: plain; title: ; notranslate"># zypper remove bluez</pre>
<p>Then, we just deactivate the services that can&#8217;t uninstalled:</p>
<pre class="brush: plain; title: ; notranslate"># chkconfig earlyxdm off
# chkconfig network-remotefs off
# chkconfig haldaemon off</pre>
<p>You will probably want to keep the network service on, otherwise your configurations scripts won&#8217;t be read anymore. In fact, we will just edit the dependency of the startup script itself, by editing /etc/init.d/network and editing these lines:</p>
<pre class="brush: plain; title: ; notranslate"># Required-Start:    $local_fs dbus
# Required-Stop:    $local_fs dbus</pre>
<p>What we do is just deleting the dbus word, so that the script section looks like it:</p>
<pre class="brush: plain; title: ; notranslate">### BEGIN INIT INFO
# Provides:        network
# Required-Start:    $local_fs
# Should-Start:        isdn openibd SuSEfirewall2_init
# Required-Stop:    $local_fs
# Should-Stop:        isdn openibd SuSEfirewall2_init
# Default-Start:    2 3 5
# Default-Stop:
# Short-Description:    Configure the localfs depending network interfaces
# Description:        Configure the localfs depending network interfaces
#                       and set up routing
### END INIT INFO</pre>
<p>Now we are done and we should be able to definitely turn dbus off:</p>
<pre class="brush: plain; title: ; notranslate"># chkconfig dbus off</pre>
<p>Bingo! I didn&#8217;t monitor the memory precisely, but I believe I saved around 50 MB, which is always welcomed on a small server.</p>
<p>I don&#8217;t know if it is the best way &#8211; I may have missed something &#8211; however I am pretty happy as it now works as I wanted. Please let me know if you have a better tip.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2010/10/04/get-rid-off-consolekit-dbus-hal-stuff-on-a-server.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>EMET: configure memory protection on Windows</title>
		<link>http://www.phocean.net/2010/09/25/emet-configure-memory-protection-on-windows.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=emet-configure-memory-protection-on-windows</link>
		<comments>http://www.phocean.net/2010/09/25/emet-configure-memory-protection-on-windows.html#comments</comments>
		<pubDate>Sat, 25 Sep 2010 15:56:00 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Assembler / Reversing]]></category>
		<category><![CDATA[Defense]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ALSR]]></category>
		<category><![CDATA[buffer overflow]]></category>
		<category><![CDATA[DEP]]></category>
		<category><![CDATA[EMET]]></category>
		<category><![CDATA[SEHOP]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=911</guid>
		<description><![CDATA[Microsoft published a nice tool named EMET (Enhanced Mitigation Experience Toolkit) whose purpose is to check and enforce the memory security policies such as ALSR and DEP. It shows and allows to configure the global settings, but also, and this is the most interesting part, indicated for each process running if it supports those security [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft published a nice tool named <a title="EMET" href="http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=c6f0a6ee-05ac-4eb6-acd0-362559fd2f04" target="_blank">EMET</a> (Enhanced Mitigation Experience Toolkit) whose purpose is to check and enforce the memory security policies such as ALSR and DEP.</p>
<p>It shows and allows to configure the global settings, but also, and this is the most interesting part, indicated for each process running if it supports those security measures. It is even able to enforce the protections for each application which would not support it natively (i.e. not set at compilation time).</p>
<p style="text-align: center;"><img class="aligncenter" title="EMET" src="http://www.phocean.net/wp-content/uploads/2010/09/EMET.png" alt="" width="640" height="360" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2010/09/25/emet-configure-memory-protection-on-windows.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to physically identify a software RAID disk member</title>
		<link>http://www.phocean.net/2010/09/25/how-to-physically-identify-a-software-raid-disk-member.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-physically-identify-a-software-raid-disk-member</link>
		<comments>http://www.phocean.net/2010/09/25/how-to-physically-identify-a-software-raid-disk-member.html#comments</comments>
		<pubDate>Fri, 24 Sep 2010 23:22:14 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[SMART]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=907</guid>
		<description><![CDATA[What you need: a good earing smartmontools Indeed, so far, I haven&#8217;t found anything better than launching a process making a lot of disk activity. This command just do it: The &#8220;short&#8221; test will give you a few minutes to carefully listen and select the right disk. Well, it sure is pretty primitive! But do [...]]]></description>
			<content:encoded><![CDATA[<p>What you need:</p>
<ul>
<li>a good earing</li>
<li>smartmontools</li>
</ul>
<p>Indeed, so far, I haven&#8217;t found anything better than launching a process making a lot of disk activity.</p>
<p>This command just do it:</p>
<pre class="brush: bash; title: ; notranslate">% sudo smartctl -t short /dev/sda</pre>
<p>The &#8220;short&#8221; test will give you a few minutes to carefully listen and select the right disk.</p>
<p>Well, it sure is pretty primitive! But do you know anything better?</p>
<p>By the way, <a title="Raid recovery procedure" href="http://www.anchor.com.au/hosting/support/Linux_Software_RAID_Repair" target="_self">there</a> is a good article for the recovery procedure.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2010/09/25/how-to-physically-identify-a-software-raid-disk-member.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

