Skip to content

features/references#176

Merged
swissiety merged 18 commits intomasterfrom
features/references
Aug 11, 2025
Merged

features/references#176
swissiety merged 18 commits intomasterfrom
features/references

Conversation

@roshansamantaray
Copy link

Implemented WEAKNESS, VULNERABILITIES and REFERENCES in Crysl Syntax with support for page numbers and URLs.

Roshan Samantaray and others added 11 commits July 20, 2025 18:18
…cks in CrySLRule and parser

- Implemented structured parsing and handling for REFERENCES block via CrySLReferenceEntry
- Extended CrySLRule to include collections for references, CWEs (weaknesses), and CVEs (vulnerabilities)
- Updated CrySLModelReader to parse and map ReferencesBlock, weaknesses, and vulnerabilities from EMF model
- Enhanced test coverage to verify parsing and output for REFERENCES, weaknesses (CWEs), and vulnerabilities (CVEs)
- Updated toString() and print methods for clear structured output of references, weaknesses, and vulnerabilities per rule
Comment on lines +235 to +237
String id = cv;
String link = "https://www.cve.org/CVERecord?id=" + id;
return new CrySLVulnerabilityEntry(cv, link);
Copy link
Collaborator

Choose a reason for hiding this comment

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

we could model this cleaner in a subclass (another PR) only taking the cve number - where CrySLVulnerabilityEntry would then be an interface

Copy link
Author

Choose a reason for hiding this comment

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

Yes we can do that. I will create a subclass for this then so that CrySLModelReader stays clean.

@swissiety swissiety merged commit 16283e4 into master Aug 11, 2025
4 checks passed
@smeyer198 smeyer198 deleted the features/references branch August 14, 2025 09:40
@roshansamantaray roshansamantaray self-assigned this Aug 20, 2025
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.

3 participants