This document discusses software security metrics and validating UML diagrams using metrics. It provides background on using metrics to measure quality attributes of object-oriented designs. Traditional code-level security metrics are insufficient and evaluating security at the design level is important. The paper proposes a system that applies design-level security metrics using genetic algorithms to generate secure design options from a UML diagram. It then implements code from the designs and applies the same metrics at the code level to validate that the code matches the intended secure design. This allows discovering and fixing security issues earlier in the development process.