Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

I am currently finishing a college degree in programming and I find that security topics are often barely understood by both students and teachers. It leads me to think that there are a lot of developers out there with nearly no basic knowledge about security. I will eventually work with those developers and I am a bit clueless about how I can, as a programmer, help them to be aware of security issues and keep them informed about security issues. What are the good approaches and what are the things to avoid?

share|improve this question
    
owasp.org is a good resource. –  k1DBLITZ Nov 19 '12 at 16:02

5 Answers 5

up vote 14 down vote accepted

If you work with these developers on a coding assignment or some other project, you can bring up security issues while you're working together. That could either be during "pair programming" if you work that way, or as part of a code review.

Should you choose this approach, you need to come up with realistic problems based on actual threats. If you mention every paranoid possibility for attacks, then it's likely you'll just annoy people and not get your message across effectively. Even when I was working for a security vendor I found the paranoiacs frustrating.

share|improve this answer
6  
+1 for the 'paranoid' bit. One of the biggest challenges to acceptance of security is non-rational security guidance. Make it real world, and you might get somewhere; make it 'ideal' security and you'll be laughed out of the office. –  Rory Alsop Dec 7 '10 at 15:16

Take a look at this question What security resources should a developer follow? as this is geared for developers.

If you want a more information, take a look a these links:

... Resources to learn about security

... Website to learn computer security basics

... If you could only have one security book, what would it be

share|improve this answer

I have worked in very development centric environments during my career, and can confirm that "most" developers will always take the shortest route to victory, and short-cut wherever possible unless it causes slow code execution. Typically Security concerns just don't get a look in at all.

There is no right or wrong answer to this as every developer / development group has a different dynamic and responds in different ways. That said, there are things you can do, such as:

  1. Invest in some in-house secure coding training. Most major PenTest houses will offer this as a service where they will send along one of their brightest and best to come and work with your devs for a period of a few days, walking them through the perils of not escaping characters and leaving buffers unchecked :) This is a great starting point as it gets them at least starting to consider the error of their ways, but it shouldn't be in isolation or a one off activity.

  2. Next you may want to try running a bit of an in-house capture the flag / hack-fest that gets them all working in an attack and defend capacity to really start living the issues they inadvertently create. Free Beer & Pizza usually helps drive these sessions :)

  3. After that, for me, the next step in the equation is giving them the tools and intelligence they need to fix these problems at source as they go. Most Pen Test boutiques will tell you that the only people that should/can do code analysis are trained Pen Testers with years of experience. This, of course, is a sales based lie. There is some truth to it, in so much as a seasoned source code reviewer can trawl through thousands of lines of code much more efficiently than your average developer, when they are looking for bugs, but what if the developer actually does this as they code? in that case, the developer is going to be more efficient than the pen tester, and this is where this starts to pay dividends. Essentially, grab a bunch of free source code review tools such as AppCodeScan, Checkstyle, Hammurapi, JCR (Java Code Reviewer) o2 OWASP and then make them part of the developer build, and give them the time they need to get up to speed with them. If your devs can drop the latest function they wrote, or major change, into a quick and dirty tool like the above before they hit compile, and get a clue that something is going to cause an issue, they can fix it quick, pre release, pre alpha even.

  4. The final part of the equation for me is that pre and post release pen testing MUST feed the results back into the development cycle, so that the developers can see the issues they cause and put strategies in to stop repeat offending. Sounds simple, but is often overlooked!

As I said at the start, there is no right or wrong answer here, but hopefully the above may give you an idea or two to go away and play with.

share|improve this answer

I suggest finding something like a local chapter of OWASP, or something like that.
Go to their monthly meetings (or whenever they have it), and bring your colleagues with you.
Even if some of the lectures may not be relevant, it will bring security to the forefront of their minds, and get them thinking about it. Usually, you'll get some really great content too.

share|improve this answer
    
I like this idea mainly because there is an active chapter in Montreal where I live. –  HoLyVieR Dec 8 '10 at 0:55

Give them a CISSP course / certification. It is better for their career, is internationally accepted and covers basic concepts of security in depth. However, don't expect them to become experts on one area in security. So programmers won't become software security experts, but at least they will be very well aware of security threats.

Besides "forcing" them to do CISSP is easier than forcing them to read blogs or websites. You can "sell" getting CISSP certification by presenting it as something useful for themselves which helps them in their career.

share|improve this answer
3  
The downside to this one Henri is that CISSP is not going to 'teach' them anything, and won't inform on security issues. It is a cert which allows them to demonstrate ability to answer some questions in the security field. I agree that it is a useful 'in' to the security marketplace, as a lot of recruiters have it on their list. –  Rory Alsop Feb 7 '11 at 15:26
    
It depends on the attitude Rory. If the programmer is not willing to learn, I agree that a CISSP will not help. However, if he is willing to learn, CISSP offers a lot of useful knowledge and awareness. And imho awareness is the starting point. Given that a programmer is aware of security, has basic knowledge and is interested in expanding his knowledge you will get what you want. The CISSP just gives a starting point and should raise awareness. –  Henri Feb 8 '11 at 19:06
    
CISSP might be a possibility, though a risk is that CISSP might feel a bit like one's high school days (e.g., you need to memorize stuff, you're going to be tested on it, it's all a bit stodgy, etc.). –  D.W. Dec 19 '11 at 4:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.