Security assessments are one of the most impactful points for developing more secure software that provides identification of security vulnerabilities, finding risks, and threats effective and strongest defense against them. The quality of the security system can be possible maximized through the prioritization of every aspect of the software system and the execution of a thorough standard security assessment. In this paper, we proposed a secure flow of software security requirements, Security pattern framework, and Threat and Risk assessment. The framework provides a secure flow of software security systems to detect attack patterns, block, response, and recovery through a systematic analysis. We implement prioritization and specification of security aspects in consideration of security requirements. Tactics and multidimensional perspective to provide appropriate solutions by unifying all components of the security function and all related issues. Security goals aim to mitigate risks and protect from threats, which is done through an appropriate risk and threat assessment model. In addition, we show an integrated threat model which specifies security and mitigates threat and risk. The results of this study will help the software development cycle to develop more secure software and increase the effectiveness of the software security system.