Third-Party Script Skimming at a Hospital Outpatient Pharmacy: Incident Response Checklist
How to detect and confirm third-party script skimming
Third-party script skimming—also called browser-side payment skimming—occurs when unauthorized code running in a customer’s browser captures information entered on or associated with a payment page. A script may come from a vendor, a tag manager, a compromised account, or an altered website component. Treat suspicious activity as a potential incident while you verify it; do not wait for proof of completed fraudulent transactions.
- Compare the checkout page and every script it loads with approved versions and documented changes. Look for unfamiliar scripts, unexpected destinations, modified vendor files, or new code that reads form fields or sends data to an unapproved endpoint.
- Review content security policy reports, browser network activity, web application access logs, content delivery network records, web application firewall alerts, and change-management events for unusual activity.
- Correlate the suspected start time with vendor notices, administrator sign-ins, tag-manager changes, deployments, and reports of suspicious card use.
- Ask the payment processor to review transaction and authorization patterns. Fraud reports can help, but their absence does not establish that the page was safe.
Confirm the finding in an isolated, authorized test environment using synthetic inputs and a processor-approved sandbox. Compare the page’s behavior and outbound requests against a known-good baseline; do not enter real cardholder or patient information to test a suspected skimmer. PCI SSC guidance describes controls for authorizing payment-page scripts, assuring their integrity, and detecting page tampering. Which controls apply depends on the payment setup and the pharmacy’s PCI DSS assessment scope; confirm that scope with the acquirer or other organization managing the compliance program. See the PCI SSC payment-page security and e-skimming guidance.
What evidence should teams preserve before changing the checkout page?
Preserve evidence promptly, but do not leave customers exposed just to collect it. If the suspected script is actively capturing data, isolate or disable the affected checkout path while responders collect available snapshots in parallel. Follow the organization’s incident procedures and document any emergency change.
- Capture the affected page as served, including its HTML, headers, script list, script contents where available, third-party resources, and relevant browser network requests. Record the capture time, time zone, URL, and testing method.
- Save relevant web application access logs, CDN and WAF records, identity and administrator logs, DNS records, tag-manager history, deployment records, source-control changes, and vendor or payment-processor logs.
- Record file hashes, system identifiers, collection steps, collectors, timestamps, storage locations, and each evidence transfer. Restrict access and preserve originals; analyze working copies where practical.
- Keep incident decisions and actions in a time-stamped response log. Coordinate collection with counsel, privacy, and forensic responders where appropriate.
Preservation should cover both the pharmacy’s environment and relevant third-party systems. The NIST incident response guidance emphasizes coordinated incident analysis and response; HHS also requires HIPAA-regulated entities to document security incidents and their outcomes.
How to identify the script’s entry point and contain the incident
Build a timeline from the earliest known normal version through detection and containment. Compare the affected page and its scripts with approved inventories, release records, and earlier captures to identify what changed and when.
- Trace the script’s source through the page, content management system, tag manager, hosting or CDN configuration, vendor libraries, and payment integration.
- Review web application access logs and administrative records for unauthorized access, unexpected deployments, credential misuse, or changes to script and page settings. Check whether the same vendor, account, or integration affects other pharmacy or hospital pages.
- Contain the entry point: disable or remove the unauthorized script, pause the compromised integration, block confirmed malicious destinations, and revoke or rotate affected credentials and tokens.
- If the source is a vendor compromise, ask the vendor to confirm the scope, timeline, remediation, and whether its other customers or shared services are affected. Do not re-enable its code based only on an assurance that the issue is fixed.
Containment should stop further unauthorized collection while preserving the ability to investigate. A clean replacement page or an approved alternative payment path may be safer than restoring a compromised integration. HHS describes identifying and responding to suspected or known security incidents, mitigating harmful effects where practicable, and documenting the outcome as part of HIPAA security incident procedures. See HHS guidance on Security Rule incident procedures.
How to assess exposed payment data and affected transactions
Define the exposure window using the earliest credible evidence of unauthorized code or access and the time the affected page was contained. Determine which pages, browsers, payment flows, and customer sessions could have encountered the code. Do not limit the review to successful charges.
- Use page-load, session, and network evidence to estimate who may have visited the affected checkout page and whether data was entered or transmitted to an unauthorized destination.
- Include failed, declined, and abandoned checkout attempts in the assessment when a customer may have entered information before leaving or receiving an error. A transaction does not need to complete for information typed into a compromised page to be at risk.
- Work with the payment processor to identify the data flow. Determine whether the affected script could access payment fields, or whether those fields were isolated in a processor-controlled iframe or another protected flow. Treat access as a question to investigate, not an assumption.
- Assess whether the page exposed only payment details or also names, contact information, prescription or order details, account identifiers, or other personal data. Verify conclusions against evidence from the browser, website, vendor, and processor.
- Avoid copying sensitive card values into incident reports or test records. Restrict any necessary forensic handling and follow the organization’s payment-data handling procedures.
Document the methods, assumptions, data sources, affected date range, and remaining uncertainties. Revisit the assessment as additional vendor, processor, or forensic evidence becomes available.
Ready to simplify HIPAA compliance?
Join thousands of organizations that trust Accountable to manage their compliance needs.
Get Started Free TodayWhich teams and third parties should coordinate the response?
Assign one incident lead and establish a secure channel for decisions and evidence sharing. Include the people who can stop the exposure, evaluate patient and payment impacts, and make operational and notification decisions.
- Security and incident response: lead investigation, evidence handling, containment, and recovery verification.
- Pharmacy operations and digital product or web teams: confirm the checkout path, customer impact, prescription workflow, and safe alternatives while online checkout is unavailable.
- Privacy, legal, and compliance: assess protected health information and other personal data, evaluate notification duties, and coordinate communications.
- Payment operations, the processor, acquirer, and relevant payment brands: investigate card-data flows, transaction indicators, contractual responsibilities, and any required escalation under the organization’s PCI DSS incident plan.
- Vendors and service providers: involve the affected script provider, website or tag-management provider, hosting or CDN provider, and forensic specialists as needed. Preserve their incident records and agree on a timeline and point of contact.
- Communications and patient support: prepare consistent messages and a staffed route for customer questions if notification or service changes are needed.
PCI DSS incident-response planning addresses roles, communications, containment, recovery, and applicable reporting analysis. The PCI SSC document library provides the current standard; confirm applicable requirements and escalation procedures with the organization managing the pharmacy’s PCI DSS program.
What notification obligations may apply?
Do not assume that payment-card exposure automatically constitutes a HIPAA breach, or that a payment-only incident has no other notification implications. Determine what information was accessed or disclosed, whether it was unsecured protected health information (PHI), which entities handled it, and which laws and contracts apply. Involve counsel and privacy leadership early.
For a HIPAA covered entity or business associate, the HIPAA Breach Notification Rule applies to breaches of unsecured PHI. Covered entities generally must notify affected individuals without unreasonable delay and no later than 60 days after discovery; additional HHS and, in certain cases, media notifications may apply. A business associate must notify the covered entity when required. The rule includes a risk assessment framework and exceptions, so evaluate the facts rather than treating every security incident as a reportable breach. See the HHS Breach Notification Rule.
State breach-notification laws and other federal requirements may also apply depending on the information and people affected. The FTC’s business breach-response guide notes that state notification laws vary and recommends determining which laws apply. Separately, review processor, acquirer, payment-brand, vendor, and insurance terms for contractual escalation requirements. Keep statutory notices distinct from PCI DSS and contractual reporting duties.
How to verify recovery and prevent another incident
Restore checkout only after the incident lead and pharmacy operations agree that the exposure is contained and a safe payment path is available. If the original page or vendor integration remains uncertain, keep it disabled and use an approved alternative rather than restoring service on a deadline alone.
- Rebuild or restore the checkout page from a trusted version. Remove unauthorized code, remediate the entry point, patch affected components, and rotate credentials that may have been exposed.
- Test in a controlled environment with synthetic information and processor-approved sandbox credentials. Verify that only approved scripts load, page behavior matches the documented baseline, and no unauthorized outbound requests occur.
- Confirm that monitoring detects unexpected changes to payment-page content, scripts, and relevant HTTP headers. Review script inventories, integrity protections, and access controls with the team responsible for payment-page security.
- Monitor the restored page, vendor alerts, access logs, and payment activity for signs of recurrence. Document who approved restoration, the evidence reviewed, and any remaining risks or compensating measures.
- Complete a post-incident review: identify the original entry point, assess vendor oversight and access, update response procedures, and track corrective actions to completion.
Recovery is complete when the pharmacy has contained the unauthorized script, verified a trustworthy payment path, addressed relevant exposure and notification questions, and assigned owners to prevent recurrence. Maintain that record alongside the evidence, timeline, and response decisions.
FAQs.
How can a hospital confirm that a checkout script is malicious without using real payment data?
Use an isolated test environment and synthetic inputs, or a payment processor’s approved sandbox credentials. Compare scripts and network requests with a trusted baseline, and check whether any unexpected code reads form fields or sends data to an unapproved destination. Do not test with real card numbers, patient details, or other live customer data.
Should failed or abandoned pharmacy checkout transactions be included in the exposure assessment?
Yes, when customers may have entered information on the affected page. A declined or abandoned transaction can still involve data typed into a compromised checkout page. Use page-load, session, and network evidence—not only completed sales—to define the potentially affected group.
Which teams should be involved in a payment-page skimming incident?
Coordinate security and incident response, pharmacy operations, web or digital product teams, privacy, legal, compliance, payment operations, and communications. Involve the payment processor, acquirer, affected script or web vendors, and forensic specialists as needed. Assign one incident lead to maintain the timeline, decisions, and evidence record.
When should the outpatient pharmacy restore checkout service?
Restore service only after the suspected code and entry point are contained, the replacement or cleaned page has been tested safely, and the response lead and pharmacy operations approve the payment path. If verification is incomplete, keep the affected flow offline and use an approved alternative until it is safe to resume.
Table of Contents
- How to detect and confirm third-party script skimming
- What evidence should teams preserve before changing the checkout page?
- How to identify the script’s entry point and contain the incident
- How to assess exposed payment data and affected transactions
- Which teams and third parties should coordinate the response?
- What notification obligations may apply?
- How to verify recovery and prevent another incident
-
FAQs.
- How can a hospital confirm that a checkout script is malicious without using real payment data?
- Should failed or abandoned pharmacy checkout transactions be included in the exposure assessment?
- Which teams should be involved in a payment-page skimming incident?
- When should the outpatient pharmacy restore checkout service?
Ready to simplify HIPAA compliance?
Join thousands of organizations that trust Accountable to manage their compliance needs.
Get Started Free Today