Certain scenes from Star Wars come to mind when pondering the long, bitter struggle for software security.There's the X-Wing pilot who repeatedly chants "almost there" as he closes in on the Death Star's exhaust port, only to fire his torpedoes and watch them explode harmlessly on the surface. Security practitioners always try to seal holes in their IT infrastructure so attacks will fizzle on the surface, but the bad guys punch through anyway, leaving behind that "bad feeling" Luke Skywalker and Han Solo are always whining about.In the world of software development, there's always going to be the risk that a flaw is left behind that can later be exploited by the dark side. But folks from security firms Cigital and Fortify have introduced a new maturity model they hope will help software writers build a more secure superstructure around their code. (See Security Experts ID Top 25 Programming Errors.)The result is BSIMM -- the Building Security In Maturity Model. It's a set of best practices Cigital and Fortify developed by analyzing real-world data from nine leading software security initiatives and creating a framework based on common areas of success.Also see 'Software security for developers'"Our hope is to help transform the concept of software security from alchemy to empirical science," says Cigital CTO Gary McGraw, a long-time advocate for more security in the code-writing process. "After a decade of trying to convince everyone that software security is important and there are best practices to follow, the time has come to study what companies are actually doing to get software secure."By studying what the nine initiatives were doing, BSIMM's creators were able to build a best-practices model that's broken into 12 categories software makers can follow:1. Strategy and metrics2. Compliance and policy3. Training4. Attack models5. Security features and design6. Standards and requirements7. Architecture analysis8. Code review9. Security testing10. Penetration testing11. Software environment12. Configuration and vulnerability managementDelving deeper, the BSIMM model recommends such things as employing one dedicated security practitioner for every 100 software developers on a staff.Fortify Co-Founder and Chief Scientist Brian Chess says he is already seeing some professionals latch onto that suggestion."We've seen some companies who are looking at layoffs use the BSIMM data to say hey, we're already behind on software security" and cutting security specialists will only make matters worse, Chess says.The BSIMM Web site notes that while particular methodologies differ (OWASP CLASP, Microsoft SDL or Cigital Touchpoints, for example), many initiatives share common ground."This common ground is captured and described in BSIMM. As an organizing feature, we introduce and use a Software Security Framework (SSF) which provides a conceptual scaffolding for BSIMM," they say. "Properly used, BSIMM can help you determine where your organization stands with respect to real-world software security initiatives and what steps can be taken to make your approach more effective."