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
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
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
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
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
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
Whidbey's New SecurityException
Posted
over 9 years ago
by
shawnfa
14
Comments
One of the more difficult things to debug with .NET 1.0 and 1.1 is the security exception. With these frameworks generally the only information that you got was the state of the failed permission. Due to the complexity of debugging security problems,...
.NET Security Blog
Adding a UAC Manifest to Managed Code
Posted
over 7 years ago
by
shawnfa
12
Comments
The UAC feature of Vista is one of my favorite new features -- it really makes running as a non-admin much less painful than it has been in the past. One of the requirements that UAC puts on developers is that we must mark our applications with manifests...
.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
The Differences Between Rijndael and AES
Posted
over 7 years ago
by
shawnfa
9
Comments
When you need to write managed code that encrypts or decrypts data according to the AES standard, most people just plug the RijndaelManaged class in and go on their way. After all, Rijndael was the winner of the NIST competition to select the algorithm...
.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
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
The Silverlight Security Model
Posted
over 6 years ago
by
shawnfa
12
Comments
You may have heard a thing or two last week about a little project we like to call Silverlight , including a small version of the CLR that will run in the browser on both Windows and the Mac. (If you haven't grabbed the Silverlight v1.1 alpha bits yet...
.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
What's New in Security for v2.0
Posted
over 8 years ago
by
shawnfa
10
Comments
There's a ton of new and enhanced security features coming with the v2.0 release of the CLR. However, finding a definitive list of them all can be a somewhat challenging task. Dominick Baier has an excellent slide deck detailing some of the changes and...
.NET Security Blog
New ClickOnce Article on MSDN
Posted
over 10 years ago
by
shawnfa
2
Comments
MSDN is hosting a sample chapter from Douncan Mackenzie's upcoming book Essential ClickOnce . Although the chapter doesn't go into the security aspects, such as Permission Elevation or TrustMangers, its still an interesting read. http://msdn...
.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
.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
The Simple Sandboxing API
Posted
over 8 years ago
by
shawnfa
10
Comments
A while back I gave some sample code to show how to setup a sandboxed AppDomain . This technique has worked since v1.0, and will continue to work with Whidbey. However, Whidbey also introduces a simple sandboxing API which eliminates the need for this...
.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
Managed DPAPI Part I: ProtectedData
Posted
over 9 years ago
by
shawnfa
13
Comments
Overview of DPAPI Although APIs such as CAPI and the .NET System.Security.Cryptography classes make using cryptography relatively easy, one of the hardest things to do when implementing a secure cryptographic system is key management. In order to help...
.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...
Page 1 of 15 (368 items)
1
2
3
4
5
»