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
My application works from my local machine, but throws a SecurityException when I move it to a network share
Posted
over 10 years ago
by
shawnfa
100
Comments
How to modify your security policy to make your application work from the LocalIntranet zone...
.NET Security Blog
Using CasPol to Fully Trust a Share
Posted
over 9 years ago
by
shawnfa
73
Comments
Since network shares by default only get LocalIntranet permissions, it's relatively common to want to use CasPol to fully trust some shares that you control and know are safe. However, CasPol syntax being what it is, the command to do this isn't immediately...
.NET Security Blog
How to provide extra trust for an Internet Explorer hosted assembly
Posted
over 10 years ago
by
shawnfa
49
Comments
Avoiding security exceptions that occur when you try to provide extra trust based upon strong name or X509 certificates...
.NET Security Blog
Making Strings More Secure
Posted
over 9 years ago
by
shawnfa
40
Comments
The standard System.String has never been a very secure solution for storing sensitive strings such as passwords or credit card numbers. Using a string for this purpose has numerous problems, including: It's not pinned, so the garbage collector can move...
.NET Security Blog
Don't Roundtrip Ciphertext Via a String Encoding
Posted
over 8 years ago
by
shawnfa
37
Comments
One common mistake that people make when using managed encryption classes is that they attempt to store the result of an encryption operation in a string by using one of the Encoding classes. That seems to make sense right? After all, Encoding.ToString...
.NET Security Blog
Enforcing FIPS Certified Cryptography
Posted
over 8 years ago
by
shawnfa
34
Comments
Certain types of software, such as code written for a government contract, require adhering to a strict set of guidelines, especially when it comes to security. To better enable this type of software, v2.0 of the CLR provides the ability for you to enforce...
.NET Security Blog
Sharing a Strong Name Key File Across Projects
Posted
over 7 years ago
by
shawnfa
33
Comments
v2.0 of the .NET Framework deprecated the use of the AssemblyKeyFileAttribute and AssemblyKeyContainerAttribute . Often times, these attributes were used to share a common key file across several projects. If you try to share key files using the Visual...
.NET Security Blog
Allowing Partially Trusted Callers
Posted
over 8 years ago
by
shawnfa
31
Comments
The AllowPartiallyTrustedCallersAttribute (affectionately referred to as APTCA from here on out), is one of the aspects of the security system that most frequently trips people up when they run into it. Lets look at a typical scenario where I might run...
.NET Security Blog
Generating a Key from a Password
Posted
over 9 years ago
by
shawnfa
31
Comments
If you're trying to encrypt data using a password, how do you convert the password into a key for symmetric encryption? The easiest way might be to simply convert the password to a byte array, and use this array as your key. However, this is a very bad...
.NET Security Blog
Delay Signing
Posted
over 9 years ago
by
shawnfa
28
Comments
Most people know about the delay signing feature of the CLR. (For those who don't check out MSDN's Delay Signing an Assembly for more details). Basically, delay signing allows a developer to add the public key token to an assembly, without having access...
.NET Security Blog
.NET 1.0 SP 3 and .NET 1.1 SP 1 Released
Posted
over 9 years ago
by
shawnfa
23
Comments
Today we pushed .NET 1.0 SP3 and .NET 1.1 SP1 onto Windows Update as a Critical Update. You can also download the service packs from the MSDN download center. Here's a brief review of what's new for security in each service pack: .NET 1.0 SP3 (v1.0.3705...
.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
Does Being in the GAC Grant FullTrust?
Posted
over 8 years ago
by
shawnfa
20
Comments
What does being in the GAC imply about the permission set that will be assigned to an assembly? Well, it depends ... In v1.0 and 1.1, the fact that assemblies in the GAC seem to always get a FullTrust grant is actually a side effect of the fact that the...
.NET Security Blog
More on the FullTrust GAC
Posted
over 8 years ago
by
shawnfa
19
Comments
Last week I mentioned that although currently assemblies in the GAC receive FullTrust as a side effect of the GAC being on the local machine, from Whidbey beta 2 and beyond, being in the GAC will imply FullTrust on its own. A lot of the feedback wondered...
.NET Security Blog
Please do not use the .NET 2.0 HMACSHA512 and HMACSHA384 Classes
Posted
over 6 years ago
by
shawnfa
19
Comments
We’ve recently discovered a bug in the HMACSHA512 and HMACSHA384 classes which shipped in the .NET Framework 2.0. This bug will cause these algorithms to produce incorrect results which are not consistent with other implementations of HMAC-SHA-512 and...
.NET Security Blog
FullTrust on the LocalIntranet
Posted
over 5 years ago
by
shawnfa
18
Comments
We released the first beta of .NET 3.5 SP 1 this morning, and it includes a change to the default grant set for applications launched from the LocalIntranet zone. The quick summary is that as of .NET 3.5 SP1, applications run from a network share will...
.NET Security Blog
How to Impersonate
Posted
over 8 years ago
by
shawnfa
18
Comments
Guillermo recently started blogging about some Whidbey enhancements around impersonation. However, figuring out how to impersonate in the first place can be a little less than obvious. WindowsIdentity contains an Impersonate method, but it doesn't accept...
.NET Security Blog
Safely Impersonating Another User
Posted
over 8 years ago
by
shawnfa
17
Comments
Yesterday I posted a bit of code that shows how to impersonate another user in managed code. However, that code had a subtle security hole waiting to bite you if you used it directly. Both Dean and Eric found the problem. In fact Eric reminded me of a...
.NET Security Blog
Whidbey's Security Off Model
Posted
over 8 years ago
by
shawnfa
17
Comments
Although the v1.0 and v1.1 versions of CasPol provided a switch to disable the CLR's security system, running without CAS enforcement on was never a scenario that we encouraged for obvious reasons. The choice to disable security was a system wide switch...
.NET Security Blog
5 Reasons to Choose Simple Sandboxing
Posted
over 7 years ago
by
shawnfa
17
Comments
When it comes time to host some partially trusted code in your application, perhaps as a part of an Add-In model, you’ve got a few options to choose from. How do you decide which is the best way to go? Thankfully the answer to this one is relatively...
.NET Security Blog
Enveloped PKCS #7 Signatures
Posted
over 7 years ago
by
shawnfa
16
Comments
One of the new cryptography features in the v2.0 framework is the ability to work with PKCS #7 formatted messages . The PKCS features live in the new System.Security.Cryptography.Pkcs namespace in System.Security.dll, and are thin wrappers around the...
.NET Security Blog
Receiving Session Lock and Unlock Notifications
Posted
over 8 years ago
by
shawnfa
16
Comments
Some programs, such as MSN Messenger, change their behavior when the current session is locked and unlocked. Messenger, for instance, will change your status to Away while your machine is locked, and then back to Online when your machine is unlocked....
.NET Security Blog
Blogging around the CLR
Posted
over 8 years ago
by
shawnfa
16
Comments
As of today, there are 40 members of the extended CLR team with blogs on and off of MSDN. Some are more active than others, but if you're looking for a blog that might cover a specific area, here's some places to check out. Note these are categorized...
.NET Security Blog
Signing Assemblies With C# in Whidbey
Posted
over 9 years ago
by
shawnfa
16
Comments
You may be in for a surprise when you try to rebuild your strongly named assemblies written in C# under Whidbey for the first time. If you're using the AssemblyKeyFile attribute, you'll get a warning similar to this: signed.cs(4,11): warning CS1699...
.NET Security Blog
Searching for Custom ID Tags With Signed XML
Posted
over 9 years ago
by
shawnfa
16
Comments
Last week, I blogged about using references to sign only specific parts of an XML document. The biggest limitation with doing this is that you must refer to the nodes that are being signed by ID, which for v1.1 and 1.0 of the framework was given by an...
Page 1 of 15 (368 items)
1
2
3
4
5
»