Use IdP-managed self-signed signing certificates wherever possible, and avoid importing externally generated certificates unless there is a strong operational need. Limit who can modify SAML signing keys, monitor for unexpected certificate changes, and require change control for rotations. If the application supports it, consider OpenID Connect instead of SAML to reduce exposure to certificate-based forgery.
Why This Matters for Security Teams
Forged SAML responses are a high-impact identity failure because they let an attacker impersonate a trusted user or service without breaking into the application itself. In cloud identity environments, the real risk is not just a bad assertion, but the ability to translate one signing weakness into broad access across SaaS, IaaS, and internal apps. That is why identity controls must be treated as production security controls, not just federation configuration.
NHIMG research shows that secrets and identity sprawl remain a core weakness: in the Ultimate Guide to NHIs, 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, and 97% of NHIs carry excessive privileges. Those conditions make certificate forgery and key abuse more damaging because a compromised signing path can affect many downstream trust relationships at once. Current guidance also aligns with broader identity governance principles in the NIST Cybersecurity Framework 2.0, especially around access control, change management, and continuous monitoring.
In practice, many security teams discover SAML key abuse only after an unexpected login has already been accepted as legitimate, rather than through intentional certificate governance.
How It Works in Practice
The safest pattern is to minimize the number of parties that can introduce or replace a SAML signing certificate, then make any change observable and reviewable. IdP-managed self-signed signing certificates are generally preferred because they keep the trust anchor under a single administrative domain and reduce the chance that an externally generated key pair is introduced without sufficient scrutiny. When an application imports third-party certificates, the attack surface expands to include certificate provenance, storage, rotation, and approval workflows.
Practitioners should treat SAML signing keys like other high-value secrets: tightly scoped write access, explicit change control, and alerting on drift. A useful operational model is to map certificate rotation and modification rights into identity governance workflows, then pair that with continuous monitoring of the IdP and the relying party. The Top 10 NHI Issues research reinforces why this matters: NHIs often outnumber humans by 25x to 50x, and only 5.7% of organisations have full visibility into their service accounts. That visibility gap matters here because certificate and token abuse often sits inside the same operational blind spots.
- Restrict who can create, upload, or replace SAML signing certificates.
- Require approval and ticketed change control for rotations and emergency swaps.
- Monitor certificate fingerprints, expiry dates, and metadata changes for drift.
- Review relying-party trust settings after every IdP or federation change.
- Use OIDC where supported, because it can reduce exposure to certificate-based assertion forgery.
Guidance from identity standards and operational control frameworks is consistent on one point: trust should be explicit, bounded, and continuously verified at the point of use. The NIST Cybersecurity Framework 2.0 supports that approach, but these controls tend to break down in large multi-tenant environments where federated app onboarding is delegated to many teams and certificate changes are not centrally governed.
Common Variations and Edge Cases
Tighter federation control often increases operational friction, requiring organisations to balance rapid app onboarding against stronger trust assurance. That tradeoff is real in cloud identity environments where business units want fast SSO integration, external partners need federation exceptions, or legacy applications cannot support OIDC. In those cases, best practice is evolving rather than universally settled.
One common edge case is the use of externally issued certificates for interoperability with vendors or acquired business units. That can be acceptable, but only when there is clear ownership, short validity periods, documented revocation paths, and continuous validation of certificate source and rotation. Another exception is hybrid identity estates, where the same user lifecycle may touch multiple IdPs and multiple relying parties. In those environments, certificate hygiene alone is not enough; teams also need strong admin separation, alerting on assertion anomalies, and verification that the application actually validates issuer, audience, and signature correctly. NHIMG’s 52 NHI Breaches Analysis is a reminder that identity failures often compound when governance is inconsistent across systems.
There is no universal standard for when to replace SAML with OIDC, but current guidance suggests choosing the simpler trust model when the application supports it. The practical goal is not to eliminate federation risk entirely, but to make forged assertions harder to create, easier to detect, and faster to revoke.
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, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Covers secret and key rotation, directly relevant to SAML signing certificate hygiene. |
| OWASP Agentic AI Top 10 | Agentic trust failures often stem from forged assertions and weak runtime identity checks. | |
| CSA MAESTRO | MAESTRO stresses governance for dynamic trust and credential handling across cloud workloads. | |
| NIST CSF 2.0 | PR.AC-1 | Identity proofing and access control are central to preventing forged SAML assertions. |
| NIST Zero Trust (SP 800-207) | SC-23 | Zero trust requires verified identity and bounded trust at each access decision. |
Limit SAML key changes, rotate on schedule, and verify every certificate replacement through change control.
Related resources from NHI Mgmt Group
- How should security teams reduce cloud identity risk in customer data environments?
- How should security teams reduce phishing risk in cloud identity environments?
- How do security teams reduce tenant enumeration risk in cloud identity environments?
- How should security teams reduce the risk of cloud identity takeover in Azure Arc environments?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 27, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org