<?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>Windy Weather &#187; Security</title>
	<atom:link href="http://www.windyweather.net/wp/category/computers/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.windyweather.net/wp</link>
	<description>The Windy Weather website.</description>
	<lastBuildDate>Wed, 08 Feb 2012 04:48:27 +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>CyberWar &#8211; The War is On</title>
		<link>http://www.windyweather.net/wp/2011/06/22/cyberwar-the-war-is-on/</link>
		<comments>http://www.windyweather.net/wp/2011/06/22/cyberwar-the-war-is-on/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 20:06:55 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/?p=2319</guid>
		<description><![CDATA[As I write this we are seeing daily reports of hacking and break-ins to commercial and defense enterprises world wide: Sony network down for over three weeks with customer passwords, emails and credit card information information stolen. Anti-bank Trojans stealing millions of dollars from customers&#8217; bank accounts in Brazil. Oakridge National Laboratory was the target [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_2323" class="wp-caption alignleft" style="width: 152px"><img class="size-thumbnail wp-image-2323  " title="CyberWar_Trans" src="http://www.windyweather.net/wp/wp-content/uploads/2011/06/CyberWar_Trans-200x183.png" alt="" width="142" height="130" /><p class="wp-caption-text"> Cyber War</p></div>
<p>As I write this we are seeing daily reports of hacking and break-ins to commercial and defense enterprises world wide:</p>
<ul>
<li><a href="http://www.huffingtonpost.com/2011/04/26/sony-playstation-network-down-ps3_n_853695.html" target="_blank">Sony network down for over three weeks </a>with customer 	passwords, emails and credit card information information stolen.</li>
<li><a href="http://www.symantec.com/connect/blogs/new-brazilian-banking-trojans-alert" target="_blank">Anti-bank Trojans stealing millions of dollars from 	customers&#8217; bank accounts in Brazil.</a></li>
<li><a href="http://www.wired.com/threatlevel/2011/04/oak-ridge-lab-hack/" target="_blank">Oakridge National Laboratory was the target of a 	spear-phishing attack </a>that only compromised a few megabytes of data 	before it was stopped.</li>
<li><a href="http://www.engadget.com/2010/11/11/one-million-chinese-cellphone-users-reportedly-infected-with-zom/" target="_blank">Millions of dollars being stolen from cell phone users in 	China</a> by viruses infecting smart cell phones.</li>
<li>The <a href="http://www.nytimes.com/2011/01/16/world/middleeast/16stuxnet.html" target="_blank">Stuxnet worm infects Iran&#8217;s nuclear program</a>.</li>
</ul>
<p>But it seems we are not doing a set of straight forward things that we can do to prepare for and mitigate the impact that cyber war is having on this country. We can start with some simple and comparatively inexpensive steps.</p>
<p><span id="more-2319"></span></p>
<h1>A Process</h1>
<p>First of all, what is the process that we should follow?</p>
<ol>
<li>Identify the threats.</li>
<li>Settle on a policy and do “minimal” legislation to allow 	us to act.</li>
<li>Identify funding sources.</li>
<li>Build a small team to act on the policy.</li>
<li>Use benign attacks to test without warning.</li>
<li>Harden US defense and commercial targets against attack.</li>
<li>Share the policy with our allies.</li>
</ol>
<p>Here are each of these steps in more detail.</p>
<h2>Identify the Threats</h2>
<p>This will be a short process. There is no problem coming up with a large pile of documentation about the threats to National Security and Commercial interests in this country. This should take the White House Cyber Czar about 10 minutes because there is no doubt that he already has this document prepared.</p>
<h2>Settle on a policy and do “minimal” legislation to allow us to act.</h2>
<p>I suggest that the policy should be that:</p>
<p>The a new team for Cyber War Defense is given new powers to attack – in a non-destructive way – the commercial and defense interests of the US to assess the threats and to cause the parties to close the holes that are found.</p>
<h3>Legislation Required</h3>
<p>This process probably requires legislation so that the process is not illegal.</p>
<p>They are not authorized to steal anything to destroy data, only to demonstrate that this could have happened by actually doing a break-in.</p>
<p>The legislation should not and need not give law enforcement any broad powers of search, seizure or traffic sniffing beyond what they already have.</p>
<p>The legislation should require that companies promptly fix problems found in key software. Currently some bugs remain in the wild for many weeks or months before they are fixed.</p>
<p>Legislation should also require that best practices be followed by all commercial and national defense agencies. The best practices themselves are not in the legislation but are developed by a small non-political and fast moving panel of experts.</p>
<h3>Best Practices</h3>
<p>The legislation identifies a small panel of technical experts that built a standard of best practices. This is not a political document, but a technical standards document. It is free to reference other works rather than incorporate them since there are many sources of best practices available.</p>
<p>These practices need to include standards for the modernization of computer hardware and software as well as the operating procedures of employees and IT departments. It is unreasonable for many large companies to still be using Windows XP and Microsoft Internet Explorer 6 in this day of high threat attacks.</p>
<p>I have recently heard pundits expounding on the spear-phishing attack at Oakridge with the suggestion that training should be employed, with drills, to train people to avoid clicking on emails. Apparently the attack at Oakridge was mounted by sending emails to employees that appeared to have come from Human Resources and that stated that all employees must update their health insurance information. It seems clear that a national laboratory should have a firewall that prevents outgoing links from bringing back any software that will be installed on computers. Training might be well and good, but something more robust is possible and called for in this case, and maybe for all organizations that have anything to lose from a cyber attack. Don&#8217;t depend on people when a machine can perform the function. More later about best practices.</p>
<h2>Identify funding sources.</h2>
<p>Just as the FDA certain powers over commercial interests that sell contaminated food, or drugs, this legislation should give the Cyber War Defense team the power to access consulting fees that will fund this organization. The fees are set based the commercial rate for such consulting, and on the hours to mount the attack plus the hours for the Outreach Team to work with the company to close the breach found and bring the company up to the best practices standard. Only companies where the attack succeeds are charged.</p>
<p>Government organizations pay the going rate for inta-government consulting.</p>
<h2>Build a small team to act on the policy.</h2>
<p>A small team of 20-50 people is enough to built attacking tools and test the commercial and defense organizations in the country.</p>
<p>The team is organized as follows:</p>
<ol>
<li>A subgroup to identify existing tools and build new tools to 	aid in mounting attacks.Tools like <a href="http://www.metasploit.com/" target="_blank">Metaspoit </a> and other hacking tools form a basis of attacking and threat 	management tools.</li>
<li>Exploit identification team uses state of the art techniques 	to identify exploits to be incorporated into the tools and used by 	the other groups. This process includes active testing of popular 	browsers, flash, pdf and web server software on all platforms to 	identify bad file formats and other attacks that cause crashes or 	other behavior that can be exploited for attacks. This is what the 	cyber attackers do constantly, we need to be better than they are, 	at what they are doing.</li>
<li>Commercial sub-team with expertise in attacking banks, game 	companies and other commercial interests.</li>
<li>Defense sub-team with expertise in attacking defense 	installations and national laboratories.</li>
<li>Utilities sub-team with expertise in attacking water, power, 	nuclear installations and other infra-structure targets.</li>
<li>Outreach team whose job it is to liaison with the exploited 	enterprise to harden their installation based on the threats 	exposed, and the best practices identified.</li>
</ol>
<h2>Use benign attacks to test without warning.</h2>
<p>The teams above attack the high value targets without warning and when they succeed, the Outreach team notifies the enterprise to quickly fix the problem. No prior notification is required for a company to be tested. DDoS [Distributed Denial of Service] attacks are not typically used for these attacks unless it is shown that a brief DDoS attack will open another vulnerability that cannot be opened in other ways.</p>
<p>The attacks and their results are held in confidence by the Cyber War team. No mention is made of success or failure of any tested organization.</p>
<p>Best practices are used in notifying companies of problems in commercial or open source software. Typically this means that the authors / sellers of the software are notified in private and given ample time to provide a patch before any public mention is made of the vulnerability.</p>
<h2>Harden US defense and commercial targets against attack.</h2>
<p>Wash, Rinse, Repeat.</p>
<p>By executing the above process continually, and prioritizing the organizations targeted with the benign attacks, the entire country can be quickly brought up to a state of Cyber-War-Readiness.</p>
<h2>Share the policy with our allies.</h2>
<p>It seems clear that we should share our policy, our tools and our best practices with our allies.</p>
<p>Except for exploits found that others do not yet know about, and the results of attack testing on US targets, it is not clear that any of the tools or methods or information need be secret.</p>
<h1>Some Best Practices</h1>
<p>Attack surfaces are the places where attacks can occur. The number of instances in an organization, the rate of usage and complexity of a surface, such as Flash, or Windows XP gives a measure of the Area of the surface. The number of exploits reported / fixed per month or per year gives also gives a measure of the Area of the surface.</p>
<ul>
<li>Unified Threat Management Software [UTM] at the perimeter of 	an organization should be employed to filter the outside world from 	attacking an organization. The UTM should be running on an embedded 	or Linux OS rather than Windows to eliminate a Windows attack 	surface from the UTM.</li>
<li>Eliminate Flash / PDF – Flash and PDF form a large and 	frequent attack surface. While the browser and email programs used 	to be the preferred attack point, it is now Flash and PDF files. 	Every week or month more bugs are found and updates are required. 	While updating is advised, a “hardened” organization should 	simply eliminate Flash and PDF files from unknown sources. The UTM 	can filter out all Flash/UTM from the outside world and replace it 	with blank images of the appropriate size, or a PDF file that states 	the policy.</li>
<li>No downloading via links. With centrally managed IT 	resources, no company should allow users to install anything 	themselves on their computers. Again UTM can assure that no programs 	from outside can be installed, and this includes Browser plugins.</li>
<li>Eliminate use of Java. Java via the browser can form an 	attack surface. This surface is probably not far behind Flash and 	PDF in frequency of use.</li>
<li>Reduce the number of file formats. Willingness to receive 	various levels of DOC, Power Point, and other file formats from 	others is an invitation to break-in. Reduce the number of formats 	and secure their transmission. Eliminate email as a transmission 	method wherever possible.</li>
<li>Smarter Image Scanning can eliminate JPG/ PNG / GIF etc as an 	attack surface. Modern browsers can process a large number of image 	types, and the more types, the more vulnerable the browser is to 	attack. A smart proxy server in the UTM can eliminate many of those 	types by translating the images and in doing so can process the 	image so that it is assured there is no hidden payload. If an image 	is converted from GIF &gt; PNG, then it is clear that no payload 	will survive. Only JPG / PNG should be supported and UTM should 	translate everything else and fix up the web page references to 	reference the correct translated image. This will eliminate images 	as an attack surface.</li>
<li>Cross Site Scripting and other Cross Site attacks can be 	eliminated by the UTM proxy disallowing certain references that 	might compromise the site or the browser.</li>
</ul>
<h1>Longer Term</h1>
<p>Currently, virus detection is performed by looking for signatures of known virus variant. Some viruses can modify themselves, much as HIV-AIDS virus does, to avoid detection. It seems clear that a new non-signature method of detection is required.</p>
<p>As mentioned in the above point on image scanning, it is possible to detect virus payloads in images by processing the image in some way that only a valid image would survive. This type of processing is also possible for PDF files, where a file could be scanned looking for embedded features such as form-scripts and embedded media – images or flash- that form the attack.</p>
<p>By using the UTM to remove advanced features from some files – Flash, PDF and others – the organization is protected from attacks on the surfaces provided by those advanced features.</p>
<h1>What&#8217;s Happening?</h1>
<p>Maybe these things are quietly happening behind the scenes while we are annoyed by noise from the likes of the “Protect IP” legislation which is an effort of big companies like Sony to protect a questionable amount of revenue from lost sales. It seems they have lost more money recently due to to their own cost cutting in their IT departments by not having appropriate security measures than they can hope to gain by any “Protect IP”, and meanwhile we are all less Cyber-Secure.</p>
<p>-ww</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2011/06/22/cyberwar-the-war-is-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vista x64 Hall of Shame</title>
		<link>http://www.windyweather.net/wp/2008/02/17/vista-x64-hall-of-shame/</link>
		<comments>http://www.windyweather.net/wp/2008/02/17/vista-x64-hall-of-shame/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 18:45:11 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Evaluations]]></category>
		<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2008/02/17/vista-x64-hall-of-shame/</guid>
		<description><![CDATA[Here is a list of products that do not support Vista x64. This is shameful for several reasons: Vista is the currently shipping OS and x64 is the &#8220;Ultimate&#8221; expression of that OS. Vista x64 is the second generation of x64 OSs, so it is hardly brand-new and the requirements for supporting the system are [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a list of products that do not support Vista x64. This is shameful for several reasons:</p>
<ol>
<li>Vista is the currently shipping OS and x64 is the &#8220;Ultimate&#8221; expression of that OS.</li>
<li>Vista x64 is the second generation of x64 OSs, so it is hardly brand-new and the requirements for supporting the system are well known</li>
<li>Most medium to high end systems are x64 capable.</li>
<li>Most high end system support as much as 4GB of memory.</li>
<li>One can only make use of 4GB of memory with an x64 edition OS. With an x86 edition one only can address 2.7 or 3.5GB of memory depending on the hardware available. <a href="http://4help.alienware.com/cgi-bin/alienware.cfg/php/enduser/std_adp.php?p_faqid=1289&#038;p_created=1087006479&#038;p_sid=3ViUNyYi&#038;p_accessibility=0&#038;p_redirect=&#038;p_lva=&#038;p_sp=cF9zcmNoPTEmcF9zb3J0X2J5PSZwX2dyaWRzb3J0PSZwX3Jvd19jbnQ9NDEzJnBfcHJvZHM9JnBfY2F0cz0mcF9wdj0mcF9jdj0mcF9zY2ZfZmFxcypjJGxhbmd1YWdlPTIwNSZwX3BhZ2U9MTEmcF9zZWFyY2hfdGV4dD12aXN0YSB4NjQ*&#038;p_li=&#038;p_topview=1">See this Alienware Support post</a>.</li>
</ol>
<p><span id="more-245"></span></p>
<p><strong>Disclaimer:</strong> I do not have any financial interest in any of these products or Microsoft. I have an Vista x64 system, so I do have an interest in products supporting that platform. All trademarks are the property of their respective owners.</p>
<p><strong>Note:</strong> I find the Vista x64 system to be very reliable and usable. While I agree that it is not a large upgrade from Win-XP, I have no interest in going back, and I&#8217;m not annoyed by &#8220;Account Control&#8221; popups, but prefer running with Account Control Enabled.</p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/hardware_masthead_ltr.gif" width="136" height="42" alt="Microsoft" title="Microsoft" /></p>
<p><strong>No support for the Fingerprint Reader on Vista x64</strong><br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/prod_fpReader-135.jpg" width="135" height="135" alt="Finger Reader" title="Finger Reader" /></p>
<p><a href="http://www.microsoft.com/hardware/windowsvista/support.mspx">How hard could this be?</a> Recompile the code. Vista is touted as the end all and be all for modern security in operating systems but they don&#8217;t support their own biometric security device on Vista x64? How lame is that??</p>
<p><strong>OEM Licenses Don&#8217;t Include Media or X64 Editions.</strong><br />
When you purchase Windows Vista Ultimate with a system:</p>
<ol>
<li>You don&#8217;t get certified media from Microsoft. But instead you get a lame backup disk, or the ability to backup your own system disk to your own media. How lame is that?</li>
<li>You don&#8217;t get the x64 edition. If you want x64 you have to pay an additional $300 for a brand new license. Are they really trying to make more money with x64 for bleeding edge desktops?</li>
</ol>
<p>Why isn&#8217;t Microsoft trying to encourage adoption of x64 edition for high end systems?. After all, isn&#8217;t Max OSX running in x64 on every system that supports it? Linux does automatically doesn&#8217;t it? Hey, I&#8217;d run Linux if most of the dozens of applications that I use would run on it. Why is Microsoft holding back with x64? Don&#8217;t they have it working yet? Seems perfectly stable to me&#8230; Time to pony up and support it, Microsoft.</p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/AlienwareLogo.png" width="239" height="59" alt="Alienware" title="Alienware" /></p>
<p>Alienware appears because they are suppliers of the bleeding edge of computing. Where do they get off not supporting the bleeding edge of Windows OSs. There are several problems with their attitude:</p>
<ol>
<li>They silently let you buy a 4GB system with no warning that not all the memory will be supported by the OS they ship. You order 4GB and you get to use 2.7GB because they only support Vista x86 edition.</li>
<li>They refuse to support the x64 edition on their systems even though the vast majority of the systems are x64 capable. And by the way they act in all other ways like a bleeding edge system provider.</li>
<li>They provide the lame OEM licensed version of the software so you don&#8217;t get x64 media or indeed any media for the OS from Microsoft.</li>
<li>Their hardware editions, like AlienFX lighting, does not have Vista x64 drivers. Glad I set up my lighting before I installed x64&#8230;</li>
</ol>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/633_166_title_photo_album_deluxe_ed.gif" width="383" height="57" alt="Corel Photo Album" title="Corel Photo Album" /><br />
The trial for Corel Photo Album 6 installs a driver which is not signed. It&#8217;s a codec from Sonic I think. So there is a warning about the driver not being signed. But the install continues anyway and you are lead to believe that the system has taken care of the problem. Only the driver is in fact installed anyway.<br />
Now you are hosed&#8230;. The system refused to boot because Vista refuses to boot with any unsigned drivers.</p>
<p>How lame is that?? What I mean is that both Vista was willing to install an unsigned driver, causing a boot failure, and that Corel didn&#8217;t test on x64 and so didn&#8217;t find the problem.</p>
<p>BTW, to recover, you have to boot your original CD media and then &#8220;Recover the system&#8221;. At least when you have done that, you don&#8217;t lose anything. </p>
<p><strong>Adobe Reader 8.1 Breaks</strong><br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/AdobeReaderFails.png" width="357" height="172" alt="Adobe Reader" title="Adobe Reader" /><br />
Adobe reader 8.1.x cannot resize the window. Actually the window resizes, but the window content does not resize either. Not sure whether this is Vista &#8211; how could it be?? &#8211; or Vista x64? Releases since I first ran this on x64 back in May 2007 have had this problem.</p>
<p>Several Adobe products that I wanted to upgrade, like Adobe Premier, do not run on x64.</p>
<p>These are the notable products that do not run on Vista x64. I will do another post with a compact list of all the products that I&#8217;m using on Vista x64.</p>
<p>- windy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2008/02/17/vista-x64-hall-of-shame/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML Signatures to Protect Settings Files</title>
		<link>http://www.windyweather.net/wp/2008/02/06/xml-signatures-to-protect-settings-files/</link>
		<comments>http://www.windyweather.net/wp/2008/02/06/xml-signatures-to-protect-settings-files/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 00:48:03 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2008/02/06/xml-signatures-to-protect-settings-files/</guid>
		<description><![CDATA[When settings files are transferred as part of a program update, it may be interesting to assure that the files are not corrupted, or changed in such a way that the program is compromised. One can do this with XML Signatures. Consider the following example: Widgets Inc needs to create WidgetsSpecs.xml at their home office [...]]]></description>
			<content:encoded><![CDATA[<p>When settings files are transferred as part of a program update, it may be interesting to assure that the files are not corrupted, or changed in such a way that the program is compromised. One can do this with XML Signatures.<br />
<span id="more-244"></span><br />
Consider the following example:<br />
Widgets Inc needs to create WidgetsSpecs.xml at their home office to update the WidgesFactory software at some of their many plants. In this example, WidgetsSpecs.xml is not a secret formula, but Widgets Inc wants to make sure that folks do not tamper with the settings along the way and create subversive or corrupted widgets. The following method will secure the WidgetsSpecs.xml file against tampering.</p>
<p>To security their specifications, Widgets Inc needs to create a private key, a <a href="http://en.wikipedia.org/wiki/Self-signed_certificate">self signed certificate</a>, and then sign their WidgetsSpecs.xml files with the private key. Only the self signed certificate is passed to the  application in the field and it is provided in a secure way so that it cannot be compromised. Once this is done then the software application can verify that the WidgetsSpecs.xml files are authentic.</p>
<ol>
<li>Widgets Inc creates a Certificate Authority, using OpenSSL, and a private key of say, 2048 bits so that it is highly secure. 2048 bits of RSA key are the normal suggested strength for computing today. This  process of <a href="http://www.dylanbeattie.net/docs/openssl_iis_ssl_howto.html">creating a Private Key and Self Signed Certificate is outlined here</a> and will not be covered in detail in this tutorial. The result is this is a private file called WidgetsInc.key which is the private key and will be protected in a very secure manner by Widgets Inc. and the WidgetsCert.crt which is the self-signed certificate which is public and need not be secured.</li>
<li>Once these are created, then the WIdgetsSpecs.xml file is created with some extra wrappers to contain the signature. There is an example below.</li>
<li>At the Widgets Inc company, in a secure place, the WidgetsSpecs.xml file is signed using the WidgetsInc.key file. This adds a digest or hash value to the xml file which can only be verified with the correct public key from the certificate.</li>
<li>When the WidgetsFactory application was built, the WidgetsCert.crt certificate was included with the application in a way so that it could not be compromised. If this crt file can be replaced by a hacker, then any signed XML file can be substituted. There are several ways to secure the crt file: (1) embed the file in the program itself rather than just placing the file on the disk where it can be changed. (2) In addition, embed a hash function of the crt file in the program so that the program can find out if the file has been tampered with.</li>
<li>Each time the WidgetsFactory application starts up, it reads the WidgetsSpec.xml file and verifies the signature using the valid crt file. If the CRT file does not pass the hash checks, or the signature does not pass, the WidgetFactory application refuses to make widgets.</li>
</ol>
<p><strong>Cautions and Caveats</strong><br />
Widgets Inc could decide to spend the money on a trusted certificate from a company like Verisign for this purpose. But these certificates cost money and they expire. When creating a Self-Signed certificate there are no costs and the expiration date can be set to 5 years, if desired.</p>
<p>The private key is protected at Widgets Inc and is not embedded or distributed with the Widget Factory application.</p>
<p><strong> Example Files</strong></p>
<p>These examples were taken in part from the <a href="http://www.aleksey.com/xmlsec/index.html">XML Security Library </a>site. </p>
<p>Template File including the Settings to be signed.<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/2008/02/widgetsspecs-template.png" target="image"><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/_widgetsspecs-template.png" width="400" height="232" alt="Template to Sign" title="Template to Sign"  /></a></p>
<p>Signed XML File<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/2008/02/widgetsspecs-signed.png" target="image"><img src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/_widgetsspecs-signed.png" width="400" height="269" alt="Signed File" title="Signed File"  /></a></p>
<p><strong>Using xmlsec1 to Sign and Verify the XML files.</strong><br />
<code><br />
darrell@squall-ubuntu:~/code/xmlsigntest$ xmlsec1 --sign --privkey-pem ca.key --output WidgetsSpecs-signed.xml WidgetsSpecs-Template.xml<br />
darrell@squall-ubuntu:~/code/xmlsigntest$ xmlsec1 --verify --pubkey-cert-pem wwcdd.crt WidgetsSpecs-signed.xml<br />
OK<br />
SignedInfo References (ok/all): 1/1<br />
Manifests References (ok/all): 0/0<br />
darrell@squall-ubuntu:~/code/xmlsigntest$<br />
</code></p>
<p>To examine all the files in the example, download <a href="http://www.windyweather.net/wp/wp-content/uploads/2008/02/widgetsexample.zip">widgetsexample.zip</a>.</p>
<p>Some observations:</p>
<ul>
<li>This example was performed using Ubuntu 7.10, where xmlsec1 and the other software required is easily installed.</li>
<li>The software is easily ported to Windows and the libraries have been ported to <a href="http://www.zlatkovic.com/libxml.en.html">Windows by Zlatkovic</a>.
<p>Enjoy,<br />
ww</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2008/02/06/xml-signatures-to-protect-settings-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XMLSEC Libs with VS 2005</title>
		<link>http://www.windyweather.net/wp/2008/02/04/xmlsec-libs-with-vs-2005/</link>
		<comments>http://www.windyweather.net/wp/2008/02/04/xmlsec-libs-with-vs-2005/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 21:52:55 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Bug Info]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2008/02/04/xmlsec-libs-with-vs-2005/</guid>
		<description><![CDATA[Trying to build an XML Signing application using the XMLSecurity Library. Using Visual Studio 2005, and Windows Forms. And also eventually Ubuntu 7.10 with KDEV. [not started yet] Got the libraries for Windows from Zlatkovic who has done an excellent job assembling all the libraries for Windows using VS 2003. I have laid out the [...]]]></description>
			<content:encoded><![CDATA[<p>Trying to build an XML Signing application using the <a href="http://www.aleksey.com/xmlsec/" target="_blank">XMLSecurity Library</a>.<br />
Using Visual Studio 2005, and Windows Forms.<br />
And also eventually Ubuntu 7.10 with KDEV. [not started yet]<br />
<span id="more-243"></span><br />
Got the libraries for Windows from <a href="http://www.zlatkovic.com/libxml.en.html" target="_blank">Zlatkovic </a>who has done an excellent job assembling all the libraries for Windows using VS 2003.</p>
<p>I have laid out the folders like this:<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2008/02/XML_SecurityCodeLayoutx.png" width="262" height="311" alt="directory layout" title="directory layout" /></p>
<p>As a test, I started with a CLR [.Net] based console application and included all the libraries as statically linked. Then I tried to run the sample code and got the following error. Since Zlatkovic did not provide the sources, I cannot debug this directly.</p>
<p><code>C:\Code\XML_SignTest\release>XML_Signtest sign1-tmpl.xml ca.key > sign1-res.xml<br />
Arguments Dummyargument<br />
Arguments sign1-tmpl.xml<br />
Arguments ca.key<br />
XML_Sign - found start node<br />
XML_Sign - Created Signature Context<br />
XML_Sign - Loaded Key<br />
XML_Sign - key name is set<br />
func=xmlSecDSigCtxProcessSignatureNode:file=..\src\xmldsig.c:line=465:obj=unknow<br />
n:subj=dsigCtx->c14nMethod == NULL:error=100:assertion:<br />
func=xmlSecDSigCtxSign:file=..\src\xmldsig.c:line=303:obj=unknown:subj=xmlSecDSi<br />
gCtxSigantureProcessNode:error=1:xmlsec library function failed:<br />
Error: signature failed<br />
</code></p>
<ol>
<li>Perhaps this is a problem with incompatibilities with VS 2005, VS 2003, or</li>
<li>Perhaps this is another problem with how I have included the libraries.</li>
</ol>
<p>I see a couple of ways that I can proceed:</p>
<ol>
<li>Get the sources from Zlatkovic and build them again debug after converting the projects to VS2005. Also provide him with the VS2005 projects after I have them working.</li>
<li>Start again with the sources of the projects, and build the VS2005 projects for them.</li>
</ol>
<p>Here you can find a <a href="http://www.windyweather.net/wp/wp-content/uploads/2008/02/xmlsigntest.zip">ZIP of the complete VS2005 test project </a>including the key, certificate and test samples I used. This is a 3.5MB download and some large files have been removed [ncb, pch], but these can be recreated with a rebuild.</p>
<p>Please contact me by <a href="mailto:djduffy@windyweather.info">email </a>if you have any thoughts.</p>
<p>Thanks very much,<br />
Windy</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2008/02/04/xmlsec-libs-with-vs-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure Email Setup</title>
		<link>http://www.windyweather.net/wp/2006/12/25/secure-email-setup/</link>
		<comments>http://www.windyweather.net/wp/2006/12/25/secure-email-setup/#comments</comments>
		<pubDate>Tue, 26 Dec 2006 02:11:06 +0000</pubDate>
		<dc:creator>Darrell</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.windyweather.net/wp/2006/12/25/secure-email-setup/</guid>
		<description><![CDATA[This tutorial shows you how to set up Secure Email using Outlook Express and a free Digital ID or certificate. I&#8217;m going to assume you are using Outlook Express but other programs probably have similar steps. I have not investigated using web email clients [web pages directly on Yahoo or Gmail] to accomplish this. I [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial shows you how to set up Secure Email using Outlook Express and a free Digital ID or certificate.<br />
<span id="more-192"></span></p>
<p>I&#8217;m going to assume you are using Outlook Express but other programs probably have similar steps.</p>
<p>I have not investigated using web email clients [web pages directly on Yahoo or  Gmail] to accomplish this. I am not aware that they support secure email.</p>
<p><strong>Setup Your Email Accounts</strong><br />
First of all, make sure that you have outlook express set up for your one or more email addresses that you want to use and that you have tested them. You can send email from one account to another to test them. During this process you will need to receive multiple email messages from the certificate authority, so your email will need to be working.</p>
<p>Also you will need to be using MSIE, not Firefox or another browser for this process. This is because Outlook Express and MSIE are in cahoots and share knowledge about how to manage certificates. Those built for Firefox will work only for the Netscape or Mozilla Email program. So run MSIE and go to the following Thawte link.</p>
<p><strong>Sign up at Thawte</strong><br />
You can get Free Email Certificates for personal use from <strong><a href="http://www.thawte.com/secure-email/personal-email-certificates/index.html">Thawte.com.</a></strong> There are other authorities, but I&#8217;m using Thawte as an example. No endorsement is intended.</p>
<p>Click JOIN and then fill out the form, select a password and enter your personal information for the certificates. You will need to receive an email for the email address you entered and transfer some data from that email to a web page to authenticate yourself. Once that is done you are &#8220;official&#8221; joined up at Thawte. Now you can go to the account page and add more email addresses if you want to. You can also do this at any time in the future.</p>
<p><strong>Request a Certificate</strong><br />
After you sign up, choose the certificates page, and then click on Request Certificate.<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2006/12/request_cert.png" width="493" height="250" alt="Request Certificate" title="Request Certificate" /></p>
<p>This will take you to a small window where you will go through the process. If you set up more than one Email address in your account, you will get to choose which email address the certificate applies to. You will need a separate certificate for each email address you have or want to use securely.</p>
<p>The process is straight forward until you get to the following page. Do not click on the Configure Button unless you  know what you are doing. ACCEPT is the right choice here. The certificate will work for all email activities.</p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2006/12/default_extensions.png" width="455" height="301" alt="Accept Default Extensions" title="Accept Default Extensions" /></p>
<p>After a few more pages you will come to this screen. This is the actual step where a certificate is created.<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2006/12/create_cert.png" width="474" height="386" alt="Create the Certificate" title="Create the Certificate" /></p>
<p>When you click here you will then go through a screen and a dialog box will popup asking if you want to install the certificate. Click OK. But this is not the end of the process. The certificate has been handed to MSIE / Outlook Express, but it cannot yet be used.</p>
<p><strong>Check Your Email</strong><br />
You should have received an email message talking about the certificate. You will need to read that email and this will automatically enable the certificate for you at Thawte. If a box pops up talking about a read request then click OK.</p>
<p><strong>Install your Certificate</strong><br />
The certificate is created, but not yet actually installed in MSIE, in spite of what MSIE has said. Go to the certificate status page that looks like this:</p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2006/12/cert_status.png" width="486" height="401" alt="Certificate Status" title="Certificate Status" /></p>
<p>Now you need to click on the MSIE link to go to the page to fetch the certificate:<br />
<img src="http://www.windyweather.net/wp/wp-content/uploads/2006/12/fetch_cert.png" width="400" height="489" alt="Fetch Cert" title="Fetch Cert" /><br />
The fetch button is the red button at the bottom of the page. Click on the fetch button and click ok on any dialog that appears and your certificate is installed in MSIE.</p>
<p><strong>Now Set up your Digital ID in Outlook Express</strong><br />
In Outlook Express, choose Tools >> Accounts&#8230; then Properties&#8230; for the account that you have a certificate for. Now choose the Security Tab and you will see something like this:<br />
<a href="http://www.windyweather.net/wp/wp-content/uploads/2006/12/oe_certs.png" target="image"><img src="http://www.windyweather.net/wp/wp-content/uploads/2006/12/_oe_certs.png" width="400" height="358" alt="OE Certificate Selection" title="OE Certificate Selection"  /></a></p>
<p>Choose the same certificate you just created by choosing Select&#8230; for both the signing and encryption certificate. 3DES is the correct default to use for the encryption.</p>
<p><strong>Sending Encrypted Email</strong><br />
To send encrypted email, first you need to send a Signed Message.</p>
<p><img src="http://www.windyweather.net/wp/wp-content/uploads/2006/12/encrypted_message.png" width="412" height="358" alt="encrypted email" title="encrypted email" /></p>
<p>The Sign and Encrypt email buttons are under the cursor arrow on the image above. To begin sending encrypted email, you should each exchange digitally signed messages. Once you have received these digitally signed messages you can each send encrypted email.</p>
<p>Things should work now to send encrypted email.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.windyweather.net/wp/2006/12/25/secure-email-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

