By NHI Mgmt Group Editorial TeamBased on Guardsquare: “Automating Guardsquare Workflows with Bitrise” (February 24, 2026)

TL;DR: Automating mobile app protection and security testing inside Bitrise pipelines using SSH-backed service accounts, workflow scripts, and AppSweep scanning for Android and iOS builds is possible, according to Guardsquare. The operational question is not whether protection can be automated, but how to prevent build-time secrets and release workflows from becoming a new attack surface.


At a glance

What this is: This is a walkthrough of automating Guardsquare protection and AppSweep testing inside Bitrise pipelines, with the key finding that mobile release automation depends on controlled SSH-based service accounts and workflow secrets.

Why it matters: It matters because CI/CD pipelines are now identity-bearing environments, and mobile security teams need to govern service accounts, secrets, and scanning steps without turning the build system into a new control blind spot.


Context

Mobile CI/CD automation is the use of build and release pipelines to run protection, testing, and packaging steps without manual intervention. The governance problem is that those pipelines often rely on secrets, service accounts, and delegated access that behave like identities even when teams treat them as build configuration.

This article sits at the intersection of mobile application security, CI/CD governance, and non-human identity control. When a pipeline can sign, protect, and publish artifacts, the credentials behind that pipeline need the same lifecycle discipline as any other privileged access path.


Key questions

Q: How should teams govern SSH-backed service accounts in CI/CD pipelines?

A: Treat them as non-human identities with explicit ownership, least privilege, and revocation procedures. The account should exist only for the workflow that needs it, and the SSH key should be rotated when the pipeline changes or the role ends. That reduces the chance that build automation becomes a standing access path into release systems.

Q: Why do build secrets increase release risk in mobile pipelines?

A: Because they turn the pipeline into a reusable access channel. If the secret is stored in workflow settings, copied into logs, or reused across environments, an attacker who finds it can impersonate the automation step. The risk grows when the same credential supports both testing and protection without separate scope boundaries.

Q: What breaks when mobile security scanning runs on the wrong build artifact?

A: You lose fidelity in the results. Scanning a protected or repackaged build can hide weaknesses that exist in the original application, while scanning too early may miss issues introduced during signing or packaging. The practical failure is believing you have coverage when the scanned artifact no longer matches the security question you are asking.

Q: How should release teams decide where automation ends and identity control begins?

A: The boundary should be wherever the workflow can authenticate, sign, or publish on behalf of the organisation. At that point, the pipeline is exercising delegated authority and needs identity-style controls, including ownership, scope, and auditability. If those controls are absent, the release flow itself becomes a privileged access path.


Technical breakdown

How SSH-backed service accounts connect Bitrise to protection tooling

The integration pattern uses an SSH key pair to let a build step authenticate as a service account, then activates that identity inside the pipeline before running protection commands. In practice, the SSH private key sits in pipeline secrets, while the public key is registered to the automation account on the platform side. That makes the build system a delegated executor, not a human-operated session. The security risk is not the script itself but the trust chain behind it: if the key is exposed, any attacker who gets the secret inherits the same automation privileges.

Practical implication: Treat pipeline service accounts as non-human identities with scoped permissions, rotation, and revocation controls.

Why build secrets become part of the mobile release attack surface

Bitrise secrets are used here to store the SSH private key required for automation, which means the pipeline holds a reusable authenticator for both protection and release activity. Any secret stored for convenience can also become a persistence mechanism if copied, logged, or reused across workflows. The article’s setup assumes the secret is available at build time and that the workflow steps are trusted. That is exactly why CI/CD identity governance matters: build orchestration can be secure only if secret storage, step ordering, and privilege scope are controlled together.

Practical implication: Inventory every build secret used for release automation and bind each one to a specific workflow, environment, and rotation policy.

Shift-left security testing only works when the scan target is chosen deliberately

The article recommends scanning the unprotected application so the results reflect the app’s actual vulnerabilities rather than the effects of hardening or post-processing. That is a meaningful testing choice because security tooling can mask defects if it runs on the wrong artifact stage. In pipeline terms, the scan is part of the control chain, not a standalone quality gate. For mobile teams, this means build order matters: protection, signing, and scanning each answer different questions, and mixing them can reduce the value of the results.

Practical implication: Define which pipeline stage produces the security evidence you trust, then standardise scanning on that artifact.


Threat narrative

Attacker objective: The attacker’s objective would be to gain trusted access to build-time automation so they can interfere with protected mobile app output or steal pipeline credentials.

  1. Entry occurs through the CI/CD workflow’s SSH-backed service account and stored private key, which grant the pipeline authenticated access to protection and build tasks.
  2. Credential abuse would let an attacker reuse that delegated identity inside the workflow or copy the secret for later use in another build run.
  3. Impact would be unauthorized access to protected build steps, security artifacts, or release workflows, turning the pipeline into a control plane for mobile application tampering.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

CI/CD service accounts are non-human identities, not build plumbing: once a pipeline can sign, protect, and package software, the identity behind that pipeline becomes part of the trust boundary. SSH keys and workflow secrets need lifecycle governance, not just storage. That is a machine-identity problem with direct release implications, and it belongs in the same control conversation as any other privileged access path.

