SecurityScorecard Executor¶
Category: Attack Surface Management
Script: securityscorecard.py
Integration: REST API
Faraday Plugin: Raw JSON
Website: https://securityscorecard.com
Description¶
Imports the security rating and open issues of one company monitored in SecurityScorecard into Faraday. The company becomes a Faraday host that shows its score and grade, and each issue becomes a [SECURITY-RATING] vulnerability.
Prerequisites¶
- A SecurityScorecard account with access to the company you want to import
- A SecurityScorecard API token, created in the portal under My Settings > API
requestsavailable in the agent's Python environment (checked withpython3 -c 'import requests')- Network access to
https://api.securityscorecard.io
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
SSC_TOKEN |
Yes | SecurityScorecard API token |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
SSC_DOMAIN |
string | Yes | Primary domain of the company to import, as shown in the SecurityScorecard portal (e.g., example.com). An IPv4 address is also accepted. |
SSC_ISSUE_TYPE |
string | No | Import only one issue type, using its SecurityScorecard slug in lowercase snake_case (e.g., patching_cadence_low, service_open_port, malware_infection). If empty, all issue types are imported. A value that is not in this format is ignored. |
SSC_MIN_SEVERITY |
string | No | Minimum severity to import: info, low, medium, high or critical (default: info) |
YAML Configuration Example¶
executors:
securityscorecard:
repo_executor: securityscorecard.py
max_size: 65536
varenvs:
SSC_TOKEN: "<ssc_token>"
params:
SSC_DOMAIN:
mandatory: true
type: string
base: string
SSC_ISSUE_TYPE:
mandatory: false
type: string
base: string
SSC_MIN_SEVERITY:
mandatory: false
type: string
base: string
How It Works¶
- Authenticates with
Authorization: Token <SSC_TOKEN> - Reads the company record with
GET /companies/{domain}and its factor grades withGET /companies/{domain}/factors - Reads the issues with
GET /companies/{domain}/issues(or/issues/{type}whenSSC_ISSUE_TYPEis set), 100 per page - Maps each issue to a Faraday vulnerability:
- Name:
[SECURITY-RATING]followed by the issue title - Severity: SecurityScorecard's severity (
positivecounts asinfo), or its numeric score when the severity is missing - Status: active issues are open, resolved or fixed issues are closed, waived or accepted issues are risk-accepted
- Details: affected targets, evidence, CVEs, reference links and remediation text
- Name:
- Drops issues below
SSC_MIN_SEVERITYand creates one host for the company
Notes¶
- The host uses IP
0.0.0.0and the company's domain as hostname, because the rating belongs to a company and not to an IP address. Its operating system field shows the score and grade (e.g.,SecurityScorecard 87 (B)), and its description lists the factor grades. - If the company or factor requests fail (other than a 401), the run continues with less host information.
- An invalid
SSC_DOMAINstops the run. An unrecognizedSSC_MIN_SEVERITYfalls back toinfo. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseSSC_MIN_SEVERITYto filter by severity.