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.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 295 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 98 SQL DataFlows
- 608 Datasets
- 2.1K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 714 Beast Mode
- 51 App Studio
- 39 Variables
- 670 Automate
- 171 Apps
- 447 APIs & Domo Developer
- 45 Workflows
- 7 DomoAI
- 34 Predict
- 14 Jupyter Workspaces
- 20 R & Python Tiles
- 391 Distribute
- 111 Domo Everywhere
- 274 Scheduled Reports
- 6 Software Integrations
- 116 Manage
- 113 Governance & Security
- Domo Community Gallery
- 31 Product Releases
- 9 Domo University
- 5.3K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 104 Community Announcements
- 4.8K Archive