René's URL Explorer Experiment


Title: Add new AvoidSecretDisclosure rule by iRon7 · Pull Request #2183 · PowerShell/PSScriptAnalyzer · GitHub

Open Graph Title: Add new AvoidSecretDisclosure rule by iRon7 · Pull Request #2183 · PowerShell/PSScriptAnalyzer

X Title: Add new AvoidSecretDisclosure rule by iRon7 · Pull Request #2183 · PowerShell/PSScriptAnalyzer

Description: PR Summary Closes: #1997 Description Disclosing a secret might result in security vulnerabilities such as memory trails or logging trails that could be exploited by attackers. This rule identifies instances where a secret is being converted to plain text, which can lead to unintended exposure of sensitive information. Important The general approach of dealing with credentials is to avoid them and instead rely on other means to authenticate, such as certificates or Windows authentication. How to Fix In general, avoid any code pattern that involves converting secrets to plaintext or accessing plaintext secrets. For ConvertFrom-SecureString -AsPlainText: Use -Credential parameter instead For SecureStringTo* methods: Avoid converting to plaintext For Password properties: Use secure credential objects directly or the SecureString equivalent SecurePassword instead of accessing plaintext passwords. Note For custom properties named "Password", it is recommended to rename them to something that does not imply they contain secrets, or to ensure that they do not actually contain secrets. If renaming is not possible, consider suppressing the warning for those specific cases. PR Checklist PR has a meaningful title Use the present tense and imperative mood when describing your changes Summarized changes Change is not breaking Make sure all .cs, .ps1 and .psm1 files have the correct copyright header Make sure you've added a new test if existing tests do not effectively test the code changed and/or updated documentation This PR is ready to merge and is not Work in Progress. If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

Open Graph Description: PR Summary Closes: #1997 Description Disclosing a secret might result in security vulnerabilities such as memory trails or logging trails that could be exploited by attackers. This rule identifies ...

