Skip to content

Add isDotSink to CommandInjectionCritical query#360

Closed
chanel-y wants to merge 2 commits into
mainfrom
command-injection-critical-dotsource-case
Closed

Add isDotSink to CommandInjectionCritical query#360
chanel-y wants to merge 2 commits into
mainfrom
command-injection-critical-dotsource-case

Conversation

@chanel-y
Copy link
Copy Markdown

Add test cases to verify the isDotSourceSink predicate behavior:

  • Direct dot-source of CmdletBinding param (true positive)
  • Indirect dot-source via variable assignment (true positive)
  • CmdletBinding param with Invoke-Expression + hardcoded dot-source (FP filtered)
  • CmdletBinding param unrelated to dot-source (FP filtered)

chanel-y and others added 2 commits May 20, 2026 12:04
Add test cases to verify the isDotSourceSink predicate behavior:
- Direct dot-source of CmdletBinding param (true positive)
- Indirect dot-source via variable assignment (true positive)
- CmdletBinding param with Invoke-Expression + hardcoded dot-source (FP filtered)
- CmdletBinding param unrelated to dot-source (FP filtered)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@chanel-y chanel-y closed this May 21, 2026
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