+44 (0)203 88 020 88

Menu

Search

Cyber Security News & Articles

 

Cyber Security
News & Articles

Trusted Cyber Security Experts
25+ Years Industry Experience
Ethical, Professional & Pragmatic

Compromise of Codecov dev tools affects thousands of customers

An unauthorised change to a script used by Codecov customers to upload software test results has stolen the credentials and API tokens for thousands of organisation’s development environments.

Codecov is a tool used to track what percentage of an application’s source code has been exercised during software testing. To do this, it is integrated into the software build and test systems (Continuous Integration) of its customers who use a script to upload the output of test scripts into the Codecov system.  It is this upload script that was compromised to also send copies of environment variables to a server controlled by the attacker.  In order for CI systems to work, environment variables will typically contain user credentials, API tokens and other sensitive information needed to access and update source code and publish code changes to test or even production servers.

According to a security advisory from Codecov affected customers could have compromised:

  • Any credentials, tokens, or keys that our customers were passing through their CI runner that would be accessible when the Bash Uploader script was executed.
  • Any services, datastores, and application code that could be accessed with these credentials, tokens, or keys.
  • The git remote information (URL of the origin repository) of repositories using the Bash Uploaders to upload coverage to Codecov in CI.

The unauthorised changes to the Codecov script have been traced back to January 31st 2021, and several changes were made to the script between then and when the changes were spotted on 1st April 2021.  The changes were finally caught when a customer realised that the checksum (shasum) published by Codecov for the script file was different from the checksum calculated for the file the customer had just installed.

According to Codecov, an error in their Docker Image creation process left a credential exposed which the attackers were able to extract and then use to modify the uploader script customers install onto their systems.

Codecov advises customers to check for this following string in the uploader script they have been using – if it exists then they have been using the compromised script and their credentials stored in environment variables have been exfiltrated:

curl -sm 0.5 -d “$(git remote -v)

How checksums help protect against supply chain attacks

A checksum or hash is a means of validating the integrity of a file – to prove it has not been changed during transmission or since it has been downloaded.  Even a minor change to the file, will result in a different hash value being calculated.

Confirming the checksum for third party files installed into your network can help detect unauthorised changes or corruptions to those files from within the supply chain.

According to Reuters, many if not all of Codecov’s 19,000 customers including the likes of HP Enterprise, IBM and Atlassian could have their development environment credentials compromised through this attack raising the spectre of unauthorised code changes or intellectual property theft for those organisations.

Like the Solar Winds compromise earlier this year, the Codecov attack highlights the potential risk posed by even ‘trusted’ suppliers who provide code which is run in the heart of our networks and yet can be changed at any time.

 

 

Subscribe to our monthly newsletter today

If you’d like to stay up-to-date with the latest cyber security news and articles from our technical team, you can sign up to our monthly newsletter. 

We hate spam as much as you do, so we promise not to bombard you with emails. We’ll send you a single, curated email each month that contains all of our cyber security news and articles for that month.

Why Choose SecureTeam?

CREST
CCS
ISO9001
ISO27001
CE-PLUS

Customer Testimonials

“We were very impressed with the service, I will say, the vulnerability found was one our previous organisation had not picked up, which does make you wonder if anything else was missed.”

Aim Ltd Chief Technology Officer (CTO)

"Within a very tight timescale, SecureTeam managed to deliver a highly professional service efficiently. The team helped the process with regular updates and escalation where necessary. Would highly recommend"

IoT Solutions Group Limited Chief Technology Officer (CTO) & Founder

“First class service as ever. We learn something new each year! Thank you to all your team.”

Royal Haskoning DHV Service Delivery Manager

“We’ve worked with SecureTeam for a few years to conduct our testing. The team make it easy to deal with them; they are attentive and explain detailed reports in a jargon-free way that allows the less technical people to understand. I wouldn’t work with anyone else for our cyber security.”

Capital Asset Management Head of Operations

“SecureTeam provided Derbyshire's Education Data Hub with an approachable and professional service to ensure our schools were able to successfully certify for Cyber Essentials. The team provided a smooth end-to-end service and were always on hand to offer advice when necessary.”

Derbyshire County Council Team Manager Education Data Hub

“A very efficient, professional, and friendly delivery of our testing and the results. You delivered exactly what we asked for in the timeframe we needed it, while maintaining quality and integrity. A great job, done well.”

AMX Solutions IT Project Officer

“We were very pleased with the work and report provided. It was easy to translate the provided details into some actionable tasks on our end so that was great. We always appreciate the ongoing support.”

Innovez Ltd Support Officer

Get in touch today

If you’d like to see how SecureTeam can take your cybersecurity posture to the next level, we’d love to hear from you, learn about your requirements and then send you a free quotation for our services.

Our customers love our fast-turnaround, “no-nonsense” quotations – not to mention that we hate high-pressure sales tactics as much as you do.

We know that every organisation is unique, so our detailed scoping process ensures that we provide you with an accurate quotation for our services, which we trust you’ll find highly competitive.

Get in touch with us today and a member of our team will be in touch to provide you with a quotation. 

0

No products in the basket.

No products in the basket.