Secure development

Building secure application delivery pipelines

Release boundary: code, package, server arranged to illustrate building secure application delivery pipelines.

Building secure application delivery pipelines connects a security requirement to the behaviour of a real feature. The relevant controls need to remain effective across custom code, integrations and the production configuration. Understanding secure application delivery pipelines helps establish which security property the feature needs and where that property is actually enforced.

What does this involve?

A software dependency becomes part of the application's effective behaviour and maintenance commitment. The important inventory is what the release actually contains, including transitive packages, bundled binaries and code that arrives through a build or update process.

CI/CD refers to a set of largely automated processes used to build and deliver software; it is often portrayed as a pipeline consisting of a series of sequential, discrete steps. The pipeline generally begins when code under development is pushed to a repository and, if all steps complete successfully, ends with the software solution built, tested, and deployed to a production environment. CI/CD may be decomposed into two distinct parts: continuous integration (CI) and continuous delivery and/or continuous deployment (CD). CI focuses on build and testing automation; continuous delivery focuses on promoting this built code to a staging or higher environment and, generally, performing additional automated testing. Continuous delivery and continuous deployment may not always be distinguished in definitions of CI/CD; however, according to NIST, continuous delivery requires code to be manually pushed to production whereas continuous deployment automates even this step.

Why it matters

Consider a realistic failure: a build job can change a production release using a credential broader than its legitimate task requires.

A compromised or vulnerable component may run with the application's privileges or receive information the business did not expect to share. Impact depends on reachability, permissions and actual data flows rather than a package name alone.

Implementation guidance should be applied to a real feature and its deployment. Framework defaults, custom handlers and integrated services all influence whether the intended protection remains effective.

How penetration testers check for it

Trace the relevant feature from its entry point to the data or operation it protects, including custom code and alternate paths.

  • Inventory components in real release artefacts.
  • Review provenance, integrity and relevant known weaknesses.
  • Inspect transitive dependencies and unexpected runtime activity.
  • Confirm whether affected code is reachable under realistic conditions.

How to fix it

Use the appropriate maintained mechanisms and verify the result in the actual production configuration.

  • Avoid the use of auto-merge rules in platforms such as GitLab, GitHub, or Bitbucket.
  • Require pull requests to be reviewed before merging and ensure this review step cannot be bypassed.
  • Avoid assigning default permissions for users and roles with access to your SCM assets. Carefully manage your permissions.
  • Restrict the ability to fork private or internal repositories.
  • Remove unnecessary components and reduce their permissions.
  • Verify remediation in the shipped release and its supporting artefacts.

A vulnerability identifier is a starting point for investigation. Version evidence, affected functionality and deployment conditions determine whether it creates a confirmed application risk.

Recheck the changed behaviour against the original failure conditions and the legitimate user journey. Keep enough evidence to show which release and configuration were verified, and include related entry points that depend on the same security decision.

Read about our methodology or contact pentested.com to discuss secure development and code review.

See your first test report this week.

Book a 30 minute demo. We will verify one of your targets with you and run a test against it, so you can judge the results on your own systems.

Book a demo