Stationary security platforms like blaster turrents are common and ubiquitous. Blaster turrets are programmed with target criteria (such as "any humanoid which approaches within 30 feet" or "anybody not wearing a securuty pass") and automatically attack those who meet those criteria.