The accused have been identified as Shahid Malla, a CSE student at Aryan Group of College in Punjab's Rajpura and Adil Hussain Teli, a BCA final year student at St Soldiers Management and Technical Institute in Jalandhar.
They are natives of Baramulla and Anantnag districts of Jammu and Kashmir.
"Following a tip-off, Shahid Malla and Adil Hussain Teli were arrested on Friday when a team of Cyber Cell of Delhi Police raided their rented accommodation in Punjab," a senior police officer told IANS on the condition of anonymity.
"During investigation, it was found that their online activities were part of anti-national hacking group called 'Team Hackers Third Eye' which has hacked more than 500 Indian websites, including some government websites," the officer said.
The officer said the accused were also involved in educating Kashmiri youth to bypass state-imposed social media ban during April and May in 2017 by using VPN.
"Through their seditious social media posts, Malla and Teli were found to be pro-Pakistan and anti-India," the officer said, adding that some laptops, mobile phones, SIM cards, Internet dongles, memory devices and other instruments were recovered from their rooms.
The officer said the team was trying to ascertain their further plan and also their source of money. "The probe in underway."
(This story has not been edited by NDTV staff and is auto-generated from a syndicated feed.)
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.