Skip to content

Commit 637beb4

Browse files
authored
Merge pull request #4445 from DataDog/appsec-add-rasp-sqli-remote-capability
Add AppSec RASP SQLI remote capability
2 parents ec18a66 + 58ac7e5 commit 637beb4

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

lib/datadog/appsec/remote.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class << self
2424
CAP_ASM_CUSTOM_BLOCKING_RESPONSE = 1 << 9 # supports custom http code or redirect sa blocking response
2525
CAP_ASM_TRUSTED_IPS = 1 << 10 # supports trusted ip
2626
CAP_ASM_RASP_SSRF = 1 << 23 # support for server-side request forgery exploit prevention rules
27+
CAP_ASM_RASP_SQLI = 1 << 21 # support for SQL injection exploit prevention rules
2728

2829
# TODO: we need to dynamically add CAP_ASM_ACTIVATION once we support it
2930
ASM_CAPABILITIES = [
@@ -37,6 +38,7 @@ class << self
3738
CAP_ASM_CUSTOM_BLOCKING_RESPONSE,
3839
CAP_ASM_TRUSTED_IPS,
3940
CAP_ASM_RASP_SSRF,
41+
CAP_ASM_RASP_SQLI,
4042
].freeze
4143

4244
ASM_PRODUCTS = [

sig/datadog/appsec/remote.rbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ module Datadog
3131

3232
CAP_ASM_RASP_SSRF: Integer
3333

34+
CAP_ASM_RASP_SQLI: Integer
35+
3436
ASM_CAPABILITIES: Array[Integer]
3537

3638
ASM_PRODUCTS: ::Array[String]

spec/datadog/appsec/remote_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
end
2121

2222
it 'returns capabilities' do
23-
expect(described_class.capabilities).to eq([4, 128, 16, 32, 64, 8, 256, 512, 1024, 8_388_608])
23+
expect(described_class.capabilities).to eq([4, 128, 16, 32, 64, 8, 256, 512, 1024, 8_388_608, 2_097_152])
2424
end
2525
end
2626
end

0 commit comments

Comments
 (0)