X Description: PR Summary Closes: #1997 Description Disclosing a secret might result in security vulnerabilities such as memory trails or logging trails that could be exploited by attackers. This rule identifies ...

Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/pull/2183

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0a7a1dbe-3b2b-1761-0cbe-286b1beb40b9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA27E:E818:2AD4DB:3AD344:6AFD0B3D
html-safe-nonced2abe0eb62fba79a98cf4ae96ca2b8c269e0f7a8e74aec11c581f586946c74e1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjdFOkU4MTg6MkFENERCOjNBRDM0NDo2QUZEMEIzRCIsInZpc2l0b3JfaWQiOiIzMzIxMDE2MDEwOTY1NTg0NzAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3b6e3e84c4b8a6614443468521a39d332e7b17b812454389132214ff9cb5158b
hovercard-subject-tagpull_request:3635617200
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files
twitter:imagehttps://avatars.githubusercontent.com/u/8080834?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/8080834?s=400&v=4
og:image:altPR Summary Closes: #1997 Description Disclosing a secret might result in security vulnerabilities such as memory trails or logging trails that could be exploited by attackers. This rule identifies ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb29de2abb97b6307b16270785efeb58b51a117d5a9b659acf00b77aa00e7043b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id33149177
octolytics-dimension-repository_nwoPowerShell/PSScriptAnalyzer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33149177
octolytics-dimension-repository_network_root_nwoPowerShell/PSScriptAnalyzer
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c9e619def6d670dc18a45d3b02cea938c1c7e47
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fpull%2F2183%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPSScriptAnalyzer%2Fpull%2F2183%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=PowerShell%2FPSScriptAnalyzer
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files
Reloadhttps://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files
PowerShellhttps://github.com/PowerShell
PSScriptAnalyzerhttps://github.com/PowerShell/PSScriptAnalyzer
Codehttps://github.com/PowerShell/PSScriptAnalyzer
Issues407 (407)https://github.com/PowerShell/PSScriptAnalyzer/issues
Pull requests34 (34)https://github.com/PowerShell/PSScriptAnalyzer/pulls
Discussionshttps://github.com/PowerShell/PSScriptAnalyzer/discussions
Actionshttps://github.com/PowerShell/PSScriptAnalyzer/actions
Projectshttps://github.com/PowerShell/PSScriptAnalyzer/projects
Wikihttps://github.com/PowerShell/PSScriptAnalyzer/wiki
Security and qualityhttps://github.com/PowerShell/PSScriptAnalyzer/security
Insightshttps://github.com/PowerShell/PSScriptAnalyzer/insights
Sign up for GitHub https://github.com/signup?return_to=%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FPowerShell%2FPSScriptAnalyzer%2Fissues%2Fnew%2Fchoose
iRon7https://github.com/iRon7
PowerShell:mainhttps://github.com/PowerShell/PSScriptAnalyzer/tree/main
iRon7:AvoidSecureStringDisclosurehttps://github.com/iRon7/PSScriptAnalyzer/tree/AvoidSecureStringDisclosure
Conversation 23 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183
Commits 13 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits
Checks 4 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/checks
Files changed https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files
Add new AvoidSecretDisclosure rule https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files#top
Show all changes 13 commits https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files
586302f Add new AvoidSecretDisclosure rule iRon7 May 6, 2026 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits/586302f685a09b8fae4d5d38881c15e167c257ad
9b67e56 Merge branch 'main' into AvoidSecureStringDisclosure iRon7 May 6, 2026 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits/9b67e5637a3d06394d24bfc8d108cf7f3490bfb8
014cfba Implemented GitHub Copilot suggestions iRon7 May 6, 2026 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits/014cfbad92a300bedb5be4b6e2f7ee937d19e090
b2ed757 Update docs/Rules/AvoidSecretDisclosure.md iRon7 May 7, 2026 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits/b2ed7579bb40649937f3eb11ea4c63b6cdb56944
83b4194 Update docs/Rules/AvoidSecretDisclosure.md iRon7 May 7, 2026 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits/83b4194cd1de1926bd09dc010555f2dfae89b944
45813ad Update docs/Rules/AvoidSecretDisclosure.md iRon7 May 7, 2026 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits/45813adc3f4618ddc49d32f6c2855194594e8c22
3473048 Update docs/Rules/AvoidSecretDisclosure.md iRon7 May 7, 2026 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits/3473048854c26dd05450dde6d40839d697e28bfc
bc94e77 Update docs/Rules/AvoidSecretDisclosure.md iRon7 May 7, 2026 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits/bc94e77ce5b58a54d0f118fc7fc26ae3127a0b34
d62673c Disabled new rule by convention, as it is a breaking change. Will ena… iRon7 May 7, 2026 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits/d62673cb9eaad6ee6ab7af9f8dbffa8cf09d0827
635c041 Windows PowerShell doesn't have a `ConvertFrom-SecureString -AsPlainT… iRon7 May 11, 2026 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits/635c041ee5b2bb570a62f8dd9f15fa6480a9a9d0
fc60573 Merge branch 'main' into AvoidSecureStringDisclosure iRon7 May 17, 2026 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits/fc60573ac370fb389582020e2b0c10143d4f1ba3
31f0bd3 Merge branch 'main' into AvoidSecureStringDisclosure bergmeister Sep 14, 2026 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits/31f0bd3194ec04683c36e5943e92c18afcca3e3b
5d8b9e0 Merge branch 'main' into AvoidSecureStringDisclosure bergmeister Sep 14, 2026 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/commits/5d8b9e08deb019b8f63d37f2f08aa3ffef151c17
Clear filters https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files
AvoidSecretDisclosure.cs https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files#diff-68014eff90758074390cdce992e9618e92d587b270629385efc015d9dcf3c800
Strings.resx https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files#diff-dcff94e6a5c5ee1dc9226dea0752aba08f8f1f53020b4a0e67f1ac944036b8c3
AvoidSecretDisclosure.tests.ps1 https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files#diff-de7d5fc916e50c5b818f28ed1bd098f080de36548c59a3820a133eefc39aca59
AvoidSecretDisclosure.md https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files#diff-bf43331c8cbe500a56470379eb43eaf90573ae186ff12a0432869cfd22e70d94
README.md https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files#diff-aa3ee3522a3ec73c6f36f2fe020f02ee8517299d57cfe67d99ff0efd2038a0d5
https://github.com/PowerShell/PSScriptAnalyzer/blob/main/.github/CODEOWNERS#L2
Rules/AvoidSecretDisclosure.cshttps://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files#diff-68014eff90758074390cdce992e9618e92d587b270629385efc015d9dcf3c800
View file https://github.com/PowerShell/PSScriptAnalyzer/blob/5d8b9e08deb019b8f63d37f2f08aa3ffef151c17/Rules/AvoidSecretDisclosure.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/{{ revealButtonHref }}
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files
https://github.com/PowerShell/PSScriptAnalyzer/blob/main/.github/CODEOWNERS#L2
Rules/Strings.resxhttps://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files#diff-dcff94e6a5c5ee1dc9226dea0752aba08f8f1f53020b4a0e67f1ac944036b8c3
View file https://github.com/PowerShell/PSScriptAnalyzer/blob/5d8b9e08deb019b8f63d37f2f08aa3ffef151c17/Rules/Strings.resx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/{{ revealButtonHref }}
https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files#diff-dcff94e6a5c5ee1dc9226dea0752aba08f8f1f53020b4a0e67f1ac944036b8c3
https://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files#diff-dcff94e6a5c5ee1dc9226dea0752aba08f8f1f53020b4a0e67f1ac944036b8c3
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files
Please reload this pagehttps://github.com/PowerShell/PSScriptAnalyzer/pull/2183/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.