Threat video1:00
GHSA-7h7w-m82c-x2xg RubyGems[.]org RCE: Detection & IOCs
A push-capable API key can abuse !ruby/regexp gemspec tags on RubyGems[.]org; 9 detection rules, 4 IOCs and a free Splunk SPL rule cover it.
Read the full threat intel for GHSA-7h7w-m82c-x2xg RubyGems.org RCE: Detection & IOCs →
Chapters
- 0:00The hookA patched RubyGems flaw scored 9.0.
- 0:04The storyThe validator ignored one regexp tag.
- 0:11Attack pathReproduced in a lab: a push-capable key sufficed.
- 0:28AttributionNo threat actor: this was defensive research.
- 0:32Indicators of compromise2 indicators to hunt: 1 file name and 1 package name.
- 0:38MITRE ATT&CK techniques5 ATT&CK techniques, from initial access to impact.
- 0:43Remediation3 steps now: Hosted RubyGems[.]org is already fixed.
- 0:50Detection rules9 detection rules, in SPL, KQL and Sigma.
Transcript
0:00A patched RubyGems flaw scored 9.0.
0:05The validator ignored one regexp tag.
0:07Validation ran before the ownership check.
0:12Reproduced in a lab: a push-capable key sufficed.
0:15Gem metadata with a regexp tag passed validation.
0:19Psych compiled it. A lab chain reached code execution.
0:22Not reproduced on the live service.
0:28No threat actor: this was defensive research.
0:332 indicators to hunt: 1 file name and 1 package name.
0:385 ATT&CK techniques, from initial access to impact.
0:433 steps now: Hosted RubyGems[.]org is already fixed.
0:519 detection rules, in SPL, KQL and Sigma.
0:56Threadlinqs. The unified security engineering platform.