Islamic State has ramped up threats against New York City and New York Police Department officers in recent weeks, counterterrorism officials said in interviews.

The overseas terrorist organization has been targeting New York City with a new flood of online propaganda that shows bloody images of police and digitally-faked threatening messages in subways, the officials said in interviews.

The...