Lucene search
+L

Tenable.ot Asset Information

🗓️ 07 Feb 2022 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 32 Views

Integrates Tenable.ot into Nessus via the API. This plugin only works with Tenable.ot. Please visit https://www.tenable.com/products/tenable-ot for more information

Code
#TRUSTED 07fda42b9786a6683b340ebec65b48376a21abcdb4b2d21a7e141f7ca887284a01bbf9b9a32639aea51ac68e530d6ba076f560830adda110edf64e66d3866f6b6694bd2e15997bdfe5fd31018b20e832dfedd8ea83c420c0d29dd1d837264e84855a9c1e2b4b7e5a546e5236e5fa60c0b259274f32afaae44be68d3dba4905630070cb113c825d6a296d1a6e3443c071ff2ddb08b4ba393afe0f5912c18445771537a05ada87c2be8b1dcde0a13e2f034fd30531264b37310f6e97e25550e4981f4015cca677f3b45af52f81583d9e53c4a9ac57de7ee8ea12b1014063bb23cea9a5bb21f5e00d8ebf4b0a39b6e494c6393048fef84ef43cf23929724ec5851c65717330512a04a0d31f912c7bb76a5825a086f485ea52731380667ac188dbec59299963c1971f810036a1b2eeb61865a8d1bb10dcb4d1a57ed46cb28fed97641a1ecb14f783451a13750cb7168f3deea6e9c52c924511270fb38ac6850aa15ac4bc563209e663528be89c01551cbcf86e02b8615bd222c1ff03117c3ceb166ce72fe7c19ce34c87cffbcaa69cb3a951935e4f93c79c24327b9cc14d59fe08fef5ce7f45db7398355a91d60972b421dd5b95cd02697b61cd67a9f3456e0e6275193d955ab88350dd46a6a329de106acbf8ceca938c154d765aaebc237e83f51cca12e2b6a3fb8b8657a15b889a0f64795e4d08868ac49b7eee577ac43242948e
#TRUST-RSA-SHA256 72a73b563e52ab388ebeccb4d446c8694364847b9f809ef11550802aad2a9e7153a9f4fc1b7c5cdcfd9a327ca18d500218f352c0624101a6d0ea9324a338f719a27a4b7286e464e54632b651b1fb6c40e451fc85b27ae7fff9678411ee9448b6563f696e5e675e55a1af47ccf9acd86740bf2b58a4c4364c1d043558cc568d6c513000c8120924b552ed3f11a81138cd16d1e3fc3e5b5cecf42c6756e08a265b0d866b257f2391dc90eb031623ea42febb8433e043e6cddeee2406032060a0b925d1c40af87fd9e2c4a55aadc551625c6ebc51e4e89b85e47ffb6125751a19a63f82338c3a9eab3509272b7b0a42e3f6442fe7f2771aa9030a5f9e95c7e3a3f234abb8b9202d5dcea9a65a0cd93dad3a1c36c9e9fc6579ad7c74b463e20b7cddf9b1c0e59ebc17eb79c6c97a2ab4aec687f3f13b2b19e0055feabf05bccea3deed6a4e68b992298f512c127e225784f76d3c9e7a9b1752a37646310df73fbb606ab771485d4bb5c1b793a31dd0218c8ca92175835021eadcebfff377de5092e20d4b02c2e0b5d3d7d49fe4c8f3d6979d861e1a9e3299cf035aa4e1cf7b9a57903dfa5c222b58a05de8bc9d2f4720fe5206c8b03eb5fb0facf28c27766a45d2ad289ee5b8c34c05022b33e9a2992a16b7bdf8e9b83a4597f546f0418e1390058a04c4e32667b9472157c8b4ad21c69d01b9549a7f73d0356a66593a8c91dceaba
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include("compat.inc");

if (description)
{
 script_id(500000);
 script_version("1.10");
 script_set_attribute(attribute:"plugin_modification_date", value:"2026/03/04");
 
 script_name(english:"Tenable.ot Asset Information");

 script_set_attribute(attribute:"synopsis", value:
"Integrates Tenable.ot into Nessus.");
 script_set_attribute(attribute:"description", value:
"Integrates Tenable.ot into Nessus via the API.

This plugin only works with Tenable.ot. 
Please visit https://www.tenable.com/products/tenable-ot for more information.");
 script_set_attribute(attribute:"solution", value:"n/a");

 script_set_attribute(attribute:"plugin_publication_date", value:"2022/02/07");
 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_set_attribute(attribute:"asset_inventory", value:"True");
 script_set_attribute(attribute:"risk_factor", value:"None");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2021-2026 and is owned by Tenable, Inc. or an Affiliate thereof.");
 script_family(english:"Tenable.ot");

 script_dependencies("ot_scout.nbin");

 script_timeout(600);

 exit(0);
}

include('json.inc');
include('spad_log_func.inc');
include('tenable_ot_assets_funcs.inc');
include("base64.inc");

#Double the preset memory limit for this plugin since it has a history of exceeding 80MB
if (defined_func("set_mem_limits"))
  set_mem_limits(max_alloc_size:160*1024*1024, max_program_size:160*1024*1024);

var api_data = get_kb_item('flatline/tenable_ot_asset_data');
if(empty_or_null(api_data))
  api_data = get_preference("tenable_ot_asset_data");

if(empty_or_null(api_data))
  exit(0, "No OT asset data found.");

if(api_data == '{}')
  exit(0,"OT asset data is empty");

#replace_kb_item(name:"global_settings/enable_plugin_debugging", value:TRUE);
var json = deserialize(api_data);

# Error handling
if (empty_or_null(json) || typeof(json) != 'array')
  exit(1, "Failed to parse the JSON.");

# Generic KB item for detection plugins
replace_kb_item(name:'Tenable.ot', value:TRUE);

var result = tenable_ot::assets::process_asset_list(asset_list: json);
if (!result.ok)
  exit(1, result.msg);

exit(0);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Mar 2026 00:00Current
5.9Medium risk
Vulners AI Score5.9
32