SDK examples have been developed to allow you visualize through code how to create or update an application and embed the SentinelOne Nexus SDK in it.
Each example will produce a malware scanning application utilizing the SentinelOne Static AI engine via the Nexus SDK to scan files and/or directories on demand. Each scanner is embedded within a Docker container and can be utilized on any platform that supports Docker.
- A 64-bit machine is required - it may be Intel/AMD or Apple Silicon but 32-bit platforms are not supported for these examples
gitmust be installed on your machine- git Client - Windows, MacOS, Linux
makemust be installed on your machine- GNU Make - Windows, MacOS, Linux
- Docker must be installed and running on your machine
- Docker Engine - Linux distributions (free)
- Docker Desktop - Windows, MacOS, Linux (may require licensing)
- Rancher Desktop - Windows, MacOS, Linux (free)
- Windows systems must have WSL2 installed and available
- You will need a copy of the Nexus SDK distribution files - Please contact your SentinelOne Sales Team to obtain these files.
NOTES:
-
These instructions assume you are using either Docker Engine for Linux systems or Rancher Desktop with the dockerd (moby) engine for MacOS and Windows systems. If you are using Docker Desktop you may need to make adjustments.
-
For Windows systems using WSL2, the instructions assume you are using the default image that is included with the latest version of Rancher Desktop. The commands should be universal across images, however, you may need to make adjustments.
-
From a location within your home directory (or user profile on Windows), clone this repository from GitHub and change into the
nexus-sdkfolder:git clone https://github.com/sentinel-one/s1-integration-examples ./s1-integration-examples cd ./s1-integration-examples/nexus-sdk -
Create a folder called
_distfiles_and unpack the Nexus SDK distribution ZIP file into it. The resulting folder should look something like this (some files/folders have been omitted for brevity):└── s1-integration-examples/ └── nexus-sdk/ └── _distfiles_/ ├── Code Samples ├── DIGEST └── SDK/ ├── include/ │ └── libdfi.h └── lib/ ├── linux/ │ ├── arm64/ │ │ └── libdfi.so │ └── x64/ │ └── libdfi.so ├── windows/ │ ├── x64/ │ │ └── libdfi64.dll │ └── x86/ │ └── libdfi32.dll ├── pyscanner.py └── SentinelDFI-2-py2.py3-none-any.whl └── go/ └── nodejs/ └── python/ └── sample-files/
Now that you've made sure your system has met all of the requirements and completed the initial setup steps, you're ready to work on an example for your language of choice.
To continue, simply choose one of the following languages: