Archive for July, 2009

HD TV Tuner Card for Linux

hd 5500 Linux HD tuner card

I’d love to be able to find a card for my MythTV box that will accept hdmi and not cost $900+. The card pictured above is just over $100 and is designed and built specifically for Linux. It’s a tuner, so no HDMI in, it would be FTA or digital cable in, but still, it is interesting for an antenna or something. Also, I am too dumb to be able to tell from this, but I think it means it outputs mpeg2 streams, because it says decoding is left to software… that sounds like it means encoding is done in hardware? I am probably missing something obvious.

This is a bookmark for me.

3 Comments »

Google Voice Coffee Table Book Idea

Google Voice
Here’s an idea, someone should write a book that is all Google Voice voicemail transcriptions. I’ve gotten a couple of doosies. I live in the south and everyone down here has an unhandled accent fault that happens within the transcription process. I hope Google never fixes it. Here’s a funny one I got today:

and hey carl for the salad like a give me a call at (***)***-**** you just passed through or all ha ha ha alright talk to you later bye

I am “Carl for the salad” and that was my buddy calling to tell me he and his wife just drove through “all ha ha ha alright” which translates to “Laurel, Montana” which is a town I used to live in.

I do love salad in moderation though.

No Comments »

Munin

Munin Trac
Have you ever wanted a quick and easy way to light up pretty graphs of various things running on your local machine? Do you have a network of linux systems and want to have a better and easier way to graph things like load? Do you have a mythtv server and want to graph the number of free encoders you have? How about watching for interface errors?

Here’s where I get to tell you about something I didn’t know existed that I know you’ll love right away. In ubuntu, just ‘apt-get install munin munin-node’. Check /etc/munin/munin.conf and /etc/munin/munin-node.conf. I changed the simple host tree section to describe my mythtv box is all I changed. I didn’t even change the IP address from 127.0.0.1. Then I found a mythtv script for munin here: http://ubuntuforums.org/showthread.php?t=758908. That script has comments at the top of it which tell you how to make it work. Just remember to ‘/etc/init.d/munin-node restart’ after making changes.

You can then telnet to port 4949 on your localhost or munin master server and type “list” without the quotes and hit enter. This tells you what all checks you have available. Check some of them out with a “fetch mythtv_status_encoder” or something such as that. If you see statistics back, graphs should be a buildin’. Then just make sure your webserver knows how to let you browse to the directory structure where munin writes it’s reports.

It’s really cool and simple. Dirt ass easy, as they say.

EDIT:

I wanted to add munin-node to my solaris 10 box. This machine is a redundant Squid proxy for my home, and it runs dns. Both of these require so little maintenance, I have long ago forgotten how to do much of anything on this machine in Solaris. Mama Google brought this to my attention, and it was actually done in about 9.5 minutes… http://lorands.com/2008/03/install-munin-on-solaris-10-in-11-minutes/

No Comments »

Squid Proxy

Squid Proxy Cache

I’ve had the pleasure of working with Squid over the past several days… maybe the last couple of weeks. It is really an interesting bit of software that most everyone has relied on at one point or another, whether you knew it or not.

I wanted to take a couple of notes on things I’ve run across so far, mostly related to my own deployment:

  1. Running the port 3128 through Smart Defense can cause issues that don’t look like a problem connecting to the proxy.
  2. Ubuntu APT must be configured to point to the proxy. The system-wide network proxy setting under the System menu doesn’t cut it for APT. (ref)
  3. Firefox doesn’t do WPAD like IE… IE uses a custom DHCP config and Firefox uses DNS to guess where to get your PAC from: (ref)
  4. Corkscrew in Linux along with an addition to permit port 22 in Squid will allow you to proxy SSH through Squid. Putty in Windows or Linux will allow you to natively add a proxy configuration for each of your destination hosts you wish to proxy for. I have not looked into or solved the possible issue of needing to proxy SSH from a MAC OS X system. Update: corkscrew should work in OSX… I’ll test it today.

No Comments »

Network Security Thoughts

Sometimes I get the feeling I should walk in and back out when dealing with corporate security leaders. I’ve been in the unhappy position of having to show management where someone did something they shouldn’t have done and have watched those people get walked out the door. I’ve also been in the position of having to do something insecure because a manager who does not understand the risk has told me I must and personally dealt with the repercussions when the manager gets to stay. These experiences over the past couple of decades have brought me to a point in my career where I realize there is more ignorance to security than enlightenment.

Take my current situation as my excuse for writing this blog. Because of a security mandate, I am working on a project to restructure our deepest internal networks. This mandate came from someone with great intentions and I believe a strong fundamental desire and ability to make security better. Even though the source is solid, let me be clear that an edict came forth from the mountain saying thou shalt do X, which will cause you to have to do SOMETHING to make whatever it is you do as a business still happen. Let me also be clear that just prior to these big sweeping changes being communicated to my level, all but 8 people in my entire IT department were shown the door in the “spirit” of “synergy”. My disdain for this kind of corporate double talk is fuel for an entirely different rant. This is about security, so let’s focus on that.

