Unencrypted File Sharing Enabled
ID: unencrypted-file-sharing-enabled
Severity: medium
Author: princechaddha
Tags: windows,file-sharing,encryption,code,windows-audit
Description
Section titled “Description”Checks if file sharing is enabled without encryption.
YAML Source
Section titled “YAML Source”id: unencrypted-file-sharing-enabled
info: name: Unencrypted File Sharing Enabled author: princechaddha severity: medium description: Checks if file sharing is enabled without encryption. impact: | Unencrypted file sharing exposes sensitive data to interception, leading to potential data breaches. remediation: | Enable encryption for file sharing to ensure the confidentiality and integrity of shared files. tags: windows,file-sharing,encryption,code,windows-audit
self-contained: true
code: - pre-condition: | IsWindows(); engine: - powershell - powershell.exe args: - -ExecutionPolicy - Bypass pattern: "*.ps1" source: | (Get-SmbServerConfiguration).EncryptData
matchers: - type: word words: - "False"# digest: 4a0a0047304502207b08bd8e3e302c5c2d8b88d9a3261f48c16068e07ca051d48ce5a5ccb3252814022100ae790a3ff45aead896d20fb3d7c18c8b1b1180c100738410afca381386e335a0:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "code/windows/audit/unencrypted-file-sharing-enabled.yaml"