Modularization of security software engineering in distributed systems