Is using a strong named assembly for Plug In secure?

后端 未结 1 1942
别那么骄傲
别那么骄傲 2021-01-22 22:01

I was searching on way to prevent an unknown party from attaching their own Plug In containing malicious code into my application. And I ran across this post

.NET Assemb

相关标签:
1条回答
  • 2021-01-22 22:21

    It's an interesting comment. From what I understand a signed assembly indicates 1) it has been signed with a certain key and 2) is could not have been modified after signing

    On point 1, the security of the key is important as anyone with the key could modify and re-sign the assembly.

    On point 2, I have seem an example online of a successful modification of an assembly while still passing the strong name verification. It was not trivial.

    So technically correct, you can use this to verify identity but not necessarily security - or rather the difference between Authentication (the plugin was signed and not tampered with) versus Authorization (the code itself is authorized to do a certain action).

    Authentication versus Authorization

    0 讨论(0)
提交回复
热议问题