Skip to content

Add Support for Intercepting and Redacting Pasted Content #5

@cybersholt

Description

@cybersholt

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

  1. Intercept Paste Events: Add an event listener for paste events 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.

  2. Update Manifest: Ensure that the manifest file includes the necessary permissions for reading from the clipboard.

  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions