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.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive