Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
n8n is a free node based "Open Source" (with Commons Clause) Workflow Automation Tool. It can be self-hosted, easily extended, and so also used with internal tools.
Is still in beta so can not guarantee that everything works perfectly. Also is there currently not much documentation. That will hopefully change soon.
A short demo (< 3 min) which shows how to create a simple workflow which automatically sends a new Slack notification every time a Github repository received or lost a star:
https://www.youtube.com/watch?v=ePdcf0yaz1c
To simply spin up n8n to have a look and give it spin you can simply run:
npx n8n
It will then download everything which is needed and start n8n.
You can then access n8n by opening: http://localhost:5678
To fully install n8n globally execute:
npm install n8n -g
After the installation n8n can be started by simply typing in:
n8n
# or
n8n start
To be able to use webhooks which all triggers of external services like Github rely on n8n has to be reachable from the web. To make that easy n8n has a special tunnel service which redirects requests from our servers to your local n8n instance.
To use it simply start n8n with --tunnel
n8n start --tunnel
By default n8n uses SQLite to save credentials, past executions and workflows. n8n however also supports MongoDB and PostgresDB. To use them simply a few environment variables have to be set.
To use MongoDB as database you can provide the following environment variables like in the example bellow:
DB_TYPE=mongodb
DB_MONGODB_CONNECTION_URL=<CONNECTION_URL>
Replace the following placeholders with the actual data:
export DB_TYPE=mongodb
export DB_MONGODB_CONNECTION_URL=mongodb://MONGO_USER:MONGO_PASSWORD@MONGO_HOST:MONGO_PORT/MONGO_DATABASE
n8n start
To use PostgresDB as database you can provide the following environment variables
DB_TYPE=postgresdb
DB_POSTGRESDB_DATABASE
(default: 'n8n')DB_POSTGRESDB_HOST
(default: 'localhost')DB_POSTGRESDB_PORT
(default: 5432)DB_POSTGRESDB_USER
(default: 'root')DB_POSTGRESDB_PASSWORD
(default: empty)export DB_TYPE=postgresdb
export DB_POSTGRESDB_DATABASE=n8n
export DB_POSTGRESDB_HOST=postgresdb
export DB_POSTGRESDB_PORT=5432
export DB_POSTGRESDB_USER=n8n
export DB_POSTGRESDB_PASSWORD=n8n
n8n start
Workflows can not just be started by triggers, webhooks or manually via the Editor it is also possible to execute them directly via the CLI.
Execute a saved workflow by its ID:
n8n execute --id <ID>
Execute a workflow from a workflow file:
n8n execute --file <WORKFLOW_FILE>
It is very easy to create own nodes for n8n. More information about that can be found in the documentation of "n8n-node-dev" which is a small CLI which helps with n8n-node-development.
The following keyboard shortcuts can currently be used:
Apache 2.0 with Commons Clause
When developing n8n can be started with npm run start:dev
.
It will then automatically restart n8n every time a file changes.
FAQs
n8n Workflow Automation Tool
The npm package n8n receives a total of 5,890 weekly downloads. As such, n8n popularity was classified as popular.
We found that n8n demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.