Join our Newsletter — 33% off our NHI Course

Who is exposed when Jenkins build logs go public?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20842
Topic starter  

TL;DR: For Truffle Security, hundreds of publicly exposed Jenkins servers lacked authentication, and 3% of scanned servers contained at least one live secret in build logs. Jenkins log access then becomes a route for live credentials to spread beyond the build system.

Editorial analysis by NHI Mgmt Group, based on content published by Truffle Security: “Leaked Secrets in Public Jenkins Logs”.

By the numbers:

Key questions

Q: Why do leaked build secrets often lead to broader compromise?

A: Because the secret is usually trusted outside the system that exposed it.

Q: How do security teams measure whether secret scanning is actually reducing exposure?

A: Security teams should measure the time from secret creation to detection, the percentage of repositories and build artifacts scanned, and the time from detection to rotation or revocation.

Q: What breaks when Jenkins build logs are publicly accessible?

A: The boundary between operational telemetry and credential custody breaks.

Practitioner guidance

  • Restrict build-log access to authenticated users only Remove public access to Jenkins logs and verify that every job output path is behind an enforced identity check.
  • Inventory every secret that can appear in CI output Map API keys, passwords, tokens, and service credentials to the pipelines and jobs that can print them.
  • Revoke exposed credentials immediately after discovery Treat any live secret found in logs as compromised until it is rotated or invalidated and downstream access is confirmed closed.

Bottom line: Public Jenkins logs can become a credential exposure channel when authentication is missing and build output contains live secrets.

Glossary terms: Build Log Secret Exposure, Long-Lived Secret, Credential Revocation, Build System Attack Surface

What's in the full report

Truffle Security's full post covers the operational detail this post intentionally leaves for the source:

  • The Shodan and nuclei workflow used to identify public Jenkins instances
  • The exact Jenkins build-log scanning command used to find live secrets
  • The breakdown of secret types found across AWS, Alibaba, GitHub, OpenAI, and Slack
  • The disclosure approach used after the exposed servers were identified

👉 Read Truffle Security's analysis of leaked secrets in public Jenkins logs →

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 2 weeks ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 21330
 

Unauthenticated build visibility is a governance failure, not just a misconfiguration: when public access reaches internal job logs, the control boundary around machine credentials has already broken. That means the problem spans IAM, secrets management, and platform administration, not one isolated Jenkins setting. The practitioner implication is that log access must be governed with the same discipline as credential issuance.

A few things that frame the scale:

  • 79% of organisations have experienced secrets leaks, with 77% of these incidents resulting in tangible damage, according to the Ultimate Guide to NHIs.

A question worth separating out:

Q: What should teams do when a CI/CD credential is exposed?

A: Revoke the token, validate the affected pipeline and artifact chain, and confirm whether the credential was used for deployment or build access. Then rotate any related secrets, review recent pipeline changes, and verify that protected environments and approvals still block unauthorized release activity.

👉 Read our full editorial: Public Jenkins logs exposed live credentials in 3% of servers


This post was modified 2 weeks ago by NHI Mgmt Group

   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.