MPs were informed about the hack last night and have struggled to access their official Parliament email accounts remotely.
"The Houses of Parliament have discovered unauthorised attempts to access parliamentary user accounts," a House of Commons spokesperson said.
"We are continuing to investigate this incident and take further measures to secure the computer network, liaising with the National Cyber Security Centre.
"We have systems in place to protect member and staff accounts and are taking the necessary steps to protect our systems," the spokesperson added.
More From This Section
"Cyber security attack on Westminster; Parliamentary emails may not work remotely. Text urgent messages," he wrote on Twitter.
Other MPs have also admitted having difficulty accessing their parliamentary email accounts.
An email sent to MPs yesterday by Parliament's digital services team said: "Earlier this morning we discovered unusual activity and evidence of an attempted cyber-attack on our computer network."
"Closer investigation by our team confirmed that hackers were carrying out a sustained and determined attack on all parliamentary user accounts in an attempt to identify weak passwords. These attempts specifically were trying to gain access to our emails.
The attack follows media reports earlier this week that passwords for some British MPs and officials were being sold online by hackers.