Digital Transformation and the Shadow Code Risk
September 23, 2020

Ameet Naik
PerimeterX

Businesses across the world are accelerating their digital transformation as consumers increasingly shift to online channels. Web applications have become a critical element of this digital journey and keeping them secure and performant is now more important than ever. However, there are new challenges that application developers face while delivering and maintaining these business-critical applications.

Web application developers often rely on open source libraries and third-party scripts in order to innovate faster and keep pace with evolving business needs. These scripts and libraries — often added without approvals or security validation — introduce hidden risks into the organization and make it challenging to ensure data privacy and to comply with regulations.

Collectively referred to as "Shadow Code," these scripts provide essential services such as payments, analytics, chatbots, advertising or social media integrations. However, application security teams often don't have a comprehensive understanding of what these scripts actually do, creating opportunities for malicious code injection attacks.


The Client-Side Blind Side

Often introduced without any formal approval process or security validation, these scripts run on the client side, which means traditional monitoring and security tools cannot provide the same visibility and control that you might have over server-side apps. This is a major blind side for appsec teams. So how big is this problem?

PerimeterX, in conjunction with Osterman Research, completed the second annual survey of application security professionals to uncover the extent and impact of Shadow Code across organizations in a diverse set of industries. The report, Shadow Code: The Hidden Risk to Your Website, finds that only 8% of respondents have complete insights into the third-party code running on their website. This is a very low result, which means that the vast majority of web applications out there have high levels of Shadow Code running on them.

The Trust Deficit

Given the extensive amount of third-party code running on web applications, the survey also examined the relationship between the users and the providers of third-party scripts. Over 30% of the respondents reported that they do not trust the providers of their third-party scripts. Yet, they allow this Shadow Code to run on the client-side of their web applications. This poses considerable business risk to the owners of these web applications.

As data privacy regulations like the California Consumer Privacy Act (CCPA) and the Global Data Protection Regulation (GDPR) impose strict penalties for client-side data breaches running into the hundreds of millions of dollars, application owners need to be more vigilant about the security of third-party scripts on their web applications.

The survey found that only 30% of survey respondents believed that their externally-facing web properties are completely secure from threats like Magecart attacks, down from about 40% in the 2019 survey.

Limited Controls

Application owners are turning to client-side behavioral analysis solutions that can baseline the behavior of first- and third-party scripts to identify anomalies that could signal a compromise. However, they need more mitigation options when dealing with such threats.

Only 22% of the survey respondents indicated that they or their teams have the full authority to shut down any suspicious script that they might find running on their website. This is down from 32% in 2019. For example, if the anomalous script processes payments, it's very difficult to shut it down while the team analyzes the root cause. Solutions that can surgically stop specific script actions without shutting down the entire script can offer a useful middle ground to already constrained appsec teams.

Compliance Remains Elusive

Only 30% of respondents to the survey reported that their externally facing web properties are secure and thus compliant with data privacy regulations. These statistics suggest that we are at the very early stages of identifying and grappling with the Shadow Code problem.

Much like with Shadow IT, when CIOs were forced to implement BYO device policies and tolerate more cloud services and apps in use than they could imagine, CISOs no longer have the luxury of saying no to third-party code. Meanwhile data privacy regulations are tightening worldwide and client-side attacks, such as Magecart, are on the rise, leading to massive data breaches and fines.

Shadow Code Best Practices

Shadow Code is here to stay and eliminating third-party scripts is not the answer. Application development and security teams can gain control over this problem by combining static testing of internal code, with runtime behavioral analysis of third-party scripts that can identify security risks in real time. Client-side application security solutions can offer a wide range of mitigation options to manage threats present within Shadow Code. Web applications can continue to benefit from the vast ecosystem of third-party services without compromising their users' data privacy.

Ameet Naik is a Security Evangelist at PerimeterX
Share this

Industry News

November 20, 2024

Spectro Cloud completed a $75 million Series C funding round led by Growth Equity at Goldman Sachs Alternatives with participation from existing Spectro Cloud investors.

November 20, 2024

The Cloud Native Computing Foundation® (CNCF®), which builds sustainable ecosystems for cloud native software, has announced significant momentum around cloud native training and certifications with the addition of three new project-centric certifications and a series of new Platform Engineering-specific certifications:

November 20, 2024

Red Hat announced the latest version of Red Hat OpenShift AI, its artificial intelligence (AI) and machine learning (ML) platform built on Red Hat OpenShift that enables enterprises to create and deliver AI-enabled applications at scale across the hybrid cloud.

November 20, 2024

Salesforce announced agentic lifecycle management tools to automate Agentforce testing, prototype agents in secure Sandbox environments, and transparently manage usage at scale.

November 19, 2024

OpenText™ unveiled Cloud Editions (CE) 24.4, presenting a suite of transformative advancements in Business Cloud, AI, and Technology to empower the future of AI-driven knowledge work.

November 19, 2024

Red Hat announced new capabilities and enhancements for Red Hat Developer Hub, Red Hat’s enterprise-grade developer portal based on the Backstage project.

November 19, 2024

Pegasystems announced the availability of new AI-driven legacy discovery capabilities in Pega GenAI Blueprint™ to accelerate the daunting task of modernizing legacy systems that hold organizations back.

November 19, 2024

Tricentis launched enhanced cloud capabilities for its flagship solution, Tricentis Tosca, bringing enterprise-ready end-to-end test automation to the cloud.

November 19, 2024

Rafay Systems announced new platform advancements that help enterprises and GPU cloud providers deliver developer-friendly consumption workflows for GPU infrastructure.

November 19, 2024

Apiiro introduced Code-to-Runtime, a new capability using Apiiro’s deep code analysis (DCA) technology to map software architecture and trace all types of software components including APIs, open source software (OSS), and containers to code owners while enriching it with business impact.

November 19, 2024

Zesty announced the launch of Kompass, its automated Kubernetes optimization platform.

November 18, 2024

MacStadium announced the launch of Orka Engine, the latest addition to its Orka product line.

November 18, 2024

Elastic announced its AI ecosystem to help enterprise developers accelerate building and deploying their Retrieval Augmented Generation (RAG) applications.

Read the full news on APMdigest

November 18, 2024

Red Hat introduced new capabilities and enhancements for Red Hat OpenShift, a hybrid cloud application platform powered by Kubernetes, as well as the technology preview of Red Hat OpenShift Lightspeed.

November 18, 2024

Traefik Labs announced API Sandbox as a Service to streamline and accelerate mock API development, and Traefik Proxy v3.2.