Al-Shabab is reportedly targeting Somali officials, according to a spy agency.
Al-Shabab has also increased the frequency of its strikes across Somalia.
Somalia's spy service has issued a warning about an alleged conspiracy by al-Qaeda-affiliated al-Shabab extremists to assassinate the president and prime minister.
In a tweet, the National Intelligence and Security Agency (Nisa) said it had briefed the country's authorities about the "al-Shabab mafia plot."
The agency did not disclose any additional information other than to say that it was investigating everyone involved.
The warning comes as the country faces a political crisis as a result of the long-delayed indirect elections.
Al-Shabab has also increased the frequency of its strikes across Somalia.
In the Somali city, of Mogadishu, the gang recently stormed a strongly defended airport complex that houses UN headquarters, foreign embassies, and numerous diplomatic missions.
It also carried out two suicide attacks in central Beledweyne, killing at least 48 people, including a female federal legislator.