February 10, 2010

Xtreamer e-TRAYz NAS

Couple of weeks ago, I came by an interesting device - the Xtreamer e-TRAYz NAS.

xtreamer_etrayz.jpg

This is a little device that looks like an UPS and can host up to two SATA HDDs inside. After checking the features list, I decided to get one and use it at home for backup and such.

The device sells without HDDs. Personally, I decided to use it with two WD 2TB Green HDDs.

A couple of nice things about the e-TRAYz NAS: first of all, it runs Linux.

~# uname -a
Linux etrayz 2.6.24.4 #1 Thu Dec 10 11:35:17 KST 2009 armv5tejl 
ARM926EJ-S rev 5 (v5l) Oxsemi NAS GNU/Linux

It has ssh, apache with php support, smb, ftp and surprisingly, even mysql and unrar.

~# unrar | head -3
UNRAR 3.80 freeware      Copyright (c) 1993-2008 Alexander Roshal
Usage:     unrar command...
~# file /usr/bin/unrar
/usr/bin/unrar: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked
(uses shared libs), for GNU/Linux 2.6.14, stripped


The hardware runs on an ARM926EJ-S CPU, which according to the description page is an "entry point processor capable of supporting a full Operating System such as Linux, Windows CE, and Symbian".

~# cat /proc/cpuinfo
Processor       : ARM926EJ-S rev 5 (v5l)
BogoMIPS        : 183.09
Features        : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 5
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 32768
I assoc         : 4
I line length   : 32
I sets          : 256
D size          : 32768
D assoc         : 4
D line length   : 32
D sets          : 256
Hardware        : Oxsemi NAS
Revision        : 0000
Serial          : 00000acbcaf52a80

As an interesting note, this is probably that first CPU that I see with native Java support.

The system also features 128MB of RAM and during installation, is configured with 500MB of swap space:

/var/log# free
             total       used       free     shared    buffers  cached
Mem:        126052      95108      30944          0       4956   46284
-/+ buffers/cache:      43868      82184
Swap:       499896       2036     497860

The CPU is not very fast, for instance, it does MD5 at about 12MB/s:

[11:~]$ dd if=/dev/zero  bs=10240 count=10000 | md5sum -b
10000+0 records in
10000+0 records out
102400000 bytes (102 MB) copied, 7.94591 s, 12.9 MB/s

To compare, a MacMini with an Intel Core 2 Duo CPU at 2.0Ghz does about 200MB/s.

The 2TB WD Caviar Green disks are not fast, but in a NAS with 100Mb link, speed is not such a big issue.

[13:~]$ hdparm -tT /dev/sda
/dev/sda:
 Timing cached reads:   228 MB in  2.00 seconds = 113.85 MB/sec
 Timing buffered disk reads:   52 MB in  3.11 seconds =  16.71 MB/sec

Reading is around 16MB/s. Comparatively, on an Core 2 Duo machine, the same disk achieves around 97MB/s.

Now, for the smart stuff inside this device. Obviously, it has been designed by programmers, with programmers and heavy tech users in mind.

[20:/]$ mount
/dev/md0 on / type ext3 (rw,noatime,nodiratime)
/dev/md2 on /home type xfs (rw,noatime,nodiratime,prjquota)

While the root is formatted with ext3, it has noatime and nodiratime turned on - nice! Additionally, the storage partition (which is raid1 for me) is formatted not with ext3, but XFS! XFS is my preferred choice on Linux, glad to see the people designing it knew their ins and outs.

Additionally, there is a lot of fine tuning in /etc/rc.local to optimize power usage, temperature and fan control.

echo 1 > /sys/module/thermAndFan/parameters/output_flag
echo 50 > /sys/module/thermAndFan/parameters/cold_limit
echo 1 > /sys/module/thermAndFan/parameters/hot_limit
echo "60" > /proc/sys/vm/dirty_ratio
echo "1" > /proc/sys/vm/dirty_background_ratio
echo "core.%e" > /proc/sys/kernel/core_pattern

Again, respect to the people who produced the configuration, they didn't just dump some Linux on it but knew how to properly finetune it for the device.

Now, for the eye candy and GUI:

