[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fVLd6vQqg10bTPWG8HPcEqd7hoyT4iDr2L4waEaAmddE":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},"38b5eeb1-42ca-42ea-bdbc-8bbc126da020","critical-teamcity-auth-bypass-enables-build-pipeline-takeover","9e61b5cb-d012-42b8-94d5-b763c9eb8b1d","Critical TeamCity Auth Bypass Enables Build Pipeline Takeover","A critical authentication bypass in JetBrains TeamCity On-Premises (CVE-2026-136858) allowed unauthenticated attackers to impersonate build agents, intercept CI\u002FCD pipelines, steal secrets, and tamper with build artifacts — all without valid credentials. Because CI\u002FCD platforms sit at the heart of software delivery, compromising them can cascade into full supply chain attacks, injecting malicious code into downstream software products. The root issue is that the software shipped with a flaw that failed to enforce authentication on a sensitive agent-impersonation pathway. This matters because secrets stored in build pipelines (API keys, signing certificates, cloud credentials) are high-value targets, and tampered build outputs can reach thousands of end users. JetBrains acted responsibly by releasing a patch, but every day unpatched systems remain exposed is a window for supply chain compromise.","**Immediate actions:**\n- Apply JetBrains' patch or upgrade TeamCity On-Premises to the fixed version without delay.\n- Restrict external network access to TeamCity instances using firewall rules or a VPN until patching is complete.\n- Rotate all secrets (API keys, credentials, signing certificates) stored in or accessible by TeamCity build configurations.\n\n**Long-term improvements:**\n- Maintain a complete, up-to-date inventory of all CI\u002FCD tools and treat them as critical infrastructure subject to emergency patching SLAs.\n- Implement least-privilege access so build agents operate with the minimum permissions needed and cannot access secrets beyond their assigned jobs.\n- Adopt a secrets management solution (e.g., HashiCorp Vault, AWS Secrets Manager) rather than storing credentials directly in build pipeline configurations.\n\n**Detection measures:**\n- Monitor TeamCity logs for unexpected agent registrations, build job anomalies, or access from unfamiliar IP addresses.\n- Integrate CI\u002FCD platform audit logs into your SIEM and alert on authentication bypass indicators or anomalous pipeline behavior.\n- Implement build artifact integrity checks (checksums, signing) to detect tampering before artifacts are promoted to production.",[12,13,14,15,16],"CIS Control 7: Continuous Vulnerability Management (v8)","NIST SP 800-53 SI-2: Flaw Remediation","NIST CSF 2.0 PR.AA-01: Identity Management, Authentication, and Access Control","NIS2 Article 21(2)(d)","MITRE ATT&CK T1195.002: Compromise Software Supply Chain",{"NIS2 Article 21(2)(d)":18,"NIST SP 800-53 SI-2: Flaw Remediation":19,"CIS Control 7: Continuous Vulnerability Management (v8)":20,"MITRE ATT&CK T1195.002: Compromise Software Supply Chain":21,"NIST CSF 2.0 PR.AA-01: Identity Management, Authentication, and Access Control":22},"NIS2 Article 21(2)(d) requires security measures covering supply chain risks; exploiting this TeamCity flaw directly enables attackers to tamper with build outputs and compromise downstream software supply chains.","SI-2 requires organizations to identify, report, and correct information system flaws in a timely manner; applying this control would mandate rapid patching of the TeamCity authentication bypass upon disclosure.","CIS Control 7 requires organizations to continuously assess and remediate vulnerabilities in a risk-prioritized way; a formal vulnerability management program would have flagged CVE-2026-136858 for emergency patching before attackers could exploit the authentication bypass.","This technique describes adversaries tampering with software build pipelines to deliver malicious code to downstream targets, which is the direct threat enabled by impersonating TeamCity build agents and altering build results.","This category requires that identities are verified before access is granted; enforcing proper authentication on the build-agent communication pathway would have prevented unauthenticated impersonation.","published","2026-12-03T15:20:22.968703+00:00","2026-12-03T15:20:22.952+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fwww.helpnetsecurity.com\u002F2026\u002F12\u002F03\u002Fteamcity-vulnerability-cve-2026-136858-fixed\u002F","critical-teamcity-flaw-lets-unauthenticated-attackers-pose-as-build-agents-grab-1bb924","Critical TeamCity flaw lets unauthenticated attackers pose as build agents, grab secrets (CVE-2026-136858)",[31,37],{"id":32,"name":33,"slug":34,"description":35,"color":36},"af7fce9e-1ce8-4156-93bc-09dcfbfdf29d","Patch Management","patch-management","Unpatched vulnerabilities, delayed updates","#ef4444",{"id":38,"name":39,"slug":40,"description":41,"color":42},"f0c2a0af-58aa-4128-87c9-6acd30f2dc48","Supply Chain","supply-chain","Third-party risk, compromised dependencies","#8b5cf6",[],[45,49,52],{"slug":46,"name":47,"problem":48},"identity-threat-detection","Identity threat detection and response (ITDR)","Attackers who log in with real, stolen credentials get noticed.",{"slug":34,"name":50,"problem":51},"Automated patch management","Known holes get closed in days, not months.",{"slug":53,"name":54,"problem":55},"network-segmentation","Network segmentation and microsegmentation","One compromised machine can no longer reach everything else."]