Madam Chair, thank you for that question. Madam Koutrakis's question is very important.
The simple answer to the question is that effectively no measures existed before our government won the 2015 election. The first general election in which there was a series of discrete and deliberate measures in place to detect, respond to, mitigate and ultimately, if necessary, inform Canadians around foreign interference was the 2019 election. Our colleague Karina Gould at the time was minister of democratic institutions. That's when many of these measures were stood up.
Parliament changed the legislation in 2018 to plug some loopholes around potential foreign financing in the Canadian electoral system. Those are measures that have existed for five or six years. At the G7 summit in Charlevoix, in the province of Quebec, the Prime Minister agreed with G7 leaders around establishing a rapid response mechanism, because this threat is not unique to Canada. Many of our allies around the world and other big democracies, like those in the G7, face similar threats.
We modernized the Elections Act in 2018. Those amendments to the Canada Elections Act brought in, for example, advertising and reporting regimes for fundraising events and for party leadership contestants. Those were new measures. In 2019, we unveiled the “protecting democracy” plan, which had four important pillars. One was enhancing citizen preparedness and citizen resilience. One of your colleagues spoke about the challenge of misinformation and disinformation. It's increasingly a threat to free and fair elections. The best remedy is to inoculate Canadians against those threats. That has to be done by civil society and outside experts to the extent possible.
We improved organizational readiness within the Government of Canada. We provided, for example, briefings to all political parties, to designated representatives who were security-cleared to receive this information. We set up the security and intelligence threats to elections task force, a group of professionals that head our security and intelligence agencies, who would provide advice. Perhaps you took note that we again stood up that group in the context of these ongoing by-elections that were called for later next month. We also passed the “Canada Declaration on Electoral Integrity Online” provisions to hold social media platforms accountable for their appropriate role in dealing with disinformation and misinformation.
It's an ongoing effort. Federal budgets in 2019 added $19.4 million over four years. We gave the Communications Security Establishment, an agency of National Defence, $4.2 million over three years. We've continually invested in the apparatus necessary to ensure that our security and intelligence community has the tools needed to do the best we can, but we don't pretend that these are perfect answers.
In response to your colleague's questions, we don't think the job is ever done. If there are ways that we can further strengthen and improve these measures.... The threat continues to evolve. We can learn from other countries, so we're very much on the hunt for good ideas and better practices, and we're continually looking for ways to improve what we think is a considerable body of work that we've done to date.