You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powershell/ql/src/queries/security/cwe-319/UnsafeSMBSettings.qhelp
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,16 @@
5
5
<overview>
6
6
<p>The commands<code>Set-SmbClientConfiguration</code> and <code>Set-SmbServerConfiguration</code> are used to set configurations for SMB traffic.
7
7
Insecure configurations such as outdated versions, or turning off encryption, can make connections susceptible to attackers.
8
+
</p>
8
9
</overview>
9
10
10
11
<recommendation>
11
-
<p>The minimum version of SMB is 3.0, but it is recommended to use the latest version. For SMB server service (inbound connections). For example: <code>Set-SmbServerConfiguration -Smb2DialectMin SMB300</code>
12
-
For SMB client service (outbound connections). For example: <code>Set-SmbClientConfiguration -Smb2DialectMin SMB300</code>
13
-
12
+
<p>The minimum version of SMB is 3.0, but it is recommended to use the latest version. For example, use:
13
+
<code>Set-SmbServerConfiguration -Smb2DialectMin SMB300</code> or <code>Set-SmbClientConfiguration -Smb2DialectMin SMB300</code>
14
+
</p>
14
15
<p>
15
-
SMB encryption should be enabled
16
-
For SMB server service (inbound connections). For example: <code> Set-SmbServerConfiguration -encryptdata $true -rejectunencryptedaccess $true </code>
17
-
For SMB client service (outbound connections). For example: <code> Set-SmbClientConfiguration -RequireEncryption $true </code>
16
+
SMB encryption should be enabled. For example, use:
0 commit comments