Aikido Runtime for Node.js

Features
Protects your application against
Supported libraries and frameworks
Aikido runtime for Node.js 16+ is compatible with
Web frameworks
Database drivers
- ✅
mongodb
4.x, 5.x and 6.x (npm package versions, not MongoDB server versions) - ✅
mongoose
8.x, 7.x and 6.x - ✅
pg
8.x and 7.x - ✅
mysql
2.x - ✅
mysql2
3.x
Cloud providers
ORMs and query builders
See list above for supported database drivers.
Installation
# The --save-exact makes sure that you don't automatically install a newer version
$ npm install --save-exact @aikidosec/runtime
# The --exact makes sure that you don't automatically install a newer version
$ yarn add --exact @aikidosec/runtime
Reporting to Aikido Security dashboard
Aikido Security is a developer-first software security platform. We scan your source code & cloud to show you which vulnerabilities are actually important.
You can use some of this library's features without Aikido, but you will get the most value when using it with Aikido.
You will need an Aikido account and a token to report events to Aikido. If you don't have an account, you can sign up for free.
Here's how:
(You can use dotenv to load the token from an .env
file)
Running in production mode (blocking)
By default, the runtime will only detect and report attacks to Aikido.
If you want to start blocking requests, you can set the AIKIDO_BLOCKING
environment variable to true
.
See Reporting to Aikido to learn how to send events to Aikido.
License
This program is offered under a commercial and under the AGPL license.
You can be released from the requirements of the AGPL license by purchasing
a commercial license. Buying such a license is mandatory as soon as you
develop commercial activities involving the Aikido Runtime software without
disclosing the source code of your own applications.
For more information, please contact Aikido Security at this
address: support@aikido.dev or create an account at https://app.aikido.dev.
Performance
We run a benchmark on every commit to make sure that the runtime has a minimal impact on your application's performance.
The bench runs a simple MongoDB query to measure the difference between two runs with and without the runtime:
Without runtime | With runtime | Difference in ms |
---|
0.214ms | 0.222ms | +0.008ms |
(Using Node.js 18.x and MongoDB 6.3.x, results will vary depending on your hardware)
See benchmarks for more information.
Contributing
See CONTRIBUTING.md for more information.
Code of Conduct
See CODE_OF_CONDUCT.md for more information.
Security
See SECURITY.md for more information.