Application Security Terminology

Glossary

Svg Vector Icons : http://www.onlinewebfonts.com/icon Return to Glossary

Secure Coding Standards

What are Secure Coding Standards?

Secure coding standards are practices that are implemented to prevent the introduction of security vulnerabilities, such as bugs and logic laws. By following secure coding standards, companies can significantly reduce vulnerabilities before deployment.What's more, secure coding is important for every development team — regardless of whether it's code for mobile devices, personal computers, servers, or embedded devices.

Secure coding best practices

The top secure coding standards and approaches are to:

  1. Develop a secure coding standard for a platform and development language.
  2. Validate input from all external data sources including user controlled files, network interfaces, and command line arguments. 
  3. Deny access by default. Software should identify conditions when access ispermitted rather than by exclusion. 
  4. Design software to enforce and implement security policies.
  5. Use the compiler’s highest warning level to compile your code. Eliminate warning by modifying the code.
  6. Have a layered defense with multiple strategies. If one does not prevent a vulnerability, the next layer of defence should.
  7. Ensure Error Handling and Logging is in use.Error handling and logging are two of the most useful techniques for minimizing their impact. Error handling attempts to catch errors in the code before they result in a catastrophic failure. Logging documents errors so that developers can diagnose and mitigate their cause. 
  8. Document, locate, address, and validate are the four steps to threat modelling. To securely code, you need to examine your software for areas susceptible to increased threats of attack. Threat modelling is a multi-stage process that should be integrated into the software lifecycle from development, testing, and production.