This is an RPC server that provides a simple API for running different types of detectors on demand.
The server can be run either locally or as a Docker container.
A detailed guide for adding new detectors
Note that detector execution time is being restricted to a reasonable amount of time.
Node.js
18 or higher.Docker
anddocker-compose
(if running as a Docker container).
-
Clone the repository:
git clone https://github.com/ironblocks/detection-sdk.git
-
Change into the project directory:
cd detection-sdk
-
Install dependencies:
npm install
npm start
The server will start on: http://localhost:8000
-
Build the Docker image:
docker-compose build
-
Start the Docker container:
docker-compose up
-
The server will be available at
http://0.0.0.0:80
The server can be configured via environment variables. The following variables are supported:
HOST
: the host to which the server will bind (default:localhost
)PORT
: the port on which the server will listen (default:8000
)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
This project is licensed under the Ironblocks
License.
If you have any questions or concerns, please open an issue or contact us at hello@ironblocks.com.