
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
= First Github Commit
Makes finding the very first commit to a GitHub repo very simple:
gem install first_github_commit
Then you can do the following:
require 'first_github_commit'
require 'pp'
pp FirstGithubCommit.find('thoughtbot', 'shoulda')
=> {"author"=> { ... }
"url"=> "http://github.com/thoughtbot/shoulda/commit/37686ae0dadb3a820db039a9ab3d024983034e7f",
"id"=>"37686ae0dadb3a820db039a9ab3d024983034e7f",
"committed_date"=>"2007-03-14T11:11:47-07:00",
"message"=>"Created trunk and tags (...)",
(...)}
The data returned is that from the GitHub commit listing API, see http://develop.github.com/p/commits.html
If you also want to know the page number, try this:
c = FirstGithubCommit.new('thoughtbot', 'shoulda') c.yaml => {"author"=> ... } # Same as above c.page => 14
c.github_url => "http://github.com/thoughtbot/shoulda/commits/master?page=14"
The page number is being retrieved by first finding the highest non-available page number. Starting from page 100, the limit is being doubled on consecutive requests until the GitHub API returns a 404. Then, the chunk is split in half and traversed further until the actual last page is found, from which the last commit is being retrieved then.
The web request limit is 30 consecutive requests, after which a FirstGithubCommit::TooManyRequests exception will be thrown.
Set FirstGithubCommit::DEBUG to true to get some debug output about the requests and the traversal.
== TODO
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2010 Christoph Olszowka. See LICENSE for details.
FAQs
Unknown package
We found that first_github_commit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.