Skip to main content

🧠 Azure Storage File Shares SMB Channel Encryption is not set to AES-256-GCM or higher - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“— Azure Storage FileCA10Z1__CaAzureStorageFile__c413

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-07-21T17:38:56.201149357Z Open

ResultIdCondition IndexCondition TextRuntime 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​

FileMD5
Open/ce/ca/azure/storage/smb-channel-encryption/policy.yamlE6C7CB9D227F71C68090189BFD4FC6B9
Open/ce/ca/azure/storage/smb-channel-encryption/prod.logic.yaml30B80F85392139E72EE0D0381CEF4D28
Open/ce/ca/azure/storage/smb-channel-encryption/test-data.json8DC4C17E7D827BE8F00FC115FDC4328E
Open/types/CA10Z1__CaAzureStorageFile__c/object.extracts.yaml710D57682B15A41C11105284C265F338

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​

Open File

---
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."