By NHI Mgmt Group Editorial TeamDomain: Cyber SecuritySource: CycodePublished January 26, 2026

TL;DR: Application security still breaks down when organisations treat code scanning, testing, and governance as sufficient while leaving secrets, access, and runtime identity controls weak, according to Cycode’s analysis. The practical lesson is that secure delivery now depends on treating applications, pipelines, and service accounts as an identity governance problem, not just a tooling problem.


At a glance

What this is: This is a Cycode analysis of application security best practices, with the strongest finding being that identity, secrets, and access controls remain a central failure point in modern SDLC governance.

Why it matters: It matters because IAM, PAM, and NHI teams increasingly have to govern application pipelines, service accounts, and secrets alongside human users if they want to reduce breach exposure.

By the numbers:

👉 Read Cycode's application security best practices for secure development and identity controls


Context

Application security is no longer only about finding code defects. In modern delivery pipelines, the real governance gap is that applications, CI/CD systems, and cloud workloads all depend on credentials, tokens, and service identities that can be exposed, reused, or over-privileged.

That makes application security a shared concern for IAM, PAM, and NHI programmes as well as developers and security engineers. If secrets management, least privilege, and access review are weak, secure coding and scanning only reduce part of the risk.

Cycode’s article is typical of the current market conversation: it starts with application security but repeatedly returns to identity, secrets, and access as the controls that determine whether software can be defended in practice.


Key questions

Q: What breaks when application secrets are not governed like identities?

A: Application secrets become durable access paths instead of controlled credentials. If they are embedded in code, shared across environments, or left unrotated, a single compromise can turn into persistent backend access. The failure is usually not discovery alone. It is the absence of ownership, expiry, and revocation discipline for credentials that function like non-human identities.

Q: Why do service accounts and tokens create more risk than many teams expect?

A: Because they often carry standing privilege, operate quietly, and remain valid long after the business need changes. That combination increases blast radius when a credential is exposed and makes detection harder than with human accounts. The risk is not the token itself. It is the duration and breadth of access it enables.

Q: How can security teams tell whether secret management is actually working?

A: Look for fewer plaintext secrets, narrower reuse, faster rotation, and a shrinking set of credentials that remain valid across multiple systems. If the same password or API key can still unlock several services, secret management is not yet reducing blast radius in practice.

Q: Should organisations prioritise secret rotation or access review first

A: They should do both, but access review should come first when unknown or over-privileged identities already exist. Rotation reduces exposure window, but review reduces entitlement sprawl and clarifies ownership. If a team rotates secrets without fixing who can use them, it preserves the same risk pattern with a fresher credential.


Technical breakdown

Why secrets and access controls are now application security controls

Modern applications do not operate as isolated codebases. They run through build systems, deployment pipelines, cloud services, and third-party dependencies, all of which rely on credentials and service identities. If those secrets are hardcoded, copied into images, or left in repositories, attackers can authenticate as legitimate actors rather than exploit software flaws directly. That shifts the problem from code weakness to identity abuse. The important mechanism is that valid credentials bypass many traditional detection layers because the activity looks authorised unless privilege scope, rotation, and usage patterns are tightly governed.

Practical implication: treat every application secret as an NHI asset with lifecycle, rotation, and access controls, not as a developer convenience.

How shift-left testing fails when identity is left out

SAST, DAST, and IAST can reduce exposure to coding defects, but they do not solve misuse of tokens, API keys, certificates, or over-broad runtime permissions. A pipeline can pass every security test and still deploy software that can be compromised through credential theft or weak authorisation. This is why secure development and identity governance have to be linked. The technical issue is not whether testing works, but whether it covers the full control surface, including the identities that software uses to reach databases, storage, and cloud APIs.

Practical implication: pair testing controls with secrets scanning, entitlement review, and runtime identity monitoring across the delivery chain.

Why logging alone cannot compensate for over-privileged software identities

Logging and SIEM improve detection, but they do not prevent abuse of standing access. If service accounts, automation tokens, or build credentials can reach multiple environments, an attacker can move laterally while appearing to use normal system behaviour. In practice, the response time advantage from monitoring is limited when the identity model itself is too permissive. The control problem is blast radius, not just visibility. Least privilege, segmentation, and short-lived credentials are what restrict how far a compromised application identity can go before it is contained.

Practical implication: reduce standing privilege first, then use monitoring to validate that application identities stay inside intended boundaries.


Threat narrative

Attacker objective: The attacker wants to convert exposed software credentials into trusted access that can be reused for data theft, persistence, or lateral movement.

  1. Entry occurs when attackers obtain exposed application secrets from repositories, container images, pipelines, or mismanaged cloud systems.
  2. Escalation follows when those valid credentials are reused to reach databases, APIs, or cloud services with broader privileges than the original application task requires.
  3. Impact comes when the attacker uses trusted application access to steal data, tamper with systems, or persist inside the environment without triggering obvious authentication failures.

NHI Mgmt Group analysis

Application security is increasingly an identity governance problem. The article is strongest when it treats secrets, access, and least privilege as core security controls rather than implementation details. That is the right framing because modern applications authenticate through machine identities far more often than through humans. For IAM and NHI programmes, the conclusion is clear: application security now depends on who and what can authenticate into the delivery chain.

Secret sprawl is the named failure mode this article points to. Hardcoded credentials, scattered tokens, and inherited permissions create a control environment where compromise is both fast and hard to bound. This aligns directly with OWASP NHI guidance and with the NHI lifecycle problem of issuance, rotation, and offboarding. Practitioners should read this as evidence that lifecycle discipline, not just scanning, determines the real exposure window.

