Skip to content

Commit b27f1a4

Browse files
Merge pull request #181 from microsoft/development
RI Development to main
2 parents ac84031 + d0df031 commit b27f1a4

6 files changed

Lines changed: 106 additions & 27 deletions

File tree

.github/workflows/build-codeql.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ jobs:
134134
inlineScript: |
135135
Update-AzConfig -DisplayBreakingChangeWarning $false
136136
$context = New-AzStorageContext -StorageAccountName "$env:ACCOUNT_NAME" -UseConnectedAccount -EnableFileBackupRequestIntent
137-
Set-AzStorageFileContent -ShareName "$env:SHARE_NAME" -Source "diffdetailedfunctiontestresults.xlsx" -Path "health-diffdetailedfunctiontestresults.xlsx" -Context $context
137+
Set-AzStorageFileContent -ShareName "$env:SHARE_NAME" -Source "diffdetailedfunctiontestresults.xlsx" -Path "health-diffdetailedfunctiontestresults.xlsx" -Context $context -Force
138138
exit 1
139139
140140

@@ -214,7 +214,7 @@ jobs:
214214
azPSVersion: latest
215215
inlineScript: |
216216
$context = New-AzStorageContext -StorageAccountName "$env:ACCOUNT_NAME" -UseConnectedAccount -EnableFileBackupRequestIntent
217-
Set-AzStorageFileContent -ShareName "$env:SHARE_NAME" -Source "diffdetailedfunctiontestresults.xlsx" -Path "version-diffdetailedfunctiontestresults.xlsx" -Context $context
217+
Set-AzStorageFileContent -ShareName "$env:SHARE_NAME" -Source "diffdetailedfunctiontestresults.xlsx" -Path "version-diffdetailedfunctiontestresults.xlsx" -Context $context -Force
218218
exit 1
219219
- name: Save Latest Version
220220
if: ${{ hashFiles('diffdetailedfunctiontestresults.xlsx') == '' }} # Only if there were no differences

src/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the MIT license.
33

44
name: microsoft/windows-drivers
5-
version: 1.6.0
5+
version: 1.7.0
66
dependencies:
77
codeql/cpp-all: ^4.2.0
88
microsoft/cpp-queries: ^0.0.4

src/windows-driver-suites/mustfix.qls

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,30 @@
1414
- include:
1515
query path:
1616
- Likely Bugs/Arithmetic/BadAdditionOverflowCheck.ql
17+
- Likely Bugs/Format/WrongNumberOfFormatArguments.ql
1718
- Likely Bugs/Memory Management/PointerOverflow.ql
19+
- Likely Bugs/Memory Management/SuspiciousCallToStrncat.ql
20+
- Likely Bugs/OO/UnsafeUseOfThis.ql
21+
- Likely Bugs/Protocols/TlsSettingsMisconfiguration.ql
22+
- Likely Bugs/Protocols/UseOfDeprecatedHardcodedProtocol.ql
1823
- Likely Bugs/Underspecified Functions/TooFewArguments.ql
24+
- Microsoft/Likely Bugs/Conversion/BadOverflowGuard.ql
25+
- Microsoft/Likely Bugs/Drivers/IncorrectUsageOfRtlCompareMemory.ql
26+
- Microsoft/Security/Cryptography/BannedEncryption.ql
27+
- Microsoft/Security/Cryptography/BannedModesCAPI.ql
28+
- Microsoft/Security/Cryptography/BannedModesCNG.ql
29+
- Microsoft/Security/Cryptography/HardcodedIVCNG.ql
30+
- Microsoft/Security/MemoryAccess/EnumIndex/UncheckedBoundsEnumAsIndex.ql
31+
- Security/CWE/CWE-078/ExecTainted.ql
32+
- Security/CWE/CWE-114/UncontrolledProcessOperation.ql
33+
- Security/CWE/CWE-120/BadlyBoundedWrite.ql
34+
- Security/CWE/CWE-120/OverrunWrite.ql
35+
- Security/CWE/CWE-131/NoSpaceForZeroTerminator.ql
36+
- Security/CWE/CWE-170/ImproperNullTerminationTainted.ql
1937
- Security/CWE/CWE-190/ComparisonWithWiderType.ql
20-
- Security/CWE/CWE-253/HResultBooleanConversion.ql
38+
- Security/CWE/CWE-253/HResultBooleanConversion.ql
39+
- Security/CWE/CWE-327/OpenSslHeartbleed.ql
40+
- Security/CWE/CWE-676/DangerousFunctionOverflow.ql
41+
- Security/CWE/CWE-676/DangerousUseOfCin.ql
42+
- Security/CWE/CWE-704/WcharCharConversion.ql
43+
- Security/CWE/CWE-732/UnsafeDaclSecurityDescriptor.ql

