Skip to content

Commit fa3fc4a

Browse files
committed
PS: Fix more problems in MaD rows for sources.
1 parent a146630 commit fa3fc4a

File tree

6 files changed

+18
-22
lines changed

6 files changed

+18
-22
lines changed

powershell/ql/lib/semmle/code/powershell/frameworks/MicrosoftWin32/model.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ extensions:
77
- ["microsoft.win32.registrykey", "Method[getvalue].ReturnValue", "windows-registry"]
88
- ["microsoft.win32.registrykey", "Method[getvaluenames].ReturnValue", "windows-registry"]
99
- ["microsoft.win32.registrykey", "Method[getsubkeynames].ReturnValue", "windows-registry"]
10-
- ["microsoft.win32.registry!", "Method[getvalue].ReturnValue", "windows-registry"]
11-
- ["microsoft.win32.registrykey", "Method[getvalue].ReturnValue", "windows-registry"]
12-
- ["microsoft.win32.registrykey", "Method[getvaluenames].ReturnValue", "windows-registry"]
13-
- ["microsoft.win32.registrykey", "Method[getsubkeynames].ReturnValue", "windows-registry"]
1410

1511
- addsTo:
1612
pack: microsoft-sdl/powershell-all

powershell/ql/lib/semmle/code/powershell/frameworks/System/model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extensions:
99
- ["system.environment!", "Method[expandenvironmentvariables].ReturnValue", "environment"]
1010
- ["system.environment!", "Method[getcommandlineargs].ReturnValue", "command-line"]
1111
- ["system.environment!", "Method[getenvironmentvariable].ReturnValue", "environment"]
12-
- ["system.environment!", "Method[getenvironmentvariables].ReturnValue", "environment"]
12+
- ["system.environment!", "Method[getenvironmentvariables].ReturnValue", "environment"]
1313

1414
- addsTo:
1515
pack: microsoft-sdl/powershell-all

powershell/ql/lib/semmle/code/powershell/frameworks/SystemIO/model.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ extensions:
1919
- ["system.io.file!", "Method[readalltextasync].ReturnValue", "file"]
2020
- ["system.io.file!", "Method[readlines].ReturnValue", "file"]
2121
- ["system.io.file!", "Method[readlinesasync].ReturnValue", "file"]
22-
- ["system.io.fileInfo!", "Method[appendtext].ReturnValue", "file-write"]
23-
- ["system.io.fileInfo!", "Method[create].ReturnValue", "file-write"]
24-
- ["system.io.fileInfo!", "Method[createtext].ReturnValue", "file-write"]
25-
- ["system.io.fileInfo!", "Method[open].ReturnValue", "file-write"]
26-
- ["system.io.fileInfo!", "Method[open].ReturnValue", "file"]
27-
- ["system.io.fileInfo!", "Method[openread].ReturnValue", "file"]
28-
- ["system.io.fileInfo!", "Method[opentext].ReturnValue", "file"]
29-
- ["system.io.fileInfo!", "Method[openwrite].ReturnValue", "file-write"]
30-
- ["system.io.fileStream", "Instance", "file"]
31-
- ["system.io.fileStream", "Instance", "file-write"]
22+
- ["system.io.fileinfo", "Method[appendtext].ReturnValue", "file-write"]
23+
- ["system.io.fileinfo", "Method[create].ReturnValue", "file-write"]
24+
- ["system.io.fileinfo", "Method[createtext].ReturnValue", "file-write"]
25+
- ["system.io.fileinfo", "Method[open].ReturnValue", "file-write"]
26+
- ["system.io.fileinfo", "Method[open].ReturnValue", "file"]
27+
- ["system.io.fileinfo", "Method[openread].ReturnValue", "file"]
28+
- ["system.io.fileinfo", "Method[opentext].ReturnValue", "file"]
29+
- ["system.io.fileinfo", "Method[openwrite].ReturnValue", "file-write"]
30+
- ["system.io.filestream", "Instance", "file"]
31+
- ["system.io.filestream", "Instance", "file-write"]
3232
- ["system.io.streamwriter", "Instance", "file-write"]
3333

3434
- addsTo:

powershell/ql/lib/semmle/code/powershell/frameworks/SystemManagementAutomationEngineIntrinsics/model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extensions:
99
pack: microsoft-sdl/powershell-all
1010
extensible: typeModel
1111
data:
12-
- ["system.management.automation.commandinvocationintrinsics","System.Management.Automation.EngineIntrinsics","Member[InvokeCommand]"]
12+
- ["system.management.automation.commandinvocationintrinsics", "System.Management.Automation.EngineIntrinsics","Member[InvokeCommand]"]
1313

1414
- addsTo:
1515
pack: microsoft-sdl/powershell-all

powershell/ql/lib/semmle/code/powershell/frameworks/SystemManagementAutomationPowerShell/model.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ extensions:
44
extensible: sinkModel
55
data:
66
- ["system.management.automation.powershell", "Method[addscript].Argument[0]", "command-injection"]
7-
- ["System.Management.Automation.ScriptBlock!", "Method[create].Argument[0]", "command-injection"]
7+
- ["system.management.automation.scriptblock!", "Method[create].Argument[0]", "command-injection"]
88

99
- addsTo:
1010
pack: microsoft-sdl/powershell-all
1111
extensible: typeModel
1212
data:
13-
- ["system.management.automation.powershell","system.management.automation.powershell!","Method[create].ReturnValue"]
13+
- ["system.management.automation.powershell", "system.management.automation.powershell!","Method[create].ReturnValue"]
1414

1515
- addsTo:
1616
pack: microsoft-sdl/powershell-all

powershell/ql/lib/semmle/code/powershell/frameworks/SystemNetSockets/model.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ extensions:
33
pack: microsoft-sdl/powershell-all
44
extensible: sourceModel
55
data:
6-
- ["System.Net.Sockets.TcpClient", "Method[GetStream].ReturnValue", "remote"]
7-
- ["system.net.sockets.udpclient", "Method[EndReceive].ReturnValue", "remote"]
8-
- ["system.net.sockets.udpclient", "Method[Receive].ReturnValue", "remote"]
9-
- ["system.net.sockets.udpclient", "Method[ReceiveAsync].ReturnValue", "remote"]
6+
- ["system.net.sockets.tcpclient", "Method[getstream].ReturnValue", "remote"]
7+
- ["system.net.sockets.udpclient", "Method[endreceive].ReturnValue", "remote"]
8+
- ["system.net.sockets.udpclient", "Method[receive].ReturnValue", "remote"]
9+
- ["system.net.sockets.udpclient", "Method[receiveasync].ReturnValue", "remote"]
1010

1111
- addsTo:
1212
pack: microsoft-sdl/powershell-all

0 commit comments

Comments
 (0)