xtreamerweb.jpg

A number of very nice features can be accessed through the web interface, for instance, the BitTorrent client and rapidshare direct download client. I found the BitTorrent to be particularly funny as it features a preinstalled searchable RSS feed to ISOHUNT and Mininova:

xtreamertorrent.jpg

There are a couple of other nifty features in this device, but I'll let you discover them for yourself. The eTRAYz can be purchased in Romania from xtreamer.ro, for a promotional price of 549 RON (133 EUR).

Personally, I think it's worth!

Update (2010-02-11):

My friend Razvan Musaloiu-E asked about Gigabit support. Here's a "dmesg | grep eth0":

eth0: PHY is LSI ET1011C
eth0: GMAC ver = 51, vendor ver = 17 at 0xe8000000, IRQ 8
eth0: Found PHY at address 1, type 0x0282f014 -> 10/100/1000
eth0: Ethernet addr: 00:1c:85:20:0f:dc
eth0: PHY is LSI ET1011C
eth0: LSI ET1011C PHY no Rx clk workaround start
eth0: LSI ET1011C PHY no Rx clk workaround end
eth0: PHY is LSI ET1011C

So it looks like Gigabit support is there too, but to be honest, I don't have a router and cables to test it.

Posted by Costin Raiu at 12:53 PM | Comments (1)

November 9, 2009

Why is Apple Meddling With My Windows AutoRun?

In every system designed by man, there is always a balance between features, usability and security. While designing pretty, easy to use and secure systems is possible, quite often this is not what the users get, or, worse, this is not what the users want.

The most popular example of this applies to Apple. Focusing on eye-catching designs and easy to use products, Apple is listed in almost every marketing book as a success story.

Interestingly, maybe their second most popular software product, Mac OS X (after iTunes) represents a curious blend between eye-catching, easy to use, flexible, usable and decently secure, modern operating system. Please notice how I avoided saying "secure" and instead, wrote "decently secure". Not wanting to start a holy war, I'd like to state that no operating system is bulletproof. Or, if an operating system even remotely tries to achieve that, nobody really wants to use it. Take VMS for instance; it was maybe one of the most secure operating systems ever design, yet, it was a pain to use. Ten years ago, in my University, the people doing schoolwork on VMS dreamed of doing it on Linux. Yet, a computer running VMS with 4MB of RAM and a 40MB hard drive could host 50 concurrent users, while a similar Linux computer started having issues with more than 10 users. VMS was not only secure, but it was resource efficient as well. It was that good. Yet, it went into oblivion, just like it will happen to any other secure but a-pain-to-use OS.

With Windows 7, Microsoft made an interesting move. The developer of the most attacked operating system in the world decided to turn off an age-old option. This was one of the options that made the operating system easier to use but much, much more insecure. I'm talking of course about AutoRun.

You can imagine my surprise when I got the following message from iTunes, while plugging my iPod to transfer some newly purchased albums:

itunesfail.png

So, iTunes detected that my system was more secure but less usable, and decided that maybe it's a good idea to change that back! My surprise was even bigger after seeing the following message from iTunes:

itunes_fail2.png

Therefore, even if AutoRun is off, iTunes will still recognize my CDs!

With that in mind, Apple's decision with iTunes doesn't make any sense. It took Microsoft more than 25 years to finally understand how important security is, and then it took them another 5 years to understand that AutoRun is inherently flawed and insecure, so it needs to be deactivated by default.

As I was saying, Apple is a success story when it comes to combining easy to use technology with eye catching design, while keeping it also decently secure. It is a real pity though when somebody finds slips like the one above. Will it also take them 5 or 10 or even 25 years or so to understand the dangers of AutoRun?

I certainly hope not.

[guest editorial written for Threatpost.com - check the original post here]

Posted by Costin Raiu at 4:18 PM | Comments (0)

October 20, 2009

Crawling Twitter

Slides from my Virus Bulletin 2009 presentation (together with Morton Swimmer) in Geneva:

Additionally, if you can read Romanian, I've written a short story about the project for my friend Radu Georgescu's blog here (thanks for the invitation, Radu!):

http://www.radugeorgescu.ro/2009/10/15/malware-de-pe-twitter/

