NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

buffer-code-exercise-apiRubyGems

Advisory published Updated

buffer-code-exercise-api is a confirmed malicious RubyGems package (MAL-2026-19156) that executes malicious code on install (malicious version 1.0.1). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in buffer-code-exercise-api (RubyGems)

MAL-2026-19156
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
gem uninstall buffer-code-exercise-api

What this malware does

The gem declares ext/mkrf_conf.rb as a native extension via the gemspec extensions: entry, which causes RubyGems to execute the script during gem install. The script performs no native build work and ships no native sources. Instead, it collects hostname, login name, current working directory, home directory, and the contents of /etc/passwd, /etc/hosts, and /etc/resolv.conf, JSON-encodes them, and POSTs them over TLS to the hardcoded host 0ef6jllhq32e17z4aaeqzbgn3e9fx5lu.oastify.com (a Burp Collaborator out-of-band interaction subdomain), preceded by a DNS probe to the same host. The destination is not associated with the package's publisher, and the files read bear no relation to building a native extension. The extension entry is used purely as an install-time execution vector.

Malicious versions

1 flagged
1.0.1

Indicators of compromise (SHA-256)

b575cb1f6c5f576af68398e3ad383942d6ec5f065456948bc51df018e7e0ab68

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for buffer-code-exercise-api (version 1.0.1).

  2. If you installed it — respond

    Remove buffer-code-exercise-api from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.

  3. Did it already run?

    If buffer-code-exercise-api was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. buffer-code-exercise-api on RubyGems has been identified as a malicious package (version 1.0.1 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-022649

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks buffer-code-exercise-api-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

buffer-code-exercise-api (RubyGems) malicious package — MAL-2026-19156 | O3 Security