Skip to content
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

Mitigating PowerShell Terminal Spoofing #2974

Closed
wants to merge 5 commits into from

Conversation

rejain456
Copy link
Contributor

Reason for Change:

There was a CRI recently where it appears that when CNS is shelling out to PowerShell, spooling up the whole PowerShell env is quite heavy; thus, we are OOMing the CNS pod. There could be other contributing factors that haven't been identified yet as well.

Issue Fixed:

This pr gets rid of os.Exec'ing a shell (creating a whole new instance of PowerShell) each time and instead replacing the code with calling into windows registry.

Note* : The difference between this pr and #2961 was that the current pr is not created within wsl as there was window-specific changes

Requirements:

Notes:

@rejain456 rejain456 requested review from a team as code owners August 29, 2024 18:19
@rejain456 rejain456 changed the title Removing Power Shell Mitigating PowerShell Terminal Spoofing Aug 29, 2024
Copy link

This pull request is stale because it has been open for 2 weeks with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the stale Stale due to inactivity. label Sep 13, 2024
@rbtr rbtr closed this Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants