Skip to content

Suppress DS173237 on all-zero values#709

Merged
gfs merged 4 commits intomicrosoft:mainfrom
Porges:gpollard/ds173237-zeroes
Feb 5, 2026
Merged

Suppress DS173237 on all-zero values#709
gfs merged 4 commits intomicrosoft:mainfrom
Porges:gpollard/ds173237-zeroes

Conversation

@Porges
Copy link
Member

@Porges Porges commented Dec 15, 2025

This PR proposes to exclude all-zero values from matching the rule for DS173237. These are unlikely to represent secrets and strings of this format can often appear in placeholders or test-related data.

@gfs
Copy link
Contributor

gfs commented Jan 16, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@gfs
Copy link
Contributor

gfs commented Jan 23, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@gfs
Copy link
Contributor

gfs commented Feb 4, 2026

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR suppresses false positives in DS173237 (secret detection rule) by excluding strings that contain only zeros, which commonly appear in placeholders and test data.

Changes:

  • Added a new condition to DS173237 rule to exclude all-zero values from being flagged as potential secrets
  • Added test case to verify all-zero strings are not matched
  • Minor JSON formatting improvements (consistent spacing around colons)
  • Updated changelog with version 1.0.72

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
rules/default/security/privacy/secrets.json Added condition pattern to suppress all-zero values in DS173237, included test case, and improved JSON formatting consistency
Changelog.md Added version 1.0.72 entry documenting the DS173237 fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

gfs
gfs previously approved these changes Feb 4, 2026
danfiedler-msft
danfiedler-msft previously approved these changes Feb 5, 2026
@gfs gfs dismissed stale reviews from danfiedler-msft and themself via ea4c4b8 February 5, 2026 16:30
@gfs gfs enabled auto-merge (squash) February 5, 2026 16:31
@gfs gfs disabled auto-merge February 5, 2026 16:31
@gfs gfs enabled auto-merge (squash) February 5, 2026 16:31
@gfs
Copy link
Contributor

gfs commented Feb 5, 2026

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@gfs gfs merged commit c48f53d into microsoft:main Feb 5, 2026
2 checks passed
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.

5 participants