Qatar State Security is the state intelligence agency of Qatar. It is a branch of the Qatari Ministry of Interior. It was created in 2004, after the General Intelligence Service (Mukhabarat) and the Investigation and State Security Service (mubahith) merged. It performs internal security investigations, gathers intelligence, and has primary responsibility for sedition and espionage cases. The intelligence agency has been accused of human rights violations over arbitrary arrests of citizens without court warrants for expressing opinions on social media. On February 7, 2022, Human rights watch drafted a report out which states that the State Security Apparatus Law "does not provide for any judicial oversight over such detention, and the Working Group was informed that in practice, such detention leads to very long periods of deprivation of liberty, in violation of international human rights norms," according to a statement from the UN Working Group on Arbitrary Detention after an official visit to Qatar in 2019. Now, everyone has the freedom to leave any country, including their own, according to the International Covenant on Civil and Political Rights, which Qatar adopted in 2018. The treaty permits nations to place limitations on that right, provided that they are authorized by law and necessary and reasonable to safeguard the country's security, public order, health, morals, or other rights and freedoms.