Design Principles for Application Security in Network Architectures