From 2a26c43c1995fa72d322171fd3e033678809f881 Mon Sep 17 00:00:00 2001 From: Mathias Vorreiter Pedersen Date: Fri, 4 Jul 2025 17:01:25 +0100 Subject: [PATCH] PS: Cleanup a few manually generated models. --- ...l.Utility.model.yml => Microsoft.PowerShell.model.yml} | 0 .../frameworks/Microsoft.Win32.RegistryKey.model.yml | 8 -------- .../System.Management.Automation.Language.model.yml | 6 ------ ...t.Automation.model.yml => System.Management.model.yml} | 6 ++++++ ...{System.Net.Sockets.model.yml => System.Net.model.yml} | 0 5 files changed, 6 insertions(+), 14 deletions(-) rename powershell/ql/lib/semmle/code/powershell/frameworks/{Microsoft.PowerShell.Utility.model.yml => Microsoft.PowerShell.model.yml} (100%) delete mode 100644 powershell/ql/lib/semmle/code/powershell/frameworks/Microsoft.Win32.RegistryKey.model.yml delete mode 100644 powershell/ql/lib/semmle/code/powershell/frameworks/System.Management.Automation.Language.model.yml rename powershell/ql/lib/semmle/code/powershell/frameworks/{System.Management.Automation.model.yml => System.Management.model.yml} (68%) rename powershell/ql/lib/semmle/code/powershell/frameworks/{System.Net.Sockets.model.yml => System.Net.model.yml} (100%) diff --git a/powershell/ql/lib/semmle/code/powershell/frameworks/Microsoft.PowerShell.Utility.model.yml b/powershell/ql/lib/semmle/code/powershell/frameworks/Microsoft.PowerShell.model.yml similarity index 100% rename from powershell/ql/lib/semmle/code/powershell/frameworks/Microsoft.PowerShell.Utility.model.yml rename to powershell/ql/lib/semmle/code/powershell/frameworks/Microsoft.PowerShell.model.yml diff --git a/powershell/ql/lib/semmle/code/powershell/frameworks/Microsoft.Win32.RegistryKey.model.yml b/powershell/ql/lib/semmle/code/powershell/frameworks/Microsoft.Win32.RegistryKey.model.yml deleted file mode 100644 index 40b0c3bcd45..00000000000 --- a/powershell/ql/lib/semmle/code/powershell/frameworks/Microsoft.Win32.RegistryKey.model.yml +++ /dev/null @@ -1,8 +0,0 @@ -extensions: - - addsTo: - pack: microsoft/powershell-all - extensible: sourceModel - data: - - ["microsoft.win32.registrykey ", "Method[GetValue].ReturnValue", "windows-registry"] - - ["microsoft.win32.registrykey ", "Method[GetValueNames].ReturnValue", "windows-registry"] - - ["microsoft.win32.registrykey ", "Method[GetSubKeyNames].ReturnValue", "windows-registry"] \ No newline at end of file diff --git a/powershell/ql/lib/semmle/code/powershell/frameworks/System.Management.Automation.Language.model.yml b/powershell/ql/lib/semmle/code/powershell/frameworks/System.Management.Automation.Language.model.yml deleted file mode 100644 index cfc575ae7aa..00000000000 --- a/powershell/ql/lib/semmle/code/powershell/frameworks/System.Management.Automation.Language.model.yml +++ /dev/null @@ -1,6 +0,0 @@ -extensions: - - addsTo: - pack: microsoft/powershell-all - extensible: summaryModel - data: - - ["system.management.automation.language.codegeneration!", "Method[escapesinglequotedstringcontent]", "Argument[0]", "ReturnValue", "taint"] \ No newline at end of file diff --git a/powershell/ql/lib/semmle/code/powershell/frameworks/System.Management.Automation.model.yml b/powershell/ql/lib/semmle/code/powershell/frameworks/System.Management.model.yml similarity index 68% rename from powershell/ql/lib/semmle/code/powershell/frameworks/System.Management.Automation.model.yml rename to powershell/ql/lib/semmle/code/powershell/frameworks/System.Management.model.yml index 94c7b76a71d..542faceefe2 100644 --- a/powershell/ql/lib/semmle/code/powershell/frameworks/System.Management.Automation.model.yml +++ b/powershell/ql/lib/semmle/code/powershell/frameworks/System.Management.model.yml @@ -1,4 +1,10 @@ extensions: + - addsTo: + pack: microsoft/powershell-all + extensible: summaryModel + data: + - ["system.management.automation.language.codegeneration!", "Method[escapesinglequotedstringcontent]", "Argument[0]", "ReturnValue", "taint"] + - addsTo: pack: microsoft/powershell-all extensible: sinkModel diff --git a/powershell/ql/lib/semmle/code/powershell/frameworks/System.Net.Sockets.model.yml b/powershell/ql/lib/semmle/code/powershell/frameworks/System.Net.model.yml similarity index 100% rename from powershell/ql/lib/semmle/code/powershell/frameworks/System.Net.Sockets.model.yml rename to powershell/ql/lib/semmle/code/powershell/frameworks/System.Net.model.yml