Tag Archive - opensource

Couples of stats/facts.

As I look over 6 very interesting projects overview on my desk, I’m forced to do a bit of thinking about how the last year went by. A year is a lot of time, and so much plans finally came to fruition that I can’t think of listing them all here today. Which is kinda a good sign for me and my enterprise ;-)

Most of my readers doesn’t really know who I am, even when you take into account that I blog under my real name. Most don’t know that I bought a condo in Hull (now part of Gatineau, near Ottawa – the capital of Canada), that I still have a rent in Montreal, that I proposed to my girlfriend (she said “Yes!”), that I own a dog (greatest experience of forcing a regular schedule I ever had), that my greatest motivation in life is to be able to go where I want, whenever I want. My dream is going back to Yosemite, California… and bring hiking gear.

Another big aspect of my life is my business, Les Laboratoires Phoenix. I’ve been working full time at it for the last 9 months and its been a great experience. Over those months : I’ve worked with clients from 7 countries, contributed to 3 major open source projects, went to the “Free Software Foundation” Libre Planet confrence in Boston, went to the DefCon in Las Vegas, I’ve been named SME for {Zabbix, Zimbra, Asterisk, OpenLDAP, extended LAMP Stack, Mailman, GlusterFS, Lustre, MySQL, Cloud Computing, …}, 3 of my articles have been published (>40K prints), and I’m involved in a book project (from a major publisher)…

And, even thinking about all those achievements, I still look for the future of Les Laboratoires Phoenix. I guess that working with startups influenced me a lot : those 6 projects are all different from each others, they represent good revenue potential (clear business plan) and require low capital input to be started. So, I guess I’ll stop speaking about them and work ;-). Btw, two of those projects would be online services (SAAS) for well known parts of Internet infrastructure (not webserver). Another is a cloud computing infrastructure services based in Montreal (this one if almost finished! & I got an hardware provider)… A lot of fun to be had.

More news to come.

Security @ DEFCON 17

Survived! Well my laptop did – I’m exhausted and work was waiting for me in Montreal, but – let be honest, I can’t really complain.

For those who don’t know, the DEFCON is one of the leading hacker conference with over 8k attendees getting together in Las Vegas to share knowledge on hacking, cracking, social engineering, lock picking and similar discipline. Peoples come from all social group – 14y old video gamer to senior security specialist for the gov, going through consultant, programmer, developer and hobbyist. Fun crowd.

While my trip was flanked by 2 series of 4 vacation days (before and after), I was @DEFCON as the owner of Les Laboratoires Phoenix – my free software consulting firm – and as such, I was confronted to this dichotomy:

* I need Internet access to answer clients requests
* Connecting to Internet at DEFCON is professional suicide if your not up to it

Let me explain this second point a bit: first, the Wall of Sheep, an inline filter tracking unencrypted connections and broadcasting users credentials (including a partially obscured password) on a big screen in the lounge. Generally, the flow is quasi non-stop.

If you think that it’s not that bad, the password being garbled… think again : Wall of Death. It’s an inline switch, freely available, where the 7 ports broadcast a mirror of everything the firewall see (which is.. everything). Live, un-garbled, un-modified feed of everything in the pipe. In other words, if you are on the Wall of Sheep, then someone from the Wall of Death got your credential.

And then, this is only using the standard infrastructure. I am not mentioning peer attack, wireless impersonation and so on.

So, how to survive in such hostile environment ? Here’s a few rules (which should also be taken as golden rules if you work from your client’s office).

1) ‘netstat -lntp‘ ; this command (an output of incoming listing ports on your system) should return nothing. There is no need to have any listening services if you are ‘mobile’.

2) iptables -L -n -v ; this command give you your firewall rules. INPUT should be restricted to established and related connection with a default policy of DROP. OUTPUT, when in a ‘not-so-friendly’ environment, should defaulted to DROP with allowed outgoing on secure protocol only (http:443, ssh:22, …). If you need to connect to an un-encrypted destination, at least forward through a ssh-tunnel/proxy.

3) never auto-connect to unencrypted network. This is exactly what causes the wall of sheep to be full of iPhone user’s credentials. This cute little device can auto-connect to the unprotected network (such as DEFCON) and start sending security credential (un-encrypted) to twitter, facebook, myspace…

