Sign in
.NET Security Blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
RSS for posts
Atom
RSS for comments
OK
Search
Tags
CAS
ClickOnce
CLR v4
CNG
Cryptography
Debugging
Orcas
Other
Pages
Policy
SecAnnotate
Security
Silverlight
SSCLI
StrongName
Transparency
Under the Hood
Visual Studio
Windows
XML
Archive
Archives
April 2010
(1)
February 2010
(1)
November 2009
(7)
June 2009
(4)
May 2009
(6)
March 2009
(1)
December 2008
(2)
August 2008
(1)
July 2008
(2)
May 2008
(2)
March 2008
(2)
February 2008
(1)
January 2008
(1)
October 2007
(2)
June 2007
(1)
May 2007
(5)
April 2007
(1)
March 2007
(5)
February 2007
(3)
January 2007
(5)
December 2006
(2)
November 2006
(3)
October 2006
(5)
September 2006
(2)
August 2006
(1)
July 2006
(6)
June 2006
(6)
May 2006
(7)
April 2006
(7)
March 2006
(6)
February 2006
(7)
January 2006
(9)
December 2005
(7)
November 2005
(8)
October 2005
(8)
September 2005
(13)
August 2005
(7)
July 2005
(8)
June 2005
(4)
May 2005
(10)
April 2005
(6)
March 2005
(10)
February 2005
(9)
January 2005
(10)
December 2004
(27)
November 2004
(12)
October 2004
(12)
September 2004
(10)
August 2004
(10)
July 2004
(10)
June 2004
(11)
May 2004
(7)
April 2004
(15)
March 2004
(21)
February 2004
(12)
January 2004
(3)
December 2003
(1)
November 2003
(5)
October 2003
(1)
June 2003
(2)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
.NET Security Blog
New ILAsm Support For Assembly-Level Security
Posted
over 9 years ago
by
shawnfa
1
Comments
Before Whidbey shipped, using assembly level declarative security was always a bit of a pain. Previous versions of the CLR required you to provide security attributes in the form of XML, which meant that you would have to figure out the exact XML represented...
.NET Security Blog
Assembly Level Declarative Security
Posted
over 9 years ago
by
shawnfa
20
Comments
Assembly level declarative security comes in three forms, RequestMinimum, RequestOptional, and RequestRefuse. The three can be briefly defined as: RequestMinimum -- the set of permissions that are absolutely required for this assembly to run RequestOptional...
.NET Security Blog
All About Assert Part IV: When Assert Won't Help
Posted
over 9 years ago
by
shawnfa
1
Comments
In Assert Myth #7 , I mention three ways for a demand for a permission to fail even though that permission was asserted. The first three are: Myth #3: You don't need the permissions that you're asserting in order to effectively assert them Myth #4: Assert...
.NET Security Blog
All About Assert Part III: Dispelling the Myths
Posted
over 9 years ago
by
shawnfa
7
Comments
So far we've seen What Assert Actually Does , and What Assert Is Good For , now its time to examine some popular misconceptions about the Assert stack modifier. Myth #1: Assert changes an assembly's permission grant Assert is a stack walk modifier. It...
.NET Security Blog
All About Assert Part II: What Assert Is Good For
Posted
over 9 years ago
by
shawnfa
1
Comments
Now that we know what Assert does , lets figure out what it's good for. The two most common uses of Assert are: Perform high-privilege operations on behalf of untrusted code Convert one permission demand to another Yesterday's example demonstrating what...
.NET Security Blog
All About Assert Part I: What Assert Actually Does
Posted
over 9 years ago
by
shawnfa
11
Comments
There are several common misconceptions about the Assert stack modifier, not the least of which are: Assert changes an assembly's permission grant Assert is just a perf optimization You don't need the permissions that you're Asserting in order to effectively...
.NET Security Blog
Post Build Assembly Modification Or: Why Won't SN -Vr Work on Tampered Assemblies
Posted
over 9 years ago
by
shawnfa
1
Comments
A while back I wrote about delay signing an assembly, and using SN -Vr to register that assembly to have its signature verification skipped. However, some people have noticed that SN -Vr doesn't work if you fully sign an assembly and then tamper with...
.NET Security Blog
SafeHandle
Posted
over 9 years ago
by
shawnfa
12
Comments
Prior to Whidbey, interop with Win32 handles was done by passing IntPtrs back and forth through P/Invoke. This had several drawbacks including: Lack of type safety. Nothing is preventing me from taking an IntPtr containing a HWND and passing it to a method...
.NET Security Blog
Serializing Permissions Across CLR Versions
Posted
over 9 years ago
by
shawnfa
4
Comments
An interesting question came up in the newsgroups today. If you serialize a permissions set (either by calling ToXml().ToString() directly on the permission, or by converting to an XML Element ), you'll get permissions that look like this: <IPermission...
.NET Security Blog
Matt Pietrek on How Iterators Work
Posted
over 9 years ago
by
shawnfa
0
Comments
One of the things on my blog todo list was to write an entry showing how C# iterators work under the hood. Well, Matt Pietrek beat me too it. You can find an exploration of the state machine that the C# compiler generates for you when you create an iterator...
Page 1 of 1 (10 items)