
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
All your system-independent infoz in one handy class.
SysInfo does a takes a very quick glance at the system it's running on and exposes the results as YAML, JSON, CSV, or TSV. It also determines a platform identifier for the system that takes the form: VM-OS-IMPLEMENTATION-ARCHITECTURE.
For the complete list of operating systems, implementations and architectures that SysInfo is aware of, see:
$ sysinfo os
$ sysinfo impl
$ sysinfo arch
sysinfo = SysInfo.new
sysinfo.vm # => ruby
sysinfo.os # => unix
sysinfo.impl # => osx
sysinfo.arch # => i386
sysinfo.platform # => ruby-unix
sysinfo.to_s # => ruby-unix-osx-i386
sysinfo.user # => delano
sysinfo.home # => /Users/delano
sysinfo.uptime # => 290.429 (hours)
sysinfo.shell # => /bin/bash
sysinfo.paths # => [/sbin, /bin, /usr/bin, ...]
sysinfo.hostname # => walter
sysinfo.ipaddress_internal # => 10.0.1.2
sysinfo.uptime # => 290.573655656974
sysinfo.ruby # => [1,9,1]
$ sysinfo
ruby-unix-osx-i386
$ /usr/jruby/bin/sysinfo
java-unix-osx-x86_64
$ sysinfo -f yaml
:vm: :ruby
:os: :unix
:impl: :osx
...
:shell: :"/bin/bash"
:user: delano
$ sysinfo -f json
{"vm":"ruby","os":"unix","impl":"osx", ..., "shell":"\/bin\/bash","user":"delano"}
$ sysinfo -f csv
ruby,unix,osx, ... /bin/bash,delano
$ sudo gem install sysinfo
FAQs
Unknown package
We found that sysinfo 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 News
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.