Package Documentation

Storm Package: synapse-flashpoint

The following Commands are available from this package. This documentation is generated for version 2.1.0 of the package.

Storm Commands

This package implements the following Storm Commands.

flashpoint.config.add

Add a Synapse-Flashpoint configuration.

The proxy argument can be set to one of the following values:
  true: Use the Cortex configured proxy if set.
  false: Do not use the Cortex configured proxy if set.
  <str>: A proxy URL to use.

Examples:

  // Add a global configuration
  flashpoint.config.add default myapikey1234

  // Add a configuration for the current user
  flashpoint.config.add --scope self myconfig myapikey5678


Usage: flashpoint.config.add [options] <name> <apikey>

Options:

  --help                      : Display the command usage.
  --ssl-noverify              : Do not perform SSL/TLS verification.
  --proxy <proxy>             : Configure the proxy usage. (default: True)
  --tag-prefix <tag_prefix>   : The tag prefix to use when recording data from Flashpoint. (default: rep.flashpoint)
  --scope <scope>             : Set the scope on the configuration. (default: global, choices: global, self, unscoped)

Arguments:

  <name>                      : A unique name for the configuration.
  <apikey>                    : The Flashpoint API key string.

The command is accessible to users with one or more of the following permissions:

  • power-ups.flashpoint.admin

  • power-ups.flashpoint.user

flashpoint.config.del

Delete a Synapse-Flashpoint configuration.

Examples:

  // Delete the "myconfig" configuration
  flashpoint.config.del myconfig


Usage: flashpoint.config.del [options] <name>

Options:

  --help                      : Display the command usage.

Arguments:

  <name>                      : The name of the configuration.

The command is accessible to users with one or more of the following permissions:

  • power-ups.flashpoint.admin

  • power-ups.flashpoint.user

flashpoint.config.list

Display the list of Synapse-Flashpoint configurations you have access to.


Usage: flashpoint.config.list [options]

Options:

  --help                      : Display the command usage.

The command is accessible to users with one or more of the following permissions:

  • power-ups.flashpoint.admin

  • power-ups.flashpoint.user

flashpoint.config.migrate

Migrate options for all Synapse-Flashpoint configurations.

The proxy argument can be set to one of the following values:
  true: Use the Cortex configured proxy if set.
  false: Do not use the Cortex configured proxy if set.
  <str>: A proxy URL to use.

Examples:

  // Migrate the tag prefix for all configurations
  flashpoint.config.migrate --tag-prefix my.tagpref


Usage: flashpoint.config.migrate [options]

Options:

  --help                      : Display the command usage.
  --ssl-verify <ssl_verify>   : Set whether to verify the SSL certificate of the server. (default: None)
  --proxy <proxy>             : Configure the proxy usage. (default: None)
  --tag-prefix <tag_prefix>   : The tag prefix to use when recording data from Flashpoint. (default: None)

The command is accessible to users with one or more of the following permissions:

  • power-ups.flashpoint.admin

flashpoint.config.show

Show the details of a configuration.

Examples:

  // Show the in-use configuration for the current user
  flashpoint.config.show

  // Show a configuration by name
  flashpoint.config.show myconfig


Usage: flashpoint.config.show [options] <name>

Options:

  --help                      : Display the command usage.

Arguments:

  [name]                      : The name of the configuration.

The command is accessible to users with one or more of the following permissions:

  • power-ups.flashpoint.admin

  • power-ups.flashpoint.user

flashpoint.config.update

Update the configuration of a defined Synapse-Flashpoint configuration.

The proxy argument can be set to one of the following values:
  true: Use the Cortex configured proxy if set.
  false: Do not use the Cortex configured proxy if set.
  <str>: A proxy URL to use.

