Ethics and Security Automata