Knowledge is Power

Sitewide Search

Search Bare Metal Cyber

Search exact control and technique identifiers, Cyber Wiki articles, framework records, playbooks, books, podcasts, Academy courses, individual lessons, and BMC Cyber Challenge activities.

Complete course · Domain 4 · Cloud Application Security · S01E67

Tracing Trust Through the Cloud Software Supply Chain

A routine passenger-app update begins making suspicious payment requests, even though a ferry operator's developers reviewed the expected source code and the released file carries an approved signature. Where did the unwanted behavior enter? This lesson follows a cloud software…

ISC2 CCSP Transcript available September 8, 2025
Lesson67

Listen Now

Lesson Focus

What this lesson covers

A routine passenger-app update begins making suspicious payment requests, even though a ferry operator's developers reviewed the expected source code and the released file carries an approved signature. Where did the unwanted behavior enter? This lesson follows a cloud software release through source control, outside dependencies, build automation, signing, package distribution, and production deployment. It explains why an authentic signature does not establish that software is safe, what trustworthy provenance can reveal, and how a compromised build process can quietly defeat otherwise careful reviews.

The investigation also introduces transitive dependencies, software bills of materials, composition analysis, supplier due diligence, license obligations, and the distinction between vulnerability information and real exploitability. You will hear why an inventory cannot certify security, why external providers require risk-based scrutiny, and how artifact verification, limited build privileges, and reliable incident evidence strengthen the release process. The practical goal is to identify what must be trusted at each handoff and how to restore that trust after an unexpected change. This episode is produced by baremetalcyber.com.

Companion Books

Connect this lesson to the Second Edition guide and Kindle flashcards.

Use the study guide to organize and deepen the audio lesson, then use the separately available Kindle flashcards for active recall and rapid review.

Read the transcript2,130 words · about 11 minutes

At six on a Monday morning, a regional ferry operator pushes a routine update to its passenger application. The update is supposed to fix a ticket-display problem. Within an hour, the application begins sending payment-related requests to a destination the company has never used. The developers insist that they did not write that behavior. Their source code review shows the expected changes. The file deployed to customers even carries the company's approved release signature.

Nothing about this situation requires a mysterious attacker who broke every defense. The company may have trusted the wrong package, used a compromised build service, or allowed an unauthorized change to enter the release process after the reviewed code left the developer's hands. To investigate, the team needs to understand how the software reached production, not merely what the application is supposed to do. That journey is the software supply chain.

A modern cloud application rarely consists only of code written by its owner. Developers select libraries and tools. Those components pull in other dependencies. A build service assembles them. A registry stores the resulting package or container image. Automation delivers it to a cloud environment. An external supplier may provide an identity module, analytics extension, or payment interface. A weakness or malicious change at any stage can travel into the final product with the same privileges the product receives.

After listening, an optional companion is the CCSP for Busy People study guide published by Bare Metal Cyber. Its release-security material can reinforce the path from reviewed source to deployed software. Use the ferry example as a test of your understanding: identify which stage produces the evidence for origin, which stage checks for known weaknesses, and which stage can still introduce an unauthorized change. Keep listening first; the reasoning should stand on its own.

Begin with the apparently reassuring signature on the ferry update. A digital signature can help a recipient confirm that an artifact has not changed since an identified signing process signed it. That is valuable. It does not establish that the artifact was safe when signed. If a malicious dependency entered the build before signing, the organization may have faithfully signed a compromised result. If an attacker controlled the signing service or stole its credentials, the identity represented by the signature might no longer be dependable.

Suppose the company asks the developers to show the reviewed source revision. They can. But knowing which source was approved is different from knowing that the deployed program was actually made from that source. The build could have used a substituted dependency, a different configuration, or a compromised automation step. This is where provenance becomes useful. Provenance describes an artifact's origin and relevant history. Good build provenance can link the finished file to its source revision, the build service that produced it, and the circumstances of that production.

An attestation is a claim about part of that history. For example, a trusted build system might assert that it built a particular artifact from an approved source revision using a defined process. The team receiving the claim must still verify who made it, whether the claim is protected against alteration, and whether the claiming system was actually trustworthy. An attestation generated by a compromised build environment is evidence of what that environment said, not independent proof that the environment behaved honestly.

A useful investigation follows the transformations in order. The source repository records changes and approvals. Dependency resolution determines which external code enters the build. The build environment runs tools and scripts that can alter outputs. A package registry receives a particular artifact. Deployment automation selects an artifact and places it in production. At every handoff, the organization should know what was allowed to change, who had authority to change it, and what evidence links the received result to the approved one.

Take the dependency step. The ferry team chose a third-party library to display boarding passes. That library uses another package for image processing. The second package relies on a helper module maintained outside the team's direct view. Developers might never have requested that helper by name. It still becomes part of the application. These are transitive dependencies, and they help explain why a careful review of only the top-level package list can miss material exposure.

Attackers can exploit the way dependencies are selected. A malicious package may use a name confusingly similar to a legitimate one. A public package may be selected ahead of an intended internal package when resolver settings are unsafe. A genuine maintainer account may be taken over and used to publish a poisoned update. Each case leads to a different correction. Better naming checks address confusion; trusted repository and resolver policy address package substitution; maintainer and release protections address unauthorized publication. Telling developers merely to scan more often would leave part of the cause untouched.

Build tools and automation deserve the same scrutiny as application dependencies. A pipeline may receive broad credentials to publish images, modify cloud configurations, or sign releases. A compromised build action can steal secrets or replace artifacts without changing the reviewed source. An effective design limits what each job can access, restricts who can change the pipeline, protects signing authority, and keeps a record that can connect a released artifact to the intended approval. Separate the ability to propose a change from the authority to publish it where practical.

