Improve AI data privacy transfer residency gates#2903
Closed
vumgg wants to merge 1 commit into
Closed
Conversation
|
Thanks for the submission! 🙏 SecuritySkills is now issue-first: contributions need a linked issue that a maintainer has marked approved before a PR is opened. Please open an issue describing the skill, wait for the |
1 task
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.
What This PR Does
Resubmits #2159 after the contribution queue reset, with real-use evidence added in this PR body.
This improves
skills/ai-security/ai-data-privacyby adding an explicit gate for cross-border transfer, data residency, provider retention, and subprocessor evidence. The current skill covers privacy controls, redaction, retention, and governance, but did not force reviewers to prove where AI data is processed or whether the legal/contractual transfer basis is available.Changes:
Framework References
Testing
Checklist:
injection-hardened: trueis set in frontmatterallowed-toolsis scoped toRead, Grep, Globindex.yamlnot applicable because this improves an existing skillValidation commands run locally:
git diff --check HEAD~1..HEADReal-use evidence:
sakibmukter95/openai-chatbot-nextjsREADME.mdsrc/app/api/chat/route.tssrc/components/Chat.tsxFindings produced by the improved skill:
src/app/api/chat/route.tsforwards the completemessagespayload to OpenAI Chat Completions usinggpt-3.5-turbo.OPENAI_API_KEY, Clerk, Stripe, and MongoDB setup, but the reviewed files do not document an AI data map for prompts, completions, embeddings, logs, or support access.Transfer/residency evidence gap, severityHighby default, because user chat prompts are sent to an external AI provider without evidence of region/residency/subprocessor controls. It would becomeCriticalif the application handles PHI or regulated special-category data without a BAA or equivalent contractual safeguard.Why the new gate matters:
Bounty request: