Most developers think security problems come from bad code.
A rushed feature, a missed validation check, a TODO that lingered too long… the story we often tell ourselves is simple: if we write better code, security improves.
That story used to make sense. Today, it’s incomplete.
Modern applications rarely fail because engineers suddenly forgot how to write secure software. They fail because risk now arrives bundled inside the components we depend on – libraries, frameworks, SDKs, and utilities pulled in from the open-source ecosystem. Much of the code executing inside a production application was never written by the team running it.
That’s the idea behind our new ebook, The Trojan Horse in Your Code: Securing Transitive Dependencies and Inherited Risk in Open-Source Software.
The book explores a shift that many engineering and security teams are only beginning to fully grasp: in modern software, risk is often inherited rather than written.
The Risk That Arrives With Your Dependencies
Think about the last time you installed a library.
You ran npm install, pip install, or added a new dependency to your project. Within seconds, the package manager pulled in the library you wanted and quietly installed everything it needed to run.
Behind that quick install, however, something much larger happened. A single dependency often brings with it an entire graph of additional components – sub-dependencies, utilities, helper libraries, and tooling that your team never evaluated directly. Those components may themselves depend on others, creating a deeply nested execution chain that can contain hundreds of packages.
From the outside, it looks like you added one library.
In reality, you may have imported an entire supply chain.
That’s why the ebook uses the metaphor of a Trojan Horse. You intentionally bring a trusted tool into your system because it solves a problem and accelerates development. But inside that tool are other components you didn’t explicitly invite. They arrive automatically, hidden behind the convenience of modern package ecosystems.
Most of the time, this works exactly as intended. Open source accelerates innovation and allows teams to build far more sophisticated systems than they could on their own. But it also means that a significant portion of your application’s attack surface comes from code your team never reviewed.
The Deep Parts of the Tree
One of the most interesting dynamics in modern software supply chains is where risk tends to accumulate.
The dependencies developers recognize – popular frameworks and widely used libraries – receive constant attention. They have large communities, frequent updates, and many eyes watching for vulnerabilities.
But deeper in the dependency tree, visibility drops off quickly.
These deeper layers are often small utility libraries that handle things like parsing strings, formatting dates, or managing internal helpers for other packages. They may be maintained by a single developer, updated infrequently, or quietly inherited by thousands of applications through upstream frameworks.
Yet they execute in the same runtime environment as everything else in your application.
The result is a kind of security blind spot: the parts of the stack with the least visibility can still influence the behavior of the entire system.
Our ebook explores how this “deep-tree” dynamic creates inherited risk that many teams struggle to see clearly – even when using standard security tools.
Why Fixing Inherited Risk Is Harder Than Adding It
Adding dependencies is easy. Removing risk from them is not.
Once a vulnerability is discovered deep in a dependency tree, the affected code may already be embedded in build artifacts, container images, and production deployments. Upgrading the component might require coordinated changes across frameworks, plugins, and internal services.
By that point, remediation stops being a simple patch. It becomes a broader operational decision involving stability, compatibility, and release timing.
That tension is one of the reasons inherited vulnerabilities can persist longer than anyone would like. The difficulty isn’t that teams ignore them; it’s that fixing them safely often requires navigating the realities of production systems.
The book dives into how these dynamics play out in real environments and why traditional security advice sometimes fails to account for them.
Seeing the System Clearly
Building with open source means accepting that applications are no longer just collections of code written by your team. They are ecosystems of interconnected components, each with its own maintenance history, security posture, and lifecycle.
Understanding that ecosystem – and how risk flows through it – is becoming one of the most important skills for both developers and security teams.
The ebook explores how inherited risk behaves differently from traditional technical debt, why dependency trees make vulnerabilities harder to detect and remove, and how organizations can reduce exposure without destabilizing the systems they rely on.
A Peek Inside the Trojan Horse
If you’ve ever wondered how vulnerabilities buried deep inside dependency stacks end up shaping real-world security incidents, the ebook provides a detailed look at the mechanics behind it. From the illusion of dependency vetting to the operational challenges of removing inherited risk, it traces the path vulnerabilities take from hidden libraries to production environments.
And perhaps more importantly, it explores how teams can rethink security strategies in a world where controlling every line of code is no longer realistic.
Because in modern software, the most dangerous vulnerabilities in your stack may not be the ones you wrote.
They may be the ones that came with it.
If you’d like to explore the full story, you can download the ebook here:
The Trojan Horse is already inside the city. The question is whether you understand what came with it.

