# Anti Tampering

This option prevents your protected assembly from being tampered/modified by hacker tools.

# Runtime checks

At runtime your protected assembly performs several binary integrity checks.

The checks require access to the protected assembly as a physical file. They cannot inspect an assembly which only exists in memory or whose runtime Assembly.Location is empty. Review this requirement when using bundled single-file or similar deployment models.

# Combine Anti Tampering with important methods

Selected methods can combine Anti Tampering and Code Virtualization:

  • One-Time Integrity Virtualization (VirtualizationOneTimeIntegrity) embeds a guarded one-time check in the virtualized method.
  • Repeated Integrity Virtualization (VirtualizationRepeatedIntegrity) executes the embedded check whenever the virtualized method is called.

Use these variants for important, infrequently called methods. Repeated integrity checks are not suitable for performance-sensitive paths.

# Related topics

Code Virtualization · ReadyToRun · Trimming problems