src/windows-driver-suites/recommended.qls

Lines changed: 69 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,77 @@
33

44
- description: Recommended and required queries for Windows Drivers.
55
- import: windows-driver-suites/mustfix.qls
6+
- queries: .
7+
from: microsoft/windows-drivers
8+
- include:
9+
query path:
10+
- drivers/general/queries/AnnotationSyntax/AnnotationSyntax.ql
11+
- drivers/general/queries/CurrentFunctionTypeNotCorrect/CurrentFunctionTypeNotCorrect.ql
12+
- drivers/general/queries/DefaultPoolTag/DefaultPoolTag.ql
13+
- drivers/general/queries/DriverEntrySaveBuffer/DriverEntrySaveBuffer.ql
14+
- drivers/general/queries/ExaminedValue/ExaminedValue.ql
15+
- drivers/general/queries/ExtendedDeprecatedApis/ExtendedDeprecatedApis.ql
16+
- drivers/general/queries/IRPStackEntryCopy/IRPStackEntryCopy.ql
17+
- drivers/general/queries/ImportantFunctionCallOptimizedOut/ImportantFunctionCallOptimizedOut.ql
18+
- drivers/general/queries/ImproperNotOperatorOnZero/ImproperNotOperatorOnZero.ql
19+
- drivers/general/queries/InvalidFunctionClassTypedef/InvalidFunctionClassTypedef.ql
20+
- drivers/general/queries/InvalidFunctionPointerAnnotation/InvalidFunctionPointerAnnotation.ql
21+
- drivers/general/queries/IoInitializeTimerCall/IoInitializeTimerCall.ql
22+
- drivers/general/queries/IrqlAnnotationIssue/IrqlAnnotationIssue.ql
23+
- drivers/general/queries/IrqlCancelRoutine/IrqlCancelRoutine.ql
24+
- drivers/general/queries/IrqlFloatStateMismatch/IrqlFloatStateMismatch.ql
25+
- drivers/general/queries/IrqlNotSaved/IrqlNotSaved.ql
26+
- drivers/general/queries/IrqlNotUsed/IrqlNotUsed.ql
27+
- drivers/general/queries/IrqlSetTooHigh/IrqlSetTooHigh.ql
28+
- drivers/general/queries/IrqlSetTooLow/IrqlSetTooLow.ql
29+
- drivers/general/queries/IrqlTooHigh/IrqlTooHigh.ql
30+
- drivers/general/queries/IrqlTooLow/IrqlTooLow.ql
31+
- drivers/general/queries/KeSetEventPageable/KeSetEventPageable.ql
32+
- drivers/general/queries/MultithreadedAVCondition/MultithreadedAVCondition.ql
33+
- drivers/general/queries/NtstatusExplicitCast/NtstatusExplicitCast.ql
34+
- drivers/general/queries/NtstatusExplicitCast2/NtstatusExplicitCast2.ql
35+
- drivers/general/queries/NtstatusExplicitCast3/NtstatusExplicitCast3.ql
36+
- drivers/general/queries/NullCharacterPointerAssignment/NullCharacterPointerAssignment.ql
37+
- drivers/general/queries/OperandAssignment/OperandAssignment.ql
38+
- drivers/general/queries/PointerVariableSize/PointerVariableSize.ql
39+
- drivers/general/queries/PoolTagIntegral/PoolTagIntegral.ql
40+
- drivers/general/queries/RoleTypeCorrectlyUsed/RoleTypeCorrectlyUsed.ql
41+
- drivers/general/queries/RoutineFunctionTypeNotExpected/RoutineFunctionTypeNotExpected.ql
42+
- drivers/general/queries/StrSafe/StrSafe.ql
43+
- drivers/general/queries/StrictTypeMatch/StrictTypeMatch.ql
44+
- drivers/wdm/queries/IllegalFieldAccess/IllegalFieldAccess.ql
45+
- drivers/wdm/queries/IllegalFieldAccess2/IllegalFieldAccess2.ql
46+
- drivers/wdm/queries/IllegalFieldWrite/IllegalFieldWrite.ql
47+
- drivers/wdm/queries/InitNotCleared/InitNotCleared.ql
48+
- drivers/wdm/queries/KeWaitLocal/KeWaitLocal.ql
49+
- drivers/wdm/queries/MultiplePagedCode/MultiplePagedCode.ql
50+
- drivers/wdm/queries/ObReferenceMode/ObReferenceMode.ql
51+
- drivers/wdm/queries/OpaqueMdlUse/OpaqueMdlUse.ql
52+
- drivers/wdm/queries/OpaqueMdlWrite/OpaqueMdlWrite.ql
53+
- drivers/wdm/queries/PendingStatusError/PendingStatusError.ql
54+
- drivers/wdm/queries/WrongDispatchTableAssignment/WrongDispatchTableAssignment.ql
55+
- microsoft/Likely Bugs/Boundary Violations/PaddingByteInformationDisclosure.ql
56+
- microsoft/Likely Bugs/Conversion/BadOverflowGuard.ql
57+
- microsoft/Likely Bugs/Conversion/InfiniteLoop.ql
58+
- microsoft/Likely Bugs/Memory Management/UseAfterFree/UseAfterFree.ql
59+
- microsoft/Likely Bugs/UninitializedPtrField.ql
60+
- microsoft/Security/Crytpography/HardcodedIVCNG.ql
661
- queries: .
762
from: microsoft/cpp-queries
863
version: 0.0.4
964
- include:
1065
query path:
11-
- Likely Bugs/Format/WrongNumberOfFormatArguments.ql
12-
- Likely Bugs/Memory Management/SuspiciousCallToStrncat.ql
13-
- Likely Bugs/OO/UnsafeUseOfThis.ql
14-
- Likely Bugs/Protocols/TlsSettingsMisconfiguration.ql
15-
- Likely Bugs/Protocols/UseOfDeprecatedHardcodedProtocol.ql
16-
- Microsoft/Likely Bugs/Conversion/BadOverflowGuard.ql
17-
- Microsoft/Likely Bugs/Drivers/IncorrectUsageOfRtlCompareMemory.ql
18-
- Microsoft/Security/Cryptography/BannedEncryption.ql
19-
- Microsoft/Security/Cryptography/BannedModesCAPI.ql
20-
- Microsoft/Security/Cryptography/BannedModesCNG.ql
21-
- Microsoft/Security/Cryptography/HardcodedIVCNG.ql
22-
- Microsoft/Security/MemoryAccess/EnumIndex/UncheckedBoundsEnumAsIndex.ql
23-
- Security/CWE/CWE-078/ExecTainted.ql
24-
- Security/CWE/CWE-114/UncontrolledProcessOperation.ql
25-
- Security/CWE/CWE-120/BadlyBoundedWrite.ql
26-
- Security/CWE/CWE-120/OverrunWrite.ql
27-
- Security/CWE/CWE-131/NoSpaceForZeroTerminator.ql
28-
- Security/CWE/CWE-170/ImproperNullTerminationTainted.ql
29-
- Security/CWE/CWE-327/OpenSslHeartbleed.ql
30-
- Security/CWE/CWE-676/DangerousFunctionOverflow.ql
31-
- Security/CWE/CWE-676/DangerousUseOfCin.ql
32-
- Security/CWE/CWE-704/WcharCharConversion.ql
33-
- Security/CWE/CWE-732/UnsafeDaclSecurityDescriptor.ql
66+
- Best Practices/Likely Errors/OffsetUseBeforeRangeCheck.ql
67+
- Likely Bugs/Arithmetic/IntMultToLong.ql
68+
- Likely Bugs/Arithmetic/SignedOverflowCheck.ql
69+
- Likely Bugs/Conversion/CastArrayPointerArithmetic.ql
70+
- Likely Bugs/Likely Typos/IncorrectNotOperatorUsage.ql
71+
- Likely Bugs/Memory Management/SuspiciousSizeof.ql
72+
- Likely Bugs/Memory Management/UninitializedLocal.ql
73+
- Security/CWE/CWE-121/UnterminatedVarargsCall.ql
74+
- Security/CWE/CWE-457/ConditionallyUninitializedVariable.ql
75+
- Security/CWE/CWE-468/SuspiciousAddWithSizeof.ql
76+
- Security/CWE/CWE-468/IncorrectPointerScaling.ql
77+
- Security/CWE/CWE-468/IncorrectPointerScalingVoid.ql
78+
- Security/CWE/CWE-676/PotentiallyDangerousFunction.ql
79+
- Security/CWE/CWE-119/OverflowBuffer.ql

suites/windows_driver_mustfix.qls

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT license.
3+
4+
- description: This suite is deprecated, please use the suite file below.
5+
- import: windows-driver-suites/mustfix.qls
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) Microsoft Corporation.
2+
# Licensed under the MIT license.
3+
4+
- description: This suite is deprecated, please use the suite file below.
5+
- import: windows-driver-suites/recommended.qls

0 commit comments

Comments
 (0)