Creates a defense rule against brute-force attacks.
Syntax
{
"Type": "ALIYUN::ThreatDetection::AntiBruteForceRule",
"Properties": {
"DefaultRule": Boolean,
"AntiBruteForceRuleName": String,
"ForbiddenTime": Integer,
"UuidList": List,
"FailCount": Integer,
"Span": Integer
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
DefaultRule |
Boolean |
No |
Yes |
Specifies whether to use this rule as the default defense rule. |
Valid values:
Note
If no defense rule is associated with an asset, the default rule applies. |
|
AntiBruteForceRuleName |
String |
Yes |
Yes |
The name of the defense rule. |
None. |
|
ForbiddenTime |
Integer |
Yes |
Yes |
The duration for which logon attempts from an account are blocked. |
Valid values:
|
|
UuidList |
List |
Yes |
Yes |
The UUIDs of the servers to which you want to apply the defense rule. |
None. |
|
FailCount |
Integer |
Yes |
Yes |
The maximum number of failed logon attempts allowed from an account. |
Valid values: 2, 3, 4, 5, 10, 50, 80, and 100. |
|
Span |
Integer |
Yes |
Yes |
The time window within which failed logon attempts from an account are counted. |
Unit: minutes. Valid values:
Note
To configure a defense rule, you must specify Span, FailCount, and ForbiddenTime. If the number of failed logon attempts from an account within the period specified by Span exceeds the FailCount threshold, the account is blocked from logging on for the duration specified by ForbiddenTime. |
Return values
Fn::GetAtt
-
DefaultRule: indicates whether this rule is set as the default defense rule.
-
AntiBruteForceRuleName: the name of the defense rule.
-
ForbiddenTime: the duration for which logon attempts from an account are blocked.
-
AntiBruteForceRuleId: the ID of the defense rule.
-
UuidList: the UUIDs of the servers to which the defense rule is applied.
-
FailCount: the maximum number of failed logon attempts allowed from an account.
-
Span: the time window within which failed logon attempts from an account are counted.