ProfilI may have joined the wr...BlogLister Funktioner Hjælp
    17. februar

    Do I trust you? Well, sort of...

    This post is in response to a Microsoft plan to force full trust all assemblies in the GAC regardless of CAS policy settings.


    For some time now, I've been rather disappointed with the view of code trustworthiness that seems to be generally espoused at Microsoft. IMO, there are at least two main issues to address when evaluating the trustworthiness of code (and/or its source):

    1. Do I trust it to not be deliberately malicious?
    2. Do I trust it to not contain any exploitable flaws?

    As far as I can tell, Microsoft seems to be concentrating mostly on #1* (and not just with respect to CAS and the .NET Framework). However, I worry at least as much, if not more, about #2. Unfortunately, even the most well intentioned of developers are not necessarily all that competent, particularly when it comes to security.

    Even when developers are competent and careful, there's every reason to expect that their code will contain at least some exploitable flaws since bugs related to security will likely be at least as frequent as problems in any other area. Therefore, even if I trust the developers of a given assembly to be both non-malicious and competent, I would still want to run their code with least possible privilege. This is simple defense in depth.

    If all assemblies in the GAC are to become fully trusted regardless of policy settings, administrators will have no way of enforcing least privilege for these assemblies. Is the loss of this ability really worth any trade-off with respect to possible gains that might result in other areas?



    *Interestingly enough, the Code Access Security topic in the .NET Framework Developer's Guide does mention #2 as one of the reasons for the limitation of code permissions under CAS. Unfortunately, it would seem that someone has forgotten about this along the way.

    Kommentarer

    Vent et øjeblik...
    Din kommentar var desværre for lang. Skriv en kortere kommentar.
    Du skrev ikke noget. Prøv igen.
    Vi kan desværre ikke tilføje din kommentar lige nu. Prøv igen senere.
    Hvis du vil tilføje en kommentar, skal du have tilladelse fra en forælder. Bed om tilladelse
    Din forælder har deaktiveret kommentarer.
    Vi kan desværre ikke slette din kommentar lige nu. Prøv igen senere.
    Du har overskredet det højst tilladte antal kommentarer, som kan tilføjes om dagen. Prøv igen om 24 timer.
    Din konto har fået deaktiveret muligheden for at skrive kommentarer, fordi vores systemer indikerer, at du sandsynligvis spammer andre brugere. Hvis du mener, at din konto er blevet deaktiveret ved en fejl, skal du kontakte Windows Live-support.
    Gennemfør sikkerhedstjekket nedenfor for at kunne tilføje din kommentar.
    De tegn du skriver i sikkerhedstjekket skal svare til tegnene i billedet eller oplæsningen.
    Kommentarer er slået fra på denne side.

    Tilbagelinks

    Weblogs med reference til dette indlæg
    • Ingen