This article presents information on identifying which applications installed on a Splunk instance are running Node.js. It outlines methods to detect Node.js usage.
AppInspect checks are designed to detect many app elements, including standard Node.js usage scenarios. To identify any potential issues, the CLI check tool can be executed, which will surface any relevant warnings if present.
As an alternative, it is also possible to search through the app files using a "grep" command for the pattern "splunk cmd node", as this is typically the most direct and common invocation of the bundled Node.js binary within Splunk apps.
In addition, if the application containsĀ Python scripts, it is important to review them for any system command executions that may include strings such as "splunk", "cmd", or "node". These types of calls would not be detected by the earlier grep search, so a separate check is necessary to ensure comprehensive coverage.
As per: Validate the quality of Splunk apps and add-ons for Splunk Cloud Platform or Splunk Enterprise using Splunk AppInspect, the Splunk AppInspect tool can be used as a web service and as a locally-installed tool.
This is an example of the Splunk AppInspect CLI check (locally-installed), follow: Use the Splunk AppInspect CLI:
pip install splunk-appinspect" to install the Splunk AppInspect CLI, or if that fails, use instead /opt/splunk/bin/splunk cmd pip install splunk-appinspect.<path_where_splunk-appinspect_was_installed>/bin/splunk-appinspect inspect /opt/splunk/etc/apps/<app_to_inspect>/ --mode precert --output-file <add_any_name>.json --data-format json
<path_where_splunk-appinspect_was_installed>, if install output begins with "Defaulting to user installation because normal site-packages is not writeable", then the tool will be installed inĀ ~/.local/bin (for the current user running the command). Otherwise, look in the folder from where the command itself was run. <app_to_inspect> with the correct folder name for another app<add_any_name>.json with a file name (and path if you like) in which to store the output. The command outputs also to the terminal, including a summary at the end, saved in a JSON file, it can be viewed using any tool that supports formatting and displaying its content in a readable way.node"/"splunk cmd node" or "check criteria" such as the ones listed in the Splunk AppInspect check criteria documentation can be used to search information in the file:
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
01-Oct-2026
|
Initial Release |