New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aikidosec/runtime

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aikidosec/runtime

Aikido runtime protects your application against NoSQL injections and more

  • 1.5.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
decreased by-60.53%
Maintainers
2
Weekly downloads
 
Created
Source

Aikido Runtime for Node.js

NPM Version Codecov NPM License PRs Welcome

Features

Protects your application against

Roadmap

  • Monitor outbound requests
  • Protect against path traversal attacks
  • Protect against SSRF attacks

Supported libraries and frameworks

Aikido runtime for Node.js is compatible with

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

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.

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 runtimeWith runtimeDifference in ms
0.214ms0.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.

Development

  • $ make install to install dependencies
  • $ make build to build the library
  • $ make watch to watch for changes and rebuild the library
  • $ make test to run tests using tap
  • $ make end2end to run end-to-end tests using tap
  • $ make lint to run ESLint

Keywords

FAQs

Package last updated on 01 Apr 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc