
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
ec2-public-hostname
Advanced tools
Retrieve EC2 public-hostname from instance metadata.
Note: this assumes that a metadata service is available at http://169.254.169.254/. Thus it works on EC2 instances, behavior on other machines is undefined.
npm install ec2-public-hostname
var ec2 = require("ec2-public-hostname");
ec2.getPublicHostname(function (error, hostname) {
if (error) {
console.log(error);
}
console.log("Instance Public Hostname: ", hostname);
});
Public Hostname of Amazon EC2 instances can be retrieved via http GET calls to http://169.254.169.254/latest/meta-data This module gets the public Hostname from meta-data api.
MIT
FAQs
Retrieve EC2 instance public hostname
The npm package ec2-public-hostname receives a total of 13 weekly downloads. As such, ec2-public-hostname popularity was classified as not popular.
We found that ec2-public-hostname 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.