├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE.txt ├── NOTICE.txt ├── README.md ├── SECURITY.md ├── deployment ├── build-s3-dist.sh └── run-unit-tests.sh └── source ├── custom_resource ├── .coveragerc ├── __init__.py ├── custom_resource.py ├── log_group_retention.py ├── operations │ ├── __init__.py │ ├── add_athena_partitions.py │ ├── config_app_access_log_bucket.py │ ├── config_aws_waf_logs.py │ ├── config_waf_log_bucket.py │ ├── config_web_acl.py │ ├── generate_app_log_parser_conf.py │ ├── generate_waf_log_parser_conf.py │ ├── operation_types.py │ └── set_log_group_retention.py ├── poetry.lock ├── pyproject.toml ├── resource_manager.py └── test │ ├── __init__.py │ ├── conftest.py │ ├── test_custom_resource.py │ ├── test_log_group_retention.py │ └── test_resource_manager.py ├── helper ├── .coveragerc ├── __init__.py ├── helper.py ├── poetry.lock ├── pyproject.toml ├── stack_requirements.py └── test │ ├── __init__.py │ ├── conftest.py │ ├── test_helper.py │ └── test_stack_requirements.py ├── image └── architecture_diagram.png ├── infrastructure ├── .gitignore ├── .npmignore ├── README.md ├── bin │ └── aws-waf-security-automations.ts ├── cdk.json ├── jest.config.js ├── lib │ ├── aws-waf-security-automations-stack.ts │ ├── components │ │ ├── athenaPartition │ │ │ ├── athena-partitions-role.ts │ │ │ └── athena-partitions.ts │ │ ├── badBot │ │ │ └── bad-bot.ts │ │ ├── customResource │ │ │ ├── custom-cloudwatchlog-retention.ts │ │ │ ├── custom-configure-webacl.ts │ │ │ ├── custom-resource-lambda.ts │ │ │ └── custom-resource-role.ts │ │ ├── customs │ │ │ ├── check-requirements.ts │ │ │ ├── create-delivery-stream.ts │ │ │ ├── create-glue-database.ts │ │ │ ├── create-unique-id.ts │ │ │ ├── custom-config-app-log-bucket.ts │ │ │ └── custom-config-waf-logs.ts │ │ ├── dashboard │ │ │ └── monitoring-dashboard.ts │ │ ├── helpers │ │ │ └── helper-lambda.ts │ │ ├── logParser │ │ │ └── log-parser.ts │ │ ├── logsForPartition │ │ │ └── logs-for-partition.ts │ │ ├── metricsLambdaResources │ │ │ └── metricsLambdaResources.ts │ │ ├── reputationLists │ │ │ └── reputation-list.ts │ │ ├── s3buckets │ │ │ ├── access-logging.ts │ │ │ ├── configure-waf-log.ts │ │ │ └── waf-log.ts │ │ └── setIpRetention │ │ │ ├── ddb-stream-to-lambda-es-mapping.ts │ │ │ ├── ip-expiration-sns-topic.ts │ │ │ ├── ip-retention-ddb-table.ts │ │ │ ├── remove-expired-ip-role.ts │ │ │ ├── remove-expired-ip.ts │ │ │ ├── set-ip-retention-events-rule.ts │ │ │ ├── set-ip-retention-invoke-permission-lambda.ts │ │ │ ├── set-ip-retention-role.ts │ │ │ ├── set-ip-retention.ts │ │ │ └── set-ip-sns.ts │ ├── constants │ │ └── waf-constants.ts │ ├── mappings │ │ ├── solution.ts │ │ ├── sourcecode.ts │ │ └── utils.ts │ ├── metadata │ │ └── waf-metadata.ts │ ├── nestedstacks │ │ ├── firehose-athena │ │ │ ├── components │ │ │ │ ├── firehose-glue-access-logs-database.ts │ │ │ │ ├── firehose-logs-delivery.ts │ │ │ │ ├── tables │ │ │ │ │ ├── firehose-glue-app-access-logs.ts │ │ │ │ │ └── firehose-glue-waf-access-logs.ts │ │ │ │ └── workgroups │ │ │ │ │ ├── firehose-waf-add-partition.ts │ │ │ │ │ ├── firehose-waf-app-access-log.ts │ │ │ │ │ └── firehose-waf-log-athena.ts │ │ │ ├── constants │ │ │ │ └── firehose-constants.ts │ │ │ └── firehose-athena-nestedstack.ts │ │ └── webacl │ │ │ ├── constants │ │ │ └── webacl-constants.ts │ │ │ ├── utils │ │ │ └── webaclUtils.ts │ │ │ └── webacl-nestedstack.ts │ └── utils │ │ └── appUtils.ts ├── package-lock.json ├── package.json ├── test │ ├── appUtils.test.ts │ ├── aws-waf-security-automations-firehose-athena.test.ts │ ├── aws-waf-security-automations-stack.test.ts │ ├── aws-waf-security-automations-webacl.test.ts │ ├── cfn-guard-suppress.test.ts │ ├── patterns.test.ts │ ├── test_data │ │ ├── aws-waf-security-automations-firehose-athena.template │ │ ├── aws-waf-security-automations-webacl.template │ │ └── aws-waf-security-automations.template │ ├── utils.test.ts │ └── webaclUtils.test.ts └── tsconfig.json ├── ip_retention_handler ├── .coveragerc ├── __init__.py ├── poetry.lock ├── pyproject.toml ├── remove_expired_ip.py ├── set_ip_retention.py └── test │ ├── __init__.py │ ├── conftest.py │ ├── test_remove_expired_ip.py │ └── test_set_ip_retention.py ├── lib ├── boto3_util.py ├── cfn_response.py ├── cw_metrics_util.py ├── dynamodb_util.py ├── logging_util.py ├── s3_util.py ├── sns_util.py ├── solution_metrics.py └── waflibv2.py ├── log_parser ├── .coveragerc ├── __init__.py ├── add_athena_partitions.py ├── athena_log_parser.py ├── build_athena_queries.py ├── lambda_log_parser.py ├── log_parser.py ├── partition_s3_logs.py ├── poetry.lock ├── pyproject.toml └── test │ ├── __init__.py │ ├── conftest.py │ ├── test_add_athena_partitions.py │ ├── test_add_athena_partitions_fixed_time.py │ ├── test_athena_log_parser.py │ ├── test_athena_log_procees.py │ ├── test_bad_bot_urls_population.py │ ├── test_build_athena_queries.py │ ├── test_data │ ├── E3HXCM7PFRG6HT.2023-04-24-21.d740d76bCloudFront.gz │ ├── XXXXXXXXXXXX_elasticloadbalancing_us-east-1_app.ApplicationLoadBalancer.fa87e1db7badc175_20230424T2110Z_X.X.X.X_4c8scnzy.log.gz │ ├── alb_logs_query.txt │ ├── athena_alb_bad_bot_1h_query.txt │ ├── athena_alb_bad_bot_query.txt │ ├── athena_cloudfront_bad_bot_query.txt │ ├── athena_partitions_query.txt │ ├── cf-access-log-sample.gz │ ├── cloudfront_logs_query.txt │ ├── test_athena_query_result.csv │ ├── test_waf_log.gz │ ├── waf-stack-app_log_out.json │ ├── waf_cloudfront_bad_bot_query.txt │ ├── waf_logs_query_1.txt │ ├── waf_logs_query_2.txt │ ├── waf_logs_query_3.txt │ ├── waf_logs_query_4.txt │ ├── waf_logs_query_5.txt │ ├── waf_logs_query_6.txt │ ├── waf_stack-app_log_conf.json │ ├── waf_stack-waf_log_conf.json │ └── waf_stack-waf_log_out.json │ ├── test_ip_address_handler.py │ ├── test_lambda_log_parser_bad_bot_ip_set.py │ ├── test_log_parser.py │ ├── test_partition_s3_logs.py │ ├── test_process_counter.py │ ├── test_process_log_file.py │ ├── test_read_alb_log_file.py │ ├── test_read_cloudfront_log_file.py │ ├── test_read_waf_log_file.py │ └── test_security.py ├── metrics ├── __init__.py ├── cloudwatch_operations.py ├── config.py ├── metrics.py ├── poetry.lock ├── pyproject.toml ├── test │ ├── __init__.py │ ├── conftest.py │ └── test_metrics_handler.py └── waf_metrics.py ├── reputation_lists_parser ├── .coveragerc ├── __init__.py ├── poetry.lock ├── pyproject.toml ├── reputation_lists.py └── test │ ├── __init__.py │ ├── conftest.py │ ├── test_data │ ├── __init__.py │ └── test_data.txt │ └── test_reputation_lists_parser.py └── timer ├── .coveragerc ├── __init__.py ├── poetry.lock ├── pyproject.toml ├── test ├── __init__.py ├── conftest.py └── test_timer.py └── timer.py /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /NOTICE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/NOTICE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/SECURITY.md -------------------------------------------------------------------------------- /deployment/build-s3-dist.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/deployment/build-s3-dist.sh -------------------------------------------------------------------------------- /deployment/run-unit-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/deployment/run-unit-tests.sh -------------------------------------------------------------------------------- /source/custom_resource/.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/.coveragerc -------------------------------------------------------------------------------- /source/custom_resource/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/custom_resource/custom_resource.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/custom_resource.py -------------------------------------------------------------------------------- /source/custom_resource/log_group_retention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/log_group_retention.py -------------------------------------------------------------------------------- /source/custom_resource/operations/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/operations/__init__.py -------------------------------------------------------------------------------- /source/custom_resource/operations/add_athena_partitions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/operations/add_athena_partitions.py -------------------------------------------------------------------------------- /source/custom_resource/operations/config_app_access_log_bucket.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/operations/config_app_access_log_bucket.py -------------------------------------------------------------------------------- /source/custom_resource/operations/config_aws_waf_logs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/operations/config_aws_waf_logs.py -------------------------------------------------------------------------------- /source/custom_resource/operations/config_waf_log_bucket.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/operations/config_waf_log_bucket.py -------------------------------------------------------------------------------- /source/custom_resource/operations/config_web_acl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/operations/config_web_acl.py -------------------------------------------------------------------------------- /source/custom_resource/operations/generate_app_log_parser_conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/operations/generate_app_log_parser_conf.py -------------------------------------------------------------------------------- /source/custom_resource/operations/generate_waf_log_parser_conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/operations/generate_waf_log_parser_conf.py -------------------------------------------------------------------------------- /source/custom_resource/operations/operation_types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/operations/operation_types.py -------------------------------------------------------------------------------- /source/custom_resource/operations/set_log_group_retention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/operations/set_log_group_retention.py -------------------------------------------------------------------------------- /source/custom_resource/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/poetry.lock -------------------------------------------------------------------------------- /source/custom_resource/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/pyproject.toml -------------------------------------------------------------------------------- /source/custom_resource/resource_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/resource_manager.py -------------------------------------------------------------------------------- /source/custom_resource/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/custom_resource/test/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/test/conftest.py -------------------------------------------------------------------------------- /source/custom_resource/test/test_custom_resource.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/test/test_custom_resource.py -------------------------------------------------------------------------------- /source/custom_resource/test/test_log_group_retention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/test/test_log_group_retention.py -------------------------------------------------------------------------------- /source/custom_resource/test/test_resource_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/custom_resource/test/test_resource_manager.py -------------------------------------------------------------------------------- /source/helper/.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/helper/.coveragerc -------------------------------------------------------------------------------- /source/helper/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/helper/helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/helper/helper.py -------------------------------------------------------------------------------- /source/helper/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/helper/poetry.lock -------------------------------------------------------------------------------- /source/helper/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/helper/pyproject.toml -------------------------------------------------------------------------------- /source/helper/stack_requirements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/helper/stack_requirements.py -------------------------------------------------------------------------------- /source/helper/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/helper/test/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/helper/test/conftest.py -------------------------------------------------------------------------------- /source/helper/test/test_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/helper/test/test_helper.py -------------------------------------------------------------------------------- /source/helper/test/test_stack_requirements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/helper/test/test_stack_requirements.py -------------------------------------------------------------------------------- /source/image/architecture_diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/image/architecture_diagram.png -------------------------------------------------------------------------------- /source/infrastructure/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/.gitignore -------------------------------------------------------------------------------- /source/infrastructure/.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/.npmignore -------------------------------------------------------------------------------- /source/infrastructure/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/README.md -------------------------------------------------------------------------------- /source/infrastructure/bin/aws-waf-security-automations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/bin/aws-waf-security-automations.ts -------------------------------------------------------------------------------- /source/infrastructure/cdk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/cdk.json -------------------------------------------------------------------------------- /source/infrastructure/jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/jest.config.js -------------------------------------------------------------------------------- /source/infrastructure/lib/aws-waf-security-automations-stack.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/aws-waf-security-automations-stack.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/athenaPartition/athena-partitions-role.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/athenaPartition/athena-partitions-role.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/athenaPartition/athena-partitions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/athenaPartition/athena-partitions.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/badBot/bad-bot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/badBot/bad-bot.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/customResource/custom-cloudwatchlog-retention.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/customResource/custom-cloudwatchlog-retention.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/customResource/custom-configure-webacl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/customResource/custom-configure-webacl.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/customResource/custom-resource-lambda.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/customResource/custom-resource-lambda.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/customResource/custom-resource-role.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/customResource/custom-resource-role.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/customs/check-requirements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/customs/check-requirements.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/customs/create-delivery-stream.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/customs/create-delivery-stream.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/customs/create-glue-database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/customs/create-glue-database.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/customs/create-unique-id.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/customs/create-unique-id.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/customs/custom-config-app-log-bucket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/customs/custom-config-app-log-bucket.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/customs/custom-config-waf-logs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/customs/custom-config-waf-logs.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/dashboard/monitoring-dashboard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/dashboard/monitoring-dashboard.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/helpers/helper-lambda.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/helpers/helper-lambda.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/logParser/log-parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/logParser/log-parser.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/logsForPartition/logs-for-partition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/logsForPartition/logs-for-partition.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/metricsLambdaResources/metricsLambdaResources.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/metricsLambdaResources/metricsLambdaResources.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/reputationLists/reputation-list.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/reputationLists/reputation-list.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/s3buckets/access-logging.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/s3buckets/access-logging.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/s3buckets/configure-waf-log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/s3buckets/configure-waf-log.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/s3buckets/waf-log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/s3buckets/waf-log.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/setIpRetention/ddb-stream-to-lambda-es-mapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/setIpRetention/ddb-stream-to-lambda-es-mapping.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/setIpRetention/ip-expiration-sns-topic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/setIpRetention/ip-expiration-sns-topic.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/setIpRetention/ip-retention-ddb-table.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/setIpRetention/ip-retention-ddb-table.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/setIpRetention/remove-expired-ip-role.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/setIpRetention/remove-expired-ip-role.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/setIpRetention/remove-expired-ip.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/setIpRetention/remove-expired-ip.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/setIpRetention/set-ip-retention-events-rule.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/setIpRetention/set-ip-retention-events-rule.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/setIpRetention/set-ip-retention-invoke-permission-lambda.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/setIpRetention/set-ip-retention-invoke-permission-lambda.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/setIpRetention/set-ip-retention-role.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/setIpRetention/set-ip-retention-role.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/setIpRetention/set-ip-retention.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/setIpRetention/set-ip-retention.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/components/setIpRetention/set-ip-sns.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/components/setIpRetention/set-ip-sns.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/constants/waf-constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/constants/waf-constants.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/mappings/solution.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/mappings/solution.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/mappings/sourcecode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/mappings/sourcecode.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/mappings/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/mappings/utils.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/metadata/waf-metadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/metadata/waf-metadata.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/nestedstacks/firehose-athena/components/firehose-glue-access-logs-database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/nestedstacks/firehose-athena/components/firehose-glue-access-logs-database.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/nestedstacks/firehose-athena/components/firehose-logs-delivery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/nestedstacks/firehose-athena/components/firehose-logs-delivery.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/nestedstacks/firehose-athena/components/tables/firehose-glue-app-access-logs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/nestedstacks/firehose-athena/components/tables/firehose-glue-app-access-logs.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/nestedstacks/firehose-athena/components/tables/firehose-glue-waf-access-logs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/nestedstacks/firehose-athena/components/tables/firehose-glue-waf-access-logs.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/nestedstacks/firehose-athena/components/workgroups/firehose-waf-add-partition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/nestedstacks/firehose-athena/components/workgroups/firehose-waf-add-partition.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/nestedstacks/firehose-athena/components/workgroups/firehose-waf-app-access-log.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/nestedstacks/firehose-athena/components/workgroups/firehose-waf-app-access-log.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/nestedstacks/firehose-athena/components/workgroups/firehose-waf-log-athena.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/nestedstacks/firehose-athena/components/workgroups/firehose-waf-log-athena.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/nestedstacks/firehose-athena/constants/firehose-constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/nestedstacks/firehose-athena/constants/firehose-constants.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/nestedstacks/firehose-athena/firehose-athena-nestedstack.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/nestedstacks/firehose-athena/firehose-athena-nestedstack.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/nestedstacks/webacl/constants/webacl-constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/nestedstacks/webacl/constants/webacl-constants.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/nestedstacks/webacl/utils/webaclUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/nestedstacks/webacl/utils/webaclUtils.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/nestedstacks/webacl/webacl-nestedstack.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/nestedstacks/webacl/webacl-nestedstack.ts -------------------------------------------------------------------------------- /source/infrastructure/lib/utils/appUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/lib/utils/appUtils.ts -------------------------------------------------------------------------------- /source/infrastructure/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/package-lock.json -------------------------------------------------------------------------------- /source/infrastructure/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/package.json -------------------------------------------------------------------------------- /source/infrastructure/test/appUtils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/test/appUtils.test.ts -------------------------------------------------------------------------------- /source/infrastructure/test/aws-waf-security-automations-firehose-athena.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/test/aws-waf-security-automations-firehose-athena.test.ts -------------------------------------------------------------------------------- /source/infrastructure/test/aws-waf-security-automations-stack.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/test/aws-waf-security-automations-stack.test.ts -------------------------------------------------------------------------------- /source/infrastructure/test/aws-waf-security-automations-webacl.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/test/aws-waf-security-automations-webacl.test.ts -------------------------------------------------------------------------------- /source/infrastructure/test/cfn-guard-suppress.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/test/cfn-guard-suppress.test.ts -------------------------------------------------------------------------------- /source/infrastructure/test/patterns.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/test/patterns.test.ts -------------------------------------------------------------------------------- /source/infrastructure/test/test_data/aws-waf-security-automations-firehose-athena.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/test/test_data/aws-waf-security-automations-firehose-athena.template -------------------------------------------------------------------------------- /source/infrastructure/test/test_data/aws-waf-security-automations-webacl.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/test/test_data/aws-waf-security-automations-webacl.template -------------------------------------------------------------------------------- /source/infrastructure/test/test_data/aws-waf-security-automations.template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/test/test_data/aws-waf-security-automations.template -------------------------------------------------------------------------------- /source/infrastructure/test/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/test/utils.test.ts -------------------------------------------------------------------------------- /source/infrastructure/test/webaclUtils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/test/webaclUtils.test.ts -------------------------------------------------------------------------------- /source/infrastructure/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/infrastructure/tsconfig.json -------------------------------------------------------------------------------- /source/ip_retention_handler/.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/ip_retention_handler/.coveragerc -------------------------------------------------------------------------------- /source/ip_retention_handler/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/ip_retention_handler/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/ip_retention_handler/poetry.lock -------------------------------------------------------------------------------- /source/ip_retention_handler/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/ip_retention_handler/pyproject.toml -------------------------------------------------------------------------------- /source/ip_retention_handler/remove_expired_ip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/ip_retention_handler/remove_expired_ip.py -------------------------------------------------------------------------------- /source/ip_retention_handler/set_ip_retention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/ip_retention_handler/set_ip_retention.py -------------------------------------------------------------------------------- /source/ip_retention_handler/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/ip_retention_handler/test/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/ip_retention_handler/test/conftest.py -------------------------------------------------------------------------------- /source/ip_retention_handler/test/test_remove_expired_ip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/ip_retention_handler/test/test_remove_expired_ip.py -------------------------------------------------------------------------------- /source/ip_retention_handler/test/test_set_ip_retention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/ip_retention_handler/test/test_set_ip_retention.py -------------------------------------------------------------------------------- /source/lib/boto3_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/lib/boto3_util.py -------------------------------------------------------------------------------- /source/lib/cfn_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/lib/cfn_response.py -------------------------------------------------------------------------------- /source/lib/cw_metrics_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/lib/cw_metrics_util.py -------------------------------------------------------------------------------- /source/lib/dynamodb_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/lib/dynamodb_util.py -------------------------------------------------------------------------------- /source/lib/logging_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/lib/logging_util.py -------------------------------------------------------------------------------- /source/lib/s3_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/lib/s3_util.py -------------------------------------------------------------------------------- /source/lib/sns_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/lib/sns_util.py -------------------------------------------------------------------------------- /source/lib/solution_metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/lib/solution_metrics.py -------------------------------------------------------------------------------- /source/lib/waflibv2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/lib/waflibv2.py -------------------------------------------------------------------------------- /source/log_parser/.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/.coveragerc -------------------------------------------------------------------------------- /source/log_parser/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/log_parser/add_athena_partitions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/add_athena_partitions.py -------------------------------------------------------------------------------- /source/log_parser/athena_log_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/athena_log_parser.py -------------------------------------------------------------------------------- /source/log_parser/build_athena_queries.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/build_athena_queries.py -------------------------------------------------------------------------------- /source/log_parser/lambda_log_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/lambda_log_parser.py -------------------------------------------------------------------------------- /source/log_parser/log_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/log_parser.py -------------------------------------------------------------------------------- /source/log_parser/partition_s3_logs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/partition_s3_logs.py -------------------------------------------------------------------------------- /source/log_parser/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/poetry.lock -------------------------------------------------------------------------------- /source/log_parser/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/pyproject.toml -------------------------------------------------------------------------------- /source/log_parser/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/log_parser/test/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/conftest.py -------------------------------------------------------------------------------- /source/log_parser/test/test_add_athena_partitions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_add_athena_partitions.py -------------------------------------------------------------------------------- /source/log_parser/test/test_add_athena_partitions_fixed_time.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_add_athena_partitions_fixed_time.py -------------------------------------------------------------------------------- /source/log_parser/test/test_athena_log_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_athena_log_parser.py -------------------------------------------------------------------------------- /source/log_parser/test/test_athena_log_procees.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_athena_log_procees.py -------------------------------------------------------------------------------- /source/log_parser/test/test_bad_bot_urls_population.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_bad_bot_urls_population.py -------------------------------------------------------------------------------- /source/log_parser/test/test_build_athena_queries.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_build_athena_queries.py -------------------------------------------------------------------------------- /source/log_parser/test/test_data/E3HXCM7PFRG6HT.2023-04-24-21.d740d76bCloudFront.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/E3HXCM7PFRG6HT.2023-04-24-21.d740d76bCloudFront.gz -------------------------------------------------------------------------------- /source/log_parser/test/test_data/XXXXXXXXXXXX_elasticloadbalancing_us-east-1_app.ApplicationLoadBalancer.fa87e1db7badc175_20230424T2110Z_X.X.X.X_4c8scnzy.log.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/XXXXXXXXXXXX_elasticloadbalancing_us-east-1_app.ApplicationLoadBalancer.fa87e1db7badc175_20230424T2110Z_X.X.X.X_4c8scnzy.log.gz -------------------------------------------------------------------------------- /source/log_parser/test/test_data/alb_logs_query.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/alb_logs_query.txt -------------------------------------------------------------------------------- /source/log_parser/test/test_data/athena_alb_bad_bot_1h_query.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/athena_alb_bad_bot_1h_query.txt -------------------------------------------------------------------------------- /source/log_parser/test/test_data/athena_alb_bad_bot_query.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/athena_alb_bad_bot_query.txt -------------------------------------------------------------------------------- /source/log_parser/test/test_data/athena_cloudfront_bad_bot_query.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/athena_cloudfront_bad_bot_query.txt -------------------------------------------------------------------------------- /source/log_parser/test/test_data/athena_partitions_query.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/athena_partitions_query.txt -------------------------------------------------------------------------------- /source/log_parser/test/test_data/cf-access-log-sample.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/cf-access-log-sample.gz -------------------------------------------------------------------------------- /source/log_parser/test/test_data/cloudfront_logs_query.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/cloudfront_logs_query.txt -------------------------------------------------------------------------------- /source/log_parser/test/test_data/test_athena_query_result.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/test_athena_query_result.csv -------------------------------------------------------------------------------- /source/log_parser/test/test_data/test_waf_log.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/test_waf_log.gz -------------------------------------------------------------------------------- /source/log_parser/test/test_data/waf-stack-app_log_out.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/waf-stack-app_log_out.json -------------------------------------------------------------------------------- /source/log_parser/test/test_data/waf_cloudfront_bad_bot_query.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/waf_cloudfront_bad_bot_query.txt -------------------------------------------------------------------------------- /source/log_parser/test/test_data/waf_logs_query_1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/waf_logs_query_1.txt -------------------------------------------------------------------------------- /source/log_parser/test/test_data/waf_logs_query_2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/waf_logs_query_2.txt -------------------------------------------------------------------------------- /source/log_parser/test/test_data/waf_logs_query_3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/waf_logs_query_3.txt -------------------------------------------------------------------------------- /source/log_parser/test/test_data/waf_logs_query_4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/waf_logs_query_4.txt -------------------------------------------------------------------------------- /source/log_parser/test/test_data/waf_logs_query_5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/waf_logs_query_5.txt -------------------------------------------------------------------------------- /source/log_parser/test/test_data/waf_logs_query_6.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/waf_logs_query_6.txt -------------------------------------------------------------------------------- /source/log_parser/test/test_data/waf_stack-app_log_conf.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/waf_stack-app_log_conf.json -------------------------------------------------------------------------------- /source/log_parser/test/test_data/waf_stack-waf_log_conf.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/waf_stack-waf_log_conf.json -------------------------------------------------------------------------------- /source/log_parser/test/test_data/waf_stack-waf_log_out.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_data/waf_stack-waf_log_out.json -------------------------------------------------------------------------------- /source/log_parser/test/test_ip_address_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_ip_address_handler.py -------------------------------------------------------------------------------- /source/log_parser/test/test_lambda_log_parser_bad_bot_ip_set.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_lambda_log_parser_bad_bot_ip_set.py -------------------------------------------------------------------------------- /source/log_parser/test/test_log_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_log_parser.py -------------------------------------------------------------------------------- /source/log_parser/test/test_partition_s3_logs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_partition_s3_logs.py -------------------------------------------------------------------------------- /source/log_parser/test/test_process_counter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_process_counter.py -------------------------------------------------------------------------------- /source/log_parser/test/test_process_log_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_process_log_file.py -------------------------------------------------------------------------------- /source/log_parser/test/test_read_alb_log_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_read_alb_log_file.py -------------------------------------------------------------------------------- /source/log_parser/test/test_read_cloudfront_log_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_read_cloudfront_log_file.py -------------------------------------------------------------------------------- /source/log_parser/test/test_read_waf_log_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_read_waf_log_file.py -------------------------------------------------------------------------------- /source/log_parser/test/test_security.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/log_parser/test/test_security.py -------------------------------------------------------------------------------- /source/metrics/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/metrics/cloudwatch_operations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/metrics/cloudwatch_operations.py -------------------------------------------------------------------------------- /source/metrics/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/metrics/config.py -------------------------------------------------------------------------------- /source/metrics/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/metrics/metrics.py -------------------------------------------------------------------------------- /source/metrics/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/metrics/poetry.lock -------------------------------------------------------------------------------- /source/metrics/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/metrics/pyproject.toml -------------------------------------------------------------------------------- /source/metrics/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/metrics/test/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/metrics/test/conftest.py -------------------------------------------------------------------------------- /source/metrics/test/test_metrics_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/metrics/test/test_metrics_handler.py -------------------------------------------------------------------------------- /source/metrics/waf_metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/metrics/waf_metrics.py -------------------------------------------------------------------------------- /source/reputation_lists_parser/.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/reputation_lists_parser/.coveragerc -------------------------------------------------------------------------------- /source/reputation_lists_parser/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/reputation_lists_parser/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/reputation_lists_parser/poetry.lock -------------------------------------------------------------------------------- /source/reputation_lists_parser/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/reputation_lists_parser/pyproject.toml -------------------------------------------------------------------------------- /source/reputation_lists_parser/reputation_lists.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/reputation_lists_parser/reputation_lists.py -------------------------------------------------------------------------------- /source/reputation_lists_parser/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/reputation_lists_parser/test/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/reputation_lists_parser/test/conftest.py -------------------------------------------------------------------------------- /source/reputation_lists_parser/test/test_data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/reputation_lists_parser/test/test_data/test_data.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/reputation_lists_parser/test/test_data/test_data.txt -------------------------------------------------------------------------------- /source/reputation_lists_parser/test/test_reputation_lists_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/reputation_lists_parser/test/test_reputation_lists_parser.py -------------------------------------------------------------------------------- /source/timer/.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/timer/.coveragerc -------------------------------------------------------------------------------- /source/timer/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/timer/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/timer/poetry.lock -------------------------------------------------------------------------------- /source/timer/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/timer/pyproject.toml -------------------------------------------------------------------------------- /source/timer/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/timer/test/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/timer/test/conftest.py -------------------------------------------------------------------------------- /source/timer/test/test_timer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/timer/test/test_timer.py -------------------------------------------------------------------------------- /source/timer/timer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aws-solutions/aws-waf-security-automations/HEAD/source/timer/timer.py --------------------------------------------------------------------------------