RAMIRES: Risk adaptive management in resilient environments with security