Interesting podcast conversation between Sam Harris and Charles Murray (of "Bell Curve" fame)

A sadly naive choice of backpacking location by these Scandinavian women: Morocco murders: Tourist killings suspects 'backed IS' - BBC News

I would not take the risk of vacationing in a predominantly Muslim country, not even a relatively less violent one like Morocco. But if you do, at least stay in places where you have the protection of security forces nearby.