forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
707d212
commit e446541
Showing
2 changed files
with
169 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
231 changes: 98 additions & 133 deletions
231
Packs/SilentPush/Integrations/SilentPush/SilentPush.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,139 +1,104 @@ | ||
commonfields: | ||
id: SilentPush | ||
version: -1 | ||
name: SilentPush | ||
type: python | ||
subType: python3 | ||
description: | | ||
This integration allows fetching domain information from the SilentPush API. It includes commands to get domain-related information such as WHOIS data, domain age, and risk scores, as well as SSL/TLS certificate data. | ||
tags: [] | ||
enabled: true | ||
manufacturer: SilentPush | ||
comment: '' | ||
minVersion: -1 | ||
dependencies: | ||
- CommonServerPython | ||
- CommonServerUserPython | ||
|
||
scripts: | ||
- path: SilentPush.py | ||
comment: | | ||
Integration for SilentPush that enables fetching domain information, including WHOIS data, domain age, risk scores, and certificates. | ||
commands: | ||
- name: test-module | ||
description: | | ||
Tests the connectivity to the SilentPush API and checks the authentication status. | ||
isArray: false | ||
argContext: | ||
- id: base_url | ||
type: string | ||
description: The base URL for the SilentPush API. | ||
- id: api_key | ||
type: string | ||
description: The API key used to authenticate requests. | ||
- id: verify_ssl | ||
type: boolean | ||
description: Flag to determine whether SSL verification is enabled. | ||
examples: | | ||
!test-module | ||
- name: silentpush-list-domain-information | ||
description: | | ||
Fetches domain information, such as WHOIS data, domain age, and risk scores. | ||
isArray: false | ||
argContext: | ||
- id: domain | ||
type: string | ||
description: The domain name to fetch information for. | ||
examples: | | ||
!silentpush-list-domain-information domain=example.com | ||
- name: silentpush-get-domain-certificates | ||
description: | | ||
Fetches SSL/TLS certificate data for a given domain. | ||
isArray: false | ||
argContext: | ||
- id: domain | ||
type: string | ||
description: The domain to fetch certificate information for. | ||
examples: | | ||
!silentpush-get-domain-certificates domain=example.com | ||
version: 1.0.0 | ||
|
||
args: | ||
- id: domain | ||
isArray: false | ||
description: | | ||
The domain to fetch information for. | ||
type: string | ||
name: SilentPush | ||
display: SilentPush | ||
category: Data Enrichment & Threat Intelligence | ||
description: Integration with SilentPush API for domain intelligence and analysis. | ||
configuration: | ||
- display: Server URL | ||
name: url | ||
defaultvalue: https://api.silentpush.com | ||
type: 0 | ||
required: true | ||
|
||
- display: API Key | ||
name: credentials | ||
type: 9 | ||
required: true | ||
|
||
- display: Trust any certificate (not secure) | ||
name: insecure | ||
type: 8 | ||
required: false | ||
|
||
- display: Use system proxy settings | ||
name: proxy | ||
type: 8 | ||
required: false | ||
|
||
outputs: | ||
- id: SilentPush.Domain | ||
type: complex | ||
description: | | ||
The domain information fetched from SilentPush API, including WHOIS data, domain age, and risk scores. | ||
contents: | ||
- name: domain | ||
type: string | ||
- name: whois_data | ||
type: string | ||
- name: domain_age | ||
type: integer | ||
- name: risk_score | ||
type: float | ||
|
||
- id: SilentPush.Certificates | ||
type: complex | ||
description: | | ||
The certificate information fetched from SilentPush API for the domain. | ||
contents: | ||
- name: domain | ||
type: string | ||
- name: certificates | ||
type: list | ||
items: | ||
- name: certificate_issuer | ||
type: string | ||
- name: valid_from | ||
type: string | ||
- name: valid_to | ||
type: string | ||
- name: certificate_serial_number | ||
type: string | ||
script: | ||
script: '' | ||
type: python | ||
commands: | ||
- name: silentpush-list-domain-information | ||
description: Fetches domain information such as WHOIS data, domain age, and risk scores | ||
arguments: | ||
- name: domain | ||
description: The domain to fetch information for | ||
required: true | ||
default: false | ||
outputs: | ||
- contextPath: SilentPush.Domain | ||
description: Domain information retrieved from SilentPush | ||
type: unknown | ||
- contextPath: SilentPush.Domain.domain | ||
description: The domain name | ||
type: string | ||
|
||
- name: silentpush-get-domain-certificates | ||
description: Fetches SSL/TLS certificate data for a given domain | ||
arguments: | ||
- name: domain | ||
description: The domain to fetch certificate information for | ||
required: true | ||
default: false | ||
outputs: | ||
- contextPath: SilentPush.Certificates | ||
description: Certificate information for the domain | ||
type: unknown | ||
- contextPath: SilentPush.Certificates.domain | ||
description: The domain name | ||
type: string | ||
|
||
- name: silentpush-search-domains | ||
description: Search for domains with optional filters | ||
arguments: | ||
- name: query | ||
description: Search query string (e.g., domain pattern, keywords) | ||
required: false | ||
default: false | ||
- name: start_date | ||
description: Start date for domain registration (ISO8601 format) | ||
required: false | ||
default: false | ||
- name: end_date | ||
description: End date for domain registration (ISO8601 format) | ||
required: false | ||
default: false | ||
- name: risk_score_min | ||
description: Minimum risk score filter | ||
required: false | ||
default: false | ||
- name: risk_score_max | ||
description: Maximum risk score filter | ||
required: false | ||
default: false | ||
- name: limit | ||
description: Maximum number of results to return | ||
required: false | ||
default: true | ||
defaultValue: "100" | ||
outputs: | ||
- contextPath: SilentPush.SearchResults | ||
description: Search results from the domain query | ||
type: unknown | ||
- contextPath: SilentPush.SearchResults.domain | ||
description: The domain name in the search results | ||
type: string | ||
|
||
dockerimage: demisto/python3:3.10 | ||
fromversion: 6.0.0 | ||
tests: | ||
- name: Test SilentPush Integration | ||
description: Test the integration with the SilentPush API. | ||
steps: | ||
- script: test-module | ||
name: Test SilentPush API Connectivity | ||
args: | ||
base_url: https://api.silentpush.com | ||
api_key: 'your_api_key' | ||
|
||
|
||
configurations: | ||
- default: true | ||
isArray: false | ||
description: The configuration parameters required for connecting to SilentPush API. | ||
context: | ||
- id: base_url | ||
type: string | ||
description: The base URL for the SilentPush API. | ||
- id: api_key | ||
type: string | ||
description: The API key used to authenticate requests. | ||
- id: verify_ssl | ||
type: boolean | ||
description: Flag to determine whether SSL verification is enabled. | ||
- id: proxy | ||
type: boolean | ||
description: Flag to determine whether to use a proxy. | ||
|
||
errorHandling: | ||
- errorCode: 403 | ||
description: | | ||
If an authorization error is encountered, it could indicate an incorrect or expired API key. | ||
- errorCode: 400 | ||
description: | | ||
Bad Request error, likely due to incorrect input format or invalid parameters in the request. | ||
- No tests |