I know every company, no matter how much money and effort they spend on security has a fundamental flaw in their security armor. Namely, people get lazy and arbitrary deadlines rule emotions. You can write a gleaming bright example of a security policy, chock full of good intentions and even better best practices but eventually, one of these things will happen as surely as death and taxes:

  1. When the policy says NO, someone’s mama (higher up) will veto the policy…
  2. Someone will open up a huge hole in the company because they are either too lazy to do it correctly or they wither in apathy because of absolutely moronic vendors who have no idea what their products DO, or…
  3. A deadline will loom and a big security risk will be assumed in the interest of a temporary fix that will live forever as a permanent solution.

There are other problems that will come out of the woodwork, but rest assured these three things will happen daily to any company with an IT department. There is very little you can do to guard against these things occurring unless you have a dyed in the wool dedication to security from the ground up, including most importantly the layers of crusty management. The fact is that an infrastructure must be built in support of the security policy AND the business requirements. That infrastructure must have hooks into productive solutions for whatever the business MUST have. It is unfortunate that most infrastructures are built around the concept that security is an optional component which can be minimized because of a low incidence of known compromise. The managers you choose to lead your company must also be dedicated to both security and the business as well. This appears to be the single biggest issue with security from where I am sitting. Security ignorance in a worker bee can be corrected. Security ignorance in management will spread and be much more painful to correct.

Even if you have a huge security team, dedicated to pen testing, code reviews, firewall change approvals, architectural reviews and policy management and enforcement, those three pitfalls listed above will all happen and they will be approved by your security leadership, in error.

Would you rather your company IT staff implement a business function that brings your payroll information dangerously close to compromise (perilously close) or would you rather that business function only be deployed when the proper security review has occurred and all concerns are eliminated?

I know how difficult and hypocritical this blog may seem, but there is a sincerity in what I am writing that is yielding an increasingly strong aversion to security laziness in me as time goes by. Anyone who has had to deal with a security compromise has had to admit to themselves there was a problem they either didn’t realize was there, or that there was a problem with an assumption they have made or a risk they have accepted willingly. Sometimes I wonder if people accepting this risk has had the pleasure of having their cyber underwear drawer rifled through by parties unknown. How many of them have seen their own systems taken over as attack systems or used to do illegal things? I doubt very many of them have, but I have seen it first hand. I also know that if those ignorant yet responsible leaders were confronted with this situation their choices as to what risk they wish to willingly assume would change.

Here are a couple of things I believe anyone with IT infrastructure should consider:

1) A security risk should be viewed as a bad check. You should not write bad checks. You should only produce a product (write a check) when you have money in the bank (all security risks eliminated). (Note that I said eliminated and meant it.)
2) A deadline should not be agreed upon until the entire project has been reviewed by your security staff and all time necessary for compliance testing and approvals are added to the plan. Your security team should be your inspectors. They should inspect everything from the footers and foundations, all the way to the top of the smoke stacks. They should also be there during initial planning so you streamline the process. No dates without proper security planning. None.
3) Security show stoppers should stop the show until a proper and unabridged solution is developed and approved. If a firewall modification is necessary and the requirements are unknown, a wide open hole is not an acceptable solution to the problem.
4) Architecture solves some problems that vendors create and refuse to make better. It is excruciating to see a vendor with a captive market create a product that has no viable competition that violates or ignores security best practices. The rapid growth of IP network technology is being seen in ever single technological vector in our existence. Most of these vertical technology market providers are stuck 10 years behind the curve for the average (not uber, but average) Internet Protocol hackers and crackers. The only thing still valid from 10 years ago is the statement that the only secure computer is the one disconnected from the network entirely. Everything else is crap, so catch up. If you must deploy an inherently insecure application within your environment, don’t connect it to anything. Don’t default to adding it to your network in any normal way. Instead, build your infrastructure in a way that is able to handle the problems, but don’t give up on beating your vendor(s) regularly. In my mind, you should post every single vulnerability you find to Full Disclosure, just make sure not to sign any contracts saying you CAN’T do that.
5) Inspect contracts with vendors and negotiate security language into that contract. Argue for support to be granted in spite of reasonable security controls they normally do not support. You cannot connect a Windows XP environment to your network without virus and malware controls at every layer of the OSI model, for example, but a huge number of vendors refuse support if you have those controls in place. This is a trend that must change. You shouldn’t deploy a UNIX environment without these controls either, btw.
5) The next time someone asks for a high risk change, stand your ground which should be rooted in a good security policy. The fact is if you give in to every hack job tech project manager who comes along you will have to eventually admit to yourself you are just a network bitch. Don’t be anybody’s bitch. Instead, be quick to do the following:

  • Explain in clear and concise language why their request is impossible to complete given security policy and if necessary explain to them why the policy exists and how important it is. Do this calmly and without emotion. Smile and subtly nod your head yes and in record time they will think it is their idea not to do what they came to ask you to do.
  • Be prepared to document the request to your manager with the information they need to fully understand why they should back you up. Sometimes the request is not defended against directly by any written policy. Be sure you are clear, concise and correct.

I’m tired of writing and I feel better.

No Comments »

Ellyns’ Little Pepper

Ellyns Little Pepper (ELP)

This is just precious. Ellyn has planted a small container garden on the deck this year. She has pulled out a bunch of salad stuff and herbs and various other items. She was especially excited when this pepper finally came in. It is just so cute. It’s almost like Barbie food because it’s so small. The picture I took almost makes it look larger than it is. I put a penny in the frame to help see how small it is.

1 Comment »