A model-based mode-switching framework based on security vulnerability scores | Synapse