Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address Sonarqube SonarAnalyzer.CSharp.dll finding #719

Merged
merged 7 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions rules/false_positives/sonarqube.yara
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,18 @@ rule sonarqube_tutorial_app: override {
condition:
filesize < 192KB and all of them
}

rule sonar_analyzer_override: override {
meta:
description = "SonarQube SonarAnalyzer.CSharp.dll"
COD3NYM_SUSP_OBF_NET_Reactor_Indicators_Jan24 = "medium"

strings:
$ = "SonarAnalyzer" fullword
$ = "SonarAnalysisContextBase" fullword
$ = "SonarCodeFixContext" fullword
$ = "https://www.sonarsource.com"

condition:
filesize > 1MB and filesize < 6MB and any of them
}
7 changes: 7 additions & 0 deletions tests/windows/clean/System.Reflection.Metadata.dll.simple
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# windows/clean/System.Reflection.Metadata.dll: medium
c2/tool_transfer/os: low
crypto/public_key: low
crypto/rc4: low
fs/file/read: low
net/http/websocket: medium
net/url/embedded: low
Loading