China itself is safe. It's the BRI that needs protection. It's probably just a matter of time before China starts to deploy armed forces overseas.
That’s America’s grand plan, and is actually a copy&paste of their past actions in Xinjiang.
The basic idea is that guys in trench-coats with suitcases of dollars pays tribal leaders to organise attacks on key infrastructure like pipelines, electricity lines and roads etc. Local police are too weak and corrupt to do anything about it, so central police forces are deployed.
Then when the inevitable deadly clashes occur, paid and bought preachers will spin it as the central police force are here to genocide the locals and before long you have a full blow ethnic-religious holy war with the locals. Only this time it won’t be central police, but foreign military, making the massage even easier to sell.
The plan is to get China sucked into its own War On Terror in the ME to waste China’s time, blood and treasure.
Fortunately, China has learnt extensively from Xinjiang, and has a lot more experience in how to deal with such plays now.
The basic solution is to not play into America’s hopes and don’t deploy the PLA officially. Instead, China will work with local law enforcement and military forces to strengthen them and support them to deal with the local and foreign imported jihadists.
Pakistan would be a good example, where the bulk of the protection is done by locals. This also means that locals end up taking the brunt of attacks and deaths from the jihadists and attackers. That builds local resistance to their cause and message. Best case the locals proactively fight and eradicate the foreign jihadists for you. Worst case the locals don’t get involved themselves or give the jihadists any support or assistance, thereby limiting the damage they can do.
Result will be slow, and are achieved eventually after sufficient pressure and support. So while it won’t be as immediately satisfying as PLA helicopters going all Ride of the Valkyries on some jihadist village, the results will be far less death and destruction on all sides, and China being able to keep its focus on dealing the the true source of the evil.