There are many laws aiding the government in the protection of national interests. They are
First, Sedition under section 124A of the IPC (Indian Penal Code). Sedition is defined as any action that brings or attempts to bring contempt or hatred towards the government of India. Sedition cases are punishable with a maximum sentence of life imprisonment.
Second, Criminal defamation under section 499 of the IPC. Defamation is defined as the communication of a false statement that harms the reputation of an individual person, group, product, business, government, religion, or nation.
Third, the government enacted the Information Technology (IT) Act 2000 for matters related to cybercrime and e-commerce. Under this act, the Government can punish any crime involving a computer or a network. The Act can charge Indian citizens as well as foreigners.
Fourth, The Unlawful Activities Prevention Act of 1967. The Act aims to effectively prevent unlawful activities and associations involved. In 2019 the government amended the provisions of the Act to designate an individual as a terrorist. The Law prescribes a maximum punishment of death penalty or life imprisonment.
Fifth, Apart from these Acts several states have enacted specific laws to govern their security. For example draft bill of Shakti Act of Maharashtra has a provision for stricter punishment for offenders who post defamatory messages on social media.