Skip to content

Adopt Semgrep for C# and .NET

Proposal

There was a recent announcement of C# in GA for Semgrep. This issue proposes to adopt Semgrep for C#/.NET scanning:

  • Consistent with the shift of other language support (python, js, php, go) going to semgrep
  • Less complexity compared to security-code-scan:
    • No need to build .net application in a mono environment
    • Automatic multi-project support with Semgrep
  • Support sales motions and less friction in evaluations

C#/.NET Rules - https://semgrep.dev/r?lang=C%23

Questions:

  1. Should security-code-scan be deprecated in 15.0 in favor of semgrep rules?
  2. Are the current rules implemented provide sufficient coverage? Gaps that we can contribute to?
  3. What .NET framework/versions are captured in the rule registry?

Additional notes

Steps

Edited by Zach Rice