4) Do not take anything for granted. PREPARATION is the key. Before the trip, start collecting all your ssh-key fingerprint on your system, this can become really handy if someone tries some ‘not-so-great’ men-in-the-middle attack against you.

Well, thinking about it, number 4 is the best advice. DO NOT TAKE ANYTHING FOR GRANTED. In the last 2 years, there have been 2 attack against the SSL infrastructure disclosed at DEFCON. Btw, this is for GNU/Linux system. If you are using a Microsoft operating system at the DEFCON, you better… well… just don’t use it.

Using TOR for anonymity

In the last couples of day, I’ve seen my fair share of privacy infringement from all kind of service provider. I am a ‘free web’ militant but I’m also a free software consultant and as such, my professional self is often called to deploy network management tools in ISP or servers hosting facility. Most of these tools can be used to maintain the integrity of the network and enhance performance, however, they can also be used in questionable behaviors such as wire tapping. Today, I’ll be installing/presenting TOR, an anonymity program, on a GNU/Linux workstation to hide web browsing request.

 

Let it be known that TOR is not the ultimate solution. This software should not be used as a way to ‘secure’ transactions/requests. Its very usage is to proxy tcp requests to a series of hosts all around the world. In other words, it will scramble the source IP of every request.

 

Installing TOR for anonymity

 

TOR is :

[...] a network of virtual tunnels that allows people and groups to improve their privacy and security on the Internet. It also enables software developers to create new communication tools with built-in privacy features. Tor provides the foundation for a range of applications that allow organizations and individuals to share information over public networks without compromising their privacy.
Source: TOR official website

Privacy is the keyword. Another important fact is that peer-to-peer applications will not work well with proxy relaying (so forget forwarding your bit-torrent traffic inside the ‘tor cloud’).

 

Installation process (GNU/Linux)

 

Installing dependencies

# apt-get install libssl-dev libevent-dev

Installing TOR

 

# download latest sources in repository.
# tar zxf tor-0.2.0.34.tar.gz
# cd tor-0.2.0.34 ; ./configure ; make ; sudo make install

 

Installing privoxy

# download lastest sources in repository.
# apt-get install autoconf
# adduser privoxy
# tar zxf privoxy-3.0.13-beta-src.tar.gz
# cd privoxy-3.0.13-beta
# autoheader ; autoconf ; ./configure ; make ; make install

Start applications

# /etc/init.d/privoxy start
# tor

Installing TORbutton add-ons for Firefox.

# https://addons.mozilla.org/en-US/firefox/addon/2275
# click add to firefox.

There you go. Click on the ‘tor disabled’ in the lower right corner and test by going at https://check.torproject.org/. You willl be able to browse the web while hiding the source IP of your request (this is only for http, for other protocol, you’ll have to forward them through a sock4 connection)…

SFLC vs Cisco

The SFLC (Software Freedom Law Center, the ‘legal arm’ of the FSF) lawsuit against Cisco Systems (nasdaq:csco) has been settled . The details are not yet available.

Related:
December 11, 2008: SFLC files lawsuit against Cisco Systems on the behalf of FSF. The complain is available as PDF
December 11, 2008: FSF publish a press release.
May 12, 2009: recap of the settlement on PROSKAUER ROSE NewMedia law blog.

ensim & php :’premature end of script’ ; php-script’

I had an installation of phpForms [1] to complete on a client server where Ensim was already installed and configured. installed. I’ve learn a couple of things:

1.
Recovering the root MySQL password is ‘really, really easy’ if Ensim is installed on the server – maybe a bit too much:

# ensim-python -c “import sys;sys.path.append(\”/usr/lib/opcenter/mysql\”);import mysqlbe;print mysqlbe.read_mysqlpass()”

2.
./phpforms/install.php script fail with a 500 error (application error) when viewed with a web browser but output valid code when viewed through a CLI. In a direct relation, the apache error-log is complaining :
‘premature end of script’ ; php-script’

This error is directly related to Ensim’s security setting. Try lowering them: when logged as server-administrator, edit the site setting, and set a ‘low-security-setting’.

[1]. http://phpforms.net/ – PHP Scripts to auto-magically create web forms using database backend.

Page 1 of 612345»...Last »