RESOURCES / BLOG

Client-Side Security for Midmarket Teams

Comparing DIY and Automated Controls

Sure, your team can build client-side security controls. The challenge is if your team can maintain them as your website changes, investigate what they find, and produce evidence that the controls are working. For a security team, your security team, that work competes with application releases, incident response, and other projects.

A control that depends on engineering time needs a place in the schedule. An alert needs someone who can investigate and act. How should you compare DIY and automated controls? The simple answer is by the coverage they provide and the ongoing work they require. An automated platform may reduce manual tracking and evidence preparation, but you still need to validate its scope, configure its controls, and assign ownership.

Start with the customer journey you need to protect

Client-side security addresses code executing in your customers’ browsers, including scripts that can interact with sensitive information or change the page. Your web application firewall’s inspection of traffic to your application does not establish what those scripts do after the browser loads them.

For a retailer, your starting point might be at checkout and the scripts introduced through marketing tags. For a SaaS company, it could be a login or subscription flow. A consumer-facing manufacturer might start with a dealer portal or warranty form that collects customer information. The key is to identify the pages involved, the data customers enter, and the scripts loaded directly or through other scripts. Then define what each script should be allowed to access or change.

Account for the full DIY operating workload

A DIY approach makes your team responsible for designing, integrating, and maintaining the control system. That may include script discovery, inventory records, Content Security Policy (CSP), Subresource Integrity (SRI), change detection, and reporting automation.

CSP specifies restrictions on resources and execution. Your team must test those restrictions against legitimate functionality and maintain the configuration as the application changes. A source allowlist does not establish whether an allowed script’s behavior is appropriate for a sensitive page.

SRI compares a fetched file with an expected cryptographic hash. When the file changes, its hash changes too. An intentional update therefore needs a corresponding integrity update to avoid a mismatch. The hash establishes a file match; it does not decide whether that file should access a customer’s form inputs.

Those mechanisms leave operational questions for your team: Who approves a newly discovered script? Who investigates changed behavior? Who tests a policy adjustment before it reaches production? Who maintains the automation when its original developer moves to another project? And does CSP and SRI really work to protect against a dynamically changing website? No, it doesn’t.

Compare the controls and the work behind them

Use the same requirements for an internal build and a commercial platform. Ask for a demonstration of each capability in your environment.

WorkstreamYour DIY responsibilityWhat to verify in an automated platform
Script discoveryBuild and maintain discovery across relevant pages and loading conditions.Which scripts and journeys are observed, and what coverage gaps remain?
AuthorizationMaintain owners, approvals, and reasons for script use.How are records updated, reviewed, and retained?
Behavior controlImplement the restrictions your use case requires.Does it alert, block entire scripts, or restrict specific runtime behavior?
InvestigationConnect findings with releases, script owners, and response actions.What context helps your team distinguish expected activity from unauthorized behavior?
EvidenceRetain records showing what ran, what changed, and how you responded.Can you retrieve evidence for the required scope and period?

Read the last column as evaluation questions. A product’s use of the word “automated” does not establish that it performs every task listed.

Separate monitoring from runtime enforcement

Automated monitoring collects observations and generates findings. Runtime enforcement restricts activity while code executes. Evaluate both against the outcome you need. For example, a tool might tell your team that a script accessed a sensitive field or contacted a new destination. Your response process must then establish whether that activity was authorized and what action to take.

If your requirement is to prevent a script from accessing particular data, test that restriction directly. Ask what policy enforces it, which pages it covers, and how an exception is approved. Also verify that legitimate customer actions still work, and that the script it monitored every single time it runs.

Source Defense’s research on the Polymarket third-party script compromise illustrates the risk of treating a trusted script source as evidence of safe behavior. Approval of a supplier and control over its JavaScript’s actions are separate decisions. Your team should know which decisions the platform makes automatically, which require review, and who can change an enforcement policy.

Include PCI evidence in your evaluation

PCI DSS 4.0.1 adds specific control and evidence requirements. Confirm your scope and validation responsibilities before choosing an implementation.

Requirement 6.4.3 addresses authorization and integrity of payment-page scripts, plus an inventory with written business or technical justification for their necessity.

Requirement 11.6.1 addresses detection of unauthorized changes to security-impacting HTTP headers and payment-page content received by the browser, with alerts to personnel. Its functions must run at least weekly or at a frequency established through a targeted risk analysis meeting Requirement 12.3.1.

The PCI SSC payment-page security supplement explains these requirements and their implementation. Runtime blocking is an additional security capability, distinct from the detection and alerting required by 11.6.1.

In either approach, test whether you can retrieve the relevant history and show how changes were reviewed. A generated report supports assessment work; your implementation and responsibilities still need validation. Evaluate nonpayment portals for their actual data exposure without assuming those payment-page requirements apply.

Test one journey before expanding the scope

Start an evaluation with one high-value journey and a named owner. A checkout redesign, approaching assessment, or renewal can provide a concrete decision date. Include security and the web/application owner. Bring in GRC for payment-page evidence requirements and the business owner to validate customer-facing functionality.

Agree on the evidence you need before the evaluation begins:

  • Coverage across the selected pages and relevant loading conditions.
  • Detection of an approved test change and delivery of the resulting alert.
  • Enforcement of a defined restriction, if prevention is required.
  • Time spent investigating findings, maintaining policies, and preparing evidence.
  • Customer functionality and the process for handling exceptions.

Use a controlled test environment for changes that could affect customer data or transactions. Record the work your team performs during the evaluation, including vendor assistance. That gives you a more useful operational baseline than a generic savings percentage.

For the DIY path, include development, testing, maintenance, and staff handover. For a platform, include the subscription, implementation, retained internal work, and any support you need. Compare equivalent coverage and control outcomes.

Put Source Defense against the same criteria

Source Defense combines script visibility and runtime behavior monitoring with controls that depend on the selected plan. Its PCI Compliance solution supports payment-page inventory, authorization and justification records, change alerts, and assessment evidence.

Compare our different plans. Starting with the Essential plan, each plan include detection and alerts, on-demand script blocking in Standard, and granular runtime policies with optional automated enforcement in Professional and Enterprise. Your team remains responsible for business approvals, policy decisions, and response ownership. A useful evaluation should show exactly which recurring tasks the platform handles and how much work remains with you.

If you are weighing an internal build against a platform, bring one customer journey and your control requirements to the discussion. Book a Source Defense demo to examine script behavior, the relevant enforcement options, and the evidence your team needs before deciding how to proceed.

Related Reads

Source Defense
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.