Skip to content

Commit

Permalink
Add files needed for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdabbad00 committed Jun 19, 2020
1 parent 692b336 commit 8d495a2
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 2 deletions.
14 changes: 14 additions & 0 deletions account-data/demo/us-east-1/accessanalzyer-list-analyzers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"analyzers": [
{
"arn": "arn:aws:access-analyzer:us-east-1:000000000000:analyzer/default",
"createdAt": "2020-06-19T21:20:04Z",
"lastResourceAnalyzed": "arn:aws:sqs:us-east-1:000000000000:test",
"lastResourceAnalyzedAt": "2020-06-19T21:20:04.664Z",
"name": "default",
"status": "ACTIVE",
"tags": {},
"type": "ACCOUNT"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"Attributes": [
{
"Key": "access_logs.s3.enabled",
"Value": "false"
},
{
"Key": "access_logs.s3.bucket",
"Value": ""
},
{
"Key": "access_logs.s3.prefix",
"Value": ""
},
{
"Key": "idle_timeout.timeout_seconds",
"Value": "60"
},
{
"Key": "deletion_protection.enabled",
"Value": "false"
},
{
"Key": "routing.http2.enabled",
"Value": "true"
},
{
"Key": "routing.http.drop_invalid_header_fields.enabled",
"Value": "false"
}
]
}
1 change: 0 additions & 1 deletion shared/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,6 @@ def audit_elbv2(findings, region):
attributes_json = get_parameter_file(
region, "elbv2", "describe-load-balancer-attributes", arn
)
# print(json.dumps(attributes_json, indent=2))

for attribute in attributes_json.get("Attributes", []):
if (
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def test_audit(self):
"EC2_OLD",
"IAM_UNEXPECTED_S3_EXFIL_PRINCIPAL",
"IAM_LINTER",
"EC2_IMDSV2_NOT_ENFORCED"
"EC2_IMDSV2_NOT_ENFORCED",
"REQUEST_SMUGGLING"
]
),
)

0 comments on commit 8d495a2

Please sign in to comment.