Since December 2013, a number of foreign nationals have been shot dead in Libya. Further attacks against foreigners are likely and could be opportunistic.
There is a high threat from terrorism including kidnapping. Since January 2014, a number of foreign nationals have been kidnapped, including in Tripoli.
Keep a low profile and try to limit travelling around as much as possible, particularly at night. There is a high threat from crime.