Skip to content

Suppress DS173237 on all-zero values - #709

Merged
Giulia Stocco (gfs) merged 4 commits into
microsoft:mainfrom
Porges:gpollard/ds173237-zeroes
Feb 5, 2026
Merged

Giulia Stocco (gfs) merged 4 commits into
microsoft:mainfrom
Porges:gpollard/ds173237-zeroes

Conversation

@Porges

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@gfs

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@gfs

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@gfs
Giulia Stocco (gfs) merged commit c48f53d into microsoft:main Feb 5, 2026
2 checks passed
@Porges
George Pollard (Porges) deleted the gpollard/ds173237-zeroes branch March 24, 2026 02:09
@Porges

Copy link
Copy Markdown
Member Author

Thanks all!

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