Skip to content

Commit

Permalink
Removed old unsorted doc and updated the taxonomy functions for the s…
Browse files Browse the repository at this point in the history
…can_exchange report.
  • Loading branch information
elsif2 committed Nov 16, 2023
1 parent 307386d commit ac04471
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
24 changes: 0 additions & 24 deletions docs/unsorted/shadowserver.md

This file was deleted.

10 changes: 5 additions & 5 deletions intelmq/bots/parsers/shadowserver/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,19 +263,19 @@ def force_base64(value: Optional[str]) -> Optional[str]:


def scan_exchange_taxonomy(field):
if field == 'exchange;webshell':
if 'webshell' in field:
return 'intrusions'
return 'vulnerable'


def scan_exchange_type(field):
if field == 'exchange;webshell':
if 'webshell' in field:
return 'system-compromise'
return 'infected-system'
return 'vulnerable-system'


def scan_exchange_identifier(field):
if field == 'exchange;webshell':
if 'webshell' in field:
return 'exchange-server-webshell'
return 'vulnerable-exchange-server'

Expand Down Expand Up @@ -321,7 +321,7 @@ def reload():
return
else:
if not __config.test_mode:
raise ValueError("The schema file does not exist.")
raise ValueError("The schema file does not exist: %r.", __config.schema_file)

if __config.schema_mtime == 0.0 and mtime == 0.0 and __config.auto_update:
update_schema()
Expand Down

0 comments on commit ac04471

Please sign in to comment.