harmony 鸿蒙OpenHarmony Security Test Guide

  • 2022-12-13
  • 浏览 (557)

OpenHarmony Security Test Guide

With reference to industry standards and best practices, this document provides specifications for security tests of the OpenHarmony project.

Security Test Content

  • Review the code of each module according to OpenHarmony C&C++ Secure Coding Guide and fix all issues found in the review.

  • Use the OpenHarmony gated check-in to scan your code and clear all alarms.

  • Use the compilation option scanning tool to scan your binary file and ensure that the settings of all the compilation options comply with the OpenHarmony Compilation Specifications.

  • For the module that receives and processes user-mode parameters, develop gray-box and white-box fuzz testing suites according to the Fuzz Testing Guide and complete the tests.

  • Use mainstream vulnerability scanning tools to scan open-source components. Ensure that all the detected vulnerabilities have been fixed according to the vulnerability management process of the community.

  • Perform consistency check of the released versions, and check that the released version images provide the SAH-256 checksum.

  • Complete the security design self-check for each module according to OpenHarmony Security Design Specifications. Ensure that all design issues found in the self-check have been fixed.

  • Use mainstream viruses scanning software to scan software packages. Ensure that all virus detected have been removed or confirmed as false alarms.

  • Search for “.cer” and “.pem” or keyword such as “PRIVATE KEY” to find the certificate key, and check that the certificate key is within the validity period and the encryption algorithm meets encryption algorithm requirements. Ensure that all certificate key issues have been resolved.

  • Perform black-box fuzz testing on exposed user-mode APIs, including system service APIs, kernel driver APIs, socket APIs, and more.

NOTE

The preceding requirements apply to all new and inherited features.

Security Test Completion Requirements

The mandatory security test performed before version release is complete only when:

  • All the security tests mentioned in Security Test Content are complete.

  • All security issues have been closed.

Security Test Report Template

  • The security test report must contain the security test results in Security Test Content and pending security issues.
  • The version security test report is released with the entire test report of the version, instead of being released and archived separately.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙FAQs

harmony 鸿蒙32- and 64-Bit Portability Coding Guide

harmony 鸿蒙TypeScript and JavaScript Coding Style Guide

harmony 鸿蒙Java Secure Coding Guide

harmony 鸿蒙JavaScript Coding Style Guide

harmony 鸿蒙Logging Guide

harmony 鸿蒙OpenHarmony Build Specifications

harmony 鸿蒙C Coding Style Guide

harmony 鸿蒙C&C++ Secure Coding Guide

harmony 鸿蒙OpenHarmony Compilation Specifications

0  赞