Subresource Integrity is a browser security control that verifies a loaded file, usually a JavaScript or CSS resource, has not changed since the page author published it. The page includes a cryptographic hash for the expected file, and the browser compares that hash before executing the resource. If the file has been altered, the browser refuses to load it.
SRI matters because many web attacks begin by tampering with third-party scripts. In digital skimming, for example, a checkout page may rely on external JavaScript from payment tools, tag managers, or analytics providers. If an attacker changes that script in transit or at the source, SRI can block the modified code from running and help prevent card-data theft. It is most effective when paired with tight script inventory, content security policies, and hosted checkout designs, because SRI protects known files but does not stop every form of client-side injection.


