Skip to content

Weak kdf powershell#379

Open
chanel-y wants to merge 3 commits into
mainfrom
weak-kdf-powershell
Open

Weak kdf powershell#379
chanel-y wants to merge 3 commits into
mainfrom
weak-kdf-powershell

Conversation

@chanel-y

Copy link
Copy Markdown

No description provided.

chanel-y and others added 3 commits July 22, 2026 13:49
Add test cases for CLIXML deserialization vulnerability (CVE inspired by
Truesec's research on attacking PowerShell CLIXML deserialization):
- Test 18: Import-Clixml with untrusted -Path
- Test 19: Import-Clixml with untrusted -LiteralPath
- Test 20: ConvertFrom-CliXml with untrusted pipeline input
- Test 21: Safe Import-Clixml with hardcoded path (no alert expected)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5095179e-c63f-46d8-bf1b-27bd01de5f1d
…e deserialization sinks

Add a new CliXmlDeserializationSink class that flags Import-Clixml and
ConvertFrom-CliXml when untrusted data flows to their arguments. This
covers both named/positional arguments and pipeline input.

CLIXML deserialization can trigger .NET gadget chains leading to remote
code execution, as demonstrated by Truesec's research on attacking
PowerShell CLIXML deserialization.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5095179e-c63f-46d8-bf1b-27bd01de5f1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant