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

more software signatures #1301

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
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