Skip to content

Commit

Permalink
feat: Added a basic C++ and MSVC detector yara signature
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Feb 22, 2024
1 parent daf007f commit e28b72e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions plugins/yara_rules/romfs/rules/language.yar
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
rule CppExecutable {
meta:
category = "Programming Language"
name = "C++"

strings:
$exception_windows = "_CxxThrowException" ascii fullword
$iostreams = "iostream" ascii
condition:
any of them
}

rule CppMSVC {
meta:
category = "Compiler"
name = "MSVC"

strings:
$iostreams_mangled_name = "$basic_iostream@DU" ascii
$std_namespace = "@@std@@" ascii
condition:
any of them and CppExecutable
}

0 comments on commit e28b72e

Please sign in to comment.