prowler-cloud 5.12.2__py3-none-any.whl → 5.13.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dashboard/assets/markdown-styles.css +34 -0
- dashboard/compliance/c5_aws.py +43 -0
- dashboard/compliance/ccc_aws.py +36 -0
- dashboard/compliance/ccc_azure.py +36 -0
- dashboard/compliance/ccc_gcp.py +36 -0
- dashboard/compliance/cis_3_0_oci.py +41 -0
- dashboard/pages/overview.py +66 -16
- prowler/CHANGELOG.md +60 -0
- prowler/__main__.py +128 -14
- prowler/compliance/aws/aws_account_security_onboarding_aws.json +1 -0
- prowler/compliance/aws/aws_audit_manager_control_tower_guardrails_aws.json +1 -0
- prowler/compliance/aws/aws_foundational_security_best_practices_aws.json +2 -1
- prowler/compliance/aws/aws_foundational_technical_review_aws.json +1 -0
- prowler/compliance/aws/aws_well_architected_framework_reliability_pillar_aws.json +1 -0
- prowler/compliance/aws/aws_well_architected_framework_security_pillar_aws.json +1 -0
- prowler/compliance/aws/c5_aws.json +10744 -0
- prowler/compliance/aws/ccc_aws.json +6206 -0
- prowler/compliance/aws/cis_1.4_aws.json +1 -0
- prowler/compliance/aws/cis_1.5_aws.json +1 -0
- prowler/compliance/aws/cis_2.0_aws.json +1 -0
- prowler/compliance/aws/cis_3.0_aws.json +1 -0
- prowler/compliance/aws/cis_4.0_aws.json +1 -0
- prowler/compliance/aws/cis_5.0_aws.json +1 -0
- prowler/compliance/aws/cisa_aws.json +1 -0
- prowler/compliance/aws/ens_rd2022_aws.json +1 -0
- prowler/compliance/aws/fedramp_low_revision_4_aws.json +1 -0
- prowler/compliance/aws/fedramp_moderate_revision_4_aws.json +1 -0
- prowler/compliance/aws/ffiec_aws.json +1 -0
- prowler/compliance/aws/gdpr_aws.json +1 -0
- prowler/compliance/aws/gxp_21_cfr_part_11_aws.json +1 -0
- prowler/compliance/aws/gxp_eu_annex_11_aws.json +1 -0
- prowler/compliance/aws/hipaa_aws.json +1 -0
- prowler/compliance/aws/iso27001_2013_aws.json +1 -0
- prowler/compliance/aws/iso27001_2022_aws.json +1 -0
- prowler/compliance/aws/kisa_isms_p_2023_aws.json +1 -0
- prowler/compliance/aws/kisa_isms_p_2023_korean_aws.json +1 -0
- prowler/compliance/aws/mitre_attack_aws.json +287 -11
- prowler/compliance/aws/nis2_aws.json +1 -0
- prowler/compliance/aws/nist_800_171_revision_2_aws.json +1 -0
- prowler/compliance/aws/nist_800_53_revision_4_aws.json +1 -0
- prowler/compliance/aws/nist_800_53_revision_5_aws.json +1 -0
- prowler/compliance/aws/nist_csf_1.1_aws.json +1 -0
- prowler/compliance/aws/pci_3.2.1_aws.json +2 -1
- prowler/compliance/aws/pci_4.0_aws.json +1 -0
- prowler/compliance/aws/prowler_threatscore_aws.json +1 -0
- prowler/compliance/aws/rbi_cyber_security_framework_aws.json +1 -0
- prowler/compliance/aws/soc2_aws.json +1 -0
- prowler/compliance/azure/ccc_azure.json +6147 -0
- prowler/compliance/azure/cis_2.0_azure.json +1 -0
- prowler/compliance/azure/cis_2.1_azure.json +1 -0
- prowler/compliance/azure/cis_3.0_azure.json +1 -0
- prowler/compliance/azure/cis_4.0_azure.json +1 -0
- prowler/compliance/azure/ens_rd2022_azure.json +1 -0
- prowler/compliance/azure/iso27001_2022_azure.json +1 -0
- prowler/compliance/azure/mitre_attack_azure.json +131 -5
- prowler/compliance/azure/nis2_azure.json +1 -0
- prowler/compliance/azure/pci_4.0_azure.json +1 -0
- prowler/compliance/azure/prowler_threatscore_azure.json +1 -0
- prowler/compliance/azure/soc2_azure.json +1 -0
- prowler/compliance/gcp/ccc_gcp.json +6077 -0
- prowler/compliance/gcp/cis_2.0_gcp.json +1 -0
- prowler/compliance/gcp/cis_3.0_gcp.json +1 -0
- prowler/compliance/gcp/cis_4.0_gcp.json +1 -0
- prowler/compliance/gcp/ens_rd2022_gcp.json +1 -0
- prowler/compliance/gcp/iso27001_2022_gcp.json +1 -0
- prowler/compliance/gcp/mitre_attack_gcp.json +287 -11
- prowler/compliance/gcp/nis2_gcp.json +1 -0
- prowler/compliance/gcp/pci_4.0_gcp.json +1 -0
- prowler/compliance/gcp/prowler_threatscore_gcp.json +1 -0
- prowler/compliance/gcp/soc2_gcp.json +1 -0
- prowler/compliance/github/cis_1.0_github.json +1 -0
- prowler/compliance/kubernetes/cis_1.10_kubernetes.json +1 -0
- prowler/compliance/kubernetes/cis_1.11_kubernetes.json +1 -0
- prowler/compliance/kubernetes/cis_1.8_kubernetes.json +1 -0
- prowler/compliance/kubernetes/iso27001_2022_kubernetes.json +1 -0
- prowler/compliance/kubernetes/pci_4.0_kubernetes.json +1 -0
- prowler/compliance/llm/__init__.py +0 -0
- prowler/compliance/m365/cis_4.0_m365.json +1 -0
- prowler/compliance/m365/iso27001_2022_m365.json +1 -0
- prowler/compliance/m365/prowler_threatscore_m365.json +1 -0
- prowler/compliance/nhn/iso27001_2022_nhn.json +1 -0
- prowler/compliance/oci/__init__.py +0 -0
- prowler/compliance/oci/cis_3.0_oci.json +1141 -0
- prowler/config/config.py +5 -1
- prowler/config/llm_config.yaml +175015 -0
- prowler/config/oraclecloud_mutelist_example.yaml +61 -0
- prowler/lib/check/check.py +9 -1
- prowler/lib/check/compliance.py +1 -0
- prowler/lib/check/compliance_models.py +33 -3
- prowler/lib/check/models.py +96 -8
- prowler/lib/check/utils.py +8 -2
- prowler/lib/cli/parser.py +6 -4
- prowler/lib/outputs/compliance/aws_well_architected/aws_well_architected.py +4 -0
- prowler/lib/outputs/compliance/aws_well_architected/models.py +2 -0
- prowler/lib/outputs/compliance/c5/__init__.py +0 -0
- prowler/lib/outputs/compliance/c5/c5.py +98 -0
- prowler/lib/outputs/compliance/c5/c5_aws.py +92 -0
- prowler/lib/outputs/compliance/c5/models.py +30 -0
- prowler/lib/outputs/compliance/ccc/__init__.py +0 -0
- prowler/lib/outputs/compliance/ccc/ccc_aws.py +95 -0
- prowler/lib/outputs/compliance/ccc/ccc_azure.py +95 -0
- prowler/lib/outputs/compliance/ccc/ccc_gcp.py +95 -0
- prowler/lib/outputs/compliance/ccc/models.py +90 -0
- prowler/lib/outputs/compliance/cis/cis_aws.py +4 -0
- prowler/lib/outputs/compliance/cis/cis_azure.py +4 -0
- prowler/lib/outputs/compliance/cis/cis_gcp.py +4 -0
- prowler/lib/outputs/compliance/cis/cis_github.py +4 -0
- prowler/lib/outputs/compliance/cis/cis_kubernetes.py +4 -0
- prowler/lib/outputs/compliance/cis/cis_m365.py +4 -0
- prowler/lib/outputs/compliance/cis/cis_oci.py +106 -0
- prowler/lib/outputs/compliance/cis/models.py +56 -0
- prowler/lib/outputs/compliance/compliance.py +10 -0
- prowler/lib/outputs/compliance/compliance_output.py +4 -1
- prowler/lib/outputs/compliance/ens/ens_aws.py +4 -0
- prowler/lib/outputs/compliance/ens/ens_azure.py +4 -0
- prowler/lib/outputs/compliance/ens/ens_gcp.py +4 -0
- prowler/lib/outputs/compliance/ens/models.py +6 -0
- prowler/lib/outputs/compliance/generic/generic.py +4 -0
- prowler/lib/outputs/compliance/generic/models.py +2 -0
- prowler/lib/outputs/compliance/iso27001/iso27001_aws.py +4 -0
- prowler/lib/outputs/compliance/iso27001/iso27001_azure.py +4 -0
- prowler/lib/outputs/compliance/iso27001/iso27001_gcp.py +4 -0
- prowler/lib/outputs/compliance/iso27001/iso27001_kubernetes.py +4 -0
- prowler/lib/outputs/compliance/iso27001/iso27001_m365.py +4 -0
- prowler/lib/outputs/compliance/iso27001/iso27001_nhn.py +4 -0
- prowler/lib/outputs/compliance/iso27001/models.py +12 -0
- prowler/lib/outputs/compliance/kisa_ismsp/kisa_ismsp_aws.py +4 -0
- prowler/lib/outputs/compliance/kisa_ismsp/models.py +2 -0
- prowler/lib/outputs/compliance/mitre_attack/mitre_attack_aws.py +4 -0
- prowler/lib/outputs/compliance/mitre_attack/mitre_attack_azure.py +4 -0
- prowler/lib/outputs/compliance/mitre_attack/mitre_attack_gcp.py +4 -0
- prowler/lib/outputs/compliance/mitre_attack/models.py +6 -0
- prowler/lib/outputs/compliance/prowler_threatscore/models.py +8 -0
- prowler/lib/outputs/compliance/prowler_threatscore/prowler_threatscore.py +46 -4
- prowler/lib/outputs/compliance/prowler_threatscore/prowler_threatscore_aws.py +4 -0
- prowler/lib/outputs/compliance/prowler_threatscore/prowler_threatscore_azure.py +4 -0
- prowler/lib/outputs/compliance/prowler_threatscore/prowler_threatscore_gcp.py +4 -0
- prowler/lib/outputs/compliance/prowler_threatscore/prowler_threatscore_m365.py +4 -0
- prowler/lib/outputs/csv/csv.py +3 -0
- prowler/lib/outputs/finding.py +22 -0
- prowler/lib/outputs/html/html.py +192 -7
- prowler/lib/outputs/jira/jira.py +284 -47
- prowler/lib/outputs/ocsf/ocsf.py +1 -4
- prowler/lib/outputs/outputs.py +6 -0
- prowler/lib/outputs/summary_table.py +10 -0
- prowler/providers/aws/aws_regions_by_service.json +221 -44
- prowler/providers/aws/lib/quick_inventory/quick_inventory.py +3 -0
- prowler/providers/aws/lib/security_hub/security_hub.py +12 -2
- prowler/providers/aws/services/accessanalyzer/accessanalyzer_enabled/accessanalyzer_enabled.metadata.json +27 -13
- prowler/providers/aws/services/accessanalyzer/accessanalyzer_enabled_without_findings/accessanalyzer_enabled_without_findings.metadata.json +32 -13
- prowler/providers/aws/services/account/account_maintain_current_contact_details/account_maintain_current_contact_details.metadata.json +23 -11
- prowler/providers/aws/services/account/account_maintain_different_contact_details_to_security_billing_and_operations/account_maintain_different_contact_details_to_security_billing_and_operations.metadata.json +24 -12
- prowler/providers/aws/services/account/account_security_contact_information_is_registered/account_security_contact_information_is_registered.metadata.json +19 -11
- prowler/providers/aws/services/account/account_security_questions_are_registered_in_the_aws_account/account_security_questions_are_registered_in_the_aws_account.metadata.json +14 -10
- prowler/providers/aws/services/acm/acm_certificates_expiration_check/acm_certificates_expiration_check.metadata.json +17 -9
- prowler/providers/aws/services/acm/acm_certificates_transparency_logs_enabled/acm_certificates_transparency_logs_enabled.metadata.json +16 -12
- prowler/providers/aws/services/acm/acm_certificates_with_secure_key_algorithms/acm_certificates_with_secure_key_algorithms.metadata.json +21 -12
- prowler/providers/aws/services/apigateway/apigateway_restapi_authorizers_enabled/apigateway_restapi_authorizers_enabled.metadata.json +23 -16
- prowler/providers/aws/services/apigateway/apigateway_restapi_cache_encrypted/apigateway_restapi_cache_encrypted.metadata.json +22 -12
- prowler/providers/aws/services/apigateway/apigateway_restapi_client_certificate_enabled/apigateway_restapi_client_certificate_enabled.metadata.json +26 -18
- prowler/providers/aws/services/apigateway/apigateway_restapi_logging_enabled/apigateway_restapi_logging_enabled.metadata.json +30 -19
- prowler/providers/aws/services/apigateway/apigateway_restapi_public/apigateway_restapi_public.metadata.json +24 -16
- prowler/providers/aws/services/apigateway/apigateway_restapi_public_with_authorizer/apigateway_restapi_public_with_authorizer.metadata.json +31 -18
- prowler/providers/aws/services/apigateway/apigateway_restapi_tracing_enabled/apigateway_restapi_tracing_enabled.metadata.json +20 -12
- prowler/providers/aws/services/apigateway/apigateway_restapi_waf_acl_attached/apigateway_restapi_waf_acl_attached.metadata.json +24 -18
- prowler/providers/aws/services/apigatewayv2/apigatewayv2_api_access_logging_enabled/apigatewayv2_api_access_logging_enabled.metadata.json +18 -12
- prowler/providers/aws/services/apigatewayv2/apigatewayv2_api_authorizers_enabled/apigatewayv2_api_authorizers_enabled.metadata.json +21 -12
- prowler/providers/aws/services/appstream/appstream_fleet_default_internet_access_disabled/appstream_fleet_default_internet_access_disabled.metadata.json +23 -15
- prowler/providers/aws/services/appstream/appstream_fleet_maximum_session_duration/appstream_fleet_maximum_session_duration.metadata.json +15 -12
- prowler/providers/aws/services/appstream/appstream_fleet_session_disconnect_timeout/appstream_fleet_session_disconnect_timeout.metadata.json +17 -14
- prowler/providers/aws/services/appstream/appstream_fleet_session_idle_disconnect_timeout/appstream_fleet_session_idle_disconnect_timeout.metadata.json +20 -15
- prowler/providers/aws/services/appsync/appsync_field_level_logging_enabled/appsync_field_level_logging_enabled.metadata.json +21 -12
- prowler/providers/aws/services/appsync/appsync_graphql_api_no_api_key_authentication/appsync_graphql_api_no_api_key_authentication.metadata.json +20 -13
- prowler/providers/aws/services/athena/athena_workgroup_encryption/athena_workgroup_encryption.metadata.json +24 -12
- prowler/providers/aws/services/athena/athena_workgroup_enforce_configuration/athena_workgroup_enforce_configuration.metadata.json +20 -13
- prowler/providers/aws/services/athena/athena_workgroup_logging_enabled/athena_workgroup_logging_enabled.metadata.json +21 -12
- prowler/providers/aws/services/autoscaling/autoscaling_find_secrets_ec2_launch_configuration/autoscaling_find_secrets_ec2_launch_configuration.metadata.json +15 -10
- prowler/providers/aws/services/autoscaling/autoscaling_group_capacity_rebalance_enabled/autoscaling_group_capacity_rebalance_enabled.metadata.json +20 -13
- prowler/providers/aws/services/autoscaling/autoscaling_group_elb_health_check_enabled/autoscaling_group_elb_health_check_enabled.metadata.json +20 -12
- prowler/providers/aws/services/autoscaling/autoscaling_group_launch_configuration_no_public_ip/autoscaling_group_launch_configuration_no_public_ip.metadata.json +20 -13
- prowler/providers/aws/services/autoscaling/autoscaling_group_launch_configuration_requires_imdsv2/autoscaling_group_launch_configuration_requires_imdsv2.metadata.json +26 -14
- prowler/providers/aws/services/autoscaling/autoscaling_group_multiple_az/autoscaling_group_multiple_az.metadata.json +22 -13
- prowler/providers/aws/services/autoscaling/autoscaling_group_multiple_instance_types/autoscaling_group_multiple_instance_types.metadata.json +21 -13
- prowler/providers/aws/services/autoscaling/autoscaling_group_using_ec2_launch_template/autoscaling_group_using_ec2_launch_template.metadata.json +19 -12
- prowler/providers/aws/services/autoscaling/autoscaling_service.py +1 -1
- prowler/providers/aws/services/awslambda/awslambda_function_inside_vpc/awslambda_function_inside_vpc.metadata.json +26 -13
- prowler/providers/aws/services/awslambda/awslambda_function_invoke_api_operations_cloudtrail_logging_enabled/awslambda_function_invoke_api_operations_cloudtrail_logging_enabled.metadata.json +20 -13
- prowler/providers/aws/services/awslambda/awslambda_function_no_secrets_in_code/awslambda_function_no_secrets_in_code.metadata.json +18 -9
- prowler/providers/aws/services/awslambda/awslambda_function_no_secrets_in_variables/awslambda_function_no_secrets_in_variables.metadata.json +20 -12
- prowler/providers/aws/services/awslambda/awslambda_function_not_publicly_accessible/awslambda_function_not_publicly_accessible.metadata.json +21 -12
- prowler/providers/aws/services/awslambda/awslambda_function_url_cors_policy/awslambda_function_url_cors_policy.metadata.json +24 -13
- prowler/providers/aws/services/awslambda/awslambda_function_url_public/awslambda_function_url_public.metadata.json +22 -12
- prowler/providers/aws/services/awslambda/awslambda_function_using_supported_runtimes/awslambda_function_using_supported_runtimes.metadata.json +24 -13
- prowler/providers/aws/services/awslambda/awslambda_function_vpc_multi_az/awslambda_function_vpc_multi_az.metadata.json +23 -13
- prowler/providers/aws/services/backup/backup_plans_exist/backup_plans_exist.metadata.json +22 -15
- prowler/providers/aws/services/backup/backup_recovery_point_encrypted/backup_recovery_point_encrypted.metadata.json +21 -12
- prowler/providers/aws/services/backup/backup_reportplans_exist/backup_reportplans_exist.metadata.json +19 -15
- prowler/providers/aws/services/backup/backup_vaults_encrypted/backup_vaults_encrypted.metadata.json +24 -13
- prowler/providers/aws/services/backup/backup_vaults_exist/backup_vaults_exist.metadata.json +19 -15
- prowler/providers/aws/services/cloudformation/cloudformation_stack_cdktoolkit_bootstrap_version/cloudformation_stack_cdktoolkit_bootstrap_version.metadata.json +24 -13
- prowler/providers/aws/services/cloudformation/cloudformation_stack_outputs_find_secrets/cloudformation_stack_outputs_find_secrets.metadata.json +22 -12
- prowler/providers/aws/services/cloudformation/cloudformation_stacks_termination_protection_enabled/cloudformation_stacks_termination_protection_enabled.metadata.json +21 -12
- prowler/providers/aws/services/cloudfront/cloudfront_distributions_custom_ssl_certificate/cloudfront_distributions_custom_ssl_certificate.metadata.json +21 -12
- prowler/providers/aws/services/cloudfront/cloudfront_distributions_default_root_object/cloudfront_distributions_default_root_object.metadata.json +19 -12
- prowler/providers/aws/services/cloudfront/cloudfront_distributions_field_level_encryption_enabled/cloudfront_distributions_field_level_encryption_enabled.metadata.json +19 -12
- prowler/providers/aws/services/cloudfront/cloudfront_distributions_geo_restrictions_enabled/cloudfront_distributions_geo_restrictions_enabled.metadata.json +22 -13
- prowler/providers/aws/services/cloudfront/cloudfront_distributions_https_enabled/cloudfront_distributions_https_enabled.metadata.json +21 -12
- prowler/providers/aws/services/cloudfront/cloudfront_distributions_https_sni_enabled/cloudfront_distributions_https_sni_enabled.metadata.json +20 -12
- prowler/providers/aws/services/cloudfront/cloudfront_distributions_logging_enabled/cloudfront_distributions_logging_enabled.metadata.json +22 -13
- prowler/providers/aws/services/cloudfront/cloudfront_distributions_multiple_origin_failover_configured/cloudfront_distributions_multiple_origin_failover_configured.metadata.json +21 -16
- prowler/providers/aws/services/cloudfront/cloudfront_distributions_origin_traffic_encrypted/cloudfront_distributions_origin_traffic_encrypted.metadata.json +27 -14
- prowler/providers/aws/services/cloudfront/cloudfront_distributions_s3_origin_access_control/cloudfront_distributions_s3_origin_access_control.metadata.json +24 -14
- prowler/providers/aws/services/cloudfront/cloudfront_distributions_s3_origin_non_existent_bucket/cloudfront_distributions_s3_origin_non_existent_bucket.metadata.json +18 -11
- prowler/providers/aws/services/cloudfront/cloudfront_distributions_using_deprecated_ssl_protocols/cloudfront_distributions_using_deprecated_ssl_protocols.metadata.json +20 -12
- prowler/providers/aws/services/cloudfront/cloudfront_distributions_using_waf/cloudfront_distributions_using_waf.metadata.json +21 -12
- prowler/providers/aws/services/cloudtrail/cloudtrail_bucket_requires_mfa_delete/cloudtrail_bucket_requires_mfa_delete.metadata.json +16 -11
- prowler/providers/aws/services/cloudtrail/cloudtrail_cloudwatch_logging_enabled/cloudtrail_cloudwatch_logging_enabled.metadata.json +19 -15
- prowler/providers/aws/services/cloudtrail/cloudtrail_insights_exist/cloudtrail_insights_exist.metadata.json +19 -14
- prowler/providers/aws/services/cloudtrail/cloudtrail_kms_encryption_enabled/cloudtrail_kms_encryption_enabled.metadata.json +19 -14
- prowler/providers/aws/services/cloudtrail/cloudtrail_log_file_validation_enabled/cloudtrail_log_file_validation_enabled.metadata.json +20 -13
- prowler/providers/aws/services/cloudtrail/cloudtrail_logs_s3_bucket_access_logging_enabled/cloudtrail_logs_s3_bucket_access_logging_enabled.metadata.json +18 -13
- prowler/providers/aws/services/cloudtrail/cloudtrail_logs_s3_bucket_is_not_publicly_accessible/cloudtrail_logs_s3_bucket_is_not_publicly_accessible.metadata.json +24 -16
- prowler/providers/aws/services/cloudtrail/cloudtrail_multi_region_enabled/cloudtrail_multi_region_enabled.metadata.json +17 -13
- prowler/providers/aws/services/cloudtrail/cloudtrail_multi_region_enabled_logging_management_events/cloudtrail_multi_region_enabled_logging_management_events.metadata.json +19 -12
- prowler/providers/aws/services/cloudtrail/cloudtrail_s3_dataevents_read_enabled/cloudtrail_s3_dataevents_read_enabled.metadata.json +22 -12
- prowler/providers/aws/services/cloudtrail/cloudtrail_s3_dataevents_write_enabled/cloudtrail_s3_dataevents_write_enabled.metadata.json +21 -11
- prowler/providers/aws/services/cloudtrail/cloudtrail_threat_detection_enumeration/cloudtrail_threat_detection_enumeration.metadata.json +22 -11
- prowler/providers/aws/services/cloudtrail/cloudtrail_threat_detection_llm_jacking/cloudtrail_threat_detection_llm_jacking.metadata.json +25 -12
- prowler/providers/aws/services/cloudtrail/cloudtrail_threat_detection_privilege_escalation/cloudtrail_threat_detection_privilege_escalation.metadata.json +18 -10
- prowler/providers/aws/services/config/config_recorder_all_regions_enabled/config_recorder_all_regions_enabled.metadata.json +20 -12
- prowler/providers/aws/services/config/config_recorder_using_aws_service_role/config_recorder_using_aws_service_role.metadata.json +20 -13
- prowler/providers/aws/services/directoryservice/directoryservice_directory_log_forwarding_enabled/directoryservice_directory_log_forwarding_enabled.metadata.json +20 -11
- prowler/providers/aws/services/directoryservice/directoryservice_directory_monitor_notifications/directoryservice_directory_monitor_notifications.metadata.json +19 -11
- prowler/providers/aws/services/directoryservice/directoryservice_directory_snapshots_limit/directoryservice_directory_snapshots_limit.metadata.json +19 -10
- prowler/providers/aws/services/directoryservice/directoryservice_ldap_certificate_expiration/directoryservice_ldap_certificate_expiration.metadata.json +20 -11
- prowler/providers/aws/services/directoryservice/directoryservice_radius_server_security_protocol/directoryservice_radius_server_security_protocol.metadata.json +23 -12
- prowler/providers/aws/services/directoryservice/directoryservice_supported_mfa_radius_enabled/directoryservice_supported_mfa_radius_enabled.metadata.json +23 -12
- prowler/providers/aws/services/dlm/dlm_ebs_snapshot_lifecycle_policy_exists/dlm_ebs_snapshot_lifecycle_policy_exists.metadata.json +19 -13
- prowler/providers/aws/services/dms/dms_endpoint_mongodb_authentication_enabled/dms_endpoint_mongodb_authentication_enabled.metadata.json +20 -13
- prowler/providers/aws/services/dms/dms_endpoint_neptune_iam_authorization_enabled/dms_endpoint_neptune_iam_authorization_enabled.metadata.json +19 -12
- prowler/providers/aws/services/dms/dms_endpoint_redis_in_transit_encryption_enabled/dms_endpoint_redis_in_transit_encryption_enabled.metadata.json +23 -13
- prowler/providers/aws/services/dms/dms_endpoint_ssl_enabled/dms_endpoint_ssl_enabled.metadata.json +27 -19
- prowler/providers/aws/services/dms/dms_instance_minor_version_upgrade_enabled/dms_instance_minor_version_upgrade_enabled.metadata.json +22 -12
- prowler/providers/aws/services/dms/dms_instance_multi_az_enabled/dms_instance_multi_az_enabled.metadata.json +20 -13
- prowler/providers/aws/services/dms/dms_instance_no_public_access/dms_instance_no_public_access.metadata.json +22 -11
- prowler/providers/aws/services/dms/dms_replication_task_source_logging_enabled/dms_replication_task_source_logging_enabled.metadata.json +21 -13
- prowler/providers/aws/services/dms/dms_replication_task_target_logging_enabled/dms_replication_task_target_logging_enabled.metadata.json +22 -13
- prowler/providers/aws/services/dms/dms_replication_task_target_logging_enabled/dms_replication_task_target_logging_enabled.py +39 -37
- prowler/providers/aws/services/dms/dms_service.py +0 -1
- prowler/providers/aws/services/ec2/ec2_ami_public/ec2_ami_public.py +11 -10
- prowler/providers/aws/services/ec2/ec2_instance_with_outdated_ami/__init__.py +0 -0
- prowler/providers/aws/services/ec2/ec2_instance_with_outdated_ami/ec2_instance_with_outdated_ami.metadata.json +30 -0
- prowler/providers/aws/services/ec2/ec2_instance_with_outdated_ami/ec2_instance_with_outdated_ami.py +52 -0
- prowler/providers/aws/services/ec2/ec2_service.py +26 -14
- prowler/providers/aws/services/efs/efs_access_point_enforce_root_directory/efs_access_point_enforce_root_directory.metadata.json +19 -13
- prowler/providers/aws/services/efs/efs_access_point_enforce_user_identity/efs_access_point_enforce_user_identity.metadata.json +23 -13
- prowler/providers/aws/services/efs/efs_encryption_at_rest_enabled/efs_encryption_at_rest_enabled.metadata.json +23 -13
- prowler/providers/aws/services/efs/efs_have_backup_enabled/efs_have_backup_enabled.metadata.json +20 -14
- prowler/providers/aws/services/efs/efs_mount_target_not_publicly_accessible/efs_mount_target_not_publicly_accessible.metadata.json +18 -12
- prowler/providers/aws/services/efs/efs_multi_az_enabled/efs_multi_az_enabled.metadata.json +21 -13
- prowler/providers/aws/services/efs/efs_not_publicly_accessible/efs_not_publicly_accessible.metadata.json +17 -13
- prowler/providers/aws/services/eks/eks_cluster_uses_a_supported_version/eks_cluster_uses_a_supported_version.py +4 -0
- prowler/providers/aws/services/elb/elb_ssl_listeners_use_acm_certificate/elb_ssl_listeners_use_acm_certificate.py +8 -2
- prowler/providers/aws/services/neptune/neptune_cluster_backup_enabled/neptune_cluster_backup_enabled.metadata.json +23 -13
- prowler/providers/aws/services/neptune/neptune_cluster_copy_tags_to_snapshots/neptune_cluster_copy_tags_to_snapshots.metadata.json +18 -14
- prowler/providers/aws/services/neptune/neptune_cluster_deletion_protection/neptune_cluster_deletion_protection.metadata.json +23 -14
- prowler/providers/aws/services/neptune/neptune_cluster_iam_authentication_enabled/neptune_cluster_iam_authentication_enabled.metadata.json +25 -13
- prowler/providers/aws/services/neptune/neptune_cluster_integration_cloudwatch_logs/neptune_cluster_integration_cloudwatch_logs.metadata.json +22 -14
- prowler/providers/aws/services/neptune/neptune_cluster_multi_az/neptune_cluster_multi_az.metadata.json +20 -12
- prowler/providers/aws/services/neptune/neptune_cluster_public_snapshot/neptune_cluster_public_snapshot.metadata.json +18 -10
- prowler/providers/aws/services/neptune/neptune_cluster_snapshot_encrypted/neptune_cluster_snapshot_encrypted.metadata.json +16 -10
- prowler/providers/aws/services/neptune/neptune_cluster_storage_encrypted/neptune_cluster_storage_encrypted.metadata.json +22 -13
- prowler/providers/aws/services/neptune/neptune_cluster_uses_public_subnet/neptune_cluster_uses_public_subnet.metadata.json +20 -12
- prowler/providers/aws/services/rds/rds_service.py +9 -2
- prowler/providers/aws/services/vpc/vpc_service.py +1 -1
- prowler/providers/azure/services/entra/entra_service.py +54 -25
- prowler/providers/common/arguments.py +16 -2
- prowler/providers/common/provider.py +34 -2
- prowler/providers/gcp/services/cloudsql/cloudsql_service.py +3 -3
- prowler/providers/gcp/services/cloudstorage/cloudstorage_bucket_lifecycle_management_enabled/__init__.py +0 -0
- prowler/providers/gcp/services/cloudstorage/cloudstorage_bucket_lifecycle_management_enabled/cloudstorage_bucket_lifecycle_management_enabled.metadata.json +34 -0
- prowler/providers/gcp/services/cloudstorage/cloudstorage_bucket_lifecycle_management_enabled/cloudstorage_bucket_lifecycle_management_enabled.py +48 -0
- prowler/providers/gcp/services/cloudstorage/cloudstorage_service.py +10 -0
- prowler/providers/gcp/services/compute/compute_project_os_login_enabled/compute_project_os_login_enabled.py +5 -0
- prowler/providers/gcp/services/iam/iam_audit_logs_enabled/iam_audit_logs_enabled.py +5 -0
- prowler/providers/gcp/services/iam/iam_role_kms_enforce_separation_of_duties/iam_role_kms_enforce_separation_of_duties.py +5 -0
- prowler/providers/gcp/services/logging/logging_log_metric_filter_and_alert_for_audit_configuration_changes_enabled/logging_log_metric_filter_and_alert_for_audit_configuration_changes_enabled.py +5 -0
- prowler/providers/gcp/services/logging/logging_log_metric_filter_and_alert_for_bucket_permission_changes_enabled/logging_log_metric_filter_and_alert_for_bucket_permission_changes_enabled.py +5 -0
- prowler/providers/gcp/services/logging/logging_log_metric_filter_and_alert_for_custom_role_changes_enabled/logging_log_metric_filter_and_alert_for_custom_role_changes_enabled.py +5 -0
- prowler/providers/gcp/services/logging/logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled/logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled.py +5 -0
- prowler/providers/gcp/services/logging/logging_log_metric_filter_and_alert_for_sql_instance_configuration_changes_enabled/logging_log_metric_filter_and_alert_for_sql_instance_configuration_changes_enabled.py +5 -0
- prowler/providers/gcp/services/logging/logging_log_metric_filter_and_alert_for_vpc_firewall_rule_changes_enabled/logging_log_metric_filter_and_alert_for_vpc_firewall_rule_changes_enabled.py +5 -0
- prowler/providers/gcp/services/logging/logging_log_metric_filter_and_alert_for_vpc_network_changes_enabled/logging_log_metric_filter_and_alert_for_vpc_network_changes_enabled.py +5 -0
- prowler/providers/gcp/services/logging/logging_log_metric_filter_and_alert_for_vpc_network_route_changes_enabled/logging_log_metric_filter_and_alert_for_vpc_network_route_changes_enabled.py +5 -0
- prowler/providers/gcp/services/logging/logging_sink_created/logging_sink_created.py +5 -0
- prowler/providers/gcp/services/monitoring/monitoring_service.py +30 -2
- prowler/providers/iac/iac_provider.py +1 -1
- prowler/providers/llm/__init__.py +0 -0
- prowler/providers/llm/lib/__init__.py +0 -0
- prowler/providers/llm/lib/arguments/__init__.py +0 -0
- prowler/providers/llm/lib/arguments/arguments.py +13 -0
- prowler/providers/llm/llm_provider.py +518 -0
- prowler/providers/llm/models.py +27 -0
- prowler/providers/m365/exceptions/exceptions.py +0 -55
- prowler/providers/m365/lib/arguments/arguments.py +8 -4
- prowler/providers/m365/lib/powershell/m365_powershell.py +14 -156
- prowler/providers/m365/m365_provider.py +19 -117
- prowler/providers/m365/models.py +0 -3
- prowler/providers/m365/services/admincenter/admincenter_service.py +52 -23
- prowler/providers/m365/services/entra/entra_admin_users_phishing_resistant_mfa_enabled/entra_admin_users_phishing_resistant_mfa_enabled.py +19 -2
- prowler/providers/m365/services/entra/entra_service.py +58 -30
- prowler/providers/m365/services/sharepoint/sharepoint_service.py +24 -3
- prowler/providers/oraclecloud/__init__.py +0 -0
- prowler/providers/oraclecloud/config.py +61 -0
- prowler/providers/oraclecloud/exceptions/__init__.py +0 -0
- prowler/providers/oraclecloud/exceptions/exceptions.py +197 -0
- prowler/providers/oraclecloud/lib/__init__.py +0 -0
- prowler/providers/oraclecloud/lib/arguments/__init__.py +0 -0
- prowler/providers/oraclecloud/lib/arguments/arguments.py +123 -0
- prowler/providers/oraclecloud/lib/mutelist/__init__.py +0 -0
- prowler/providers/oraclecloud/lib/mutelist/mutelist.py +176 -0
- prowler/providers/oraclecloud/lib/service/__init__.py +0 -0
- prowler/providers/oraclecloud/lib/service/service.py +213 -0
- prowler/providers/oraclecloud/models.py +96 -0
- prowler/providers/oraclecloud/oci_provider.py +1038 -0
- prowler/providers/oraclecloud/services/__init__.py +0 -0
- prowler/providers/oraclecloud/services/analytics/__init__.py +0 -0
- prowler/providers/oraclecloud/services/analytics/analytics_client.py +6 -0
- prowler/providers/oraclecloud/services/analytics/analytics_instance_access_restricted/__init__.py +0 -0
- prowler/providers/oraclecloud/services/analytics/analytics_instance_access_restricted/analytics_instance_access_restricted.metadata.json +36 -0
- prowler/providers/oraclecloud/services/analytics/analytics_instance_access_restricted/analytics_instance_access_restricted.py +48 -0
- prowler/providers/oraclecloud/services/analytics/analytics_service.py +99 -0
- prowler/providers/oraclecloud/services/audit/__init__.py +0 -0
- prowler/providers/oraclecloud/services/audit/audit_client.py +4 -0
- prowler/providers/oraclecloud/services/audit/audit_log_retention_period_365_days/__init__.py +0 -0
- prowler/providers/oraclecloud/services/audit/audit_log_retention_period_365_days/audit_log_retention_period_365_days.metadata.json +37 -0
- prowler/providers/oraclecloud/services/audit/audit_log_retention_period_365_days/audit_log_retention_period_365_days.py +46 -0
- prowler/providers/oraclecloud/services/audit/audit_service.py +57 -0
- prowler/providers/oraclecloud/services/blockstorage/__init__.py +0 -0
- prowler/providers/oraclecloud/services/blockstorage/blockstorage_block_volume_encrypted_with_cmk/__init__.py +0 -0
- prowler/providers/oraclecloud/services/blockstorage/blockstorage_block_volume_encrypted_with_cmk/blockstorage_block_volume_encrypted_with_cmk.metadata.json +37 -0
- prowler/providers/oraclecloud/services/blockstorage/blockstorage_block_volume_encrypted_with_cmk/blockstorage_block_volume_encrypted_with_cmk.py +39 -0
- prowler/providers/oraclecloud/services/blockstorage/blockstorage_boot_volume_encrypted_with_cmk/__init__.py +0 -0
- prowler/providers/oraclecloud/services/blockstorage/blockstorage_boot_volume_encrypted_with_cmk/blockstorage_boot_volume_encrypted_with_cmk.metadata.json +36 -0
- prowler/providers/oraclecloud/services/blockstorage/blockstorage_boot_volume_encrypted_with_cmk/blockstorage_boot_volume_encrypted_with_cmk.py +35 -0
- prowler/providers/oraclecloud/services/blockstorage/blockstorage_client.py +6 -0
- prowler/providers/oraclecloud/services/blockstorage/blockstorage_service.py +182 -0
- prowler/providers/oraclecloud/services/cloudguard/__init__.py +0 -0
- prowler/providers/oraclecloud/services/cloudguard/cloudguard_client.py +6 -0
- prowler/providers/oraclecloud/services/cloudguard/cloudguard_enabled/__init__.py +0 -0
- prowler/providers/oraclecloud/services/cloudguard/cloudguard_enabled/cloudguard_enabled.metadata.json +36 -0
- prowler/providers/oraclecloud/services/cloudguard/cloudguard_enabled/cloudguard_enabled.py +39 -0
- prowler/providers/oraclecloud/services/cloudguard/cloudguard_service.py +63 -0
- prowler/providers/oraclecloud/services/compute/__init__.py +0 -0
- prowler/providers/oraclecloud/services/compute/compute_client.py +4 -0
- prowler/providers/oraclecloud/services/compute/compute_instance_in_transit_encryption_enabled/__init__.py +0 -0
- prowler/providers/oraclecloud/services/compute/compute_instance_in_transit_encryption_enabled/compute_instance_in_transit_encryption_enabled.metadata.json +37 -0
- prowler/providers/oraclecloud/services/compute/compute_instance_in_transit_encryption_enabled/compute_instance_in_transit_encryption_enabled.py +38 -0
- prowler/providers/oraclecloud/services/compute/compute_instance_legacy_metadata_endpoint_disabled/__init__.py +0 -0
- prowler/providers/oraclecloud/services/compute/compute_instance_legacy_metadata_endpoint_disabled/compute_instance_legacy_metadata_endpoint_disabled.metadata.json +37 -0
- prowler/providers/oraclecloud/services/compute/compute_instance_legacy_metadata_endpoint_disabled/compute_instance_legacy_metadata_endpoint_disabled.py +37 -0
- prowler/providers/oraclecloud/services/compute/compute_instance_secure_boot_enabled/__init__.py +0 -0
- prowler/providers/oraclecloud/services/compute/compute_instance_secure_boot_enabled/compute_instance_secure_boot_enabled.metadata.json +37 -0
- prowler/providers/oraclecloud/services/compute/compute_instance_secure_boot_enabled/compute_instance_secure_boot_enabled.py +39 -0
- prowler/providers/oraclecloud/services/compute/compute_service.py +136 -0
- prowler/providers/oraclecloud/services/database/__init__.py +0 -0
- prowler/providers/oraclecloud/services/database/database_autonomous_database_access_restricted/__init__.py +0 -0
- prowler/providers/oraclecloud/services/database/database_autonomous_database_access_restricted/database_autonomous_database_access_restricted.metadata.json +36 -0
- prowler/providers/oraclecloud/services/database/database_autonomous_database_access_restricted/database_autonomous_database_access_restricted.py +40 -0
- prowler/providers/oraclecloud/services/database/database_client.py +6 -0
- prowler/providers/oraclecloud/services/database/database_service.py +79 -0
- prowler/providers/oraclecloud/services/events/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_client.py +4 -0
- prowler/providers/oraclecloud/services/events/events_notification_topic_and_subscription_exists/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_notification_topic_and_subscription_exists/events_notification_topic_and_subscription_exists.metadata.json +37 -0
- prowler/providers/oraclecloud/services/events/events_notification_topic_and_subscription_exists/events_notification_topic_and_subscription_exists.py +53 -0
- prowler/providers/oraclecloud/services/events/events_rule_cloudguard_problems/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_rule_cloudguard_problems/events_rule_cloudguard_problems.metadata.json +36 -0
- prowler/providers/oraclecloud/services/events/events_rule_cloudguard_problems/events_rule_cloudguard_problems.py +90 -0
- prowler/providers/oraclecloud/services/events/events_rule_iam_group_changes/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_rule_iam_group_changes/events_rule_iam_group_changes.metadata.json +37 -0
- prowler/providers/oraclecloud/services/events/events_rule_iam_group_changes/events_rule_iam_group_changes.py +67 -0
- prowler/providers/oraclecloud/services/events/events_rule_iam_policy_changes/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_rule_iam_policy_changes/events_rule_iam_policy_changes.metadata.json +37 -0
- prowler/providers/oraclecloud/services/events/events_rule_iam_policy_changes/events_rule_iam_policy_changes.py +67 -0
- prowler/providers/oraclecloud/services/events/events_rule_identity_provider_changes/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_rule_identity_provider_changes/events_rule_identity_provider_changes.metadata.json +37 -0
- prowler/providers/oraclecloud/services/events/events_rule_identity_provider_changes/events_rule_identity_provider_changes.py +67 -0
- prowler/providers/oraclecloud/services/events/events_rule_idp_group_mapping_changes/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_rule_idp_group_mapping_changes/events_rule_idp_group_mapping_changes.metadata.json +37 -0
- prowler/providers/oraclecloud/services/events/events_rule_idp_group_mapping_changes/events_rule_idp_group_mapping_changes.py +67 -0
- prowler/providers/oraclecloud/services/events/events_rule_local_user_authentication/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_rule_local_user_authentication/events_rule_local_user_authentication.metadata.json +38 -0
- prowler/providers/oraclecloud/services/events/events_rule_local_user_authentication/events_rule_local_user_authentication.py +63 -0
- prowler/providers/oraclecloud/services/events/events_rule_network_gateway_changes/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_rule_network_gateway_changes/events_rule_network_gateway_changes.metadata.json +37 -0
- prowler/providers/oraclecloud/services/events/events_rule_network_gateway_changes/events_rule_network_gateway_changes.py +88 -0
- prowler/providers/oraclecloud/services/events/events_rule_network_security_group_changes/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_rule_network_security_group_changes/events_rule_network_security_group_changes.metadata.json +37 -0
- prowler/providers/oraclecloud/services/events/events_rule_network_security_group_changes/events_rule_network_security_group_changes.py +68 -0
- prowler/providers/oraclecloud/services/events/events_rule_route_table_changes/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_rule_route_table_changes/events_rule_route_table_changes.metadata.json +37 -0
- prowler/providers/oraclecloud/services/events/events_rule_route_table_changes/events_rule_route_table_changes.py +68 -0
- prowler/providers/oraclecloud/services/events/events_rule_security_list_changes/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_rule_security_list_changes/events_rule_security_list_changes.metadata.json +37 -0
- prowler/providers/oraclecloud/services/events/events_rule_security_list_changes/events_rule_security_list_changes.py +68 -0
- prowler/providers/oraclecloud/services/events/events_rule_user_changes/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_rule_user_changes/events_rule_user_changes.metadata.json +37 -0
- prowler/providers/oraclecloud/services/events/events_rule_user_changes/events_rule_user_changes.py +69 -0
- prowler/providers/oraclecloud/services/events/events_rule_vcn_changes/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/events_rule_vcn_changes/events_rule_vcn_changes.metadata.json +37 -0
- prowler/providers/oraclecloud/services/events/events_rule_vcn_changes/events_rule_vcn_changes.py +65 -0
- prowler/providers/oraclecloud/services/events/events_service.py +215 -0
- prowler/providers/oraclecloud/services/events/lib/__init__.py +0 -0
- prowler/providers/oraclecloud/services/events/lib/helpers.py +116 -0
- prowler/providers/oraclecloud/services/filestorage/__init__.py +0 -0
- prowler/providers/oraclecloud/services/filestorage/filestorage_client.py +6 -0
- prowler/providers/oraclecloud/services/filestorage/filestorage_file_system_encrypted_with_cmk/__init__.py +0 -0
- prowler/providers/oraclecloud/services/filestorage/filestorage_file_system_encrypted_with_cmk/filestorage_file_system_encrypted_with_cmk.metadata.json +36 -0
- prowler/providers/oraclecloud/services/filestorage/filestorage_file_system_encrypted_with_cmk/filestorage_file_system_encrypted_with_cmk.py +39 -0
- prowler/providers/oraclecloud/services/filestorage/filestorage_service.py +96 -0
- prowler/providers/oraclecloud/services/identity/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_client.py +4 -0
- prowler/providers/oraclecloud/services/identity/identity_iam_admins_cannot_update_tenancy_admins/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_iam_admins_cannot_update_tenancy_admins/identity_iam_admins_cannot_update_tenancy_admins.metadata.json +36 -0
- prowler/providers/oraclecloud/services/identity/identity_iam_admins_cannot_update_tenancy_admins/identity_iam_admins_cannot_update_tenancy_admins.py +107 -0
- prowler/providers/oraclecloud/services/identity/identity_instance_principal_used/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_instance_principal_used/identity_instance_principal_used.metadata.json +36 -0
- prowler/providers/oraclecloud/services/identity/identity_instance_principal_used/identity_instance_principal_used.py +70 -0
- prowler/providers/oraclecloud/services/identity/identity_no_resources_in_root_compartment/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_no_resources_in_root_compartment/identity_no_resources_in_root_compartment.metadata.json +32 -0
- prowler/providers/oraclecloud/services/identity/identity_no_resources_in_root_compartment/identity_no_resources_in_root_compartment.py +51 -0
- prowler/providers/oraclecloud/services/identity/identity_non_root_compartment_exists/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_non_root_compartment_exists/identity_non_root_compartment_exists.metadata.json +32 -0
- prowler/providers/oraclecloud/services/identity/identity_non_root_compartment_exists/identity_non_root_compartment_exists.py +39 -0
- prowler/providers/oraclecloud/services/identity/identity_password_policy_expires_within_365_days/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_password_policy_expires_within_365_days/identity_password_policy_expires_within_365_days.metadata.json +36 -0
- prowler/providers/oraclecloud/services/identity/identity_password_policy_expires_within_365_days/identity_password_policy_expires_within_365_days.py +67 -0
- prowler/providers/oraclecloud/services/identity/identity_password_policy_minimum_length_14/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_password_policy_minimum_length_14/identity_password_policy_minimum_length_14.metadata.json +36 -0
- prowler/providers/oraclecloud/services/identity/identity_password_policy_minimum_length_14/identity_password_policy_minimum_length_14.py +97 -0
- prowler/providers/oraclecloud/services/identity/identity_password_policy_prevents_reuse/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_password_policy_prevents_reuse/identity_password_policy_prevents_reuse.metadata.json +36 -0
- prowler/providers/oraclecloud/services/identity/identity_password_policy_prevents_reuse/identity_password_policy_prevents_reuse.py +77 -0
- prowler/providers/oraclecloud/services/identity/identity_service.py +828 -0
- prowler/providers/oraclecloud/services/identity/identity_service_level_admins_exist/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_service_level_admins_exist/identity_service_level_admins_exist.metadata.json +32 -0
- prowler/providers/oraclecloud/services/identity/identity_service_level_admins_exist/identity_service_level_admins_exist.py +81 -0
- prowler/providers/oraclecloud/services/identity/identity_tenancy_admin_permissions_limited/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_tenancy_admin_permissions_limited/identity_tenancy_admin_permissions_limited.metadata.json +36 -0
- prowler/providers/oraclecloud/services/identity/identity_tenancy_admin_permissions_limited/identity_tenancy_admin_permissions_limited.py +81 -0
- prowler/providers/oraclecloud/services/identity/identity_tenancy_admin_users_no_api_keys/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_tenancy_admin_users_no_api_keys/identity_tenancy_admin_users_no_api_keys.metadata.json +36 -0
- prowler/providers/oraclecloud/services/identity/identity_tenancy_admin_users_no_api_keys/identity_tenancy_admin_users_no_api_keys.py +49 -0
- prowler/providers/oraclecloud/services/identity/identity_user_api_keys_rotated_90_days/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_user_api_keys_rotated_90_days/identity_user_api_keys_rotated_90_days.metadata.json +37 -0
- prowler/providers/oraclecloud/services/identity/identity_user_api_keys_rotated_90_days/identity_user_api_keys_rotated_90_days.py +73 -0
- prowler/providers/oraclecloud/services/identity/identity_user_auth_tokens_rotated_90_days/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_user_auth_tokens_rotated_90_days/identity_user_auth_tokens_rotated_90_days.metadata.json +36 -0
- prowler/providers/oraclecloud/services/identity/identity_user_auth_tokens_rotated_90_days/identity_user_auth_tokens_rotated_90_days.py +52 -0
- prowler/providers/oraclecloud/services/identity/identity_user_customer_secret_keys_rotated_90_days/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_user_customer_secret_keys_rotated_90_days/identity_user_customer_secret_keys_rotated_90_days.metadata.json +36 -0
- prowler/providers/oraclecloud/services/identity/identity_user_customer_secret_keys_rotated_90_days/identity_user_customer_secret_keys_rotated_90_days.py +49 -0
- prowler/providers/oraclecloud/services/identity/identity_user_db_passwords_rotated_90_days/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_user_db_passwords_rotated_90_days/identity_user_db_passwords_rotated_90_days.metadata.json +36 -0
- prowler/providers/oraclecloud/services/identity/identity_user_db_passwords_rotated_90_days/identity_user_db_passwords_rotated_90_days.py +49 -0
- prowler/providers/oraclecloud/services/identity/identity_user_mfa_enabled_console_access/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_user_mfa_enabled_console_access/identity_user_mfa_enabled_console_access.metadata.json +36 -0
- prowler/providers/oraclecloud/services/identity/identity_user_mfa_enabled_console_access/identity_user_mfa_enabled_console_access.py +43 -0
- prowler/providers/oraclecloud/services/identity/identity_user_valid_email_address/__init__.py +0 -0
- prowler/providers/oraclecloud/services/identity/identity_user_valid_email_address/identity_user_valid_email_address.metadata.json +36 -0
- prowler/providers/oraclecloud/services/identity/identity_user_valid_email_address/identity_user_valid_email_address.py +38 -0
- prowler/providers/oraclecloud/services/integration/__init__.py +0 -0
- prowler/providers/oraclecloud/services/integration/integration_client.py +8 -0
- prowler/providers/oraclecloud/services/integration/integration_instance_access_restricted/__init__.py +0 -0
- prowler/providers/oraclecloud/services/integration/integration_instance_access_restricted/integration_instance_access_restricted.metadata.json +36 -0
- prowler/providers/oraclecloud/services/integration/integration_instance_access_restricted/integration_instance_access_restricted.py +48 -0
- prowler/providers/oraclecloud/services/integration/integration_service.py +92 -0
- prowler/providers/oraclecloud/services/kms/__init__.py +0 -0
- prowler/providers/oraclecloud/services/kms/kms_client.py +4 -0
- prowler/providers/oraclecloud/services/kms/kms_key_rotation_enabled/__init__.py +0 -0
- prowler/providers/oraclecloud/services/kms/kms_key_rotation_enabled/kms_key_rotation_enabled.metadata.json +36 -0
- prowler/providers/oraclecloud/services/kms/kms_key_rotation_enabled/kms_key_rotation_enabled.py +37 -0
- prowler/providers/oraclecloud/services/kms/kms_service.py +136 -0
- prowler/providers/oraclecloud/services/logging/__init__.py +0 -0
- prowler/providers/oraclecloud/services/logging/logging_client.py +6 -0
- prowler/providers/oraclecloud/services/logging/logging_service.py +189 -0
- prowler/providers/oraclecloud/services/network/__init__.py +0 -0
- prowler/providers/oraclecloud/services/network/network_client.py +4 -0
- prowler/providers/oraclecloud/services/network/network_default_security_list_restricts_traffic/__init__.py +0 -0
- prowler/providers/oraclecloud/services/network/network_default_security_list_restricts_traffic/network_default_security_list_restricts_traffic.metadata.json +36 -0
- prowler/providers/oraclecloud/services/network/network_default_security_list_restricts_traffic/network_default_security_list_restricts_traffic.py +99 -0
- prowler/providers/oraclecloud/services/network/network_security_group_ingress_from_internet_to_rdp_port/__init__.py +0 -0
- prowler/providers/oraclecloud/services/network/network_security_group_ingress_from_internet_to_rdp_port/network_security_group_ingress_from_internet_to_rdp_port.metadata.json +36 -0
- prowler/providers/oraclecloud/services/network/network_security_group_ingress_from_internet_to_rdp_port/network_security_group_ingress_from_internet_to_rdp_port.py +65 -0
- prowler/providers/oraclecloud/services/network/network_security_group_ingress_from_internet_to_ssh_port/__init__.py +0 -0
- prowler/providers/oraclecloud/services/network/network_security_group_ingress_from_internet_to_ssh_port/network_security_group_ingress_from_internet_to_ssh_port.metadata.json +37 -0
- prowler/providers/oraclecloud/services/network/network_security_group_ingress_from_internet_to_ssh_port/network_security_group_ingress_from_internet_to_ssh_port.py +70 -0
- prowler/providers/oraclecloud/services/network/network_security_list_ingress_from_internet_to_rdp_port/__init__.py +0 -0
- prowler/providers/oraclecloud/services/network/network_security_list_ingress_from_internet_to_rdp_port/network_security_list_ingress_from_internet_to_rdp_port.metadata.json +36 -0
- prowler/providers/oraclecloud/services/network/network_security_list_ingress_from_internet_to_rdp_port/network_security_list_ingress_from_internet_to_rdp_port.py +62 -0
- prowler/providers/oraclecloud/services/network/network_security_list_ingress_from_internet_to_ssh_port/__init__.py +0 -0
- prowler/providers/oraclecloud/services/network/network_security_list_ingress_from_internet_to_ssh_port/network_security_list_ingress_from_internet_to_ssh_port.metadata.json +37 -0
- prowler/providers/oraclecloud/services/network/network_security_list_ingress_from_internet_to_ssh_port/network_security_list_ingress_from_internet_to_ssh_port.py +67 -0
- prowler/providers/oraclecloud/services/network/network_service.py +321 -0
- prowler/providers/oraclecloud/services/network/network_vcn_subnet_flow_logs_enabled/__init__.py +0 -0
- prowler/providers/oraclecloud/services/network/network_vcn_subnet_flow_logs_enabled/network_vcn_subnet_flow_logs_enabled.metadata.json +36 -0
- prowler/providers/oraclecloud/services/network/network_vcn_subnet_flow_logs_enabled/network_vcn_subnet_flow_logs_enabled.py +66 -0
- prowler/providers/oraclecloud/services/objectstorage/__init__.py +0 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_bucket_encrypted_with_cmk/__init__.py +0 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_bucket_encrypted_with_cmk/objectstorage_bucket_encrypted_with_cmk.metadata.json +37 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_bucket_encrypted_with_cmk/objectstorage_bucket_encrypted_with_cmk.py +40 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_bucket_logging_enabled/__init__.py +0 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_bucket_logging_enabled/objectstorage_bucket_logging_enabled.metadata.json +32 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_bucket_logging_enabled/objectstorage_bucket_logging_enabled.py +68 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_bucket_not_publicly_accessible/__init__.py +0 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_bucket_not_publicly_accessible/objectstorage_bucket_not_publicly_accessible.metadata.json +37 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_bucket_not_publicly_accessible/objectstorage_bucket_not_publicly_accessible.py +43 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_bucket_versioning_enabled/__init__.py +0 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_bucket_versioning_enabled/objectstorage_bucket_versioning_enabled.metadata.json +37 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_bucket_versioning_enabled/objectstorage_bucket_versioning_enabled.py +38 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_client.py +6 -0
- prowler/providers/oraclecloud/services/objectstorage/objectstorage_service.py +138 -0
- {prowler_cloud-5.12.2.dist-info → prowler_cloud-5.13.0.dist-info}/METADATA +9 -33
- {prowler_cloud-5.12.2.dist-info → prowler_cloud-5.13.0.dist-info}/RECORD +528 -280
- {prowler_cloud-5.12.2.dist-info → prowler_cloud-5.13.0.dist-info}/LICENSE +0 -0
- {prowler_cloud-5.12.2.dist-info → prowler_cloud-5.13.0.dist-info}/WHEEL +0 -0
- {prowler_cloud-5.12.2.dist-info → prowler_cloud-5.13.0.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
from prowler.lib.check.compliance_models import Compliance
|
|
2
|
+
from prowler.lib.outputs.compliance.ccc.models import CCC_AWSModel
|
|
3
|
+
from prowler.lib.outputs.compliance.compliance_output import ComplianceOutput
|
|
4
|
+
from prowler.lib.outputs.finding import Finding
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class CCC_AWS(ComplianceOutput):
|
|
8
|
+
"""
|
|
9
|
+
This class represents the AWS CCC compliance output.
|
|
10
|
+
|
|
11
|
+
Attributes:
|
|
12
|
+
- _data (list): A list to store transformed data from findings.
|
|
13
|
+
- _file_descriptor (TextIOWrapper): A file descriptor to write data to a file.
|
|
14
|
+
|
|
15
|
+
Methods:
|
|
16
|
+
- transform: Transforms findings into AWS CCC compliance format.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
def transform(
|
|
20
|
+
self,
|
|
21
|
+
findings: list[Finding],
|
|
22
|
+
compliance: Compliance,
|
|
23
|
+
compliance_name: str,
|
|
24
|
+
) -> None:
|
|
25
|
+
"""
|
|
26
|
+
Transforms a list of findings into AWS CCC compliance format.
|
|
27
|
+
|
|
28
|
+
Parameters:
|
|
29
|
+
- findings (list): A list of findings.
|
|
30
|
+
- compliance (Compliance): A compliance model.
|
|
31
|
+
- compliance_name (str): The name of the compliance model.
|
|
32
|
+
|
|
33
|
+
Returns:
|
|
34
|
+
- None
|
|
35
|
+
"""
|
|
36
|
+
for finding in findings:
|
|
37
|
+
# Get the compliance requirements for the finding
|
|
38
|
+
finding_requirements = finding.compliance.get(compliance_name, [])
|
|
39
|
+
for requirement in compliance.Requirements:
|
|
40
|
+
if requirement.Id in finding_requirements:
|
|
41
|
+
for attribute in requirement.Attributes:
|
|
42
|
+
compliance_row = CCC_AWSModel(
|
|
43
|
+
Provider=finding.provider,
|
|
44
|
+
Description=compliance.Description,
|
|
45
|
+
AccountId=finding.account_uid,
|
|
46
|
+
Region=finding.region,
|
|
47
|
+
AssessmentDate=str(finding.timestamp),
|
|
48
|
+
Requirements_Id=requirement.Id,
|
|
49
|
+
Requirements_Description=requirement.Description,
|
|
50
|
+
Requirements_Attributes_FamilyName=attribute.FamilyName,
|
|
51
|
+
Requirements_Attributes_FamilyDescription=attribute.FamilyDescription,
|
|
52
|
+
Requirements_Attributes_Section=attribute.Section,
|
|
53
|
+
Requirements_Attributes_SubSection=attribute.SubSection,
|
|
54
|
+
Requirements_Attributes_SubSectionObjective=attribute.SubSectionObjective,
|
|
55
|
+
Requirements_Attributes_Applicability=attribute.Applicability,
|
|
56
|
+
Requirements_Attributes_Recommendation=attribute.Recommendation,
|
|
57
|
+
Requirements_Attributes_SectionThreatMappings=attribute.SectionThreatMappings,
|
|
58
|
+
Requirements_Attributes_SectionGuidelineMappings=attribute.SectionGuidelineMappings,
|
|
59
|
+
Status=finding.status,
|
|
60
|
+
StatusExtended=finding.status_extended,
|
|
61
|
+
ResourceId=finding.resource_uid,
|
|
62
|
+
ResourceName=finding.resource_name,
|
|
63
|
+
CheckId=finding.check_id,
|
|
64
|
+
Muted=finding.muted,
|
|
65
|
+
)
|
|
66
|
+
self._data.append(compliance_row)
|
|
67
|
+
# Add manual requirements to the compliance output
|
|
68
|
+
for requirement in compliance.Requirements:
|
|
69
|
+
if not requirement.Checks:
|
|
70
|
+
for attribute in requirement.Attributes:
|
|
71
|
+
compliance_row = CCC_AWSModel(
|
|
72
|
+
Provider=compliance.Provider.lower(),
|
|
73
|
+
Description=compliance.Description,
|
|
74
|
+
AccountId="",
|
|
75
|
+
Region="",
|
|
76
|
+
AssessmentDate=str(finding.timestamp),
|
|
77
|
+
Requirements_Id=requirement.Id,
|
|
78
|
+
Requirements_Description=requirement.Description,
|
|
79
|
+
Requirements_Attributes_FamilyName=attribute.FamilyName,
|
|
80
|
+
Requirements_Attributes_FamilyDescription=attribute.FamilyDescription,
|
|
81
|
+
Requirements_Attributes_Section=attribute.Section,
|
|
82
|
+
Requirements_Attributes_SubSection=attribute.SubSection,
|
|
83
|
+
Requirements_Attributes_SubSectionObjective=attribute.SubSectionObjective,
|
|
84
|
+
Requirements_Attributes_Applicability=attribute.Applicability,
|
|
85
|
+
Requirements_Attributes_Recommendation=attribute.Recommendation,
|
|
86
|
+
Requirements_Attributes_SectionThreatMappings=attribute.SectionThreatMappings,
|
|
87
|
+
Requirements_Attributes_SectionGuidelineMappings=attribute.SectionGuidelineMappings,
|
|
88
|
+
Status="MANUAL",
|
|
89
|
+
StatusExtended="Manual check",
|
|
90
|
+
ResourceId="manual_check",
|
|
91
|
+
ResourceName="Manual check",
|
|
92
|
+
CheckId="manual",
|
|
93
|
+
Muted=False,
|
|
94
|
+
)
|
|
95
|
+
self._data.append(compliance_row)
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
from prowler.lib.check.compliance_models import Compliance
|
|
2
|
+
from prowler.lib.outputs.compliance.ccc.models import CCC_AzureModel
|
|
3
|
+
from prowler.lib.outputs.compliance.compliance_output import ComplianceOutput
|
|
4
|
+
from prowler.lib.outputs.finding import Finding
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class CCC_Azure(ComplianceOutput):
|
|
8
|
+
"""
|
|
9
|
+
This class represents the Azure CCC compliance output.
|
|
10
|
+
|
|
11
|
+
Attributes:
|
|
12
|
+
- _data (list): A list to store transformed data from findings.
|
|
13
|
+
- _file_descriptor (TextIOWrapper): A file descriptor to write data to a file.
|
|
14
|
+
|
|
15
|
+
Methods:
|
|
16
|
+
- transform: Transforms findings into Azure CCC compliance format.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
def transform(
|
|
20
|
+
self,
|
|
21
|
+
findings: list[Finding],
|
|
22
|
+
compliance: Compliance,
|
|
23
|
+
compliance_name: str,
|
|
24
|
+
) -> None:
|
|
25
|
+
"""
|
|
26
|
+
Transforms a list of findings into Azure CCC compliance format.
|
|
27
|
+
|
|
28
|
+
Parameters:
|
|
29
|
+
- findings (list): A list of findings.
|
|
30
|
+
- compliance (Compliance): A compliance model.
|
|
31
|
+
- compliance_name (str): The name of the compliance model.
|
|
32
|
+
|
|
33
|
+
Returns:
|
|
34
|
+
- None
|
|
35
|
+
"""
|
|
36
|
+
for finding in findings:
|
|
37
|
+
# Get the compliance requirements for the finding
|
|
38
|
+
finding_requirements = finding.compliance.get(compliance_name, [])
|
|
39
|
+
for requirement in compliance.Requirements:
|
|
40
|
+
if requirement.Id in finding_requirements:
|
|
41
|
+
for attribute in requirement.Attributes:
|
|
42
|
+
compliance_row = CCC_AzureModel(
|
|
43
|
+
Provider=finding.provider,
|
|
44
|
+
Description=compliance.Description,
|
|
45
|
+
SubscriptionId=finding.account_uid,
|
|
46
|
+
Location=finding.region,
|
|
47
|
+
AssessmentDate=str(finding.timestamp),
|
|
48
|
+
Requirements_Id=requirement.Id,
|
|
49
|
+
Requirements_Description=requirement.Description,
|
|
50
|
+
Requirements_Attributes_FamilyName=attribute.FamilyName,
|
|
51
|
+
Requirements_Attributes_FamilyDescription=attribute.FamilyDescription,
|
|
52
|
+
Requirements_Attributes_Section=attribute.Section,
|
|
53
|
+
Requirements_Attributes_SubSection=attribute.SubSection,
|
|
54
|
+
Requirements_Attributes_SubSectionObjective=attribute.SubSectionObjective,
|
|
55
|
+
Requirements_Attributes_Applicability=attribute.Applicability,
|
|
56
|
+
Requirements_Attributes_Recommendation=attribute.Recommendation,
|
|
57
|
+
Requirements_Attributes_SectionThreatMappings=attribute.SectionThreatMappings,
|
|
58
|
+
Requirements_Attributes_SectionGuidelineMappings=attribute.SectionGuidelineMappings,
|
|
59
|
+
Status=finding.status,
|
|
60
|
+
StatusExtended=finding.status_extended,
|
|
61
|
+
ResourceId=finding.resource_uid,
|
|
62
|
+
ResourceName=finding.resource_name,
|
|
63
|
+
CheckId=finding.check_id,
|
|
64
|
+
Muted=finding.muted,
|
|
65
|
+
)
|
|
66
|
+
self._data.append(compliance_row)
|
|
67
|
+
# Add manual requirements to the compliance output
|
|
68
|
+
for requirement in compliance.Requirements:
|
|
69
|
+
if not requirement.Checks:
|
|
70
|
+
for attribute in requirement.Attributes:
|
|
71
|
+
compliance_row = CCC_AzureModel(
|
|
72
|
+
Provider=compliance.Provider.lower(),
|
|
73
|
+
Description=compliance.Description,
|
|
74
|
+
SubscriptionId="",
|
|
75
|
+
Location="",
|
|
76
|
+
AssessmentDate=str(finding.timestamp),
|
|
77
|
+
Requirements_Id=requirement.Id,
|
|
78
|
+
Requirements_Description=requirement.Description,
|
|
79
|
+
Requirements_Attributes_FamilyName=attribute.FamilyName,
|
|
80
|
+
Requirements_Attributes_FamilyDescription=attribute.FamilyDescription,
|
|
81
|
+
Requirements_Attributes_Section=attribute.Section,
|
|
82
|
+
Requirements_Attributes_SubSection=attribute.SubSection,
|
|
83
|
+
Requirements_Attributes_SubSectionObjective=attribute.SubSectionObjective,
|
|
84
|
+
Requirements_Attributes_Applicability=attribute.Applicability,
|
|
85
|
+
Requirements_Attributes_Recommendation=attribute.Recommendation,
|
|
86
|
+
Requirements_Attributes_SectionThreatMappings=attribute.SectionThreatMappings,
|
|
87
|
+
Requirements_Attributes_SectionGuidelineMappings=attribute.SectionGuidelineMappings,
|
|
88
|
+
Status="MANUAL",
|
|
89
|
+
StatusExtended="Manual check",
|
|
90
|
+
ResourceId="manual_check",
|
|
91
|
+
ResourceName="Manual check",
|
|
92
|
+
CheckId="manual",
|
|
93
|
+
Muted=False,
|
|
94
|
+
)
|
|
95
|
+
self._data.append(compliance_row)
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
from prowler.lib.check.compliance_models import Compliance
|
|
2
|
+
from prowler.lib.outputs.compliance.ccc.models import CCC_GCPModel
|
|
3
|
+
from prowler.lib.outputs.compliance.compliance_output import ComplianceOutput
|
|
4
|
+
from prowler.lib.outputs.finding import Finding
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class CCC_GCP(ComplianceOutput):
|
|
8
|
+
"""
|
|
9
|
+
This class represents the GCP CCC compliance output.
|
|
10
|
+
|
|
11
|
+
Attributes:
|
|
12
|
+
- _data (list): A list to store transformed data from findings.
|
|
13
|
+
- _file_descriptor (TextIOWrapper): A file descriptor to write data to a file.
|
|
14
|
+
|
|
15
|
+
Methods:
|
|
16
|
+
- transform: Transforms findings into GCP CCC compliance format.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
def transform(
|
|
20
|
+
self,
|
|
21
|
+
findings: list[Finding],
|
|
22
|
+
compliance: Compliance,
|
|
23
|
+
compliance_name: str,
|
|
24
|
+
) -> None:
|
|
25
|
+
"""
|
|
26
|
+
Transforms a list of findings into GCP CCC compliance format.
|
|
27
|
+
|
|
28
|
+
Parameters:
|
|
29
|
+
- findings (list): A list of findings.
|
|
30
|
+
- compliance (Compliance): A compliance model.
|
|
31
|
+
- compliance_name (str): The name of the compliance model.
|
|
32
|
+
|
|
33
|
+
Returns:
|
|
34
|
+
- None
|
|
35
|
+
"""
|
|
36
|
+
for finding in findings:
|
|
37
|
+
# Get the compliance requirements for the finding
|
|
38
|
+
finding_requirements = finding.compliance.get(compliance_name, [])
|
|
39
|
+
for requirement in compliance.Requirements:
|
|
40
|
+
if requirement.Id in finding_requirements:
|
|
41
|
+
for attribute in requirement.Attributes:
|
|
42
|
+
compliance_row = CCC_GCPModel(
|
|
43
|
+
Provider=finding.provider,
|
|
44
|
+
Description=compliance.Description,
|
|
45
|
+
ProjectId=finding.account_uid,
|
|
46
|
+
Location=finding.region,
|
|
47
|
+
AssessmentDate=str(finding.timestamp),
|
|
48
|
+
Requirements_Id=requirement.Id,
|
|
49
|
+
Requirements_Description=requirement.Description,
|
|
50
|
+
Requirements_Attributes_FamilyName=attribute.FamilyName,
|
|
51
|
+
Requirements_Attributes_FamilyDescription=attribute.FamilyDescription,
|
|
52
|
+
Requirements_Attributes_Section=attribute.Section,
|
|
53
|
+
Requirements_Attributes_SubSection=attribute.SubSection,
|
|
54
|
+
Requirements_Attributes_SubSectionObjective=attribute.SubSectionObjective,
|
|
55
|
+
Requirements_Attributes_Applicability=attribute.Applicability,
|
|
56
|
+
Requirements_Attributes_Recommendation=attribute.Recommendation,
|
|
57
|
+
Requirements_Attributes_SectionThreatMappings=attribute.SectionThreatMappings,
|
|
58
|
+
Requirements_Attributes_SectionGuidelineMappings=attribute.SectionGuidelineMappings,
|
|
59
|
+
Status=finding.status,
|
|
60
|
+
StatusExtended=finding.status_extended,
|
|
61
|
+
ResourceId=finding.resource_uid,
|
|
62
|
+
ResourceName=finding.resource_name,
|
|
63
|
+
CheckId=finding.check_id,
|
|
64
|
+
Muted=finding.muted,
|
|
65
|
+
)
|
|
66
|
+
self._data.append(compliance_row)
|
|
67
|
+
# Add manual requirements to the compliance output
|
|
68
|
+
for requirement in compliance.Requirements:
|
|
69
|
+
if not requirement.Checks:
|
|
70
|
+
for attribute in requirement.Attributes:
|
|
71
|
+
compliance_row = CCC_GCPModel(
|
|
72
|
+
Provider=compliance.Provider.lower(),
|
|
73
|
+
Description=compliance.Description,
|
|
74
|
+
ProjectId="",
|
|
75
|
+
Location="",
|
|
76
|
+
AssessmentDate=str(finding.timestamp),
|
|
77
|
+
Requirements_Id=requirement.Id,
|
|
78
|
+
Requirements_Description=requirement.Description,
|
|
79
|
+
Requirements_Attributes_FamilyName=attribute.FamilyName,
|
|
80
|
+
Requirements_Attributes_FamilyDescription=attribute.FamilyDescription,
|
|
81
|
+
Requirements_Attributes_Section=attribute.Section,
|
|
82
|
+
Requirements_Attributes_SubSection=attribute.SubSection,
|
|
83
|
+
Requirements_Attributes_SubSectionObjective=attribute.SubSectionObjective,
|
|
84
|
+
Requirements_Attributes_Applicability=attribute.Applicability,
|
|
85
|
+
Requirements_Attributes_Recommendation=attribute.Recommendation,
|
|
86
|
+
Requirements_Attributes_SectionThreatMappings=attribute.SectionThreatMappings,
|
|
87
|
+
Requirements_Attributes_SectionGuidelineMappings=attribute.SectionGuidelineMappings,
|
|
88
|
+
Status="MANUAL",
|
|
89
|
+
StatusExtended="Manual check",
|
|
90
|
+
ResourceId="manual_check",
|
|
91
|
+
ResourceName="Manual check",
|
|
92
|
+
CheckId="manual",
|
|
93
|
+
Muted=False,
|
|
94
|
+
)
|
|
95
|
+
self._data.append(compliance_row)
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CCC_AWSModel(BaseModel):
|
|
7
|
+
"""
|
|
8
|
+
CCC_AWSModel generates a finding's output in AWS CCC Compliance format.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
Provider: str
|
|
12
|
+
Description: str
|
|
13
|
+
AccountId: str
|
|
14
|
+
Region: str
|
|
15
|
+
AssessmentDate: str
|
|
16
|
+
Requirements_Id: str
|
|
17
|
+
Requirements_Description: str
|
|
18
|
+
Requirements_Attributes_FamilyName: str
|
|
19
|
+
Requirements_Attributes_FamilyDescription: str
|
|
20
|
+
Requirements_Attributes_Section: str
|
|
21
|
+
Requirements_Attributes_SubSection: Optional[str]
|
|
22
|
+
Requirements_Attributes_SubSectionObjective: str
|
|
23
|
+
Requirements_Attributes_Applicability: list[str]
|
|
24
|
+
Requirements_Attributes_Recommendation: str
|
|
25
|
+
Requirements_Attributes_SectionThreatMappings: list[dict]
|
|
26
|
+
Requirements_Attributes_SectionGuidelineMappings: list[dict]
|
|
27
|
+
Status: str
|
|
28
|
+
StatusExtended: str
|
|
29
|
+
ResourceId: str
|
|
30
|
+
ResourceName: str
|
|
31
|
+
CheckId: str
|
|
32
|
+
Muted: bool
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class CCC_AzureModel(BaseModel):
|
|
36
|
+
"""
|
|
37
|
+
CCC_AzureModel generates a finding's output in Azure CCC Compliance format.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
Provider: str
|
|
41
|
+
Description: str
|
|
42
|
+
SubscriptionId: str
|
|
43
|
+
Location: str
|
|
44
|
+
AssessmentDate: str
|
|
45
|
+
Requirements_Id: str
|
|
46
|
+
Requirements_Description: str
|
|
47
|
+
Requirements_Attributes_FamilyName: str
|
|
48
|
+
Requirements_Attributes_FamilyDescription: str
|
|
49
|
+
Requirements_Attributes_Section: str
|
|
50
|
+
Requirements_Attributes_SubSection: Optional[str]
|
|
51
|
+
Requirements_Attributes_SubSectionObjective: str
|
|
52
|
+
Requirements_Attributes_Applicability: list[str]
|
|
53
|
+
Requirements_Attributes_Recommendation: str
|
|
54
|
+
Requirements_Attributes_SectionThreatMappings: list[dict]
|
|
55
|
+
Requirements_Attributes_SectionGuidelineMappings: list[dict]
|
|
56
|
+
Status: str
|
|
57
|
+
StatusExtended: str
|
|
58
|
+
ResourceId: str
|
|
59
|
+
ResourceName: str
|
|
60
|
+
CheckId: str
|
|
61
|
+
Muted: bool
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class CCC_GCPModel(BaseModel):
|
|
65
|
+
"""
|
|
66
|
+
CCC_GCPModel generates a finding's output in GCP CCC Compliance format.
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
Provider: str
|
|
70
|
+
Description: str
|
|
71
|
+
ProjectId: str
|
|
72
|
+
Location: str
|
|
73
|
+
AssessmentDate: str
|
|
74
|
+
Requirements_Id: str
|
|
75
|
+
Requirements_Description: str
|
|
76
|
+
Requirements_Attributes_FamilyName: str
|
|
77
|
+
Requirements_Attributes_FamilyDescription: str
|
|
78
|
+
Requirements_Attributes_Section: str
|
|
79
|
+
Requirements_Attributes_SubSection: Optional[str]
|
|
80
|
+
Requirements_Attributes_SubSectionObjective: str
|
|
81
|
+
Requirements_Attributes_Applicability: list[str]
|
|
82
|
+
Requirements_Attributes_Recommendation: str
|
|
83
|
+
Requirements_Attributes_SectionThreatMappings: list[dict]
|
|
84
|
+
Requirements_Attributes_SectionGuidelineMappings: list[dict]
|
|
85
|
+
Status: str
|
|
86
|
+
StatusExtended: str
|
|
87
|
+
ResourceId: str
|
|
88
|
+
ResourceName: str
|
|
89
|
+
CheckId: str
|
|
90
|
+
Muted: bool
|
|
@@ -66,6 +66,8 @@ class AWSCIS(ComplianceOutput):
|
|
|
66
66
|
ResourceName=finding.resource_name,
|
|
67
67
|
CheckId=finding.check_id,
|
|
68
68
|
Muted=finding.muted,
|
|
69
|
+
Framework=compliance.Framework,
|
|
70
|
+
Name=compliance.Name,
|
|
69
71
|
)
|
|
70
72
|
self._data.append(compliance_row)
|
|
71
73
|
# Add manual requirements to the compliance output
|
|
@@ -98,5 +100,7 @@ class AWSCIS(ComplianceOutput):
|
|
|
98
100
|
ResourceName="Manual check",
|
|
99
101
|
CheckId="manual",
|
|
100
102
|
Muted=False,
|
|
103
|
+
Framework=compliance.Framework,
|
|
104
|
+
Name=compliance.Name,
|
|
101
105
|
)
|
|
102
106
|
self._data.append(compliance_row)
|
|
@@ -66,6 +66,8 @@ class AzureCIS(ComplianceOutput):
|
|
|
66
66
|
ResourceName=finding.resource_name,
|
|
67
67
|
CheckId=finding.check_id,
|
|
68
68
|
Muted=finding.muted,
|
|
69
|
+
Framework=compliance.Framework,
|
|
70
|
+
Name=compliance.Name,
|
|
69
71
|
)
|
|
70
72
|
self._data.append(compliance_row)
|
|
71
73
|
# Add manual requirements to the compliance output
|
|
@@ -98,5 +100,7 @@ class AzureCIS(ComplianceOutput):
|
|
|
98
100
|
ResourceName="Manual check",
|
|
99
101
|
CheckId="manual",
|
|
100
102
|
Muted=False,
|
|
103
|
+
Framework=compliance.Framework,
|
|
104
|
+
Name=compliance.Name,
|
|
101
105
|
)
|
|
102
106
|
self._data.append(compliance_row)
|
|
@@ -65,6 +65,8 @@ class GCPCIS(ComplianceOutput):
|
|
|
65
65
|
ResourceName=finding.resource_name,
|
|
66
66
|
CheckId=finding.check_id,
|
|
67
67
|
Muted=finding.muted,
|
|
68
|
+
Framework=compliance.Framework,
|
|
69
|
+
Name=compliance.Name,
|
|
68
70
|
)
|
|
69
71
|
self._data.append(compliance_row)
|
|
70
72
|
# Add manual requirements to the compliance output
|
|
@@ -96,5 +98,7 @@ class GCPCIS(ComplianceOutput):
|
|
|
96
98
|
ResourceName="Manual check",
|
|
97
99
|
CheckId="manual",
|
|
98
100
|
Muted=False,
|
|
101
|
+
Framework=compliance.Framework,
|
|
102
|
+
Name=compliance.Name,
|
|
99
103
|
)
|
|
100
104
|
self._data.append(compliance_row)
|
|
@@ -65,6 +65,8 @@ class GithubCIS(ComplianceOutput):
|
|
|
65
65
|
ResourceName=finding.resource_name,
|
|
66
66
|
CheckId=finding.check_id,
|
|
67
67
|
Muted=finding.muted,
|
|
68
|
+
Framework=compliance.Framework,
|
|
69
|
+
Name=compliance.Name,
|
|
68
70
|
)
|
|
69
71
|
self._data.append(compliance_row)
|
|
70
72
|
# Add manual requirements to the compliance output
|
|
@@ -96,5 +98,7 @@ class GithubCIS(ComplianceOutput):
|
|
|
96
98
|
ResourceName="Manual check",
|
|
97
99
|
CheckId="manual",
|
|
98
100
|
Muted=False,
|
|
101
|
+
Framework=compliance.Framework,
|
|
102
|
+
Name=compliance.Name,
|
|
99
103
|
)
|
|
100
104
|
self._data.append(compliance_row)
|
|
@@ -66,6 +66,8 @@ class KubernetesCIS(ComplianceOutput):
|
|
|
66
66
|
ResourceName=finding.resource_name,
|
|
67
67
|
CheckId=finding.check_id,
|
|
68
68
|
Muted=finding.muted,
|
|
69
|
+
Framework=compliance.Framework,
|
|
70
|
+
Name=compliance.Name,
|
|
69
71
|
)
|
|
70
72
|
self._data.append(compliance_row)
|
|
71
73
|
# Add manual requirements to the compliance output
|
|
@@ -98,5 +100,7 @@ class KubernetesCIS(ComplianceOutput):
|
|
|
98
100
|
ResourceName="Manual check",
|
|
99
101
|
CheckId="manual",
|
|
100
102
|
Muted=False,
|
|
103
|
+
Framework=compliance.Framework,
|
|
104
|
+
Name=compliance.Name,
|
|
101
105
|
)
|
|
102
106
|
self._data.append(compliance_row)
|
|
@@ -66,6 +66,8 @@ class M365CIS(ComplianceOutput):
|
|
|
66
66
|
ResourceName=finding.resource_name,
|
|
67
67
|
CheckId=finding.check_id,
|
|
68
68
|
Muted=finding.muted,
|
|
69
|
+
Framework=compliance.Framework,
|
|
70
|
+
Name=compliance.Name,
|
|
69
71
|
)
|
|
70
72
|
self._data.append(compliance_row)
|
|
71
73
|
# Add manual requirements to the compliance output
|
|
@@ -98,5 +100,7 @@ class M365CIS(ComplianceOutput):
|
|
|
98
100
|
ResourceName="Manual check",
|
|
99
101
|
CheckId="manual",
|
|
100
102
|
Muted=False,
|
|
103
|
+
Framework=compliance.Framework,
|
|
104
|
+
Name=compliance.Name,
|
|
101
105
|
)
|
|
102
106
|
self._data.append(compliance_row)
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
from prowler.config.config import timestamp
|
|
2
|
+
from prowler.lib.check.compliance_models import Compliance
|
|
3
|
+
from prowler.lib.outputs.compliance.cis.models import OCICISModel
|
|
4
|
+
from prowler.lib.outputs.compliance.compliance_output import ComplianceOutput
|
|
5
|
+
from prowler.lib.outputs.finding import Finding
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class OCICIS(ComplianceOutput):
|
|
9
|
+
"""
|
|
10
|
+
This class represents the OCI CIS compliance output.
|
|
11
|
+
|
|
12
|
+
Attributes:
|
|
13
|
+
- _data (list): A list to store transformed data from findings.
|
|
14
|
+
- _file_descriptor (TextIOWrapper): A file descriptor to write data to a file.
|
|
15
|
+
|
|
16
|
+
Methods:
|
|
17
|
+
- transform: Transforms findings into OCI CIS compliance format.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
def transform(
|
|
21
|
+
self,
|
|
22
|
+
findings: list[Finding],
|
|
23
|
+
compliance: Compliance,
|
|
24
|
+
compliance_name: str,
|
|
25
|
+
) -> None:
|
|
26
|
+
"""
|
|
27
|
+
Transforms a list of findings into OCI CIS compliance format.
|
|
28
|
+
|
|
29
|
+
Parameters:
|
|
30
|
+
- findings (list): A list of findings.
|
|
31
|
+
- compliance (Compliance): A compliance model.
|
|
32
|
+
- compliance_name (str): The name of the compliance model.
|
|
33
|
+
|
|
34
|
+
Returns:
|
|
35
|
+
- None
|
|
36
|
+
"""
|
|
37
|
+
for finding in findings:
|
|
38
|
+
# Get the compliance requirements for the finding
|
|
39
|
+
finding_requirements = finding.compliance.get(compliance_name, [])
|
|
40
|
+
for requirement in compliance.Requirements:
|
|
41
|
+
if requirement.Id in finding_requirements:
|
|
42
|
+
for attribute in requirement.Attributes:
|
|
43
|
+
compliance_row = OCICISModel(
|
|
44
|
+
Provider=finding.provider,
|
|
45
|
+
Description=compliance.Description,
|
|
46
|
+
TenancyId=finding.account_uid,
|
|
47
|
+
Region=finding.region,
|
|
48
|
+
AssessmentDate=str(timestamp),
|
|
49
|
+
Requirements_Id=requirement.Id,
|
|
50
|
+
Requirements_Description=requirement.Description,
|
|
51
|
+
Requirements_Attributes_Section=attribute.Section,
|
|
52
|
+
Requirements_Attributes_SubSection=attribute.SubSection,
|
|
53
|
+
Requirements_Attributes_Profile=attribute.Profile,
|
|
54
|
+
Requirements_Attributes_AssessmentStatus=attribute.AssessmentStatus,
|
|
55
|
+
Requirements_Attributes_Description=attribute.Description,
|
|
56
|
+
Requirements_Attributes_RationaleStatement=attribute.RationaleStatement,
|
|
57
|
+
Requirements_Attributes_ImpactStatement=attribute.ImpactStatement,
|
|
58
|
+
Requirements_Attributes_RemediationProcedure=attribute.RemediationProcedure,
|
|
59
|
+
Requirements_Attributes_AuditProcedure=attribute.AuditProcedure,
|
|
60
|
+
Requirements_Attributes_AdditionalInformation=attribute.AdditionalInformation,
|
|
61
|
+
Requirements_Attributes_DefaultValue=attribute.DefaultValue,
|
|
62
|
+
Requirements_Attributes_References=attribute.References,
|
|
63
|
+
Status=finding.status,
|
|
64
|
+
StatusExtended=finding.status_extended,
|
|
65
|
+
ResourceId=finding.resource_uid,
|
|
66
|
+
ResourceName=finding.resource_name,
|
|
67
|
+
CheckId=finding.check_id,
|
|
68
|
+
Muted=finding.muted,
|
|
69
|
+
Framework=compliance.Framework,
|
|
70
|
+
Name=compliance.Name,
|
|
71
|
+
)
|
|
72
|
+
self._data.append(compliance_row)
|
|
73
|
+
# Add manual requirements to the compliance output
|
|
74
|
+
for requirement in compliance.Requirements:
|
|
75
|
+
if not requirement.Checks:
|
|
76
|
+
for attribute in requirement.Attributes:
|
|
77
|
+
compliance_row = OCICISModel(
|
|
78
|
+
Provider=compliance.Provider.lower(),
|
|
79
|
+
Description=compliance.Description,
|
|
80
|
+
TenancyId="",
|
|
81
|
+
Region="",
|
|
82
|
+
AssessmentDate=str(timestamp),
|
|
83
|
+
Requirements_Id=requirement.Id,
|
|
84
|
+
Requirements_Description=requirement.Description,
|
|
85
|
+
Requirements_Attributes_Section=attribute.Section,
|
|
86
|
+
Requirements_Attributes_SubSection=attribute.SubSection,
|
|
87
|
+
Requirements_Attributes_Profile=attribute.Profile,
|
|
88
|
+
Requirements_Attributes_AssessmentStatus=attribute.AssessmentStatus,
|
|
89
|
+
Requirements_Attributes_Description=attribute.Description,
|
|
90
|
+
Requirements_Attributes_RationaleStatement=attribute.RationaleStatement,
|
|
91
|
+
Requirements_Attributes_ImpactStatement=attribute.ImpactStatement,
|
|
92
|
+
Requirements_Attributes_RemediationProcedure=attribute.RemediationProcedure,
|
|
93
|
+
Requirements_Attributes_AuditProcedure=attribute.AuditProcedure,
|
|
94
|
+
Requirements_Attributes_AdditionalInformation=attribute.AdditionalInformation,
|
|
95
|
+
Requirements_Attributes_DefaultValue=attribute.DefaultValue,
|
|
96
|
+
Requirements_Attributes_References=attribute.References,
|
|
97
|
+
Status="MANUAL",
|
|
98
|
+
StatusExtended="Manual check",
|
|
99
|
+
ResourceId="manual_check",
|
|
100
|
+
ResourceName="Manual check",
|
|
101
|
+
CheckId="manual",
|
|
102
|
+
Muted=False,
|
|
103
|
+
Framework=compliance.Framework,
|
|
104
|
+
Name=compliance.Name,
|
|
105
|
+
)
|
|
106
|
+
self._data.append(compliance_row)
|