resources/protect/policy.json in contrast-agent-3.11.0 vs resources/protect/policy.json in contrast-agent-3.12.0
- old
+ new
@@ -1,10 +1,10 @@
{
"rules":[
{
"name": "cmd-injection",
- "applicator": "Contrast::CoreExtensions::Protect::AppliesCommandInjectionRule",
+ "applicator": "Contrast::Agent::Protect::Policy::AppliesCommandInjectionRule",
"applicator_method": "apply_rule",
"required_properties": [],
"optional_properties": [],
"triggers": [
{
@@ -112,11 +112,11 @@
}
]
},
{
"name": "nosql-injection",
- "applicator": "Contrast::CoreExtensions::Protect::AppliesNoSqliRule",
+ "applicator": "Contrast::Agent::Protect::Policy::AppliesNoSqliRule",
"applicator_method": "apply_rule",
"required_properties": ["database"],
"optional_properties": [],
"triggers": [
{
@@ -154,11 +154,11 @@
}
]
},
{
"name":"path-traversal",
- "applicator": "Contrast::CoreExtensions::Protect::AppliesPathTraversalRule",
+ "applicator": "Contrast::Agent::Protect::Policy::AppliesPathTraversalRule",
"applicator_method": "apply_rule",
"required_properties": ["action"],
"optional_properties": [],
"triggers":[
{
@@ -252,11 +252,11 @@
}
]
},
{
"name": "sql-injection",
- "applicator": "Contrast::CoreExtensions::Protect::AppliesSqliRule",
+ "applicator": "Contrast::Agent::Protect::Policy::AppliesSqliRule",
"applicator_method": "apply_rule",
"required_properties": ["index", "database"],
"optional_properties": [],
"triggers": [
{
@@ -334,11 +334,11 @@
}
]
},
{
"name": "untrusted-deserialization",
- "applicator": "Contrast::CoreExtensions::Protect::AppliesDeserializationRule",
+ "applicator": "Contrast::Agent::Protect::Policy::AppliesDeserializationRule",
"applicator_method": "apply_rule",
"required_properties": [],
"optional_properties": [],
"triggers": [
{
@@ -359,10 +359,10 @@
}
]
},
{
"name": "xxe",
- "applicator": "Contrast::CoreExtensions::Protect::AppliesXxeRule",
+ "applicator": "Contrast::Agent::Protect::Policy::AppliesXxeRule",
"applicator_method": "apply_rule",
"required_properties": [],
"optional_properties": [],
"triggers": [
{