ssh-vulkey : How to test weak SSH keys on your server

This might be stale news by most security alert people, but I felt compelled to write this post nevertheless. Byy this time most security alert people have realised that a serious security vulnerability has been discovered in the random number generator used by OpenSSL on Debian and Ubuntu systems, and there are a lot of sites have published information about it. [1] [2] [3] [4] [5].

This vulnerability caused OpenSSL to generate “common” and predictable keys, which is easily crackable by using brute-force algorithm. In the extreme case, some of the keys are successfully cracked in 2 hours time. Longer keys 8192-bit RSA keyset might take as short as 129 days to generate as opposed to hundred of years if the keys were generated securely.

Which Ubuntu Linux system are affected ?
As Ubuntu linux operating system is based on Debian, it inherited Debian vulnerability problem. Users who has generated keys under (before updating to the new OpenSSL package via automatic updates, which is before May 13 2008) — Ubuntu 7.04 Ubuntu 7.10 Ubuntu 8.04 LTS are all affected by this vulnerability

Other system which uses the keys generated by Debian and the above mentioned Ubuntu system is also affected as the keys might allow malicious 3rd party user to abuse the system. SSH login which uses these keys will not be considered secure anymore, and are advised to update their SSH keys immediately.

How to check against weak SSH keys ?
A system is as strong as its security measures (in this case, the key) to protect it. By using ssh-vulkey as detailed in Ubuntu Security Notice 612-2, you can detect weak keys in your system, and updates them accordingly.

Run “sudo ssh-vulnkey -a” command to check against weak keys :

ssh-vulnkey -a

ssh-vulnkey -a
Not blacklisted: 2048 fa:2e:1d:a6:84:64:a1:80:c4:31:68:5a:b0:1a:cb:fe /etc/ssh/ssh_host_rsa_key.pub
Not blacklisted: 1024 f4:34:04:85:58:a0:6b:0a:a1:b9:2d:3b:e6:19:5a:76 /etc/ssh/ssh_host_dsa_key.pub
COMPROMISED: 2048 5c:10:8a:c0:55:8c:1f:d9:4b:05:f0:35:0a:0d:2f:5c /home/someuser/.ssh/authorized_keys
Not blacklisted: 2048 a7:b4:3e:41:18:cb:f7:68:5e:4f:ae:30:14:d2:17:fd /home/someuser/.ssh/authorized_keys

More information about OpenSSL in Debian / Ubuntu security vulnerability :

Melayubuntu – the best local Ubuntu blog

Today I would proudly write about a fine, if not the best local Ubuntu blog for Malaysian, Melayubuntu. Best of all, its written in Malay !

The website is filled with loads of Ubuntu tips which is useful for Ubuntu users, whether they are new or an old timer. It is the one particular blog which should be worth subscribing for.

Linux: How to get Harddisk UUID number

Modern Linux system uses UUID instead of traditional block name (/dev/hda1, /dev/hda5, /dev/sdb) to uniquely identify harddisk or other storage medium. This is because UUID is unique and never changes even if you switch the harddisk ordering.

So by mounting or refering your hard disk by its UUID, you are guaranteed to mount the correct storage medium no matter where its connected on your system.

Here’s how to get your harddisk UUID number

Method 1: Ubuntu and Debian Way

sudo vol_id /dev/hda1

This command display harddisk extra information including its filesystem and uuid number.

Method 2: using /dev/disk/by-uuid/

Another method which works universally on modern GNU Linux operating system is :

ls -l /dev/disk/by-uuid

which will uuid of connected storage medium to your computer.

That’s all, now you can easily identify your storage disk UUID number without much problem anymore.

Wubi – Easiest way to install Ubuntu in Windows partition

Wubi is an application which simplifies Ubuntu Linux installation on Windows partition. To Windows users, Wubi eliminates the hassle of having to repartition hard disk which carry the risk of loosing precious data.

Wubi does this by using a loopback device, creating a large file on a Windows partition and installing Ubuntu inside it. The best thing about Wubi is, it does not use virtual machine or any type of emulation. Thanks to Wubi, Ubuntu can be booted natively using Microsoft Windows boot loader.

When you are done experimenting with Ubuntu (who does?), or need to reclaim the hard disk space back, you can choose the uninstall button from the Windows Start Menu and everything will be removed, just as simple as that.

Wubi is one of the few application that made me wish that I have a Windows machine because I’m dying to try it out!

Wubi will be included with the upcoming Ubuntu 8.04 LTS (Hardy Heron) release, due in late April 2008.

Credits to fenris the 1337 pencacai for his original research on Wubi.

Visit Wubi official website here : http://wubi-installer.org/

Upcoming OpenOffice.org 3.0 supports Microsoft OpenXML (docx) out of the box

The popular Free and Open Source Office application, OpenOffice.org is going to have OpenXML (*.docx, *.xlsx, *.pptx) support by default. Scheduled to be release on September 2008, OpenOffice.org 3.0 packs a lot of features you might find interesting :

openoffice 3.0 development release
  • Import PDF files support. PDF documents can be edited in Writer
  • Official Mac OS support, now includes native “Aqua” interface
  • Multiple page view in Writer
  • Error bars in OpenOffice.org charts
  • Supports OpenDocument 1.2 specification

The BETA is scheduled to be released on April 30th, 2008. For the time being, OpenOffice.org 2.x users can open Microsoft OpenXML files (*.docx, *.xlsx) using odf import filters

Thanks to Andrew Ziem for the original article, OpenOffice.org 3.0 new features, an early look

New features in Ubuntu Hardy Heron (due in 20 days)

Though the main focus of the upcoming release of Ubuntu 8.04 LTS (Hardy Heron) is for long term support and bug fixes of existing features, Hardy Heron still packs quite a few notable features to look forward to :

Wubi and umenu

Installation without creating a separate partition for Ubuntu Linux is made easier with Wubi! Inserting Ubuntu CDROM will display a start up application which enables you to install Ubuntu on your windows partition using a loopback device.

wubi ubuntu installer

umenu ubuntu installer using wubi

After installation, Ubuntu will be added as one of bootable operating system in your Windows boot menu.

Install Ubuntu without the need to repartition, format and hassle.

Fine-grained User Permission Control
Ubuntu Hardy Heron integrates PolicyKit on administrative user interfaces. This allows you to have better control over user access on specific administrative task. For example, you can assign privilege for one user to access network controls but not software installation.

PolicyKit in Hardy Heron

Easy to use host-based firewall
The new Ubuntu release, Hardy Heron also includes ufw (uncomplicated firewall) that is easy to setup and use by end users without bothering network admnistrators.

New default bittorrent downloader
Transmission replaced Gnome Bittorrrent as the default bittorrent downloader in Ubuntu Hardy Heron LTS. Transmission is a lightweight bittorrent client with automatic banning feature and protocol encryption.

transmission.jpg

Additionally, Ubuntu 8.04 LTS also includes GNOME 2.22 and Firefox 3 Beta, which is better integrated with GNOME desktop environment. I’m looking forward for the next Ubuntu release, due on April 24th, 2008, that is three weeks from now!