K2-B4 was a T-series military strategic analysis and tactics droid who served the Confederacy of Independent Systems during the time of the Clone Wars. In 20 BBY, K2-B4 served as the second-in-command to the Phindian Commandant Osi Sobeck, who headed the Confederacy's Citadel prison on the planet Lola Sayu. Following a Galactic Republic rescue attempt of the prisoners, K2-B4 assisted in enacting the facility's security measures, overseeing efforts from the command center before searching for the intruders personally. K2-B4 would locate the commandeered supply shuttle that the strike team used to infiltrate the facility but was fooled by a squad of reprogrammed battle droids serving the Republic. As the prisoners escaped the facility and fled across Lola Sayu's desolate landscape, K2-B4 commanded a Separatist defense fleet that blockaded the planet. However, the droid ultimately failed to prevent a Republic fleet from breaking through and extracting the escapees.