Legal Perspectives on Security Institutions