He was leaving a vehicle in Banten province when he was stabbed, before officers tackled a man and a woman. Many policemen were stationed at the hospital.
Wiranto was seen being carried on a stretcher to a helicopter before he was airlifted to the capital Jakarta following the incident on Thursday.
Wiranto is wounded in the abdomen, and the minister is now undergoing treatments at a hospital in Pandeglang.
Police said the attacker had been exposed to "IS radicalism".
The assassination attempt comes just over a week before Widodo kicks off a second term as leader of the Southeast Asian archipelago of some 260 million people, the world's biggest Muslim majority nation.
Wiranto delivers a speech during a meeting between former militants and victims in Jakarta, Indonesia.
According to bantennews, Wiranto was immediately taken to Berkah Pandeglang General Hospital, it is not yet clear whether the minister was injured in the incident.
"When the minister was trying to meet the people, suddenly the two perpetrators conducted assaults", Dedi said.
As chief security minister, Wiranto oversees five ministries including foreign, interior and defence. Police had arrested a man and a woman they suspected were a couple, and seized sharp weapons they were carrying, including knives and a pair of scissors.
If confirmed as an IS-backed attack, it would be the first by the militants on a politician in Indonesia.
Both are said to belong to IS-linked terror network Jamaah Ansharut Daulah. He denied any wrongdoing in East Timor.
A group of six people - arrested before they could carry out the killings - planned to murder the officials and an election pollster in a bid to plunge the country into chaos, police said at the time.