Security and automation scripts