Skip to content

Stellar Security Rule Regression Suite#518

Open
deslawson wants to merge 2 commits into
MDTechLabs:mainfrom
deslawson:main
Open

Stellar Security Rule Regression Suite#518
deslawson wants to merge 2 commits into
MDTechLabs:mainfrom
deslawson:main

Conversation

@deslawson

Copy link
Copy Markdown
Contributor

Implemented a regression testing framework under tests/regression/security/stellar/ that prevents security rule regressions across releases. The suite includes 8 JSON fixture datasets (one per rule variant) covering all 5 Stellar/Soroban security detectors — missing access control, weak role hierarchies, unsafe cross-contract invocation, excessive event topics, and missing upgrade guards. Each fixture contains realistic Soroban contract code with known-vulnerable and known-safe patterns, paired with expected findings. The Jest spec file performs automated validation: positive fixtures assert detected=true with matching message patterns, negative fixtures assert detected=false. CI integration was added via a regression-tests job in .github/workflows/ci.yml, npm scripts (test:regression:stellar), and batch automation scripts for both Unix and Windows. All 8/8 fixtures verified passing against their respective detectors.

Implemented a regression testing framework under tests/regression/security/stellar/ that prevents security rule regressions across releases. The suite includes 8 JSON fixture datasets (one per rule variant) covering all 5 Stellar/Soroban security detectors — missing access control, weak role hierarchies, unsafe cross-contract invocation, excessive event topics, and missing upgrade guards. Each fixture contains realistic Soroban contract code with known-vulnerable and known-safe patterns, paired with expected findings. The Jest spec file performs automated validation: positive fixtures assert detected=true with matching message patterns, negative fixtures assert detected=false. CI integration was added via a regression-tests job in .github/workflows/ci.yml, npm scripts (test:regression:stellar), and batch automation scripts for both Unix and Windows. All 8/8 fixtures verified passing against their respective detectors.
@mijinummi

Copy link
Copy Markdown
Collaborator

Hi @deslawson , thanks for your contribution. Please kindly fix the remaining ci that are failing.

@mijinummi

Copy link
Copy Markdown
Collaborator

Hello @deslawson , you'll be unassigned in the 12hrs if you didn't fix the errors as requested.

Thank you

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.

2 participants