The .NET Core framework boasts of Code Access Security or CAS that can prevent erroneous come from undertaking actions privileged to other areas of the codebase. Besides this, .NET Core also provides an SEH or Structured Exception Handler that can execute your applications with custom exception handling scenarios. The Runtime Code Regions (RCR) also deserve a special mention because they are the primary security mechanism that defends your codebase against malicious scripts.