|
Secure Computing: Sec-CHacker Factor Commentary on Computing and Security |
Home Blog |
Random ThoughtsTuesday, May 25. 2010
There's a couple of random thoughts rumbling around my head... Rather than writing a blog entry on each, I decided to just mention them here.
Oiling The MachineryEveryone is complaining about the oil gusher in the Gulf of Mexico. And everyone seems to have their own solutions. Use hair, use hay, construct a man-made barrier island, send down sludge, and more. British Petroleum has a couple of solutions lined up -- if one fails, then they will try the next. One of their solutions won't be ready until August! Some people think the government should take over the capping processes, but our government can't even pave roads without months of debate. A few people are blaming Obama for this problem. (These are probably the same people who are upset that the Republicans lost the election and still watch Glenn Beck.) Frankly, we can't blame Obama for this one. Blame Bush? Sure -- he caused it by easing governmental regulatory oversight between 2006 and 2008. Obama only inherited this mess. And given other messes like Health Reform, Financial Reform, Immigration Reform, and Lobbying Reform... Regulatory Oversight Reform is just another item in the to-do list. Anyway, I think I know the solution to quickly stopping the oil gusher. Congress should pass a resolution preventing BP from collecting any revenue until the gusher is capped and the cleanup is completed. Until both of those happen, any revenue received by BP should either go toward capping and cleanup, or be forfeited to the government and impacted states. If we cut off their revenue, then they will have an incentive for achieving a faster solution. Google and SSLGoogle recently released a beta of an SSL solution for their search engine. (https://www.google.com) They claim that this will improve privacy: This secured channel helps protect your search terms and your search results pages from being intercepted by a third party. This provides you with a more secure and private search experience. There's a few problems here. First, SSL is a placebo. From a security perspective, it does not add very much security or privacy. To gain security and privacy, you really need SSL with client-side certificates -- but Google isn't offering that. Second, I find it ironic that Google is offering a security and privacy solution. I mean, they store every search, associate searches with user accounts, and cache personal information. So for them to be concerned about search privacy is just... funny. Summer's HereSummer vacation has clearly started. The number of malware and attackers scanning my web site for vulnerabilities has increased 10x compared to last month. Looks like the k1dd13z are out of school. The uptick includes a significant increase in scans for WordPress vulnerabilities. Sample initial scans look like this: 2010-05-03 11:10:10 | 72.46.136.130 | GET /wp-login.php Of these scans, it is the tinymce one that bothers me the most. This is a WYSIWYG editor and it has a history of remote access vulnerabilities. If you don't need it, consider removing it or locking down your htaccess file and web pages. Arizona State LotteryArizona recently passed Senate Bill 1070. The law basically says that people suspected of being illegal aliens will be asked to provide proof that they are permitted to be in the USA. Failure to provide proof can lead to incarceration and/or deportation. I'm not going take a side on whether this law is racial profiling or justified. (Let's leave that debate to the pundits and citizens of Arizona.) Rather, I'm looking at this from the hacker point of view. The first US Citizen that is arrested and/or deported under this law will have a heck of a lawsuit. Most likely, the victim will receive an out-of-court settlement as an apology because the case won't have legs to stand on if a provable citizen goes to court. Anyway, this law should be called the Arizona State Lottery because you too can become a millionaire overnight! How To Reformat Your Hard DriveFriday, May 7. 2010
Many years ago, I used to go to auctions to pick up computers, peripherals, and other odds and ends. Although I would get the equipment for my own use, I'd still browse through anything that came with my auction winnings.
Burnt in monitor? What did it say? Old ribbon in a typewriter? What was last typed? Receipts in a cash register? I can't believe someone paid that much! But the biggest gold mine was always the hard drives. 99% of the time, there wasn't anything incriminating. Old emails, random data files, and standard (usually unpatched) operating systems. Occasionally I'd find something disturbing... love letters between a faculty member and his student, porn collected by some grad student, or passwords stored in plain text for an entire department. (Most of the auctions I attended were for old university equipment. One time they even auctioned off a Cray!) Stored PrivacyI always found these drives to be a fun way to try new forensic tools. Deleted files, uncommon (or old) partition formats, and corrupted data made the challenge fun. But it also made me keenly aware: never give out hard drives. If a drive fails, destroy it. If a drive exists in an outdated computer, destroy it. And if a drive is just too old to use, then destroy it. Seriously: deleting the content is rarely enough. Someone who gets it could recover data. Formatting the drive may also not be enough. (Spinrite is an awesome recovery tool.) There is always someone who argues about using multiple formats, like "What if I format it 27 times?" or "What if I overwrite the drive with a ton of random patterns?" While those might deter recovery, you can never be 100% certain. And even if the data cannot be recovered today, there is a chance that someone will create a new tool that can recover the data tomorrow. Frankly, the best solution is a degausser and a drill press. There are even industrial metal shredders, but those are too expensive for most small-to-midsized businesses. Besides, having a drive destroying party is actually fun for the whole family! Here's a great contest: speed destruction. Who can tear apart a drive the fastest, without damaging anything? (My fastest is 4 minutes, 21 seconds on a Barracuda. I could have cut off a minute, but I damaged one of the heads.) Necessary EquipmentThe main things you will need:
Older drives (MFM, RLL, and even old ATA) usually use flat or Phillips screws. Most newer drives use 6-sided hex screws. Tearing the drive apart really just means removing every screw you can find. And there are always 1-2 screws under the sticker labels. I usually run my finger across the label until I find the dimple where the screws are located. Then I cut through the label (just stick a sharp screwdriver into the dimple) and remove the hidden screws. The disk platters usually have very tiny hex screws. Remove them and the entire stack will come apart. Finally, there are two really strong magnets that control the head's position. These are GREAT for hanging stuff on the refrigerator. These magnets are usually mounted in metal brackets -- and removing them is a serious pain. If you can remove them, then wipe them over the platters to erase the disks. Otherwise, use a bulk tape eraser. (Use the eraser AWAY from all of the other small parts, because EVERYTHING magnetic will fly toward the eraser!) If you just want to destroy the data, then consider shattering or drilling holes in the platters. Waste Not Want NotThe first few drives I tore apart were a learning experience, but I threw everything out. Today, I just gotta use them for something. Initially I used the parts to make techie clocks. However, after the 10th clock, it got boring. ![]() Now I'm into more functional artwork. Like this multi-level earring holder. (She really liked it.) I stripped a broken camera tripod for the base. ![]() I've still got a couple of dozen hard drives than need dismantling. (My last auction purchase was a RAID. It was a great $20 buy, but now it is just too slow, too small, and too power intensive. Time to make art!) So my question is, what do you do with your old hard drives? And if you make things, what do you make? All Out of WordsSaturday, April 3. 2010
March was insane... I still can't believe that I wrote as much as I did. Besides trying to blog 1-2 times a week, I also wrote...
New BookCompleted my 3rd book: Ubuntu: Powerful Hacks and Customizations. Technically, this is the 2nd edition of my 2nd book. (Long story about why the 2nd edition has a new name. It's one of those things that is outside of the author's control.) When I first wrote Hacking Ubuntu, the focus was on Ubuntu 6.06 (Dapper Drake). However, Dapper is past its support for the desktop edition and the server edition has about a year of support left. Also, with each Ubuntu release there are major changes. While the hacks worked well for Dapper, a few had problems with Hardy Heron and some didn't work for later releases. With this new book, I fixed the hacks so they would support Dapper Drake, Hardy Heron, and Karmic Koala. They should also be good for the next Ubuntu versions (but since Lucid Lynx and Maverick Meekat have not yet been released, I cannot guarantee everything). One would think that revising an existing book would not be as time consuming as writing a new book from scratch. However, that really isn't the case. It takes almost the same effort to revise an entire book for the latest operating system releases. DocumentationI've been finishing up the documentation for the photo and image analysis software. The software is geared toward law enforcement. I am not planning a general, public release because the learning curve is just too steep for the average person. Instead, the release will be initially limited to US law enforcement. (I'll probably change my focus to non-US law enforcement later this year.) When investigators testify on the witness stand, they cannot just say "I pressed a button and it drew a picture". They actually need to understand the algorithms. So my technical documentation explains the algorithms, provides sample use cases, and details the known limitations. I finished the writing last month -- over 100 pages for the technical documentation plus a 16-page guide for common scenarios and an 8-page installation guide. I still have a little more work to do with the documentation. My friend, Chris Hanson, has been a godsend -- he's provided me with great example images. Unfortunately, I will need a few more pictures. Specifically, I need a few 100% computer generated images that are professional and high quality. If you are a professional graphic artist and can make high quality images similar to those found at the CG Society, please let me know! (I don't need custom graphics, exclusive rights, or a transfer of copyright. I'm hoping to find an artist who already has a sample portfolio and is willing to let me include one or two images.) Papers and CodeI also wrote a bunch of white-papers including two that were over 100 pages. In total, I wrote nearly 200 pages last month and completed over 500 pages in papers, reports, and a book. Not everything I wrote was in English. I did a ton of programming -- sloccount claims I wrote 3 months of code in one month, using C, Perl, Shell Script, and HTML. And while my college didn't recognize C or Perl as a foreign language, I think they really should count. Good Old DaysFriday, February 19. 2010
The last few weeks have been a serious rush. I think I can summarize it simply: newer isn't always better.
Spinning DownA few months ago I lost "yet another" hard drive. Fortunately, it was part of a RAID, so I didn't lose any data. (A lesson I learned from my first hard drive failure -- always use a RAID.) I seem to be getting 2-3 years out of newer hard drives, and it does not matter which manufacturer created the drive. I have a few old computers collecting dust in the back room. Recently I had a need for some software that I wrote back in the 1990's. I couldn't find a copy on my newer systems, but I knew it was on the old, dusty box. I plugged it in, powered it on... and it came up without a problem. Now, to put things into perspective: the hard drive is a 120 MB (yes, megabyte) Conner drive. I acquired it around 1990. This drive ran continuous duty for over 15 years before being powered down and archived for five years. And... it powered back up without a problem. When it comes to hard drives, I plan for new ones to fail -- because they will fail. But old hard drives? I think my Conner could easily do another ten years continuous duty. (Too bad it is only 120 MB!) Broken WindowsThe newer X-Windows server (since about 2008) is much more automated. In Ubuntu's Karmic Koala (9.10), it does not even include an Xorg.conf file -- the entire configuration is automatically detected. The good news is, the X-Server will likely configure itself correctly and start up without a problem. The bad news is, if it has problems, then many of the debugging tools that you will need are broken. Making matters worse, they have been broken for years. A good example is the xvidtune program. If you have a flat screen monitor, or even a newer tube monitor, then it will likely auto adjust the frequency and center the image on the screen. But if you have an older monitor, then you may need to manually align the desktop's position on the display. Depending on the video card, monitor, and auto-detected X-Windows settings, the desktop may need more shifting than the monitor's manual controls allow. The real solutions is xvidtune, which allows you to adjust the position on the display by tweaking the horizontal and vertical frequencies. Unfortunately, xvidtune has been broken for years -- since X-Server version 1.4 (2007). And while plenty of people have reported the problem, it has remained broken for at least three years. HTML DocI've been doing a lot of technical documentation lately. I'm writing it in HTML and using htmldoc to convert it to PDF. The problem is, my older Ubuntu Dapper Drake system could generate the docs but all of my newer systems could not. It turns out, my HTML includes arrows for menus ( created using –›). On the newer systems, they just print blank spaces. I eventually traced the problem to the version of htmldoc. Version 1.8.24 works fine, but the newer versions (1.8.27 through 1.9) seem to have problems with ampersand codes. Et Tu, JPEG?For my image analysis stuff, I rely on the FreeImage library for loading most image formats and saving all formats. (FreeImage has a few quirks with corrupted files, so I wrote my own libraries for loading some file formats.) I recently upgraded from FreeImage 3.11.0 to 3.13.1... and immediately noticed some problems. The Error Level Analysis and color space algorithms were giving different results for some of my regression tests. I even tried 3.12.0 and 3.13.0 -- and found the cutoff: 3.12.0 renders JPEGs correctly, 3.13.0 does not. FreeImage actually uses the library provided by the Independent JPEG Group (IJG). FreeImage 3.12.0 uses jpeglib v.6b, while 3.13.0 upgraded to jpeglib v.8. Somewhere between 6b and 8, IJG did a significant rewrite to their library for applying chrominance. The net result: JPEGs rendered by IJG's jpeglib v.8 no longer look like JPEGs rendered with other libraries (IJG and non-IJG). Don't get me wrong: The pictures still look like pictures, the differences are subtle, and the changes really only impact extreme corner-cases. However, if the library does not render colors in those corner cases exactly like other libraries, then I cannot use it. Good thing I could easily regress to 3.12.0. Blast From The PastNot everything old is better than their newer counterparts. My iPod is a much better MP3 player than my old no-name brand player. My USB LED mouse is far superior to the old serial mouse (if for no other reason than the wheels don't get gummed up). And my netbook is a huge improvement over my old Dell laptop. But in the last few weeks I have been repeatedly reminded that newer is not always better. (And don't get me started on the Toyota recall. Good thing my car is old...) Religious WarsFriday, September 11. 2009
There are many topics that generate passionate responses on the order of religious wars. Politics like "anti-abortion/pro-choice", telecommunication security vs privacy, Gay marriage, Israel vs Palestine, and anything that separates Democrats from Republicans are certain to lead to heated debates. I was at a party recently where someone was talking about a Canadian hospital visit. I jokingly said, "You mean Canada has better health care than the United States?" Poof -- conversation stopped and died. Nobody wanted to touch this topic.
Every field has their own battles. Knitting vs Crochet -- talk about violent! Ford Thunderbird vs any other classic car -- who'd have thought this was so personal? Star Wars or Star Trek? (ST:TOS or ST:TNG? and don't say "Voyager".) Even everyday tasks can cause emotional outbursts. How do you fold a towel? Do you do halves, thirds, lengthwise? There is really only one correct way to fold a towel... and you're doing it wrong. My personal favorite debate topic is dishwasher loading. Do you go for organization, space, no-touching, or just plop them all in? Rinse first or dirty? Computer WarsThe computer field is not isolated from these battles. Being a well-rounded computer person, I know these debate topics well enough to argue either side. "Emacs or vi"? Duh, vi. And just ignore people who spout out "nano". Fewer buttons with deeper menus, or more buttons with less depth? White text on black, or black text on white? SCSI or IDE? (alright, that's a really old and moot debate.) But nothing beats the king of debates: Unix or Windows? On one side, you have the corporate mega monster: Microsoft Windows. In fact, it wasn't until Windows 7 that we really had serious debates within the Microsoft community; do you upgrade to Windows 7, or not? Even though Microsoft's user community spans a variety of operating systems (Windows 2000, XP, Me, Vista, ...), they rarely make distinctions between platforms. It is "Windows" and they stand unified. The same cannot be said about the Unix community. There are splits between real Unix (BSD verses SysV), and among Unix-like operating systems, Linux. Within the Linux family, there are debates between the various Linux branches. Many people have a strong preference toward RedHat, SuSE, Debian, and Gentoo, and their related derivative branches. Do you like real Debian, or Knoppix, Ubuntu (Edubuntu, Kubuntu, etc.), or other flavor that has a core based on Debian? With RedHat, you have Fedora, Mandrake, and CentOS, among others. While Windows has a unified view, Unix/Linux does not. The debate usually becomes one unified voice of true believers against a disorganized army of heretics. Unfair AdvantageLast week it was reported that Microsoft provided slides to BestBuy in order to "train" employees on how to promote Windows and deter Linux. All of the slides are clearly biased, and many contain provably false information. For example, one slide says that Linux does not have strong camera, iPod, printer, scanner, and MP3 compatibility. While I will agree with the scanner comment (many scanners use proprietary protocols and require vendor-specific drivers that are only available for Windows), I strongly disagree with the issue with cameras, printers, and MP3. I have yet to need to install a vendor driver for a camera or printer, and MP3 devices just look like hard drives. With Windows, I have found that many devices require vendor specific additions, and those additions usually make the operating system unstable. Similarly, the slide claims that Linux has no authorized support. I'm certain that RedHat, Canonical, and SCO would all disagree with this claim. The big difference in support comes from the provider. With Microsoft, they provide most of what you use. The operating system, most drivers, browser, text editor, word processor, and more. In addition, Microsoft provides certification to some vendors, to ensure compatibility. However, Microsoft does not provide support for any software that they do not provide. They cannot help you with Photoshop (even though it is certified). With Linux, every component likely comes from some other vendor. Your operating system may say "Ubuntu", but the underlying core is Debian. The kernel comes from the Linux kernel group. The GUI is probably from the Gnome or KDE groups, and they run on top of X11, which comes from a different group. In general, every application comes from a different group. However, almost every application on Linux is open source. When you pay for a RedHat support agreement, they truly support you. If they don't provide the software, then they will download it and see where the problem is located. And if the vendor/group doesn't fix the bug, then they will. (Maybe that is just their corporate support, but it was a really positive experience.) This is something that Microsoft will never do for you. Misleading SlidesAnother slide says that updates with Linux are difficult. ("Get the Facts Straight: Linux update and upgrades are easy. INCORRECT") They justify this by saying: + Linux can require a lot of time to maintain. For example, Ubuntu (a version of Linux) may have hundreds of updates a month. Ubuntu has one centralized update system. This checks for updates to anything you have installed. Since there are literally hundreds of groups maintaining the various programs you have on your computer, it is very possible to have dozens or hundreds of updated packages in a month. Most updates are minor bug fixes or security patches. The automated installer means that you don't need to do anything except possibly come in one morning and reboot the computer -- Ubuntu can either delay reboots until it is convenient for you to reboot, or reboot automatically. My "lot of time to maintain" consists of clicking on the reboot icon about once every month or two, so kernel and libc patches can be applied. In contrast to Ubuntu, Windows has no centralized update system. Your operating system will check for updates. So will your browser. And your music player. And every piece of third-party software you install will independently check for updates. You can easily have dozens of updates a month, each requiring an independent system reboot. Unfortunately, this decentralization also means that you cannot easily pick and choose your updates. While I have never had an Ubuntu update hang my system, I have had many late nights recovering from Windows crashes after trying to install updates. Their second bullet also brings up another religious war: is it better to patch immediately or delay until a convenient time? There are plenty of pros and cons here. With Ubuntu, you can choose whatever fits your needs. With Microsoft, they only release patches monthly, so you have no choice but to wait. False SlidesMicrosoft goes on to say that Linux is less secure than Windows. + There's no guarantee that when security vulnerabilities are discovered, an update will be created. Users are on their own. Wow... How many Linux viruses, trojans, or worms can you name? I can name four (Morris worm, Ramen worm, Slapper, and Satyr), and none were wide-spread. How about Windows? I can name dozens -- and that's just the wide-spread ones. Wikipedia lists hundreds of unique malware for Windows, but only 35 for Linux. At Symantec, they list over 200,000 different malware for Windows (and millions if you include minor variants), compared to 25 for Linux. And again, none of the Linux ones are wide-spread, even though there are millions of Linux computers. Moreover, most open source groups respond quickly to security risks. The time between reporting and patch availability is usually measured in hours or days. Microsoft, on the other hand, rarely patches anything. There are well-known exploits for Windows that have been unpatched for years, and some that re-emerge periodically. In some cases, the open source community released Windows patches because Microsoft could not do it in a timely fashion. As far as parental control goes, there are options. However, none are installed by default. You might want to check out some of the filters for OpenDNS. They offer parental controls to block based on content, site, and more. Missing ElementsIronically, the slides don't mention the strong points for Windows. For example, Microsoft Word and PowerPoint are still far better than OpenOffice and Impress. I used to say OpenOffice was close and would be a realistic alternative to Microsoft Office in five years. However, it has been a few years and they are still far behind. I sometimes use OpenOffice for quick reports, but nothing big or serious. And Impress is just not up to the quality I need for a public presentation. Instead, I usually do my serious word processing and presentations using Word and PowerPoint... on a Mac. Ad InfinitumI could go though and list all of the problems with the remaining slides, but it isn't worth the time. My office has a few critical servers. One is used for mail, internal-web, and file sharing. It runs a Linux operating system that was installed on Jun 1, 2002, and the operating system was last patched on Jan 10, 2005 -- when it was hardened against remote exploits. The system has never been compromised, and never had any problems. According to 'uptime', it has been powered on and running for over a year: 10:35am up 458 days, 14:41, 2 users, load average: 0.00, 0.00, 0.00 I know of no Windows system that can do the same. We choose our tools based on our use models. For my usage as a programmer, researcher, forensic specialist, power user, and network god, I choose Linux. For reports, video editing, and graphics, I use a Mac. And I turned off my Windows computer nine months ago.
Posted by Dr. Neal Krawetz
in Mass Media, Programming, Unfiction, [Other]
at
10:01
| Comments (0)
| Permlink
(Page 1 of 5, totaling 23 entries)
» next page
|
SearchCalendarCategoriesPopular PostsLinksSecurity
Internet Storm Center Security Focus CyberSpeak Happy as a Monkey Cybercrime Images Photoshop Disasters Food In Real Life Worth1000 CG Society Awkward Family Photos Media Stinky Journalism Unnecessary "Quotes" Oh No They Didn't Obama Conspiracies Barackryphal Blogs Fergie's Tech Blog Xenon's Isotopia James Carrion Mark Shuttleworth |
