Neptune

neptune db

Manage the signature database

neptune db

Manage Neptune's SQLite signature database used for function fingerprint matching.

Subcommands

neptune db init

Initialize a new empty signature database.

neptune db init [PATH]
ArgumentDefaultDescription
[PATH]neptune-signatures.dbDatabase file path

neptune db stats

Display statistics about the signature database.

neptune db stats [PATH]

neptune db import

Import signatures from a JSON file.

neptune db import [PATH] --file <JSON_FILE>
FlagDescription
-f, --file <FILE>JSON file with signature entries

neptune db generate

Generate signatures from a compiled library binary.

neptune db generate <BINARY> --library <NAME> --version <VER> [OPTIONS]
FlagDefaultDescription
-l, --library <NAME>requiredLibrary name (e.g., "OpenSSL")
-V, --version <VER>requiredLibrary version (e.g., "1.1.1w")
-o, --output <FILE>generated-signatures.jsonOutput JSON file

neptune db update

Download the latest signatures from the remote database.

neptune db update [PATH] [OPTIONS]
FlagDescription
--url <URL>Remote URL override (defaults to NEPTUNE_SIG_REMOTE_URL or https://signatures.neptune.rip)

Examples

# Initialize and populate
neptune db init
neptune db import --file signatures/openssl-x86_64.json
neptune db stats

# Generate from a compiled library
neptune db generate /usr/lib/libssl.so --library OpenSSL --version 3.0.12

# Update from remote
neptune db update

On this page