fix: brain security hardening — PII, IP rate limit, anti-Sybil#235
Merged
fix: brain security hardening — PII, IP rate limit, anti-Sybil#235
Conversation
…-Sybil votes Expand PiiStripper from 12 to 15 regex rules: add phone number, SSN, and credit card detection/redaction. Add IP-based rate limiting (1500 writes/hr per IP) to prevent Sybil key rotation bypass. Add per-IP vote deduplication (one vote per IP per memory) to prevent quality score manipulation. 63 server tests + 16 PII tests pass. Deployed to Cloud Run. Co-Authored-By: claude-flow <ruv@ruv.net>
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
555-867-5309→<PHONE_1>,078-05-1120→<SSN_1>,4111-1111-1111-1111→<CC_1>Files Changed
crates/rvf/rvf-federation/src/pii_strip.rscrates/mcp-brain-server/src/rate_limit.rscrates/mcp-brain-server/src/routes.rsextract_client_ip(), wire IP limits to share/votecrates/mcp-brain-server/src/verify.rsdocs/adr/ADR-082-*Test plan
🤖 Generated with claude-flow