[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fx_4NY0em2xiQXlvxsi-twp60IWQbfrnn2SLMQznrqZE":3},{"lesson":4},{"id":5,"slug":6,"article_id":7,"title":8,"body":9,"prevention":10,"framework_refs":11,"framework_notes":17,"status":23,"created_at":24,"published_at":25,"article":26,"tags":30,"podcasts":43,"controls":44},"dd1f77b8-0af4-4f9d-b96e-2268923e3d86","wordpress-secrets-api-highlights-risks-of-inconsistent-encryption-defaults","ee9a9368-6de9-4b0b-9cff-0510e16039d8","WordPress Secrets API Highlights Risks of Inconsistent Encryption Defaults","WordPress 7.2's new Secrets API is a positive step toward protecting sensitive credentials like API keys and tokens stored in the database, but its rollout exposes a critical gap: existing sites upgraded from older versions will not have encryption enabled by default, leaving stored secrets unprotected unless administrators manually intervene. Installation methods such as WP-CLI and one-click installers currently cannot write the required encryption key to wp-config.php, creating inconsistent security postures across deployments. Additionally, unresolved concerns from core contributors about the API's security boundaries suggest the feature may ship with architectural weaknesses. This matters because credentials stored in plaintext or without proper encryption are a prime target for attackers who gain database access, turning a single breach into full credential exposure across integrated services.","**Immediate actions:**\n- Audit all existing WordPress installations and manually add the encryption key to wp-config.php as documented once WordPress 7.2 is released.\n- Inventory all API keys, tokens, and passwords currently stored in WordPress databases and rotate any that may have been exposed.\n\n**Configuration hardening:**\n- Ensure your deployment pipeline (WP-CLI, one-click installers, CI\u002FCD) is updated to automatically generate and inject the encryption key during installation before upgrading to 7.2.\n- Restrict database access permissions so that even if credentials are stored, unauthorized users cannot query the options or secrets tables directly.\n\n**Long-term improvements:**\n- Establish a secrets management policy that requires all credentials to be stored in a dedicated secrets vault (e.g., HashiCorp Vault, AWS Secrets Manager) rather than relying solely on CMS-level encryption.\n- Include encryption-at-rest verification as part of your regular configuration compliance checks and change management reviews.",[12,13,14,15,16],"OWASP A02:2021 Cryptographic Failures","NIST SP 800-53 SC-28: Protection of Information at Rest","CIS Control 3: Data Protection","ISO\u002FIEC 27001:2022 A.8.24: Use of cryptography","NIS2 Article 21(2)(h)",{"NIS2 Article 21(2)(h)":18,"CIS Control 3: Data Protection":19,"OWASP A02:2021 Cryptographic Failures":20,"ISO\u002FIEC 27001:2022 A.8.24: Use of cryptography":21,"NIST SP 800-53 SC-28: Protection of Information at Rest":22},"NIS2 Article 21(2)(h) specifically covers cryptography and encryption policies, requiring entities to have consistent encryption measures in place — an obligation that the inconsistent opt-in nature of WordPress 7.2's Secrets API for upgraded sites would undermine.","CIS Control 3 requires organizations to establish processes and technical controls to identify, classify, and protect sensitive data, including ensuring encryption of credentials stored in databases — the gap this rollout leaves open.","This control addresses the failure to encrypt sensitive data at rest — exactly what happens when WordPress sites upgraded to 7.2 do not receive the encryption key and continue storing API keys and tokens in plaintext in the database.","This control mandates that rules for the effective use of cryptography are defined and implemented, which would require ensuring encryption is applied consistently across all installation and upgrade paths, not just new browser-based installs.","SC-28 requires that sensitive information stored in information systems be protected through encryption, which is precisely what the missing default encryption key fails to provide for upgraded WordPress installations.","published","2026-11-16T18:21:03.497914+00:00","2026-11-16T18:21:03.482+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fwww.cyberkendra.com\u002F2026\u002F11\u002Fwordpress-7-2-secrets-api-encrypted-api-keys.html","wordpress-7-2-secrets-api-encrypted-api-keys-explained-67eb48","WordPress 7.2 Secrets API: Encrypted API Keys Explained",[31,37],{"id":32,"name":33,"slug":34,"description":35,"color":36},"859cf0ad-a7e9-42bb-a75d-bac6511fa5d5","Configuration Management","configuration-management","Misconfigs, default credentials, exposed services","#eab308",{"id":38,"name":39,"slug":40,"description":41,"color":42},"c8b843a5-d5a7-41d1-8d3b-cabded09d2ef","Data Protection","data-protection","Unencrypted data, missing DLP, poor classification","#3b82f6",[],[45],{"slug":46,"name":47,"problem":48},"secrets-management","Secrets management","API keys, tokens and passwords stop leaking from code, chat and configuration files."]