System-security co-design