Skip to content

Commit

Permalink
feat: added some software signatures (mbed TLS, file, opkg)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstucke committed Nov 18, 2024
1 parent 86a6b3f commit 7696794
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/plugins/analysis/software_components/signatures/crypto.yara
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
rule mbed_TLS {
meta:
software_name = "mbed TLS"
open_source = true
website = "https://github.com/Mbed-TLS/mbedtls"
description = "embedded library for cryptography, X.509 certificate manipulation and the SSL/TLS and DTLS protocols"
strings:
$a = /mbed TLS \d+\.\d+\.\d+/ ascii
condition:
$a and no_text_file
}

rule OpenSSL
{
meta:
Expand All @@ -24,4 +36,3 @@ rule SSLeay
condition:
$a and no_text_file
}

29 changes: 29 additions & 0 deletions src/plugins/analysis/software_components/signatures/software.yara
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,35 @@ rule jQuery
$a
}

rule libmagic_file {
meta:
software_name = "file"
open_source = true
website = "https://www.darwinsys.com/file/"
description = "file type guesser"
version_regex = "\\d\\.\\d+"
format_string = true
strings:
$a = "%s-%s" ascii
$b = "File: file.c,v" ascii
condition:
$a and $b
}

rule OPKG {
meta:
software_name = "OPKG"
open_source = true
website = "https://openwrt.org/docs/guide-user/additional-software/opkg"
description = "Opkg lightweight embedded package manager"
version_regex = "[0-9a-z]{40} \\(\\d{4}-\\d{2}-\\d{2}\\)"
strings:
$a = "opkg version %s\n" nocase ascii
$b = /[0-9a-z]{40} \(\d{4}-\d{2}-\d{2}\)/ ascii
condition:
$a and $b
}

rule Perl
{
meta:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ libpcap version 1.5.2
libsqlite3-3.8.11.1.so
libupnp-1.6.18
lighttpd-1.4.18
mbed TLS 2.16.3
nc -h for help
netatalk-2.2.0
nginx version: nginx/1.13.3
Expand Down

0 comments on commit 7696794

Please sign in to comment.