Security Plugins Hub

Bring your software development workflows to security

Custom plugin

Custom Plugin

Business

Signals & Triggers

On Custom signal
If Custom trigger

Actions

  • Block the HTTP request Block the HTTP request
  • Log request stack trace Log request stack trace
  • Log the malicious request Log the malicious request
  • Report an incident Report an incident

Notifications

  • Send an email to all team members Send an email to all team members
  • Send a Slack notification. Send a Slack notification.

Details

Sqreen offers a simple SDK allowing you to track custom events and users.

Based on customised conditions (event triggered, threshold reached, anomaly detected, etc), Sqreen can apply in-app actions without requiring any code changes thanks to dynamic code instrumentation.

Advanced details

The event SDK is mostly relying on a single track method:

const sqreen = require('sqreen');

sqreen.track({
    user_identifiers: {...},
    event: 'foobar',
    properties: {...},
    timestamp: Date.now()
});

The method accepts the following parameters:

  • user_identifiers - Object, optional - A dictionary identifying the associated user. When no user identity is provided, only the request IP is recorded.
  • event - String - The event name to track.
  • properties - Object, optional - A dictionary of property for the event.
  • timestamp - Date, optional - Date when the event occurred. If empty, the server time will be used. Handy when syncing back batch of past events.

Sqreen offers 3 main detection methods to monitor custom events activity:

  • Condition matched
  • Threshold reached
  • Anomaly detected

Language support

  • Ruby
  • Node.js
  • PHP
  • Python
  • Java

Data collected by Sqreen

Signals

Number of signals


On attack
  • IP addresses
  • User identifier if sent

Built for developers and modern apps

Get up and running in minutes just by installing our lightweight library. Enable plugins in just a couple of clicks.

  • Node.js
  • Ruby
  • PHP
  • Python
  • Java
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

$ npm install --save sqreen

$ echo '{ "token": "your token" }' > sqreen.json

 

// This should be the first line of your app

require('sqreen');

$ echo "gem 'sqreen'" >> Gemfile

$ bundle install

$ echo "token: your token" > config/sqreen.yml

$ curl -s https://download.sqreen.io/php/install.sh > sqreen-install.sh && bash sqreen-install.sh your token

$ pip install sqreen

$ echo -e "[sqreen]\ntoken: your token" > sqreen.ini

 

# Insert at the top of your app file (typically wsgi.py or app.py)

import sqreen

sqreen.start()

$ curl https://download.sqreen.io/java/sqreen-latest-all.jar -o sqreen.jar

 

// Add JVM startup options:

-javaagent:/path/to/sqreen.jar -Dsqreen.token={{your token}}

Build amazing products. Keep them safe.

3 min installation · Try all features for 14 days · No credit card required Sign up Request demo