Security droids were armed fourth-degree droids used for defense on starships or in buildings...
starwars.wikia.com