Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
A gem to provide an easy way to load the AWS information from a given AWS instance. Automatically detect server IP, Region, Availability Zone, etc. as well as instance tags.
Under the hood this gem uses the aws meta data lookup url for instance information: http://169.254.169.254/latest/dynamic/instance-identity/document
And it uses aws describe tags command on the aws server to get a list of tags: "aws ec2 describe-tags ..."
Add this line to your application's Gemfile:
gem 'aws_info'
And then execute:
$ bundle
Or install it yourself as:
$ gem install aws_info
require 'aws_info'
AwsInfo.region
#=> "us-east-1"
AwsInfo.ip
#=> "10.10.10.10"
AwsInfo.availability_zone
#=> "us-east-1b"
AwsInfo.instance_id
#=> "i-00000000"
AwsInfo.instance_type
#=> "t2.micro"
AwsInfo.version
#=> "2015-1-21"
AwsInfo.dev_pay_product_codes
#=> nil
AwsInfo.billing_products
#=> nil
AwsInfo.account_id
#=> "00000000000"
AwsInfo.pending_time
#=> "2015-09-04T19:03:47Z"
AwsInfo.image_id
#=> "ami-c8888888"
AwsInfo.kernel_id
#=> nil
AwsInfo.ram_disk_id
#=> nil
AwsInfo.architecture
#=> "x86_64"
AwsInfo.tags
#=> { 'my_tag' => 'my tag's value!'}
# Access a single tag
AwsInfo.tags['my_tag']
#=> "my tag's value!"
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that aws_info 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.