Enjoy,
Costin

Posted by Costin Raiu at 2:11 PM | Comments (0)

August 8, 2008

The dark side of teaching

Grant Joy runs a program that surreptitiously records every keystroke on his machine, including user names, passwords, and credit-card numbers. And Thomas Fynan floods a bulletin board with huge messages from fake users. Yet Joy and Fynan aren't hackers—they're students in a computer-security class at Sonoma State University. And their professor, George Ledin, has showed them how to penetrate even the best antivirus software.

http://www.newsweek.com/id/150465

Back in my university years, we had course dealing with the topic of Data Communications. Not unusual for my faculty, the lab part of the course included a couple of things which had nothing to do with communications. For instance, there was one homework which requested the students to write a boot virus. I went to the assistant and asked for another assignment, as writing viruses is not something I wanted to do. The assistant refused my proposal, refused discussing the subject (he was 'busy') and subsequently gave me 0 points for that particular homework.

Every now and then, in a teaching institution, somebody comes up with the brilliant idea of teaching students about malware. I am not joking here, it IS a brilliant idea. What is however wrong with it, in 99% of the cases, is that the people who come up with the idea have absolutely no clue about ethics or just don't care about it. They also do not understand that writing malware is not the best way to teach people about how to protect against it. Actually, writing malware is the easy way; it is much easier to write malware than writing antivirus programs. Of course, there is also a dark attraction towards writing malware and young people are easy to fall prey to it.

Back to my university years and to the boot virus writing homework, only a few people bothered doing it. Of them, most actually took the Michaelangelo (March6) sourcecode and shuffled it around. A few years later, I heard that homework was removed from the course's curriculum. Most of the people were just taking existing boot viruses and patching them. And it wasn't really a Data Communications assignment per-se.

There are many other more interesting things to teach about than writing viruses, sending spam and circumventing protection solutions. Yet, there will always be people willing to join the dark side, for one reason or another.

The bad thing is that their number seems to be increasing from year to year.

Posted by Costin Raiu at 2:11 PM | Comments (0)

October 22, 2007

LinkedIn 419 scam

Bad guys using LinkedIn for what it seems like a 419 scam:

Simpson Millar’s CONSULT AND CHAMBER,
LIVEPOOL UNITED KINGDOM
Tel: xxxx
Email: xxxx

How are you? i trust you are having a nice day. I am mailing you in reference of investment in your country through you. I am delighted to let you know that, am a consultant and associate of Simpson Millar’s CONSULT AND CHAMBER, UNITED KINGDOM.

I have a client (Kurt Kahle) based here in the UK, who died in the year 2000 with all the members of the Family died in the Plane Crash. You can as well confirm this news at the BBC News Website:
(http://news.bbc.co.uk/1/hi/world/europe/859479.stm)

leaving behind the sum of GBP 11, 520,000.00 (Eleven Million, Five Hundred and Twenty Thousand Pounds). Before his death he disclosed to me his intention of investing in Real Estate business in foreign country and I have not been able to contact any of his family members. He further told me that he deposited this money in Security Company GERMANY for this project.

Meanwhile, i would want us to discuss on how this investment we be done, I am entrusting you with the transaction, since i have not been able to contact any of his family members. As soon as i received from you the confirmation of taking care of my late client properties, we shall then been discussing on how to consult the security company in GERMANY, on how this fund should be release to you for the investment properly.

Wait to hear from you soonest.

Regards

Johnson Mills

Company: Simpson Millar LLP
Job Title: Project
Description: Investment Project

Posted by Costin Raiu at 5:48 PM | Comments (0)

October 18, 2007

Audio stock spam

Today I've seen a couple of reports from various people that the Storm gang has changed once again tactics and started sending out MP3 files with pump and dump stock hints.

Here's one such example received by my girlfriend on her Yahoo e-mail account.

The stock they are spamming, as far as I can make it from the bad quality MP3 is:

http://finance.google.com/finance?q=exto

So far it seems that the method is not as good as the old fashioned plain text stock spam but I'll keep an eye on it to see if it picks up.

Posted by Costin Raiu at 5:58 PM | Comments (0)