Responsible disclosure: Raildata provides no way to rotate exposed API keys
Contents
The Rail Delivery Group is an industry body for British railways, bringing together the operators of passenger and freight trans and the infrastructure provider Network Rail. It absorbed ATOC in 2017, and also runs a lot of the the technical plumbing behind the railway network, including railcards, fare/ticketing systems, seat reservations and station departure boards.
They have an excellent approach to public data, and have, for years, been making the data behind live station arrival and departure boards available for free to the public via APIs. The latest incarnation of this is the Rail Data Marketplace at Raildata.
API keys unrotatble
As i mentioned before, one of my API keys was inadvertently disclosed through an MCP server. As is standard practice, i went to the API provider’s portal to rotate my API key, only to discover:
- The API key is printed in plaintext, unredacted, on the screen. This is common practice, even if inadvisable. I didn’t raise this.
- There is no function to rotate the key.
I raised a security incident via their support portal, and received an automated acknowledgement with a reference number within minutes.
Report not acknowledged
Their initial response took 4 days, and only confirmed that my key was rotated. I replied, indicating that i was expecting them to provide self-service key rotation. Two days later they replied that “key rotation isn’t something we have planned in our development pipeline, as we currently rely on consumers to keep their API credentials secure”. This is obviously nonsense. Rail Delivery Group’s Rail Cyber Security Strategy (September 2025) describes RDG as “a key provider of rail information and services” for which “it is vital to adopt a consistent and systematic approach to information security across the organisation”, “leveraging frameworks such as ISO/IEC 27001” (page 15). It commits the orgnaisation to “embedding practices such as Security by Design and Privacy by Default into all projects and programmes across the rail industry” (page 11), to ensuring third-party “access to systems … is in line with business requirements and managed from a cyber security perspective” (page 44), and to “recognise unauthorised activity and act swiftly to limit damage” (page 49). General industry best practice is clear here:
- The NCSC’s “Securing HTTP-based APIs” is “aimed at technical members of staff who are responsible for designing or building applications that offer an HTTP API” and states: “Avoid using long-term access keys which may grant indefinite access if compromised” and “Credentials should be automatically rotated or renewed when they expire”.
- Principle 10 of the NCSC Cloud Security Principles sets out what a customer may expect of a provider: “Your provider should have processes for automatically changing (‘rotating’) and revoking service credentials so that no service credential remains valid indefinitely and breached credentials can be revoked.”
- Obviously a UK entity may not feel bound by US standards, but NIST SP 800-63B sets requirements for credential service providers and requires: “The CSP SHALL provide a mechanism to invalidate the authenticator immediately upon notification from a subscriber that the authenticator’s loss, theft, or compromise is suspected.”
- RDG is not a Government body, but the UK Government Digital Service API standards, written for people building APIs in or for government, says “You should avoid using API keys. If you do use API keys you should time limit their use and regularly change the keys to keep them secure.”
- The OWASP Application Security Verification Standard 5.0 requires that “any authentication factor (including physical devices) can be revoked in case of theft or other loss” (6.5.6).
This is also simply how API portals are built. Azure API Management issues paired keys so a client can “switch from key A to key B and regenerate key A with minimal disruption”. Apigee lets a provider “revoke an API key for all or a single API product” and set an expiry. Google Cloud and AWS document key replacement as routine. A developer portal without revoke and regenerate is the clearly not in line with accepted industry best practice.
response
A couple of days later, RDG replied to say that, although their platform is monitored 24/7, with automated alerting, they acknowledged that the weekday-only support desk is a “a shortfall in our provision and a potential risk to consumers”. My email had been escalated to their CISO who agreed with my position that RDG couldn’t claim to be “following best practice” and although the risk to RDG is low, the risk is high to consumers. RDG therefore committed to adding self-service key rotation to their product backlog, although without a committed delivery time.
Latest
There is still no self-service token rotation.
timeline
- Friday, September 4, 2026 17:00: report raised via security ticket system, received automated acknowledgement and ticket number
- Tuesday, September 8, 2026 10:31: Support replies confirming that the key is rotated, but without addressing the complaint about missing self-service. Reply sent same day (as above)
- Thursday, September 10, 2026 10:34: Support replies that “At the moment, key rotation isn’t something we have planned in our development pipeline, as we currently rely on consumers to keep their API credentials secure”. Reply sent same day (as above)
- Monday, September 21, 2026 17:21: Support replies, confirming that their CISO has agreed that the risk to consumers is “high impact”, and that self-service key rotation will be added to the roadmap.
- Thursday, October 1st 2026, 10:22: RDG notified post will auto-publish on December 4th, or earlier if finding is resolved.
- Friday, December 4th, 2026: Post published on schedule