Building custom connectors IT and Infosec systems
Hi, I am trying to build a bunch of custom connectors for various systems. I have built connectors for
SentinelOne (updated one I created in a past job)
EndOfLifeDate,
DMARCLY
Abnormal Email.
I have had no luck with the existing JIRA connector so I am looking at creating my own JIRA connector but also creating connectors for
Wiz - CSPM (Getting token but not yet got queries working)
Zoho EndPoint Central (Authentication is a multi step issue here !)
Appcheck (Nearly Finished)
Initigriti Bug Bounty Program (Not started)
HaveIBeenPwned (Not Started)
EasyDMARC (Not looking at this until next year)
Rather than reinventing the wheel, I was wondering if anyone else had made (or tried to make) connectors for any of these and would be willing to share their code.
In a previous job I have also previously created connectors for:
AlienVault, CSC Global, Detectify, IBM X Force, OutPost24 SWAT, Shodan, URL Scan and Nominet 😁
Answers
-
I have not. But you could use Jupyter Notebooks and Python to establish connections to the APIs of the tools you've mentioned.
Wiz - CSPM:
import requests
token = "your_api_token"
headers = {"Authorization": f"Bearer {token}"}
url = "https://api.wiz.io/your_endpoint"
response = requests.get(url, headers=headers)
data = response.json()Zoho EndPoint Central:
import requests
auth_url = "https://accounts.zoho.com/oauth/v2/auth"
token_url = "https://accounts.zoho.com/oauth/v2/token"
client_id = "your_client_id"
client_secret = "your_client_secret"
redirect_uri = "your_redirect_uri"
code = "authorization_code"
token_data = {
"grant_type": "authorization_code",
"client_id": client_id,
"client_secret": client_secret,
"redirect_uri": redirect_uri,
"code": code,
}
response = requests.post(token_url, data=token_data)
access_token = response.json().get("access_token")
# Use the access token to make API calls
Appcheck:
import requests
url = "https://api.appcheck.com/v1/your_endpoint"
headers = {"Authorization": "Bearer your_token"}
response = requests.get(url, headers=headers)
data = response.json()
Intigriti Bug Bounty Program:
import requests
url = "https://api.intigriti.com/your_endpoint"
headers = {"Authorization": "Bearer your_token"}
response = requests.get(url, headers=headers)
data = response.json()HaveIBeenPwned:
import requests
email = "test@example.com"
url = f"https://haveibeenpwned.com/api/v3/breachedaccount/{email}"
headers = {
"User-Agent": "YourAppName",
"hibp-api-key": "your_api_key"
}
response = requests.get(url, headers=headers)
data = response.json()** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 731 Beast Mode
- 55 App Studio
- 40 Variables
- 682 Automate
- 175 Apps
- 451 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 122 Manage
- 119 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 107 Community Announcements
- 4.8K Archive