A WooCommerce card skimmer is a checkout data-path incident, so cleanup must prove both where the injection lived and whether any customer/payment data could have been exposed. Removing one visible script without preserving evidence can destroy the timeline while leaving the loader, tag, compromised account or upstream dependency in place.
Preserve the checkout evidence first
Capture affected URLs, script URLs/hashes, relevant headers, timestamps and the DOM/network behavior without collecting real customer card data. Preserve logs according to your incident process.
Map every script source at checkout
Inventory theme/plugin assets, tag-manager containers, CDN/edge injections and third-party payment scripts. Identify which source is expected and which changed during the suspected window.
Find the loader, not only the payload
A skimmer can be inserted through templates, database content, compromised tag management, extensions or external dependencies. Removing the final JavaScript is temporary if the loader remains.
Scope possible exposure conservatively
Use timestamps, deployment/version history, logs and payment architecture to determine when the malicious code was present and what fields it could access. Follow applicable provider/legal incident procedures.
Restore the trusted checkout chain
Replace compromised files/packages, revoke affected accounts/tokens and remove unauthorized edge/tag configuration. Validate payment integrations with test data only.
Verify clean checkout behavior over time
Compare source and rendered checkout, monitor script hashes/network destinations and repeat tests after caches warm. Confirm the injection cannot return through another surface.
Start with evidence preservation and use the cleanup-verification guide before reopening normal checkout traffic.