From July 2018 until early 2020, Alessandri transferred to the Cabinet Office, where she served as one of the UK's deputy National Security Advisers alongside David Quarrey, supporting the prime minister on national resilience and security.