mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
policy: Use literal dots for patterns used against content-type and hostname
The following two patterns were identified while reviewing patterns that match on any characters. The intention likely was to match actual literal dots.
This commit is contained in:
parent
d957f883df
commit
c4970e6d4a
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ export {
|
|||
|
||||
## File types to attempt matching against the Malware Hash Registry.
|
||||
option match_file_types = /application\/x-dosexec/ |
|
||||
/application\/vnd.ms-cab-compressed/ |
|
||||
/application\/vnd\.ms-cab-compressed/ |
|
||||
/application\/pdf/ |
|
||||
/application\/x-shockwave-flash/ |
|
||||
/application\/x-java-applet/ |
|
||||
|
|
|
@ -54,7 +54,7 @@ export {
|
|||
|
||||
event HTTP::log_http(rec: HTTP::Info) &priority=5
|
||||
{
|
||||
if ( rec?$host && rec?$user_agent && /crl.microsoft.com/ in rec$host &&
|
||||
if ( rec?$host && rec?$user_agent && /crl\.microsoft\.com/ in rec$host &&
|
||||
/Microsoft-CryptoAPI\// in rec$user_agent )
|
||||
{
|
||||
if ( rec$user_agent !in crypto_api_mapping )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue