British media had reported earlier that hackers were selling passwords for MPs online.
British lawmakers on Saturday said they were unable to access their e-mail accounts remotely as parliament's security team battled against a cyber attack.
Liberal Democrat lawmaker Chris Rennard tweeted that there was a "cyber security attack on Westminster; Parliamentary e-mails may not work remotely."
A House of Commons spokesman confirmed that "the Houses of Parliament have discovered unauthorised attempts to access parliamentary user accounts.
"We have systems in place to protect member and staff accounts and are taking the necessary steps to protect our systems," it added.
The threat follows reports in British media, including the Times, that hackers were selling passwords for MPs online.(This story has not been edited by NDTV staff and is auto-generated from a syndicated feed.)