{"id":26459991,"url":"https://github.com/zoldax/nhsuite","last_synced_at":"2026-03-27T03:10:18.933Z","repository":{"id":200719135,"uuid":"706130907","full_name":"zoldax/NHSuite","owner":"zoldax","description":"NHSuite allows users to efficiently manage their QRadar Network Hierarchy. Utilizing the provided QRadar API, users can seamlessly export, import, and fetch domain information in a CSV format.","archived":false,"fork":false,"pushed_at":"2024-01-22T09:27:23.000Z","size":43,"stargazers_count":26,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-23T02:08:13.186Z","etag":null,"topics":["automation","blueteam","cybersecurity","cybersecurity-tool","qradar","qradar-api","qradar-tools","siem","soc"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoldax.png","metadata":{"files":{"readme":"README-ERROR.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-17T11:11:06.000Z","updated_at":"2025-04-29T08:51:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"39956978-b1e6-46ab-8cb8-5759bee69181","html_url":"https://github.com/zoldax/NHSuite","commit_stats":null,"previous_names":["zoldax/nhsuite"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zoldax/NHSuite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoldax%2FNHSuite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoldax%2FNHSuite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoldax%2FNHSuite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoldax%2FNHSuite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoldax","download_url":"https://codeload.github.com/zoldax/NHSuite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoldax%2FNHSuite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31013961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:58:54.984Z","status":"ssl_error","status_checked_at":"2026-03-27T02:58:46.993Z","response_time":164,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","blueteam","cybersecurity","cybersecurity-tool","qradar","qradar-api","qradar-tools","siem","soc"],"created_at":"2025-03-19T02:22:22.984Z","updated_at":"2026-03-27T03:10:18.915Z","avatar_url":"https://github.com/zoldax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NHSuite for IBM QRadar SIEM : Interaction library : Error Logging\n\n### 🖋️ Author\n- **Pascal Weber (zoldax)**\n\n## 🚫 Errors Logged in `qradarzoldaxlib`\nThe library, `qradarzoldaxlib.py`, offers functionalities for interaction with the QRadar API. Below is a breakdown of potential errors that may be logged:\n\n### 1. 📑 `read_config` Function\n\nThis function reads configuration data from a JSON file.\n\n#### Error Scenarios:\n\n- **🚫 File Not Found**:\n    ```\n    Error reading configuration file [filename] : [filename] does not exist\n    ```\n\n- **🔣 JSON Decoding Error**:\n    ```\n    Error reading configuration file [filename] : [specific JSON decoding error message]\n    ```\n\n- **❗ Unexpected Errors**:\n    ```\n    Unexpected error occurred while reading [filename] : [error details]\n    ```\n\n### 2. 🌐 `make_request` Function\n\nThis function sends an HTTP request (either GET or PUT) to a specified URL.\n\n#### Error Scenarios:\n\n- **❌ Unsupported HTTP Method**:\n    ```\n    Unsupported HTTP method: [method]\n    ```\n\n- **⚠️ Request Exception or HTTP Error**:\n    ```\n    Error occurred during request: [error details]\n    ```\n\n- **❗ Unexpected Errors**:\n    ```\n    An unexpected error occurred: [error details]\n    ```\n\n### 3. 🆔 `get_app_id` Function\n\nThis function fetches the application ID for a given app name from QRadar.\n\n#### Note:\nIf the function fails to fetch applications from the QRadar API, no specific error message is logged, but the function returns an empty string.\n\n## 🚫 Errors Logged in `qradarzoldaxclass.py`\n\n### 📢 Errors\n\n- **Configuration Reading 📚**\n    - `config.txt not found.`\n    - `Failed to decode JSON from config.txt.`\n  \n- **Network Hierarchy Fetching 🌐**\n    - `Unexpected data format received: {hierarchy_data}`\n\n- **CSV Import to QRadar 📤**\n    - 🚫 `Backup failed. Aborting the import process for safety.`\n        - When: The safety mode is ON, and backup of the current network hierarchy fails.\n        - Location: Method `import_csv_to_qradar`.\n\n    - ❌ `Invalid cidr {row['cidr']} for id {row['id']} - abort import.`\n        - When: The provided CIDR in the CSV is invalid.\n        - Location: Method `import_csv_to_qradar`.\n\n    - ❌ `Invalid group name {row['group']} for id {row['id']} - abort import -.`\n        - When: The provided group name in the CSV is invalid.\n        - Location: Method `import_csv_to_qradar`.\n\n    - ❌ `Invalid name {row['name']} for id {row['id']} - abort import -.`\n        - When: The provided name in the CSV is invalid.\n        - Location: Method `import_csv_to_qradar`.\n\n    - ⚠️ `Invalid location format {location_val} for id {row['id']} - import continue - but value set to null.`\n        - When: The provided location format in the CSV is invalid.\n        - Location: Method `import_csv_to_qradar`.\n\n    - ⚠️ `Invalid country code {country_code_val} for id {row['id']} - import continue - but value set to null.`\n        - When: The provided country code in the CSV is invalid.\n        - Location: Method `import_csv_to_qradar`.\n\n    - 🚫 `Failed to import data from {csv_filename}`\n        - When: There's an error while making a request to import the data.\n        - Location: Method `import_csv_to_qradar`.\n\n    - ❗ `File {csv_filename} not found.`\n        - When: The specified CSV file for import is not found.\n        - Location: Method `import_csv_to_qradar`.\n\n    - ❗ `Error reading CSV file {csv_filename}.`\n        - When: There's an error reading the CSV file.\n        - Location: Method `import_csv_to_qradar`.\n\n    - 🚫 `An unexpected error occurred: {e}`\n        - When: Any unexpected error occurs.\n        - Location: Method `import_csv_to_qradar`.\n\n- **Domain Information Checking 🌍**\n    - `Unexpected data format received: {domain_data}`\n\n- **Backup of Current Network Hierarchy 💾**\n    - `Failed to create a backup due to the following error: {e}`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoldax%2Fnhsuite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoldax%2Fnhsuite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoldax%2Fnhsuite/lists"}