A brig is a jail aboard a ship. A person in the brig may also be referred to as "in hack".
Battlestars have several brigs. One has at least two small cells with bunks and a desk to the outside the observe the prisoners and handle visitors. The other brig has one larger cell with no commodities for high-security prisoners. There is usually a Marine guard standing watch inside the room. In the high-security brig, there are usually around four.
Newer Battlestars have a more advanced brig than older ships, with composite plastic walls instead of metal bars, and computer ID recognition cards required for entry.