Polish authorities have foiled a suspected ISIS-inspired plot to attack a Christmas market, charging a student accused of preparing a mass casualty bombing, according to officials.

The case comes as Germany and the U.K. also raised security measures around religious and cultural events after the Sydney shooting Sunday in which 16 people were shot dead at a Jewish Hanukkah party on Bondi Beach.

Polish authorities say the suspect, identified as Mateusz W., 19, was detained in late November at an apartment in Lublin by officers from the Internal Security Agency (ABW).

According to Jacek Dobrzyński, a spokesperson for the Minister's Coordinator of Special Services, investigators believe the teen had been studying how to make explosives and intended to join a terrorist organization to help carry out the attack.

"The purpose of the crime was to intimidate many people, as well as to support the Islamic State," Dobrzyński said in a statement shared on X.

Items linked to Islam and digital storage devices were seized, and the suspect has been remanded for three months as the Szczecin branch of ABW continues its investigation.

At a news conference, Dobrzyński also referenced a June case in which three 19-year-olds were charged over alleged extremist plots, including a reported plan to attack a school in Olsztyn.

"You are familiar with this issue from Olsztyn; now we have another example of preparing an attack before Christmas," he told reporters, according to preparing an attack on a Christmas market, according to reports.

Authorities said an Egyptian national described as an Islamic preacher had allegedly called for an assault during gatherings at a mosque in the Dingolfing-Landau area, per Sydney’s Jewish community during a Hanukkah event, we know they can also be a target for terrorist activity," Deputy Assistant Commissioner Jon Savell said in a press release.

He cited large festive gatherings, religious services and Christmas markets as potential targets.

In the disrupted a New Year’s Eve plot in Southern California.

Four alleged members of an extremist anti-capitalist, anti-government group suspected of rehearsing coordinated bombings against sites linked to two U.S. companies were arrested on Monday.