Examples:

  // Set the permission level for user "myuser" to "admin" on the "myconfig"
  // configuration
  flashpoint.config.update myconfig --perm user myuser admin

  // Set the permission level for the "all" role to "deny" on the
  // "myconfig" configuration
  flashpoint.config.update myconfig --perm role all deny

  // Do not verify the SSL certificate when connecting to "myconfig"
  flashpoint.config.update myconfig --ssl-verify (false)

  // Change the tag prefix used by the "myconfig" configuration
  flashpoint.config.update myconfig --tag-prefix my.prefix

  // Change the name of the "myconfig" configuration to "otherconfig"
  flashpoint.config.update myconfig --name otherconfig


Usage: flashpoint.config.update [options] <config>

Options:

  --help                      : Display the command usage.
  --apikey <apikey>           : The Flashpoint API key string. (default: None)
  --perm <perm>               : Set the permission level for a user or role on this configuration.
                                Arguments to this option are ``scope``, ``name``, ``level``:
                                  <scope>: The scope for the permission, either "user" or "role".
                                  <name>: The user/role name depending on scope.
                                  <level>: The $lib.auth.easyperm.level, or None to remove the permission.
                                 (default: None)
  --ssl-verify <ssl_verify>   : Set whether to verify the SSL certificate of the server. (default: None)
  --proxy <proxy>             : Configure the proxy usage. (default: None)
  --tag-prefix <tag_prefix>   : The tag prefix to use when recording data from Flashpoint. (default: None)
  --name <name>               : Rename the configuration. (default: None)

Arguments:

  <config>                    : The name of the configuration to modify.

The command is accessible to users with one or more of the following permissions:

  • power-ups.flashpoint.admin

  • power-ups.flashpoint.user

flashpoint.ignite.indicators

Retrieve bulk indicators from the Flashpoint Technical Indicators Ignite API.

This command queries the Flashpoint Technical Indicators API to retrieve indicators
of compromise that Flashpoint has identified as likely malicious.

Examples:

  // Retrieve 1000 indicators and yield the created nodes
  flashpoint.ignite.indicators --size 1000 --yield

  // Retrieve 100000 indicators from 2020
  flashpoint.ignite.indicators --size 100000 --start-date 2020-01-01 --end-date 2020-12-31


Endpoints:

  (user-configured base URL)
    /technical-intelligence/v1/attribute: Retrieve technical intelligence indicators.
    /technical-intelligence/v1/scroll: Scroll through technical intelligence indicators.

Usage: flashpoint.ignite.indicators [options]

Options:

  --help                      : Display the command usage.
  --query <query>             : A free text search query string, also accepts Lucene query syntax.
  --search-fields <search_fields>: Search specific value types, for example "filename==this.exe".
  --search-tags <search_tags> : Search for keywords inside tags, for example "malware:agenttesla".
  --types <types>             : Search for specific indicator types, for example "url,domain,ip-src".
  --size <size>               : Number of indicators to return. (default: 1000)
  --start-date <start_date>   : Search for indicators first added after this date.
  --end-date <end_date>       : Search for indicators first added before this date.
  --updated-since <updated_since>: Search for indicators updated after this date.
  --updated-until <updated_until>: Search for indicators updated before this date.
  --yield                     : Yield the newly created nodes.
  --debug                     : Show verbose debug output.
  --add-tags                  : Add Flashpoint provided tags on nodes.
  --tag <tag>                 : Specify a custorm tag to add to the created nodes.
  --config <config>           : Override the default config with the provided name.

The command is accessible to users with one or more of the following permissions:

  • power-ups.flashpoint.admin

  • power-ups.flashpoint.user

Storm Modules

This package implements the following Storm Modules.

flashpoint

convertQuery(query, opts=(null))

Use the Flashpoint conversion API to convert an FPTools search query into an Ignite query object.

Example:

Convert a query to Ignite syntax:

init { $flashpoint=$lib.import(flashpoint) }

$fptools_query = "+(fp.tools search terms) +sort_date:[now-24h TO now]"
$ignite_query = $flashpoint.convertQuery($fptools_query)
Args:

query (str): An FPTools query string.

opts (dict): Options passed to resolveOpts. Set vault to the name of the Synapse-Flashpoint config to use.

Returns:

An Ignite query object if the conversion was successful. The return type is dict.