Guide to identifying and preventing OSI model security risks: Layers 4 to 7