Skip to content

Commit 43bf6bd

Browse files
authored
Updated to version v4.0.0
Updated to version v4.0.0
2 parents 313a0c6 + 20a238d commit 43bf6bd

File tree

106 files changed

+6797
-3192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+6797
-3192
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A clear and concise description of what you expected to happen.
1919
**Please complete the following information about the solution:**
2020
- [ ] Version: [e.g. v3.1]
2121

22-
To get the version of the solution, you can look at the description of the created CloudFormation stack. For example, "AWS WAF Security Automations v3.1: This AWS CloudFormation template helps you provision the AWS WAF Security Automations stack without worrying about creating and configuring the underlying AWS infrastructure". If the description does not contain the version information, you can look at the mappings section of the template:
22+
To get the version of the solution, you can look at the description of the created CloudFormation stack. For example, "Security Automations for AWS WAF v3.1: This AWS CloudFormation template helps you provision the Security Automations for AWS WAF stack without worrying about creating and configuring the underlying AWS infrastructure". If the description does not contain the version information, you can look at the mappings section of the template:
2323

2424
```yaml
2525
Mappings:
@@ -33,7 +33,7 @@ Mappings:
3333
- [ ] Region: [e.g. us-east-1]
3434
- [ ] Was the solution modified from the version published on this repository?
3535
- [ ] If the answer to the previous question was yes, are the changes available on GitHub?
36-
- [ ] Have you checked your [service quotas](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) for the sevices this solution uses?
36+
- [ ] Have you checked your [service quotas](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) for the services this solution uses?
3737
- [ ] Were there any errors in the CloudWatch Logs?
3838
3939
**Screenshots**

.gitignore

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,47 @@ source/tests/__pycache__/
1010
source/log_parser/__pycache__/
1111
deployment/global-s3-assets/
1212
deployment/regional-s3-assets/
13+
source/**/idna**
14+
source/**/certifi**
15+
source/**/urllib**
16+
source/**/requests**
17+
source/**/backoff**
18+
source/**/charset**
19+
source/**/bin
20+
source/**/__pycache__
21+
source/**/.venv**
22+
source/**/test/__pycache__
23+
source/**/test/.pytest**
1324

14-
# coverage
25+
26+
27+
28+
29+
# Unit test / coverage reports
1530
**/coverage
1631
**/package
17-
*coverage*
32+
*coverage
33+
source/test/coverage-reports/
34+
**/.venv-test
35+
36+
# linting, scanning configurations, sonarqube
37+
.scannerwork/
38+
39+
# Third-party dependencies
40+
backoff*
41+
bin
42+
boto3*
43+
botocore*
44+
certifi*
45+
charset*
46+
dateutil*
47+
idna*
48+
jmespath*
49+
python_*
50+
requests*
51+
s3transfer*
52+
six*
53+
urllib*
54+
55+
# Ignore lib folder within each lambada folder. Only include lib folder at upper level
56+
/source/**/lib

CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,113 @@
11
# Changelog
2+
23
All notable changes to this project will be documented in this file.
34
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
45
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
56

7+
## [4.0.0] - 2023-05-11
8+
9+
### Added
10+
11+
- Added support for 10 new AWS Managed Rules rule groups (AMR)
12+
- Added support for country and URI configurations in HTTP Flood Athena log parser
13+
- Added support for user-defined S3 prefix for application access log bucket
14+
- Added support for CloudWatch log retention period configuration
15+
- Added support for multiple solution deployments in the same account and region
16+
- Added support for exporting CloudFormation stack output values
17+
- Replaced the hard coded amazonaws.com with {AWS::URLSuffix} in BadBotHoneypot API endpoint
18+
19+
### Fixed
20+
21+
- Avoid account-wide API Gateway logging setting change by deleting the solution stack [GitHub issue 213](https://github.com/aws-solutions/aws-waf-security-automations/issues/213)
22+
- Avoid creating a new logging bucket for an existing app access log bucket that already has logging enabled
23+
624
## [3.2.5] - 2023-04-18
25+
726
### Patched
27+
828
- Patch s3 logging bucket settings
929
- Updated the timeout for requests
30+
1031
## [3.2.4] - 2023-02-06
32+
1133
### Changed
34+
1235
- Upgraded pytest to mitigate CVE-2022-42969
1336
- Upgraded requests and subsequently certifi to mitigate CVE-2022-23491
37+
1438
## [3.2.3] - 2022-12-13
39+
1540
### Changed
41+
1642
- Add region as prefix to application attribute group name to avoid conflict with name starting with AWS.
43+
1744
## [3.2.2] - 2022-12-05
45+
1846
### Added
47+
1948
- Added AppRegistry integration
49+
2050
## [3.2.1] - 2022-08-30
51+
2152
### Added
53+
2254
- Added support for configuring oversize handling for requests components
2355
- Added support for configuring sensitivity level for SQL injection rule
56+
2457
## [3.2] - 2021-09-22
58+
2559
### Added
60+
2661
- Added IP retention support on Allowed and Denied IP Sets
62+
2763
### Changed
64+
2865
- Bug fixes
66+
2967
## [3.1] - 2020-10-22
68+
3069
### Changed
70+
3171
- Replaced s3 path-style with virtual-hosted style
3272
- Added partition variable to all ARNs
3373
- Updated bug report
74+
3475
## [3.0] - 2020-07-08
76+
3577
### Added
78+
3679
- Added an option to deploy AWS Managed Rules for WebACL on installation
80+
3781
### Changed
82+
3883
- Upgraded from WAF classic to WAFV2 API
3984
- Eliminated dependency on NodeJS and use Python as the standardized programming language
85+
4086
## [2.3.3] - 2020-06-15
87+
4188
### Added
89+
4290
- Implemented Athena optimization: added partitioning for CloudFront, ALB and WAF logs and Athena queries
91+
4392
### Changed
93+
4494
- Fixed potential DoS vector within Bad Bots X-Forward-For header
95+
4596
## [2.3.2] - 2020-02-05
97+
4698
### Added
99+
47100
### Changed
101+
48102
- Fixed README file to accurately reflect script params
49103
- Upgraded from Python 3.7 to 3.8
50104
- Changed RequestThreshold min limit from 2000 to 100
105+
51106
## [2.3.1] - 2019-10-30
107+
52108
### Added
109+
53110
### Changed
111+
54112
- Fixed error handling of intermittent issue: (WAFStaleDataException) when calling the UpdateWebACL
55113
- Upgrade from Node 8 to Node 10 for Lambda function

CONTRIBUTING.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ information to effectively respond to your bug report or contribution.
1111

1212
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
1313

14-
When filing an issue, please check [existing open](https://github.com/awslabs/aws-waf-security-automations/issues), or [recently closed](https://github.com/awslabs/aws-waf-security-automations/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
14+
When filing an issue, please check [existing open](https://github.com/aws-solutions/aws-waf-security-automations/issues), or [recently closed](https://github.com/aws-solutions/aws-waf-security-automations/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
1515
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:
1616

1717
* A reproducible test case or series of steps
@@ -41,8 +41,7 @@ GitHub provides additional document on [forking a repository](https://help.githu
4141

4242

4343
## Finding contributions to work on
44-
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels ((enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/awslabs/aws-waf-security-automations/labels/help%20wanted) issues is a great place to start.
45-
44+
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/aws-solutions/aws-waf-security-automations/labels/help%20wanted) issues is a great place to start.
4645

4746
## Code of Conduct
4847
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
@@ -56,6 +55,6 @@ If you discover a potential security issue in this project we ask that you notif
5655

5756
## Licensing
5857

59-
See the [LICENSE](https://github.com/awslabs/aws-waf-security-automations/blob/master/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
58+
See the [LICENSE](https://github.com/aws-solutions/aws-waf-security-automations/blob/master/LICENSE.txt) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
6059

6160
We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.

NOTICE.txt

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,52 @@ THIRD PARTY COMPONENTS
1212
**********************
1313
This software includes third party software subject to the following copyrights:
1414

15-
async under the Massachusetts Institute of Technology (MIT) license
16-
sax under the Internet Systems Consortium (ISC) license
17-
xml2js under the Massachusetts Institute of Technology (MIT) license
18-
xmlbuilder under the Massachusetts Institute of Technology (MIT) license
19-
requests under the Apache Software License
2015
freezegun under the Apache Software License
16+
boto3 under the Apache Software License
17+
botocore under the Apache Software License
18+
Mock under the BDS License
19+
moto under the Apache Software License
20+
pytest under the MIT License
21+
pytest-mock under the MIT License
22+
pytest-cov under the MIT License
23+
pytest-env under the MIT License
24+
pyparsing under the MIT License
25+
pytest-runner under the MIT License
26+
uuid under the MIT License
27+
backoff under the MIT License
28+
requests under the Apache Software License
29+
certifi under the Mozilla Public License
30+
charset_normalizer under the Apache Software License
31+
python-dateutil under the Apache Software License and BSD License
32+
inda under the BSD License
33+
urllib3 under the MIT License
34+
jmespath under the MIT License
35+
s3transfer under the Apache Software License
36+
cryptography under the Apache Software License and BSD License
37+
Werkzeug under the BSD-3-Clause
38+
xmltodict under the MIT License
39+
responses under the Apache-2.0
40+
Jinja2 under the BSD License
41+
pycparser under the BSD License
42+
pyyaml under the MIT License
43+
attrs under the MIT License
44+
pluggy under the MIT License
45+
iniconfig under the MIT License
46+
exceptiongroup under the MIT License
47+
packaging under the Apache Software License and BSD License
48+
tomli under the MIT License
49+
coverage under the Apache Software License
50+
cffi under the MIT License
51+
six under the MIT License
52+
types-PyYAML under the Apache Software License
53+
MarkupSafe under the BSD-3-Clause
54+
55+
56+
57+
58+
59+
60+
61+
62+
63+

0 commit comments

Comments
 (0)