-
Notifications
You must be signed in to change notification settings - Fork 50
Fix digital certificates rule to not assume parsing capability. #87
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
Fix digital certificates rule to not assume parsing capability. #87
Conversation
There was a problem hiding this 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 updates the digital certificates rule to reflect that AI agents cannot parse X.509 certificates without specialized tools. Instead of instructing agents to directly validate certificate properties, the rule now guides agents to flag certificates for verification and list the security checks that must be performed.
Changes:
- Updated main rule description to instruct agents to flag certificates for verification rather than parse them directly
- Modified section 2 guidance to emphasize that certificates must be flagged for validation
- Added "Verification Guidance" section with OpenSSL command for inspecting certificates
- Rewrote both examples to show flagging approach instead of claiming to perform validation
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
skills/software-security/rules/codeguard-1-digital-certificates.md
Outdated
Show resolved
Hide resolved
skills/software-security/rules/codeguard-1-digital-certificates.md
Outdated
Show resolved
Hide resolved
ramraaj25
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
Thank You!
santosomar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for addressing this!
Fixes the digital certificates rule which previously assumed AI agents could parse X.509 certificates to extract properties like key size and expiration. Since agents cannot decode certificate data without specialized tools, the rule now instructs agents to flag certificates for verification and list required security checks, rather than claiming to perform the validation directly.