Found this post from Maxim Karpov an interesting read on Code Access Security.