π§ Azure Storage File Shares SMB Channel Encryption is not set to AES-256-GCM or higher - prod.logic.yaml π’
- Contextual name: π§ prod.logic.yaml π’
- ID:
/ce/ca/azure/storage/smb-channel-encryption/prod.logic.yaml
- Located in: π Azure Storage File Shares SMB Channel Encryption is not set to AES-256-GCM or higher π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Azure Storage File | CA10Z1__CaAzureStorageFile__c | 4 | 1 | 3 |
Usesβ
Test Results π’β
Generated at: 2025-07-21T17:38:56.201149357Z Open
Result | Id | Condition Index | Condition Text | Runtime Error |
---|---|---|---|---|
π’ | 001 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | 002 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | 004 | βοΈ 200 | βοΈ otherwise | βοΈ null |
π’ | 003 | βοΈ 199 | βοΈ extract('CA10Z1__protocolSettingsSmbChannelEncrypt__c').contains('AES-256-GCM') && not(extract('CA10Z1__protocolSettingsSmbChannelEncrypt__c').contains('AES-128-CCM')) && not(extract('CA10Z1__protocolSettingsSmbChannelEncrypt__c').contains('AES-128-GCM')) | βοΈ null |
Generationβ
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/storage/smb-channel-encryption/policy.yaml | E6C7CB9D227F71C68090189BFD4FC6B9 |
Open | /ce/ca/azure/storage/smb-channel-encryption/prod.logic.yaml | 30B80F85392139E72EE0D0381CEF4D28 |
Open | /ce/ca/azure/storage/smb-channel-encryption/test-data.json | 8DC4C17E7D827BE8F00FC115FDC4328E |
Open | /types/CA10Z1__CaAzureStorageFile__c/object.extracts.yaml | 710D57682B15A41C11105284C265F338 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/azure/storage/smb-channel-encryption/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/storage/smb-channel-encryption/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/storage/smb-channel-encryption/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/storage/smb-channel-encryption/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar policies test /ce/ca/azure/storage/smb-channel-encryption/prod.logic.yaml
Contentβ
---
inputType: "CA10Z1__CaAzureStorageFile__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10Z1__CaAzureStorageFile__c/object.extracts.yaml
conditions:
- status: "COMPLIANT"
currentStateMessage: "SMB channel encryption is set to AES-256-GCM."
check:
AND:
args:
- CONTAINS:
arg:
EXTRACT: "CA10Z1__protocolSettingsSmbChannelEncrypt__c"
search:
TEXT: "AES-256-GCM"
- NOT:
arg:
CONTAINS:
arg:
EXTRACT: "CA10Z1__protocolSettingsSmbChannelEncrypt__c"
search:
TEXT: "AES-128-CCM"
- NOT:
arg:
CONTAINS:
arg:
EXTRACT: "CA10Z1__protocolSettingsSmbChannelEncrypt__c"
search:
TEXT: "AES-128-GCM"
# if CA10Z1__protocolSettingsSmbChannelEncrypt__c is empty,
# then the default maximum compatibility (that includes all values) is set
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "SMB channel encryption is not set to AES-256-GCM."
remediationMessage: "Set SMB channel encryption to AES-256-GCM."