Threadlinqs IntelligenceStart free

Threat video1:00

RubyGems[.]org Gem-Push Deserialization: Detection & IOCs

Push-key holders can make RubyGems[.]org's gem-push validator deserialize !ruby/regexp YAML. Hunt with 9 detection rules, 7 IOCs and a free Splunk SPL rule.

Read the full threat intel for Critical RubyGems.org Gem-Push Deserialization Vulnerability… →

Chapters

  1. 0:00The hookA RubyGems registry flaw, reproduced in a lab.
  2. 0:04The storyThe gem-push validator had a critical flaw.
  3. 0:10Attack pathLab reproduction needed a push key.
  4. 0:28AttributionNo threat actor: this was defensive research.
  5. 0:33Indicators of compromise3 indicators to hunt: 1 URL and 2 file names.
  6. 0:38MITRE ATT&CK techniques5 ATT&CK techniques, from resource development to impact.
  7. 0:43Remediation3 steps now: Self-hosted RubyGems[.]org operators.
  8. 0:50Detection rules9 detection rules, in SPL, KQL and Sigma.
Transcript

0:00A RubyGems registry flaw, reproduced in a lab.

0:05The gem-push validator had a critical flaw.

0:08Hosted service got the fix.

0:11Lab reproduction needed a push key.

0:13Schema validation let the tagged field through.

0:16Ownership was checked afterwards.

0:18Local tests reached code execution.

0:21No direct evidence of exploitation. Self-hosted operators should update.

0:29No threat actor: this was defensive research.

0:333 indicators to hunt: 1 URL and 2 file names.

0:395 ATT&CK techniques, from resource development to impact.

0:443 steps now: Self-hosted RubyGems[.]org operators.

0:519 detection rules, in SPL, KQL and Sigma.

0:56Threadlinqs. The unified security engineering platform.