# Third-Party Script Audit Kit This kit helps a small business find every outside script its website loads, remove the ones it doesn't need, put basic controls in place, and write a plan for the day a vendor is compromised. It was prompted by the Optimizely incident, where at least 178 widely visited sites served malware through a vendor script for about 24 hours. You can print it and work through it with a pen. No tools are required for the first half. ## Checklist - [ ] Open your home page, checkout page and booking or contact page in a browser, and view each page's source or network tab. - [ ] Write down every external domain that loads a script (analytics, A/B testing, chat, ads, reviews, payments, fonts, tag manager). - [ ] Mark each script keep, remove, or ask-vendor on the worksheet below. - [ ] Delete scripts nobody uses or can explain (old A/B tests, abandoned ad pixels, trial widgets). - [ ] Send the agency email template to whoever maintains your site and set a 7-day reply date. - [ ] Confirm multi-factor authentication is on for your site admin, your tag manager and every vendor dashboard. - [ ] Confirm payment fields sit on your processor's hosted page or iframe, not in your own page code. - [ ] Turn on a Content Security Policy in report-only mode and note the start date. - [ ] Review the CSP report after 1 to 2 weeks, remove abandoned tags, then enforce an allowlist of approved sources. - [ ] Use Subresource Integrity on static third-party files where the vendor supports it, and self-host libraries you control. - [ ] Fill in the vendor-compromise response plan below and put a copy where staff can find it. - [ ] Read your cyber liability policy for vendor-incident and notification coverage, and write down the claims number. - [ ] If you ever used Optimizely, ask your agency whether your account was in scope and to rotate credentials. - [ ] Put a recurring reminder in your calendar to redo this inventory every quarter. ## How to find your scripts with browser tools 1. Open your page in Chrome, Edge or Firefox. 2. Press F12 to open developer tools and click the **Network** tab. 3. Reload the page. Click the **JS** or **Script** filter. 4. Look at the Domain column. Anything that isn't your own domain is a third-party script. 5. Repeat on checkout and booking pages. They often load extra tags. 6. Also try View Page Source and search for `