-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathowasptop10.ts
53 lines (52 loc) · 1.46 KB
/
owasptop10.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { WafConfig } from "../../lib/types/config";
import {ManagedRuleGroupVendor, AwsManagedRules, WebAclScope, WebAclTypeEnum} from "../../lib/types/enums/waf";
export const config: WafConfig = {
General: {
DeployHash: "",
FireHoseKeyArn: "",
Prefix: "aws-firewall-factory",
Stage: "dev",
S3LoggingBucketName: "myBucketName",
SecuredDomain: ["yourapp.<stage>.<domain>"],
CreateDashboard: true,
LoggingConfiguration: "Firehose",
},
WebAcl: {
IncludeMap: {
account: ["123456789123"]
},
Name: "owasptopTen",
PreProcess: {
ManagedRuleGroups: [
{
vendorName: ManagedRuleGroupVendor.AWS,
name: AwsManagedRules.AMAZON_IP_REPUTATION_LIST,
},
{
vendorName: ManagedRuleGroupVendor.AWS,
name: AwsManagedRules.ANONYMOUS_IP_LIST,
},
{
vendorName: ManagedRuleGroupVendor.AWS,
name: AwsManagedRules.BOT_CONTROL_RULE_SET,
},
{
vendorName: ManagedRuleGroupVendor.AWS,
name: AwsManagedRules.COMMON_RULE_SET,
},
{
vendorName: ManagedRuleGroupVendor.AWS,
name: AwsManagedRules.KNOWN_BAD_INPUTS_RULE_SET,
},
{
vendorName: ManagedRuleGroupVendor.AWS,
name: AwsManagedRules.SQLI_RULE_SET,
}
]
},
PostProcess: {
},
Scope: WebAclScope.REGIONAL,
Type: WebAclTypeEnum.ELASTICLOADBALANCINGV2_LOADBALANCER
}
};