The counter-insurgency program was a computer program Gul Dukat created in the case of a Bajoran takeover of Terok Nor. The program was designed to lockdown the space station and eventually release neurocine and activate the self destruct sequence if the rebellion continued. Unknown to Dukat, Legate Kell added another level to the program that cancelled all of Dukat's security codes if Dukat attempted to flee.
In 2371, Miles O'Brien accidentally activated the counter-insurgency program, which locked down the station and eventually activated the self destruct sequence. O'Brien and Benjamin Sisko were able to deflect the energy from the overloading fusion reactor into the deflector shields, saving the station. (DS9 episode: "Civil Defense")