Sunday, January 10, 2010

Secure, or not, USB drives

Taken from https://blogs.sans.org/appsecstreetfighter/2010/01/07/client-side-input-validation-is-evil/

Client Side Input Validation is Evil

Filed under Uncategorized

I said it before, and will say it again: All users are evil. Case in point: The recent secure USB key vulnerability.

These USB keys encrypt data stored on the USB key. Great idea! So now, if you loose the key, you no longer have to worry about your top secret image collection getting viewed by minors.

What was the flaw in the implementation? In order to unlock the device, you have to enter your password into software installed on your laptop / desktop. You would expect the software hashes or encrypts the password, sends it to the device, the device uses the hash to decrypt the files stored on the device. WRONG.

In this case, the client software validates the password by encrypting a specific block of data on the drive. Sadly, this block doesn’t change. So these researchers replaced the software with their own tool that just sends this fixed block of data back to the device (they actually just patched the existing software in memory to bypass the password check). To add insult to injury, these scheme was certified as FIPS-140-2 compliant. The FIPS-140 standard is used by the US federal government to certify encryption devices and FIPS-140-2 compliant USB sticks may be used in some government systems that prohibit regular USB devices. Many companies implement similar policies.

As a web developer, this reminded me of input validation using JavaScript on the client. It is nice for user convenience, but should never in lieu of server side input validation. Or using a simple “admin=Y” cookie to identify a user as administrator. Did I mention all users are evil and out to get you?

The original announcement about the USB issue can be found here: http://www.syss.de/fileadmin/ressources/040_veroeffentlichungen/dokumente/SySS_knackt_Kingston_USB-Stick.pdf

Tuesday, December 15, 2009

Close to home!

Monday, December 14, 2009

Dnsmasq configuration

To set Dnsmasq to resolve all quesries to one ip address add

address=/#/127.0.0.1

in dnsmasq.conf

Monday, November 30, 2009

ZoneRanger product

http://www.tavve.com/index.php/products/zoneranger

Need to re-look at this product, been about a year since the last demo.

Friday, November 6, 2009

Symantec

Symantec likes to distinguish itself by saying it’s the world’s largest security software company, but CEO Enrique Salem says more of the company’s solutions will come on purpose-built appliances.

At the Symantec Partner Connect conference in Orlando yesterday, Salem announced that a joint venture with China-based hardware manufacturer Huawei will produce appliance-based versions of many of the company’s security protection products, such as network-based antivirus security, data loss prevention and e-mail security.

Daemonlogger settings

Daemonlogger Soft Tap
  1. 1)It sniffs packets and spools them straight to the disk and can daemonize itself for background packet logging. By default the file rolls over when 1 GB of data is logged.

  2. 2)It sniffs packets and rewrites them to a second interface, essentially acting as a soft tap. It can also do this in daemon mode.

For ubuntu, installation is simply a matter of

- apt-get install daemonlogger

Config for capturing all packets to log file of format of time-date for reference

daemonlogger -i interface_name -l path_to_write_pcaps_to -u user_to_run_as_after_starting -n `date +"%H%M-%d%m%Y"` -S 0 -s 50000000

-S 0 captures all packets

-s 50000000 limits files written to approx 50Mb

Windows Security Articles

 
Copyright 2009 Security Monkey. Powered by Blogger Blogger Templates create by Deluxe Templates. Sponsored by: Website Templates | Premium Themes. Distributed by: blog template