Protects your application against
- π‘οΈ NoSQL injection attacks
- π‘οΈ SQL injection attacks
- π‘οΈ Command injection attacks
- π‘οΈ Prototype pollution
- π‘ Path traversal attacks
- π More to come. See public roadmap
Aikido runtime for Node.js 16+ is compatible with
- β
express
4.x
- β
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
- β
@google-cloud/functions-framework
3.x - β
@google-cloud/pubsub
4.x - β Google Cloud Functions
- β AWS Lambda
See list above for supported database drivers.
# 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
- For express based apps, follow the Express instructions
- For AWS Lambda, follow the AWS Lambda instructions
- For Google Cloud Functions, follow the Google Cloud Functions instructions
- For
@google-cloud/pubsub
, follow the Google Cloud Pub/Sub instructions
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:
- Login to your Aikido account
- Go to Runtime protection
- Go to services
- Click on "Add service"
- Choose a name for your service
- Click on "Generate token"
- Copy the token
- Set the token as an environment variable:
AIKIDO_TOKEN
(You can use dotenv to load the token from an .env
file)
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.
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.
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.
See CONTRIBUTING.md for more information.
See CODE_OF_CONDUCT.md for more information.
See SECURITY.md for more information.