Friday, 25 March 2011

Winston Churchill on Passwords

Winston Churchill quote on passwords:
 "It has been said that the password is the worst form of authentication except for all the others that have been tried."

 OK. He didn't say that (as far as I know). I paraphrased him slightly. Here is the alleged original quote:

"It has been said that democracy is the worst form of government except all the others that have been tried."
http://www.quotationspage.com/quote/364.html

Social: del.icio.us DiggIt! Reddit Stumble Google Bookmarks Technorati Slashdot

Tuesday, 22 March 2011

Tuesday Top Tip - Penetration Testing

Most companies use application penetration testing towards the end of the development life cycle in order to identify security vulnerabilities. This can be a problem - especially if you had not thought about security earlier in the development process.

What do you do if the pen test throws up major security issues?

If it's late in the development cycle, then these issues will be expensive to address. So you are more inclined to ignore them. That could leave you vulnerable.

Have you been in a position where a serious SQL injection vulnerability has been discovered two days before product launch? What to do? You know it would have been fairly simple to address if it had been discovered a lot earlier - but now it's not so simple.

So here are some Tuesday Top Tips:
  1. You should think of application pen testing as a way to confirm that all your planned security measures have been implemented properly during the earlier development phases.
  2. Try to do some pen testing as early as possible in the development. If you discover issues, they should be less expensive to address - and you can integrate the lessons learned into the rest of the development.

All this assumes that you have integrated security into the development lifecycle.

Social: del.icio.us DiggIt! Reddit Stumble Google Bookmarks Technorati Slashdot

Wednesday, 16 March 2011

Twitter Supports SSL

Twitter now supports SSL. Unfortunately, like Facebook, you have to opt-in. You can set it using the "HTTPS Only" setting under your Account options.

TWITTER

  1. Select "Profile" and then "Edit Your Profile"
  2. Down towards the bottom of the page you will see "HTTPS Only".
  3. Check the "Always use HTTPS" option
  4. Select "Save" to store your settings.


Do it now - you know you should!



 .....AND DONT FORGET FACEBOOK

To configure SSL in your Facebook account:
  1. Select "Account" and then "Account Settings"
  2. Select "Account Security"
  3. Under "Secure Browsing (https)" check the "Browse Facebook on a secure connection (https) whenever possible" option
  4. Select "Save" to store your settings
  .....AND IF YOU ARE DEVELOPING YOUR OWN WEB/ONLINE APPLICATIONS

Configure your website so that it uses SSL. Your users will thank you. Actually they won't...but you can feel smug.

Social: del.icio.us DiggIt! Reddit Stumble Google Bookmarks Technorati Slashdot

Sunday, 27 February 2011

Overview of Main Posts

