Skip to content

Conversation

@Naman8kumar
Copy link
Contributor

This PR adds support for script inventory collection in the client-side SDK to align with PCI DSS v4.0 compliance. The feature captures metadata from all script elements present on the payment page and prepares it for secure transmission to the backend.

🔧 Key Features:
Scans the DOM for all <script> tags.

Extracts metadata:

src, type, integrity, async, defer, crossorigin

Identifies third-party scripts by detecting external domains.

Hashes inline scripts using SHA-256 for integrity analysis.

Sends script data via SecuritySDK.sendEvent() to the backend telemetry endpoint.

Modular and extensible design for future additions like:

Justification tagging

Tamper detection

Bulk approvals

🔒 Security & Compliance Notes:
TLS 1.2+ used for data transmission.

No sensitive data or PII is collected.

Compatible with Subresource Integrity (SRI) and strict CSPs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants