# Securing RubyGems with TUF, Part 3

DevFeed: [Securing RubyGems with TUF, Part 3](<https://devfeed.tech/articles/securing-rubygems-with-tuf-part-3-15842.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/securing-rubygems-with-tuf-part-3>)

Author: Square Engineering

Published: 2013-12-10T17:05:00Z

Content type: article

Language: en

Sources: [Square Corner](<https://devfeed.tech/sources/square-corner-blog-medium.md>)

Topics: [rubygems](<https://devfeed.tech/topics/rubygems.md>), [open-source-security](<https://devfeed.tech/topics/open-source-security.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2013](<https://devfeed.tech/tags/2013.md>), [2014](<https://devfeed.tech/tags/2014.md>), [3](<https://devfeed.tech/tags/3.md>), [all](<https://devfeed.tech/tags/all.md>), [also](<https://devfeed.tech/tags/also.md>), [applying](<https://devfeed.tech/tags/applying.md>), [atomic](<https://devfeed.tech/tags/atomic.md>), [attack](<https://devfeed.tech/tags/attack.md>), [attacks](<https://devfeed.tech/tags/attacks.md>), [best](<https://devfeed.tech/tags/best.md>), [but](<https://devfeed.tech/tags/but.md>), [can](<https://devfeed.tech/tags/can.md>), [change](<https://devfeed.tech/tags/change.md>), [client](<https://devfeed.tech/tags/client.md>), [clients](<https://devfeed.tech/tags/clients.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [framework](<https://devfeed.tech/tags/framework.md>), [rubygems](<https://devfeed.tech/tags/rubygems.md>), [update](<https://devfeed.tech/tags/update.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

TUF addresses stale RubyGems metadata by requiring metadata files to expire. Since offline-signed files such as verified.txt need long expiration periods, a frequently refreshed timestamp.txt points clients to current metadata; it helps resist malicious mirrors and permits updates, though a server-compromising attacker can still spoof it. To avoid signature failures when geographically distributed files update at different times, mutable files are stored under digest-bearing filenames, and release.txt maps logical names to current versions. RubyGems keeps immutable gem files at their existing locations for legacy clients; mutable index files get both digest-named TUF copies and undigested copies for legacy clients. The article also lists offline-key updates, threshold signing, timeliness guarantees, denial-of-service defense, and large-file optimizations as other TUF features. The proposed RubyGems rollout still required further work, though its maintainers were onboard.

## Source excerpt

Applying The Update Framework (TUF) to RubyGems to secure it against nefarious activity.