-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Description
The current version of the Chainstack DLP Chrome extension does not support intercepting and redacting content pasted from the clipboard. This functionality is crucial for preventing sensitive information from being accidentally pasted into web forms and other inputs.
Modifications Made
I have modified the extension to include this feature, which now intercepts paste events, checks the clipboard data for sensitive information, and redacts it according to the configured rules before inserting it into the input field.
Suggested Changes
-
Intercept Paste Events: Add an event listener for
pasteevents in the content scripts. This listener should process the clipboard data, check for sensitive information, and redact it before inserting it back into the page. -
Update Manifest: Ensure that the manifest file includes the necessary permissions for reading from the clipboard.
-
Enhance Configuration Options: Provide options in the extension's settings to define what constitutes sensitive information, allowing users to customize the redaction rules.
Benefits
- Enhanced Security: Prevents sensitive data from being exposed via paste operations.
- User Convenience: Automatically handles data redaction without requiring user intervention.
- Customizability: Allows users to define what data should be considered sensitive.
I am willing to contribute my code changes if there's interest in integrating this feature into the main project.
Thank you for considering this enhancement. It would be a significant improvement in the functionality of the Chainstack DLP extension.