The organization can also create a rule that production will accept only artifacts from an approved build path. That is stronger than trusting a filename or version label. An attacker can attach a familiar label to almost anything. The deployment system needs to check the artifact's actual identity and the relevant trusted evidence. If the evidence cannot be verified, a production release should not silently proceed because the file looks familiar.

There is still a visibility problem after deployment. The ferry operator receives a warning that a widely used component contains a newly discovered vulnerability. It needs to know whether the component is in its released application and, if so, which deployed versions contain it. A software bill of materials, often called an SBOM, is an inventory of components and their relationships within a software product. It can make that investigation far faster than asking every team to remember every library used months earlier.

The inventory must describe the software actually delivered, not an idealized project file. The direct dependencies are only part of the picture. Deeper dependencies can carry the same vulnerable code. Software changes with each release, so the inventory should change with the release. CISA's current minimum-element guidance emphasizes component relationships, including transitive dependencies, and an updated inventory for a changed build. This makes the inventory useful when a new concern must be matched to real deployed software.

An inventory does not prove safety. A package may have no known vulnerability and still contain malicious functionality. An inventory can be incomplete or inaccurate. A vulnerable component may be present but not usable by an attacker in that application's particular execution path. The owner must interpret the information in context. A bill of materials supports decisions; it does not replace code review, build assurance, supplier evaluation, testing, or operational monitoring.

Here is a practical way to use the optional Bare Metal Cyber CCSP Cyber Challenge after listening. Choose a practice scenario involving a supplier or component and ask yourself what new fact would change the decision. Would an accurate component inventory be enough, or would you need trustworthy build history, a verified signing identity, a license review, or an assessment of an external provider? The exercise is valuable because these controls answer different questions.

Software composition analysis can identify third-party components, their versions, licenses, and known vulnerabilities. It helps teams maintain the inventory and recognize concerns that become public over time. But it may miss unlisted, generated, or modified components, and it cannot reliably establish that a package is free from malicious logic. A clean report today is not a guarantee for tomorrow. Teams need an owner who will reevaluate deployed dependencies when new advisories or project changes appear.

Consider a notification that a specific library release is vulnerable. A supplier might explain that its product includes the affected component but never invokes the vulnerable function. That explanation may reduce the likelihood of exploitation in this setting, yet it requires credible evidence about how the component is used. It does not erase the need to monitor for changed conditions. If an update later enables the feature or exposes a new path, the earlier justification may no longer hold.

Licensing presents a different kind of supply-chain exposure. The ferry operator can obtain a technically sound open-source library and still fail a commercial or contractual requirement if it does not understand the license obligations that accompany distribution or modification. A software bill of materials may help identify components for legal review, but the team must interpret the actual licenses and distribution model. Technical security and legal permission to use or distribute the component are separate decisions.

Supplier assessment adds another layer. Imagine that the operator relies on a cloud payment extension managed by a small company. The extension can access sensitive transaction events. It would be unreasonable to approve it solely because its application passed a vulnerability scan. The operator should examine what access the supplier receives, how it protects development and release systems, how quickly it handles vulnerabilities, which subcontractors it depends on, and how the operator will obtain relevant incident evidence. More sensitive integrations justify stronger diligence and contractual requirements.

The National Institute of Standards and Technology's 2026 supply-chain due-diligence guidance considers supplier provenance, resilience, foundational security practices, and relationships further down the supply chain. The important practical idea is that risk does not stop at the supplier named on an invoice. A provider may depend on a build platform, hosting company, specialist maintainer, or other party whose failure can reach the customer's application. The owner should decide which relationships are critical enough to investigate and monitor.

This is also why the cheapest possible procurement questionnaire can be misleading. If every supplier receives exactly the same superficial questions, the answers may look comparable while hiding very different exposures. An innocuous library that transforms local text and an integration that can issue refunds deserve different levels of scrutiny. The question is what the third party can change, what information it can reach, how long it will remain in the environment, and how the owner could detect or contain a failure.

Now return to the ferry update. The investigation discovers that the reviewed source was legitimate, but the build used a newer package revision than the one evaluated during testing. That revision included an unauthorized network call. The company should remove the compromised artifact, revoke any exposed credentials, determine which systems received it, and preserve the records needed to understand the intrusion. But recovery also requires fixing how dependency versions were selected and how the build's output was verified before deployment.

If the organization simply rebuilds from the same untrusted inputs, it may reproduce the compromise. If it signs the rebuilt artifact with the same unaffected key but leaves the pipeline open to unauthorized changes, the release may again look valid. Restoring trust means choosing known-good inputs, using a controlled build process, verifying the finished result, and ensuring production accepts only what the authorized release path produced.

An incident can also reveal gaps in the information available from outside suppliers. The operator may have a package inventory but no way to determine how a vendor-supplied binary was built. It may have signed artifacts but no reliable evidence about the identity allowed to invoke signing. It may have a contract requiring prompt notification but no process to receive and act on that notice. These gaps belong in future supplier selection and architecture decisions, not only in the incident report.

The final risk choice is rarely absolute trust or total rejection. A well-maintained external component may offer functionality that would be riskier to build internally. A proprietary provider service may have strong controls while limiting direct visibility. The owner can decide to use the capability with constrained privileges, stronger monitoring, contract protections, verified release evidence, and a tested exit path. The appropriate combination depends on the impact if that particular dependency fails or is abused.

When assessing a software supply-chain decision, follow the actual release that will reach production. Establish its origin, how each transformation was controlled, which external components it includes, who has authority to publish it, and how the organization will respond when the evidence changes. The signed file at the end is only one part of that story. In the ferry incident, the decisive question was whether the trusted release process had produced the expected software at all.