dotnet / dotnet/sdk

Secure by default attribute and analyzers

Open
#45,658 1 comment 0 reactions 1 assignee Claimed by @baronfel View on GitHub
Area-NetSDK untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Is your feature request related to a problem?
With «secure by default» being pushed more and more, and «insecure» still having to be supported for whatever legacy or compatibility reason, there could be a benefit in having a standardized way of giving warnings when you are not using the default approach.

The issue might be that an sdk, either internal to microsoft or external, follows best practices and implements secure by default, but the users of the sdks arent fully aware of the consequences of overriding this behavior. This can ofcourse be mitigated though shipping their own analyzers (high effort) or good documentation (less visible), but a standardized approach might be beneficial here.

### Describe the solution you'd like
Might need investigation and usage analysis, but an example would be a (dotnet provided) attribute that can be added to extension methods, and a (dotnet provided) analyzer giving warnings on the usage of them.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.