Secure Coding
Modern development practices use a security development lifecycle running in parallel or integrated with the focus on software functionality and usability.
- e.g.,
- Microsoft’s SDL
- OWASP Software Assurance Maturity Model (SAMM) and Security Knowledge Framework
- also collates descriptions of specific vulnerabilities, exploits, and mitigation techniques, such as the OWASP Top 10
Best Practices
- Input Validation
- Secure Cookies
- Static Code Analysis
- Code Signing
- Output Encoding
- Parameterized Queries
- Data Protection
- Session Management
Data Protection
- Secure coding practices ensure that sensitive data is kept confidential and secure
- input validation
- encryption
- strong authorization and authentication
- proper error handling
- secure storage of sensitive data
- regular testing and maintenance
Secure Coding for Cloud
- Common resources:
- OWASP Cloud Native Application Security Top 10
- Archived (2025)
- SANS Top 25 Software Errors
- uses the Common Weakness Scoring System (CWSS)
- 3 component scores:
- base finding
- environmental
- attack surface
- https://cwe.mitre.org/
- 3 component scores:
- uses the Common Weakness Scoring System (CWSS)
- OWASP Application Security Verification Standard (ASVS)
- sets a community standard for testing application security controls
- consists of 3 levels of security verification:
- Level 1 can be done entirely with pen testing
- Level 3 critical application security validation
- requires in-depth validation and testing
- each ASVS category includes
- numbered requirements
- CWE number
- https://owasp.org/www-project-application-security-verification-standard/
- Software Assurance Forum for Excellence in Code (SAFECode)
- is an industry group that is compose of many large industry vendors and focuses on secure software development
- provides “SAFECode Fundamental Practices for Secure Software Development”
- includes sections on design, secure coding practices, third-party component risk, testing and validation, managing findings, handling vulnerabilities, and disclosure processes
- Not as current (2019)
- OWASP Cloud Native Application Security Top 10