Expand compliance rules to 127 across 15 profiles with test coverage#21
Merged
Expand compliance rules to 127 across 15 profiles with test coverage#21
Conversation
…rofiles (272 tests) - 15 profiles now fully implemented: PCI-DSS(15), HIPAA(10), GDPR(10), PDPA(10), BNM(10), MAS-TRM(8), NIST-800-53(10), ISO-27001(10), DO-178C(10), SOX(8), CMMC(6), IEC-62443(6), NERC-CIP(5), FDA-21CFR(5), ITAR(4) - 14 reusable rule templates: sensitive_let, hardcoded_credential, insecure_network, weak_crypto, insecure_url, auth_crypto, declassify_prove, audit_trail, ffi_review, trivial_handle, broad_grant, sensitive_network_send, unbounded_recursion, tainted_input - Every rule has violation + compliance test (2+ tests per rule) - All 272 tests pass, clippy clean - Updated report.rs test expectations for new rule counts - ASEAN-focused: deep PDPA(Malaysia), BNM-RMiT, MAS-TRM(Singapore) coverage https://claude.ai/code/session_015wgpsJBHGetaQNZvGZki8W
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Significantly expand the RIINA compliance framework from 6 rules across 3 profiles to 127 rules across all 15 compliance profiles (PCI-DSS, HIPAA, GDPR, PDPA, BNM, CMMC, SOX, DO-178C, IEC 62443, NERC CIP, FDA 21 CFR, ISO 27001, NIST 800-53, MAS TRM, ITAR). Introduce reusable rule templates and comprehensive test coverage with 2+ tests per rule.
Changes
rules.rs:
name_matches,contains_effect,contains_security_op,has_if_or_case,is_tainted_expr)rule_count()to reflect actual implementation counts per profilerules_for_profiles()to dispatch all 15 profiles instead of stubbing non-PCI-DSS profilestests.rs:
make_let,make_classified_let,make_let_with_body,assert_violation,assert_no_violation) to reduce boilerplatereport.rs:
Type
Testing
cargo test --allpasses with expanded test suiteChecklist
unsafecodehttps://claude.ai/code/session_015wgpsJBHGetaQNZvGZki8W