Weakened food security could tip into unrest after a cyber-attack, extreme weather or conflict, analysis finds