A Framework based on Security Patterns for Transformations