Of course, you could also imagine a group of highly intelligent and capable programmers that grew up on legends of the Enigma, Bletchley Park, and Alan Turing... who live for reverse engineering code and breaking ciphers. People who know that enemies of the state (in this case the US) had used secret communications since the US War of Independance (http://www.nsa.gov/about/_files/cryptologic_heritage/publications/prewii/Revolutionary_Secrets.pdf and yes, there are non-nsa links to similar material, but I thought it proved the point that much better), up to the modern day -- new and old enemies, large governments and small factions, and all enemies in between.
They believe to their core that protection of the country to whom they actually are very loyal requires not only a strong military but a strong counter-intelligence program and, given the way modern information is exchanged, "things have worked out about as well as you'd imagine". Just like the military, these people have built what they hope is the world's most capable collection of people and tools. By "capable" of course I mean able to execute the core objective -- to collect intelligence. We have no background, no history on why any individual piece of code is put in place. The person building injection attacks to MySQL, as an example, may have had a specific MySQL using target in mind when it was created, just like the nuclear bomb was created largely in response to World War II, and no matter how controversial, we still have those weapons and we still keep them available should they need to be used. Invoking nuclear weapons isn't even necessary -- guns, missiles, missile defense, any military tech has moral implications. Whether we should use any weapon or not is fine for debate, but I do see parallels -- you can't write off the people developing or using these weapons as "amoral", when, in fact, the vast majority of them are explicitly doing so for the defense of their country.
These people need not be "amoral". They may be misguided, or have priorities not in line with the majority of the public (although even that is easily debated). I give these guys the benefit of the doubt most of the time, however; by and large they believe they are working for the right side.