Cybercrime Law in Afghanistan
Afghanistan’s only specific cybercrime law dates from 2017, when the previous government added a cybercrime code to the new Penal Code. The Taliban took power in August 2021, and since then it is not clear which statutes the courts apply or how.
Key laws
- Cybercrime code (2017): signed by President Ashraf Ghani in June 2017 and incorporated in the
Penal Code. Sources describe it as 27 or 28 articles. Reported offences include:
- illegal access to computer systems, and disclosing another person’s password or security code;
- theft of another person’s internet service;
- hacking and damage to data;
- spreading ethnic hatred, online defamation and exposing government secrets;
- cyber-terrorism. The government said the law targeted online crime and militant propaganda. The media watchdog Nai said its wording was vague and could limit free speech. The Council of Europe noted that it had no procedural or international-cooperation provisions.
- Status under the Taliban: the Taliban authorities have not repealed the 2017 Penal Code, but they have said that laws contrary to Sharia will not be applied, and courts work largely by their own interpretation. One source says the cybercrime code formally stays in force but is enforced unpredictably. I found no primary source on how it is applied.
Afghanistan is not a party to the Budapest Convention.
Enforcement
Under the former government, the Attorney General’s Office and the Interior Ministry’s cybercrime unit handled cases. Under the Taliban, the Ministry of Communications and the intelligence directorate control the internet. In 2025 the authorities shut down internet access nationwide for several days.
Plain-language overview, not legal advice. Laws in Afghanistan are uncertain. Seek qualified advice for any specific matter.
Sources checked 14 November 2026 against Reuters-based reports on the 2017 law (Arab News, SecurityWeek), the Council of Europe’s Octopus profile, and a secondary note on its status. I did not read the code itself. The remarks on Taliban rule, the former agencies and the 2025 shutdown are from general knowledge and news reports.