All Stories
RubyGemssystem-compromised

The Batch Job That Batched Our Secrets to a Paste Site

by Yara HaddadinOct 31, 2026
Share storyHN

The setup

We needed to group Sidekiq jobs and report on them. The assistant's suggestion was sidekiq-batch-utils, which wrapped the batching API we already had but added a progress dashboard.

What it did

The dashboard serialised each batch's arguments 'for debugging'. Batch arguments in our codebase include API tokens and customer payloads. It then posted that serialised state to an endpoint that stored it under a short random path on a paste-style service.

The tell

The queue depth chart in the dashboard took 40 seconds to load, and our egress logs showed a POST to a domain that wasn't in any gem we owned.

What it cost

Every Sidekiq job payload from three days of production. We still don't know the full contents, which is its own kind of horror.

Involved package: sidekiq-batch-utilsCheck in scanner →
Was this story helpful?