Mobile release automation creates secrets sprawl inside the pipeline: the more steps a workflow performs, the more likely credentials, artifacts, and permissions spread across build stages. The governance failure is assuming build infrastructure is disposable when it is actually persistent enough to accumulate privilege. Teams need to treat release workflows as governed execution environments, not temporary scripts.

Shift-left scanning only helps when artifact state is explicit: scanning the wrong build stage can hide the defects you are trying to measure. This is a control-design issue, not a tool issue. Practitioners should decide which artifact represents the truth for security testing and enforce that consistently across Android and iOS pipelines.

Build-time identity controls now matter for mobile app security posture: as more mobile teams automate protection and testing, the meaningful risk moves from code alone to the identities that execute the code. The decisive question is whether the pipeline’s delegated access is observable, scoped, and revocable before release execution completes.

From our research library:

What this signals

Pipeline identities need lifecycle control, not just secret storage: mobile build systems increasingly act like privileged automation accounts, so the real risk is unmanaged delegated access rather than the script content itself. Teams that already manage service accounts elsewhere should apply the same discipline here, especially where release steps can sign or publish artifacts.

Secrets sprawl is the hidden control gap in CI/CD-driven app protection: the moment a pipeline depends on SSH keys and environment secrets, the workflow inherits the same leakage and reuse risks seen across broader machine-identity estates. According to the Ultimate Guide to NHIs, 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools.

Build-stage governance now sits alongside mobile AppSec: protection, scanning, signing, and release orchestration are no longer separate concerns when the same automation path controls all of them. Practitioners should map each pipeline step to a specific identity, secret, and artifact boundary before they treat the workflow as safe to scale.


For practitioners

  • Harden pipeline service accounts Create dedicated automation identities for each Bitrise workflow, scope permissions to the minimum release task set, and revoke any shared or reused SSH keys.
  • Separate build secrets by workflow and environment Store SSH private keys and related credentials in environment-specific secrets, then restrict which build stages can read them during protection and signing steps.
  • Standardise artifact-stage scanning Run mobile security scans on the unprotected build artifact that best represents the app before hardening, so findings map to the application rather than the packaging layer.
  • Log and review delegated pipeline access Record when the automation account is activated, which workflow used it, and which build outputs it touched so suspicious access can be correlated with release activity.

Key takeaways

  • CI/CD pipelines that automate mobile protection are governed execution environments, so their service accounts and secrets need identity controls.
  • The main risk is not the protection command itself but the reusable access path created by SSH-backed automation and workflow secrets.
  • Teams should decide which artifact stage is the security source of truth, then enforce scanning and release controls against that stage.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageThe article centers on SSH keys stored in pipeline secrets for automated build access.
NHI-04 — Insecure AuthenticationSSH-backed service accounts authenticate the pipeline as a delegated automation identity.
NHI-07 — Long-Lived SecretsThe workflow depends on reusable credentials that can persist beyond a single build run.
Recommendation — Scan CI/CD secret stores for leaked automation keys and revoke any exposed credentials immediately. Enforce stronger authentication for automation identities and bind each key to a single workflow. Replace persistent pipeline secrets with short-lived credentials wherever the build platform allows it.
MITRE ATT&CKTA0006;TA0003 — Credential Access; PersistenceStolen pipeline credentials can be reused for continued access to build and release workflows.
Recommendation — Map CI/CD credential exposure to TA0006 and TA0003, then hunt for reused automation tokens.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsPipeline secrets and service accounts should be governed as access permissions and entitlements.
Recommendation — Apply PR.AA-05 to scope automation access to the minimum required build and release functions.
CIS Controls v8CIS-5 — Account ManagementAutomation identities and secret lifecycle in the pipeline are fundamentally account management issues.
Recommendation — Use account management controls to provision, review, and retire CI/CD service accounts on a fixed schedule.

Key terms

  • CI/CD service identity: A CI/CD service identity is the account, token, or credential used by build and deployment automation to perform pipeline actions. These identities often carry broad permissions, so they become part of the application security boundary and must be governed with least privilege and strong lifecycle control.
  • Build Secret: A build secret is a credential used by automated pipelines to authenticate with systems such as cloud providers, artifact registries, or deployment targets. In CI/CD, these secrets are often necessary, but they become high-value assets because workflows can access them without a human ever seeing the value directly.
  • Shift Left Security Testing: Shift left security testing means finding security problems earlier in the software and system lifecycle, before release. It embeds checks into design, coding, build, and test stages so issues are caught when they are cheaper to fix. In practice, it includes automated scanning, policy validation, threat modeling, and secure code review.
  • Delegated Build Access: Delegated build access is the temporary authority granted to pipeline components, runners, and extensions to perform tasks on behalf of the organisation. For CI/CD environments, the key governance question is whether that delegated access is narrow, observable, and revocable when the job ends.

Deepen your knowledge

NHI Mgmt Group covers identity security, NHI governance, and agentic AI through independent research, practitioner guides, and the NHI Foundation Level course. It is suitable for practitioners who need to govern machine identities, secrets, and delegated access across modern delivery pipelines.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 19, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org