Introduction Internet-wide scans for vulnerabilities are more frequent and attacks increase in sophistication. Internet host security does not seem to increase. More computers connected to the Internet that are not secured. No recipe for writing correct software. However, it is possible to increase resilience of our infrastructure against adversaries. Presenting practical solutions to improve security. Primarily my own research in computer and network security.