
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
containerized
Advanced tools
A microlibrary to detect whether Node.js runs inside a Docker container or not
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
npm install containerized
var containerized = require('containerized');
if (containerized()) {
console.log('I am running inside a Docker container.');
} else {
console.log('I am NOT running inside a Docker container.');
}
Up until node 0.10.x, containerized offers only async way of fetching whether the process is containerized in a container or not.
var containerized = require('containerized');
containerized(function(err, result) {
if (result === true) {
console.log('I am running inside a Docker container.');
} else {
console.log('I am NOT running inside a Docker container.');
}
});
For synchronous interface in Node <= 0.10, wrap it in deasync module:
var deasync = require('deasync');
var containerized = deasync(require('containerized'));
// then you can:
if (containerized()) {
console.log('I am running inside a Docker container.');
}
MIT.
You're welcome! Make sure you keep an eye on the tests.
FAQs
A microlibrary to detect whether Node.js runs inside a Docker container or not
The npm package containerized receives a total of 404 weekly downloads. As such, containerized popularity was classified as not popular.
We found that containerized 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.