mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Merge remote-tracking branch 'origin/topic/vladg/cryptoapi'
* origin/topic/vladg/cryptoapi: Add Windows detection based on CryptoAPI HTTP traffic as a software framework policy script.
This commit is contained in:
commit
d17aedcc44
54 changed files with 1775 additions and 367 deletions
20
scripts/policy/protocols/mysql/software.bro
Normal file
20
scripts/policy/protocols/mysql/software.bro
Normal file
|
@ -0,0 +1,20 @@
|
|||
##! Software identification and extraction for MySQL traffic.
|
||||
|
||||
@load base/frameworks/software
|
||||
|
||||
module MySQL;
|
||||
|
||||
export {
|
||||
redef enum Software::Type += {
|
||||
## Identifier for MySQL servers in the software framework.
|
||||
SERVER,
|
||||
};
|
||||
}
|
||||
|
||||
event mysql_server_version(c: connection, ver: string)
|
||||
{
|
||||
if ( ver == "" )
|
||||
return;
|
||||
|
||||
Software::found(c$id, [$unparsed_version=ver, $host=c$id$resp_h, $software_type=SERVER]);
|
||||
}
|
|
@ -65,7 +65,7 @@ event ssl_dh_server_params(c: connection, p: string, q: string, Ys: string) &pri
|
|||
if ( ! addr_matches_host(c$id$resp_h, notify_weak_keys) )
|
||||
return;
|
||||
|
||||
local key_length = |Ys| * 8; # key length in bits
|
||||
local key_length = |p| * 8; # length of the used prime number in bits
|
||||
|
||||
if ( key_length < notify_minimal_key_length )
|
||||
NOTICE([$note=Weak_Key,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue