Skip to content

Commit

Permalink
feat(expand-configuration): update nethvoice whitelist for HTTP probi…
Browse files Browse the repository at this point in the history
…ng and remove deprecated file
  • Loading branch information
stephdl committed Jan 17, 2025
1 parent 9a31baa commit f5e8e81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion imageroot/bin/expand-configuration
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ if whitelists:
## expand the tainted configuration files
os.makedirs("crowdsec_config/hub/parsers/s01-parse/crowdsecurity", exist_ok=True)
shutil.copyfile("../tainted/nextcloud-logs.yaml", "crowdsec_config/hub/parsers/s01-parse/crowdsecurity/nextcloud-logs.yaml")
shutil.copyfile("../tainted/nethvoice-whitelist.yaml", "crowdsec_config/hub/parsers/s02-enrich/crowdsecurity/nethvoice-whitelist.yaml")
shutil.copyfile("../tainted/nethvoice-whitelist-http-probing.yaml", "crowdsec_config/parsers/s02-enrich/nethvoice-whitelist-http-probing.yaml")
2 changes: 2 additions & 0 deletions imageroot/tainted/nethvoice-whitelist-http-probing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ whitelist:
- evt.Meta.http_status == '404' && evt.Meta.http_verb == 'GET' && evt.Meta.http_path contains '/freepbx/rest/mobiles'
- evt.Meta.http_status == '404' && evt.Meta.http_verb == 'GET' && evt.Meta.http_path contains '/freepbx/rest/nethlink'
- evt.Meta.http_status == '404' && evt.Meta.http_verb == 'GET' && evt.Meta.http_path contains '/freepbx/rest/mobileapp/'
- evt.Meta.http_status == '403' && evt.Meta.http_verb == 'GET' && evt.Meta.http_path contains '/freepbx/rest/migration'
- evt.Meta.http_status == '403' && evt.Meta.http_verb == 'GET' && evt.Meta.http_path contains '/freepbx/rest/login' # dangerous, this field is done by a user that has not been authenticated
11 changes: 0 additions & 11 deletions imageroot/tainted/nethvoice-whitelist.yaml

This file was deleted.

0 comments on commit f5e8e81

Please sign in to comment.