PowerShell / PowerShell/PSScriptAnalyzer

Add rules for whether a script works under ConstrainedLanguage mode

Open
#1,677 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area - Rule Sets Issue - Enhancement
Dominant language
C#
Stars
2.2k
Forks
414
Avg merge
13h 1m
Merged PRs (30d)
2

Description

Summary of the new feature

Windows admins using Code Integrity may want to know if their scripts require full language mode or will work with constrained language mode. It would be helpful to have PSSA rule to let them know which parts of their scripts won't work under constrained language mode.

Addtionally, scripts running in a Code Integrity environment have some additional checks which may make sense to have as rules as well.

https://devblogs.microsoft.com/powershell/powershell-constrained-language-mode

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No implementation files or tests are named in the issue. Start by reading the linked ConstrainedLanguage mode guidance and the PSScriptAnalyzer project structure, then define which language-mode and Code Integrity checks are in scope before identifying the relevant rule entry points and tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
security, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.