LONDON -- Britain's domestic intelligence chief warned during a rare public speech Tuesday that the terrorist threat the country faces has accelerated at an alarming pace and is worse now than at any time in his 34-year career.

MI5 Director General Andrew Parker said his agency, also known as the Security Service, is constantly expanding and upgrading its capability, but cannot realistically prevent all attacks targeting civilians.

"In 2017, with all that has happened and much that has not, it is clear that we are contending with an intense U.K. terrorist threat from Islamist extremists," Parker told journalists in London. "That threat is multi-dimensional, evolving rapidly, and operating at a scale and pace we've not seen before."

Get Breaking News Delivered to Your Inbox

In an interview with BBC News, Parker said out of the 800 Britons who have gone to fight for the Islamic State of Iraq and Syria (ISIS), a "proportion of them" are back in the U.K. after giving up for a number reasons.

He said those people are being monitored and assessed based on the risk they present. Another 130 or more Britons were killed fighting for ISIS in Iraq and Syria, Parker said.

Speaking to journalists Tuesday, Parker noted a "dramatic upshift" in the threat this year, with successful attacks in London and Manchester that killed 36 people combined.

"Twenty attacks in the U.K. have been foiled over the past four years," Parker said. "Many more will have been prevented by the early interventions we and the police make. There have been a record number of terrorism-related arrests: 379 in the year to June."

He said continental Europe has faced a similar surge, particularly in France, Belgium, Germany and Spain.

"The scale at which we are operating is greater than ever before," he said.

Parker said MI5 has more than 500 live investigations involving roughly 3,000 people known to be involved in extremist activities.

Director General of MI5 Andrew Parker delivers a speech on the security threat facing Britain on October 17, 2017 in London, England. WPA Pool / Getty

In addition, he said, more than 20,000 individuals have been scrutinized in the past for possible terror ties and there are undoubtedly "violent extremists" who have thus far not been detected by the Security Service.

The risk is further heightened by the possible return to Britain of citizens who joined ISIS, Parker said.

He said MI5 is well-equipped to cope with the deepening threat, with its ranks set to grow from 4,000 to 5,000 over the next few years. Parker cautioned, however, that it is impossible to stop every attack.

"Attacks will occur sometimes because this is a free society, a liberal democracy, and we do not monitor everybody all the time," he said. "Nor would we want to live in a country that was like that."

The director called on technology companies to work with the government on preventing their social media platforms from being used by extremists for communications that cannot be monitored.

When asked if Facebook and Google were doing enough on this front, Parker declined to discuss specific companies.

He praised advancements in communications technology, but said an "unintended side effect" has been to make it easier for extremists to avoid legal monitoring by using apps, including many that provide encryption, to avoid detection. He said companies should do more to prevent this abuse of their communications systems.

"For the companies there must be an ethical responsibility," Parker said. "The way to move forward is in partnerships together."