OpenCTI-Platform / connectors

OpenCTI Connectors
https://www.opencti.io
Apache License 2.0
383 stars 415 forks source link

[Comlaude] external import connector #3010

Open MohamedMerimi opened 1 day ago

MohamedMerimi commented 1 day ago
Hello all , I'm sending you the new version of the attached Comlaude script, with a few modifications: - I added the “_deserialize_json_string” function to convert the JSON-formatted text string into a python object, which eliminates json errors when executing on OpenCTI. - I Added “_validate_required_fields” function to check that all required data (mandatory fields) are present and not empty, which also prevents errors in OpenCTI executions - Addition of the “_ping_connector” function, which pings the connector every 5 minutes to keep it active (by modifying the “run” function). - Status tracking with “last_run” variable in format “{”last_run“: ‘2024-11-18T15:13:36Z’}”. Best regards Mohamed MTALSI-MERIMI ### Proposed changes * * ### Related issues * https://github.com/OpenCTI-Platform/connectors/pull/2279 * ### Checklist

Further comments