-
Notifications
You must be signed in to change notification settings - Fork 1.8k
QHelp Fix: InsecureExecutionPolicy.qhelp #20019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Sync Main: More Misc Bugs
Sync Main (autogenerated)
PS: Add autogenerated summary models
Sync Main Error Handling Improvement
PS: Fix a couple of missing local flow sources
…shell-injectionhunter-port
PS: Actually implement `localExprTaint`
PS: Add flow sources from `System.Net.WebClient`
…' test. We will fix that in the next commit.
…s-query PS: Add query for insecure uses of `Set-ExecutionPolicy`
PS: Add more flow sources
Manual merge upstream
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new PowerShell extractor for CodeQL that adds comprehensive parsing and extraction capabilities for PowerShell scripts. The main purpose is to enable static analysis of PowerShell code by providing C# extraction tools and related infrastructure.
- Adds complete PowerShell extractor infrastructure including a C# .NET extraction library and standalone extraction tool
- Implements comprehensive AST parsing for PowerShell syntax elements including expressions, statements, commands, and metadata
- Provides CodeQL database schema, build scripts, and configuration files for multi-platform PowerShell analysis
Reviewed Changes
Copilot reviewed 254 out of 4160 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
powershell/extractor/* | Core PowerShell extraction library with C# entity classes for AST parsing |
powershell/downgrades/* | Database schema versioning and upgrade infrastructure |
powershell/build-*.ps1 | Multi-platform build scripts for Windows, Linux, and macOS |
powershell/codeql-extractor.yml | PowerShell extractor configuration and file type definitions |
misc/scripts/prepare-db-upgrade.sh | Updated script to include PowerShell in schema upgrade process |
javascript/ql/lib/* | Removal of deprecated annotations from JavaScript codebase (cleanup) |
Comments suppressed due to low confidence (1)
powershell/extractor/Microsoft.Extractor.Tests/Traps.cs:182
- The property 'x' should be renamed to 'Item2' for consistency with the tuple structure used elsewhere in the method.
if (expected.Item1 is null || expected.x is null)
<RootNamespace>Semmle.Extraction.PowerShell.Standalone</RootNamespace> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers> | ||
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The RuntimeIdentifiers property is duplicated on lines 9 and 10. Remove the duplicate entry to avoid potential build configuration issues.
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64</RuntimeIdentifiers> |
Copilot uses AI. Check for mistakes.
Terminates an unterminated
p
tag.