-
-
Notifications
You must be signed in to change notification settings - Fork 81
Extend cryptography-related behaviors #772
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
Extend cryptography-related behaviors #772
Conversation
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
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 extends the CycloneDX behavior schema by adding 28 new cryptography-related behaviors to support more detailed security modeling, including certificate presentation, signature verification variants, cryptographic goals (confidentiality, integrity, etc.), and context-specific encryption/decryption operations.
Changes:
- Added 28 new behavior enum values under
security:cryptographynamespace - Extended cryptographic operations to distinguish between data, code, and document signing/verification
- Added behaviors for encryption/decryption in different contexts (at rest, in transit, disk, secrets)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "security:cryptography:presentsServerCertificate", | ||
| "security:cryptography:presentsClientCertificate", |
Copilot
AI
Jan 15, 2026
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.
All 28 newly added cryptography behaviors are missing their corresponding descriptions in the meta:enum section (around line 1545-1562). Each enum value should have a matching description entry following the pattern of existing behaviors. For example, 'security:cryptography:wrapsKey' needs an entry like '"security:cryptography:wrapsKey": "The entity encrypts a key for secure storage or transport."' in the meta:enum object.
| "security:cryptography:generatesKey", | ||
| "security:cryptography:wrapsKey", | ||
| "security:cryptography:generatesRandomValue", |
Copilot
AI
Jan 15, 2026
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.
The behavior 'wrapsKey' is incorrectly positioned. It should appear after 'verifiesSignature' (or at the end with other 'w' entries) to maintain alphabetical ordering. The entire cryptography section follows alphabetical order, and new entries should be inserted accordingly.
| "security:cryptography:signsData", | ||
| "security:cryptography:verifiesDataSignature", | ||
| "security:cryptography:signsCode", | ||
| "security:cryptography:verifiesCodeSignature", | ||
| "security:cryptography:signsDocument", |
Copilot
AI
Jan 15, 2026
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.
These signature-related behaviors are not in correct alphabetical order. The 'signs*' entries should be grouped together (signsCode, signsData, signsDocument) before the 'verifies*' entries (verifiesCodeSignature, verifiesDataSignature, verifiesDocumentSignature).
| "security:cryptography:signsData", | |
| "security:cryptography:verifiesDataSignature", | |
| "security:cryptography:signsCode", | |
| "security:cryptography:verifiesCodeSignature", | |
| "security:cryptography:signsDocument", | |
| "security:cryptography:signsCode", | |
| "security:cryptography:signsData", | |
| "security:cryptography:signsDocument", | |
| "security:cryptography:verifiesCodeSignature", | |
| "security:cryptography:verifiesDataSignature", |
… Orders new entries alphabetically in the enum Signed-off-by: Basil Hess <bhe@zurich.ibm.com>
|
Addressed the copilot suggestions:
|
20ee286
into
CycloneDX:2.0-dev-threatmodeling
This PR extends the list of cryptography-related behaviors, as discussed in today's Cryptography WG meeting.
The google sheet is synced with those entries.