Shift-left controls help only when paired with runtime privilege control. SAST and DAST can block defects, but they do not constrain the trust relationship between software and its dependencies, cloud APIs, or build services. That means the security programme must combine development-time checks with enforcement around service account scope, token lifespan, and access review. In practice, the control boundary has to extend from code commit to runtime identity.

Monitoring is useful, but it cannot be the primary compensating control for weak application identity design. The article’s emphasis on SIEM and incident response is directionally correct, but detection comes after the trust decision has already been made. If application identities are over-permitted, then logs mainly document the blast radius rather than prevent it. The more durable answer is to constrain privileges before software reaches production.

Governance has to converge across AppSec, IAM, and PAM. The article implicitly shows that application security programmes fail when developers, platform teams, and identity teams each own only part of the risk. That split leaves credential handling and authorisation poorly governed. The practical conclusion is that security architecture should treat application identity as a shared control plane, with clear ownership for issuance, rotation, review, and revocation.

What this signals

Secret sprawl is becoming a speed problem, not just a hygiene problem. Once credentials are exposed, adversaries move faster than most review and revocation processes. That makes lifecycle discipline around issuance, rotation, and offboarding the practical control plane for both human and machine identities.

The programme implication is that AppSec, IAM, and PAM can no longer operate as separate disciplines. If build systems, deployment identities, and production services are not governed together, the organisation will continue to inherit hidden trust paths that scanning alone cannot close. The OWASP Non-Human Identity Top 10 and the NHI Lifecycle Management Guide are both useful references for closing that gap.

Security leaders should expect application security metrics to shift from defect counts toward identity-bound measures such as secret exposure time, service-account ownership, and privilege scope drift. Those are the signals that show whether the security model is actually reducing blast radius or merely documenting it after compromise.


For practitioners

  • Implement application secret lifecycle controls Inventory API keys, database passwords, certificates, and service tokens across code, pipelines, container images, and cloud integrations. Assign ownership, set rotation intervals, and revoke credentials that are no longer tied to an active workload.
  • Extend least privilege into build and runtime identities Review every CI/CD service account, deployment token, and workload identity to confirm it only reaches the systems required for its function. Remove inherited permissions and separate build access from production access wherever possible.
  • Add automated secrets detection to developer workflows Scan repositories, pull requests, images, and configuration files for embedded credentials before code merges. Block new secrets from entering source control and route findings to the team that owns the affected workload.
  • Tie application security reviews to identity reviews Make service-account ownership, privilege scope, and rotation status part of release approvals, not a separate operational afterthought. A secure application cannot be certified if its machine identities remain unmanaged.
  • Validate detection coverage for trusted-access abuse Tune monitoring for unusual API use, impossible travel patterns for service accounts, anomalous privilege escalation, and credential use from unexpected automation paths. Detection should confirm when trusted application access is being misused.

Key takeaways

  • Application security breaks down fastest where machine identities, secrets, and privileges are left outside governance.
  • Scanning and testing reduce code defects, but they do not stop attackers from reusing exposed credentials as trusted access.
  • The practical control gap is lifecycle discipline across secrets, service accounts, and production permissions.

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, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03The article centres on exposed secrets, rotation, and machine identity governance.
NIST CSF 2.0PR.AC-4Least privilege and access governance are central to the article's controls.
NIST SP 800-53 Rev 5IA-5Authenticator and secret management directly applies to exposed credentials and rotation.
MITRE ATT&CKTA0006 , Credential Access; TA0008 , Lateral MovementThe threat pattern described is credential theft followed by reuse and spread.
CIS Controls v8CIS-5 , Account ManagementAccount and service identity governance supports the article's least-privilege emphasis.

Use CIS-5 to track service accounts, revoke stale access, and document ownership for automation identities.


Key terms

  • Application Secret Lifecycle: The controlled process for creating, storing, rotating, revoking, and auditing credentials used by software systems. It treats API keys, tokens, certificates, and passwords as governed access assets rather than static configuration. In practice, it is the difference between a manageable exposure and a reusable compromise.
  • Workload Identity: The identity assigned to a software workload — such as a containerised application, serverless function, or microservice — enabling it to authenticate to other services without storing static credentials.
  • Secrets Sprawl: The uncontrolled proliferation of sensitive credentials — API keys, tokens, passwords, certificates — across codebases, cloud environments, CI/CD pipelines, and configuration files. In 2024, over 50 million leaked secrets were found on the dark web.
  • Runtime Privilege: Runtime privilege is the effective access an identity has after tools, data sources, and permissions are combined during execution. For AI agents, it can exceed the originally approved scope because the agent may chain actions across systems in ways no single entitlement review reveals.

What's in the full article

Cycode's full blog covers the operational detail this post intentionally leaves for the source:

  • Step-by-step secure coding and SAST implementation guidance for development teams that need concrete rollout details.
  • Expanded treatment of dependency risk management, including SCA and SBOM practices for application supply chains.
  • Operational examples for secrets detection in repositories, CI/CD pipelines, and container images.
  • Cycode's own implementation framing for its application security platform and workflow integrations.

👉 Cycode's full blog covers secure coding, secrets management, and pipeline governance in more operational detail.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It is designed for practitioners who need to connect identity controls to broader security operations and delivery workflows.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org