Showing posts with label tools. Show all posts
Showing posts with label tools. Show all posts

Tuesday, June 2, 2015

Security: Unexpected Terminal Event

Today I killed a production website by pointing a webapp vulnerability scanner at it.  The unexpected stress brought the appserver to its knees while revealing some holes.  Luckily my more tactical colleagues came to the rescue and had the website back up in minutes -- after I had killed the scan -- but this opened two cans of worms. 

An obvious need for the design and implementation of 1) stress/load testing, and 2) vulnerability/penetration testing in regular operations.  These (2) needs are usually ad hoc. Both need to be part of processes in certification for release.

On another note, I was using the awesome open source tool called w3af.  :)

Security: HTTPS Utilities


I was going to talk about recent hacks against "secure" web communication, aka. HTTPS (HeartBleed, POODLE, Beast, etc.) but that is a bloated topic.  Instead, I'm just going to demo 3 invaluable utilities for techies specific to TLS/SSL, and show how Amazon makes managing HTTPS so simple that technologists have even more reason to be lazy.

3 HTTPS utilities

  1. openssl
  2. curl
  3. nmap
That's really it.  These utilities have been around for years so there's nothing new here.  A few examples will demonstrate their utility in verification, identification, and negotiation of HTTPS communication.

Identify all secure communication options serviced by website:

$ nmap --script ssl-enum-ciphers www.httpvshttps.com
PORT    STATE SERVICE
22/tcp  open  ssh
80/tcp  open  http
443/tcp open  https
| ssl-enum-ciphers: 
|   SSLv3: No supported ciphers found
|   TLSv1.0: 
|     ciphers: 
|       TLS_DHE_RSA_WITH_AES_128_CBC_SHA - strong
...

Verify secure communication options negotiable by client, specifically the highest TLS version with RSA authentication and keys, and high AES encryption:

$ openssl ciphers -v | grep 'TLSv1.2' | grep 'Kx=RSA' | grep 'Au=RSA' | grep 'Enc=AES(256)'

AES256-SHA256           TLSv1.2 Kx=RSA      Au=RSA  Enc=AES(256)  Mac=SHA256

Negotiate a pre-defined secure communication to simulate a web client:

$ curl -v --location --tlsv1 --ciphers AES256-SHA https://www.httpvshttps.com

Amazon HTTPS & ELBs


AWS ELBs (Elastic Load Balancers) make managing HTTPS so simple. These load balancers can be setup with user-defined certificates to terminate secure communication to a website, and are deployed with either pre-defined or user-defined security policies.  When a customer asked me to disable TLS v1.0, I simply change their ELB security policy by removing all the ciphers available for that kind of secure negotiation via a checkbox:



Of course, no good technologist trusts a GUI so I verified that change by using the 3 utilities above :)



Friday, March 27, 2015

Cloud: Round 2, Developing *in* the Cloud, for the Cloud

I went to a local Rails workshop -- wahoo! -- and the young, teenag-ish instructor got us students, including an old school vim user like myself, hooked up on Nitrous.io.  This IDE looks more intuitive than Cloud9 (from my previous, "Round 1" blog), and has gets lots of kudos from the programming trenches, although it would seem to have fewer holistic options (aka., fewer points of integration than Cloud9).  At least Nitrous.io has dabbled with touch interface programming whereas Cloud9 has ignored the use case.

So here goes Nitrous.io for future development.

In other news, tmux came up in discussion.  Looks like the teenagers are liking the old screen functionality again and resurrecting its core features from the grave of the Graybeards.

Friday, December 5, 2014

Security: Old Crypto

I'm rather disappointed with progress in crypto technology -- or rather the lack of progress -- and am looking for a turnkey solution. 

The other day I burned cycles attempting (and failing) to secure my personal files that are stored in Cloud.  There are several Cloud storage providers but none empower consumers to prevent snooping, at least not beyond internal "policies".  My thinking is to encrypt files up in Cloud because one, basic purpose of cryptography technology is to ensure privacy.  Well encryption/decryption technology is still not turnkey.  

A decade ago there were add-ons for PCs to make eMail secure, like PGP, since those technologies were by nature public, yet now we entrust more public resources with private data spread across multiple personal devices.  The exposure of private data to the public is growing but its not the time to become a recluse. We need a turnkey solution that enables crypto processes across all personal devices and public resources. 

I tried Boxcryptor and bumped into many hurdles to a seamless experience.  One hurdle was tracing a sluggish browsing experience back to Boxcryptor's Chrome extension.  The extension enables web access to any of the Cloud platforms -- but sucked up 30-40% processing time.  Disabling the extension dropped my CPU usage down to 2-3%.  So I'm open to alternatives.