The Object Modeling Technique, a generally used object-oriented software development technique, comprises the object, dynamic, and functional models to provide three corresponding views that graphically express diverse aspects of software systems. This paper adds security engineering into an object oriented model-driven software development for real life web applications. In this paper, we use mining patterns in web applications. This research paper proposes a Unified modeling language based secure software maintenance procedure. The proposed method is applied for maintaining a large-scale software product and real-life product-line products. After modeling we can implement and run this web application, on SPF based trusted operating systems. Reverse engineering has become a main concern in software development industry because of their complete size and so much difficulty. This difficulty needs to be tackled since the software systems in question are of significant importance to their owners and maintainers. For secure designing of web applications, this paper propose system security performance model for trusted operating system. For Re engineering and re-implementation process of web applications, this paper proposes the model driven roundtrip engineering approach.