A number of terrorist attacks have occurred at embassies and consulates in recent years, and although events at US consulates have had the highest profile in the news, other nations have a similar history. Looking at embassies and consulates solely for the US alone, there are 169 Embassies plus 136 Consulate facilities worldwide. Many feature guards, metal detection archways, and X-ray machines. However, an armed attacker can easily shoot their way past this form of security. A Barbecan portal ensures that attackers are prevented from entering.
Military bases also have a recent history of attacks. Although guns are commonplace on a military base, thorough screening at base entrances can still make a difference in detecting concealed and unauthorized weapons.