A distributed cyber-security framework for heterogeneous environments