SEI CERT C Coding Standard
FreeThe SEI CERT C Coding Standard is a software coding standard for the C programming language to improve the safety, reliability, and security of software systems.
About SEI CERT C Coding Standard
The SEI CERT C Coding Standard, developed by the Software Engineering Institute (SEI) at Carnegie Mellon University, is a comprehensive set of guidelines for writing secure, reliable, and safe C code. It comprises rules (normative requirements) and recommendations (guidance) organized into categories such as preprocessor, declarations, expressions, integers, memory management, and concurrency. The standard covers vulnerabilities and undefined/unspecified behavior, and is supported by conformance testing via SCALe, Juliet test cases for static analysis tools, and a downloadable PDF of the 2016 edition. The community can contribute through GitHub issues, and the standard is continually refined based on feedback from the secure coding community.
Key Features
Pros & Cons
- Comprehensive coverage of C security vulnerabilities and secure coding best practices
- Community-driven with peer review and regular updates
- Published in official book form and backed by SEI/CMU expertise
- Includes risk assessment methodology to prioritize fixes
- Conformance testing available through SCALe for formal verification
- The website is a work in progress; many pages are incomplete or contain errors
- Not an automated tool – requires manual implementation or use of external static analyzers
- Adopting all rules may require significant code refactoring and developer training
- May not be suitable for projects with very tight deadlines or legacy code without extensive revision