This post gives an overview of the most important SDLC related posts in this blog.

  • SDLC Quick Reference  is a a quick reference checklist of security related items you should consider addressing during the development lifecycle of your web or online project. This is the main article.





    Social: del.icio.us DiggIt! Reddit Stumble Google Bookmarks Technorati Slashdot

    Sunday, 13 February 2011

    Is Google Analytics illegal in Germany?




    Update May 25th 2012


    It looks like it's OK again  to use Google Analytics in Germany 
       
    Today I stopped using Google Analytics (GA) on this blog. The reason is that the German Data Protection Authorities have recently said that usage of GA is illegal. They are of the opinion that the way GA uses IP addresses breaches their laws.  I know that some readers of this blog come from Germany. How do I know? Google Analytics.


    This blog also uses StatCounter to analyse visitor traffic. StatCounter is based in the EU - Ireland. So that should be OK - at least in Europe. Anyway,  I prefer StatCounter so GA is no great loss.


    The irony is that this blog is hosted on Google Blogger which is based in the US. This should be OK because Google is signed up to the Safe Harbor framework. This roughly means that it is acceptable to store personal information of EU citizens on Google infrastructure.

    An added complication is that Google Blogger has a feature called Stats, which also offers visitor tracking functionality. This is separate to GA, so hopefully it will not be a problem. It is all a bit mind boggling!

    So should you remove Google Analytics from your website?


    Links:

    PS:  I have just noticed that the Information Commissioner's website in the UK uses Google Analytics. So maybe he shouldn't visit Germany anytime soon.

    Social: del.icio.us DiggIt! Reddit Stumble Google Bookmarks Technorati Slashdot

    Thursday, 27 January 2011

    Facebook and SSL

    *               *               *               *

    I see that FaceBook has decided to support SSL.


    Maybe they read my Previous Post and got frightened - but maybe again they didn't.


    *               *               *               *

    Social: del.icio.us DiggIt! Reddit Stumble Google Bookmarks Technorati Slashdot

    Saturday, 22 January 2011

    European Data Protection Legislation and SSL

    Summary
    Many major websites do not use SSL to protect personal data as it travels across the internet. This was highlighted by the publication of the Firesheep Firefox extension in late 2010. This post looks at what European Data Protection Legislation has to say about the use of SSL to protect personal data. 

    Very little as it turns out.  

    It really only says that "appropriate measures" must be taken to protect the data. The UK and Ireland were examined a bit more detail. In these two countries, some of the accompanying notes to the legislation talk about encryption, but it is vague. The situation in other EU countries was not reviewed.

    So, it seems to be unclear whether websites that transmit personal data across the internet in cleartext are in breach of European Data Protection Legislation. However, based on the experience with Google Streetview, the combined EU Data Protection bodies should be in a position to put pressure on these websites to configure and use SSL properly. 

    Most information security professionals would think that SSL is a basic security measure.

    Feedback is welcome - especially on the situation in other EU countries.

    Background
    The Firesheep Firefox extension shows how easy it is to hijack user sessions on websites that do not implement SSL properly. In summary, you can use Firesheep to steal personal data (names, addresses etc.) from many major websites that do not use SSL or only use it during authentication.

    So what does European Data Protection legislation have to say about SSL? Are websites who do not use SSL to protect personal data in breach of Data Protection Legislation?

    European Data Protection Legislation and American Websites
    First of all a quick note about American companies. Most of the major websites are run by American companies. You might wonder whether they care about European Data Protection legislation or what the relationship is. The answer is the  Safe Harbor program administered by the US Department of Commerce.

    Essentially it means that companies who sign up to the Safe Harbor program agree to comply with EU Data Protection rules. In general, the major websites do sign up. You can search the list at:
    There is even a separate Swiss List at:
    So eventhough the websites are run by American companies, European Data Protection legislation is relevant.

    European Data Directive
    The main security driver for the protection of personal data in the EU is
    DIRECTIVE 95/46/EC OF THE EUROPEAN PARLIAMENT AND OF THE COUNCIL of 24 October 1995

    Article 17 Security of processing of the Directive states:

    • "the controller must implement appropriate technical and organizational measures to protect personal data against accidental or unlawful destruction or accidental loss and against unauthorized alteration, disclosure or access, in particular where the processing involves the transmission of data over a network, and against all other unlawful forms of processing"

    It says that "appropriate technical" measures must be taken  "in particular where the processing involves the transmission of data over a network". That implies that something should be done to protect personal data as it is being transmitted across the internet - but it does not mention SSL or encryption.

    Every EU country has implemented the European Data Directive into its own legislation. Each EU country has a local Data Protection body who is responsible for enforcing this legislation in that country. The following sections look at two countries in a bit more detail - the UK and Ireland.

    UK
    In the UK the Information Commissioner's Office is responsible. Does the commissioner have anything to say? The ICO  document "Data Protection Good Practice Note - Collecting personal information using websites contains a number of questions. Question 9 is relevant:

    Question 9:
    • We collect personal information through our website. Do we have to use an encryption-based transmission system?
    Answer:

    • "You are responsible for processing personal information securely. You must adopt appropriate technical and organisational measures to protect the information you collect. It is difficult to see how you could do this without having a secure, encryption-based transmission system if the personal information is sensitive or poses a risk to individuals, for example, if it includes credit card numbers.

      You should be aware that although a secure transmission system will protect the personal information in transit, there is a potentially greater threat to the security of the information when it is decrypted and held on a website operator's server. Any sensitive personal information, or information that would pose a risk to individuals, should not be held on a website server unless it is properly secured by encryption or similar techniques."

    Unfortunately, this answer is also not clear-cut. While it does talk about "a secure, encryption-based transmission system", it is only with respect to personal information that is "sensitive". And "sensitive personal information" has a special meaning. See the section "Sensitive personal information" in About the Code.

    Ireland
    The Data Protection Commissioner is responsible for personal data in Ireland. The document A Guide to the New Data Protection Rules is a bit more specific:
    • "Transmission over external networks, such as the internet, should normally be subject to robust encryption"

    This would imply that SSL (or equivalent) should "normally" be used.

    Other EU Countries
    The legislation in other EU countries was not examined.

    Conclusion
    It seems to be unclear whether websites that transmit personal data in clear text are in breach of EU Data Protection legislation.

    However the EU Data Protection bodies were able to force Google to make changes to its Streetview product to comply with Data Protection legislation. These same bodies should be in a position to force the major websites to configure and use SSL properly.

    Social: del.icio.us DiggIt! Reddit Stumble Google Bookmarks Technorati Slashdot