Trustwave SpiderLabs Exposes Unique Cybersecurity Threats in the Public Sector. Learn More

Trustwave SpiderLabs Exposes Unique Cybersecurity Threats in the Public Sector. Learn More

Services
Capture
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

twi-managed-portal-color
Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

twi-briefcase-color-svg
Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

tw-laptop-data
Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

twi-database-color-svg
Database Security

Prevent unauthorized access and exceed compliance requirements.

twi-email-color-svg
Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

tw-officer
Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

tw-network
Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Offensive Security
Solutions to maximize your security ROI
Microsoft Exchange Server Attacks
Stay protected against emerging threats
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats

Uncovering the Dirty Secret of Open-Source Code and Its Risks for Organizations

Using open-source code exposes organizations to a tremendous amount of risk, yet this point is treated like a dirty little secret that nobody talks about. So, let’s live on the edge and take a minute to talk about the problem.

Open-source code is an oddity.

Generally, open-source code is often placed in small packets tucked inside massive programs that corporations use to run their most important processes or it is adopted as a whole program and tasked with running some part of a business. Once embedded and everything is functioning properly, the open-source code may be forgotten about. Yet, certain aspects of this code are often unknown to the end users.

Small facts, like who wrote it? Who has access to it? Was it maintained properly? Is it dangerous?

It is easy to understand why the code is used and why companies are willing to use something that has so many unknowns. Open-source software simplifies the development process and decreases the cost of developing new projects by being ready-made.

Insert Code A into Fold B, and “Ta-Da” you have a box, I mean software.

The unfortunate issue is that, for the most part, IT and security teams use the “head in the sand approach” to cybersecurity and simply gloss over the fact that, at some point, a malicious actor may have gotten ahold of the code, or the possibility does not even occur to them.

Or even worse, the programmer is the threat actor.

 

The Worst-Case Scenario

Unfortunately, today, we have an excellent example in the news of how this is a real-world problem. One that could be as severe as Log4j but is not as well known.

This situation involves a backdoor that was found in XZ Utils, a JavaScript program deployed by billions of websites worldwide. This supply chain attack involved a sophisticated social engineering effort that saw an attacker earning the trust of the project’s maintainer through legitimate code contributions over multiple years until they were made co-maintainer and gained direct control over the project’s releases and added the backdoor, according to a published report.

To gain control, the attacker essentially convinced the developer that he was overworked and could have more time if he gave up maintaining XZ Utils. So, the developer did so, handing the keys to the project over to an adversary.

 

Finding the Silver Lining

The XZ Utils is not a one-off situation, and adding to the problem is that there is a possibility the takeover was conducted by a nation-state actor, which raises the stakes even higher.

What the XZ story has done is draw attention to the fact that huge amounts of commercial software incorporate code packages possibly created by an open-source developer clacking away at a keyboard in their garage with little knowledge of its security implications.

If one of those coders goes rogue or gets owned, then all kinds of problems will arise. The trickle-down impact could be huge, so it’s better for all of us if the potential security issues within open-source software are discussed, and not swept under the rug.

 

And Now, Whatever is the Opposite of a Silver Lining

The problem for security teams is that little can be done about this situation. The largest corporations on the planet leverage huge amounts of open-source software, taking advantage of the fact that someone has written specific components of code that perfectly does a small piece of a larger job and at no cost to the company.

The question then arises. Whose responsibility is it to secure all the code supply chain? Even a software bill of materials (SBOM) does not always help as the open-source code can be found far down the supply chain.

While we don’t have all the answers, there are some steps we can take to minimize the threat. For example, we can build out a software supply chain risk framework that will give some visibility into potential security potholes. Threat hunting will identify the behavior of the bad guy using malicious software, and managed detection and response (MDR) solutions also have a role to play.

These can ID the symptoms but not fix the root cause.

For me, the best takeaway from this conversation is that cases like XZ Utils should start a conversation about security issues surrounding open-source software. The fact that the developer was co-opted into giving control to a bad actor should haunt all open-source developers. In the same manner that everyone must be aware of phishing emails, developers must be aware of who they are interacting with and also have security in mind while developing software.

Open-source software is not going away, and the problem is particularly hard to solve, but ignoring the issue is not the answer.

Latest Trustwave Blogs

Using Trustwave DbProtect and Offensive Security Solutions to Protect Against Nation-State Cyber Threats

The US Director of National Intelligence (DNI) earlier this month gave a stark warning to the Senate Armed Services Committee detailing the cyberthreats arrayed against the US and the world from...

Read More

Defending the Energy Sector Against Cyber Threats: Insights from Trustwave SpiderLabs

It has always been clear, even before the Colonial Pipeline attack, that the energy sector is a prime target for not only criminal threat groups, but also nation-state actors. After all, halting fuel...

Read More

Trustwave SpiderLabs Unveils the 2024 Public Sector Threat Landscape Report

Trustwave SpiderLabs’ latest report, the 2024 Public Sector Threat Landscape: Trustwave Threat Intelligence Briefing and Mitigation Strategies details the security issues facing public sector...

Read More