diff --git a/src/azure/pci-dss-3.2.1/rules/pci-dss-3.2.1-networking-check-1.ts b/src/azure/pci-dss-3.2.1/rules/pci-dss-3.2.1-networking-check-1.ts index 6a7b88be..1bee16ac 100644 --- a/src/azure/pci-dss-3.2.1/rules/pci-dss-3.2.1-networking-check-1.ts +++ b/src/azure/pci-dss-3.2.1/rules/pci-dss-3.2.1-networking-check-1.ts @@ -81,6 +81,7 @@ export default { ] return !rules.some((rule: any) => { return ( + rule && rule.direction === 'Inbound' && rule.access === 'Allow' && ['TCP', 'Tcp', '*'].includes(rule.protocol) && diff --git a/src/azure/pci-dss-3.2.1/tests/pci-dss-3.2.1-networking-checks.test.ts b/src/azure/pci-dss-3.2.1/tests/pci-dss-3.2.1-networking-checks.test.ts index 8472decc..190aaa09 100644 --- a/src/azure/pci-dss-3.2.1/tests/pci-dss-3.2.1-networking-checks.test.ts +++ b/src/azure/pci-dss-3.2.1/tests/pci-dss-3.2.1-networking-checks.test.ts @@ -102,6 +102,7 @@ describe('PCI Data Security Standard: 3.2.1', () => { destinationPortRanges: fromPort && toPort ? [`${fromPort}-${toPort}`] : [], }, + undefined as unknown as SecurityRule ], }, ],