|
9 | 9 | from ipaddress import ip_address, ip_network
|
10 | 10 | from typing import Any, List, Optional, Sequence, Union
|
11 | 11 |
|
12 |
| -import panther_base_helpers_old |
13 | 12 | from dateutil import parser
|
14 | 13 |
|
15 | 14 | # # # # # # # # # # # # # #
|
@@ -353,139 +352,3 @@ def pantherflow_investigation(event, interval="30m"):
|
353 | 352 | query += "| sort p_event_time"
|
354 | 353 |
|
355 | 354 | return query
|
356 |
| - |
357 |
| - |
358 |
| -# panther_base_helpers.GSUITE_PARAMETER_VALUES is DEPRECATED!!! |
359 |
| -# Instead use panther_gsuite_helpers.GSUITE_PARAMETER_VALUES |
360 |
| -GSUITE_PARAMETER_VALUES = panther_base_helpers_old.GSUITE_PARAMETER_VALUES |
361 |
| - |
362 |
| - |
363 |
| -def gsuite_parameter_lookup(parameters, key): |
364 |
| - """Global `gsuite_parameter_lookup` is DEPRECATED. |
365 |
| - Instead, use `from panther_gsuite_helpers import gsuite_parameter_lookup`.""" |
366 |
| - return panther_base_helpers_old.gsuite_parameter_lookup(parameters, key) |
367 |
| - |
368 |
| - |
369 |
| -def gsuite_details_lookup(detail_type, detail_names, event): |
370 |
| - """Global `gsuite_details_lookup` is DEPRECATED. |
371 |
| - Instead, use `from panther_gsuite_helpers import gsuite_details_lookup`.""" |
372 |
| - return panther_base_helpers_old.gsuite_details_lookup(detail_type, detail_names, event) |
373 |
| - |
374 |
| - |
375 |
| -# panther_base_helpers.ZENDESK_CHANGE_DESCRIPTION is DEPRECATED!!! |
376 |
| -# Instead use panther_zendesk_helpers.ZENDESK_CHANGE_DESCRIPTION |
377 |
| -ZENDESK_CHANGE_DESCRIPTION = panther_base_helpers_old.ZENDESK_CHANGE_DESCRIPTION |
378 |
| -# panther_base_helpers.ZENDESK_APP_ROLE_ASSIGNED is DEPRECATED!!! |
379 |
| -# Instead use panther_zendesk_helpers.ZENDESK_APP_ROLE_ASSIGNED |
380 |
| -ZENDESK_APP_ROLE_ASSIGNED = panther_base_helpers_old.ZENDESK_APP_ROLE_ASSIGNED |
381 |
| -# panther_base_helpers.ZENDESK_ROLE_ASSIGNED is DEPRECATED!!! |
382 |
| -# Instead use panther_zendesk_helpers.ZENDESK_ROLE_ASSIGNED |
383 |
| -ZENDESK_ROLE_ASSIGNED = panther_base_helpers_old.ZENDESK_ROLE_ASSIGNED |
384 |
| - |
385 |
| - |
386 |
| -def zendesk_get_roles(event): |
387 |
| - """Global `zendesk_get_roles` is DEPRECATED. |
388 |
| - Instead, use `from panther_zendesk_helpers import zendesk_get_roles`.""" |
389 |
| - return panther_base_helpers_old.zendesk_get_roles(event) |
390 |
| - |
391 |
| - |
392 |
| -def box_parse_additional_details(event: dict): |
393 |
| - """Global `box_parse_additional_details` is DEPRECATED. |
394 |
| - Instead, use `from panther_box_helpers import box_parse_additional_details`.""" |
395 |
| - return panther_base_helpers_old.box_parse_additional_details(event) |
396 |
| - |
397 |
| - |
398 |
| -def okta_alert_context(event: dict): |
399 |
| - """Global `okta_alert_context` is DEPRECATED. |
400 |
| - Instead, use `from panther_okta_helpers import okta_alert_context`.""" |
401 |
| - return panther_base_helpers_old.okta_alert_context(event) |
402 |
| - |
403 |
| - |
404 |
| -def crowdstrike_detection_alert_context(event: dict): |
405 |
| - """Global `crowdstrike_detection_alert_context` is DEPRECATED. |
406 |
| - Instead, use `from panther_crowdstrike_fdr_helpers import crowdstrike_detection_alert_context`. |
407 |
| - """ |
408 |
| - return panther_base_helpers_old.crowdstrike_detection_alert_context(event) |
409 |
| - |
410 |
| - |
411 |
| -def crowdstrike_process_alert_context(event: dict): |
412 |
| - """Global `crowdstrike_process_alert_context` is DEPRECATED. |
413 |
| - Instead, use `from panther_crowdstrike_fdr_helpers import crowdstrike_process_alert_context`. |
414 |
| - """ |
415 |
| - return panther_base_helpers_old.crowdstrike_process_alert_context(event) |
416 |
| - |
417 |
| - |
418 |
| -def crowdstrike_network_detection_alert_context(event: dict): |
419 |
| - """Global `crowdstrike_network_detection_alert_context` is DEPRECATED. |
420 |
| - Instead, use `from panther_crowdstrike_fdr_helpers |
421 |
| - import crowdstrike_network_detection_alert_context`. |
422 |
| - """ |
423 |
| - return panther_base_helpers_old.crowdstrike_network_detection_alert_context(event) |
424 |
| - |
425 |
| - |
426 |
| -def filter_crowdstrike_fdr_event_type(event, name: str) -> bool: |
427 |
| - """Global `filter_crowdstrike_fdr_event_type` is DEPRECATED. |
428 |
| - Instead, use `from panther_crowdstrike_fdr_helpers import filter_crowdstrike_fdr_event_type`. |
429 |
| - """ |
430 |
| - return panther_base_helpers_old.filter_crowdstrike_fdr_event_type(event, name) |
431 |
| - |
432 |
| - |
433 |
| -def get_crowdstrike_field(event, field_name, default=None): |
434 |
| - """Global `get_crowdstrike_field` is DEPRECATED. |
435 |
| - Instead, use `from panther_crowdstrike_fdr_helpers import get_crowdstrike_field`. |
436 |
| - """ |
437 |
| - return panther_base_helpers_old.get_crowdstrike_field(event, field_name, default) |
438 |
| - |
439 |
| - |
440 |
| -def slack_alert_context(event): |
441 |
| - """Global `slack_alert_context` is DEPRECATED. |
442 |
| - Instead, use `from panther_slack_helpers import slack_alert_context`.""" |
443 |
| - return panther_base_helpers_old.slack_alert_context(event) |
444 |
| - |
445 |
| - |
446 |
| -def github_alert_context(event): |
447 |
| - """Global `github_alert_context` is DEPRECATED. |
448 |
| - Instead, use `from panther_github_helpers import github_alert_context`.""" |
449 |
| - return panther_base_helpers_old.github_alert_context(event) |
450 |
| - |
451 |
| - |
452 |
| -def aws_strip_role_session_id(user_identity_arn): |
453 |
| - """Global `aws_strip_role_session_id` is DEPRECATED. |
454 |
| - Instead, use `from panther_aws_helpers import aws_strip_role_session_id`.""" |
455 |
| - return panther_base_helpers_old.aws_strip_role_session_id(user_identity_arn) |
456 |
| - |
457 |
| - |
458 |
| -def aws_rule_context(event: dict): |
459 |
| - """Global `aws_rule_context` is DEPRECATED. |
460 |
| - Instead, use `from panther_aws_helpers import aws_rule_context`.""" |
461 |
| - return panther_base_helpers_old.aws_rule_context(event) |
462 |
| - |
463 |
| - |
464 |
| -def aws_guardduty_context(event: dict): |
465 |
| - """Global `aws_guardduty_context` is DEPRECATED. |
466 |
| - Instead, use `from panther_aws_helpers import aws_guardduty_context`.""" |
467 |
| - return panther_base_helpers_old.aws_guardduty_context(event) |
468 |
| - |
469 |
| - |
470 |
| -def eks_panther_obj_ref(event): |
471 |
| - """Global `eks_panther_obj_ref` is DEPRECATED. |
472 |
| - Instead, use `from panther_aws_helpers import eks_panther_obj_ref`.""" |
473 |
| - return panther_base_helpers_old.eks_panther_obj_ref(event) |
474 |
| - |
475 |
| - |
476 |
| -def get_binding_deltas(event): |
477 |
| - """Global `get_binding_deltas` is DEPRECATED. |
478 |
| - Instead, use `from panther_gcp_helpers import get_binding_deltas`.""" |
479 |
| - return panther_base_helpers_old.get_binding_deltas(event) |
480 |
| - |
481 |
| - |
482 |
| -def msft_graph_alert_context(event): |
483 |
| - """Global `msft_graph_alert_context` is DEPRECATED. |
484 |
| - Instead, use `from panther_msft_helpers import msft_graph_alert_context`.""" |
485 |
| - return panther_base_helpers_old.msft_graph_alert_context(event) |
486 |
| - |
487 |
| - |
488 |
| -def m365_alert_context(event): |
489 |
| - """Global `m365_alert_context` is DEPRECATED. |
490 |
| - Instead, use `from panther_msft_helpers import m365_alert_context`.""" |
491 |
| - return panther_base_helpers_old.m365_alert_context(event) |
0 commit comments