Adaptive Shield Executor¶
Category: Identity and Access
Script: adaptive_shield.py
Integration: REST API
Faraday Plugin: Raw JSON
Website: https://www.adaptive-shield.com
Description¶
Imports the connected SaaS applications and security posture findings from an Adaptive Shield (SSPM) tenant into Faraday. Each connected application becomes an informational inventory record, and each posture finding (misconfiguration, identity hygiene or integration risk) becomes a Faraday vulnerability with its severity and remediation.
Prerequisites¶
- An Adaptive Shield tenant with REST API access
- An API key, created in the Adaptive Shield console under Settings > Integrations > REST API > Generate Key, with permission to read applications and findings
- Network access from the agent to your Adaptive Shield tenant
- The Python
requestspackage installed in the agent environment
Configuration¶
Environment Variables (Setup)¶
| Variable | Required | Description |
|---|---|---|
AS_HOST |
Yes | Your Adaptive Shield tenant host (e.g., mycorp.adaptive-shield.com). https:// is added if you omit the scheme. |
AS_API_KEY |
Yes | Adaptive Shield API key |
AS_PAGES |
No | Maximum number of pages of 100 records to import per endpoint, from 1 to 50 (default: 5) |
These variables are also accepted as execution arguments, so a single run can override them.
Execution Arguments¶
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
AS_APP_ID |
string | No | Import only one SaaS application, by numeric ID or slug (e.g., salesforce, m365, github). Leave empty to import all connected apps. |
AS_MIN_SEVERITY |
string | No | Minimum finding severity to import: info, low, medium, high or critical (default: all severities) |
YAML Configuration Example¶
executors:
adaptive_shield:
repo_executor: adaptive_shield.py
max_size: 65536
varenvs:
AS_HOST: "https://mycorp.adaptive-shield.com"
AS_API_KEY: "<api_key>"
params:
AS_APP_ID:
mandatory: false
type: string
base: string
AS_MIN_SEVERITY:
mandatory: false
type: string
base: string
How It Works¶
- Authenticates every request with the header
Authorization: Bearer <AS_API_KEY> - Reads the connected applications from
GET /api/v1/applications, filtered byAS_APP_IDif set, 100 per page - Reads the posture findings from
GET /api/v1/findings, filtered byAS_APP_IDandAS_MIN_SEVERITY(the filtering is done by Adaptive Shield), 100 per page - Maps each application to an
infovulnerability named[IDENTITY] Adaptive Shield app: <name>, with its vendor, instance, integration status and connection dates - Maps each finding to a vulnerability named
[IDENTITY] Adaptive Shield finding: <check> (<app>):- Severity: Adaptive Shield's
info/low/medium/high/criticalmapped to the same Faraday level. Unknown values becomeinfo. - Resolution: the finding's remediation text
- References: check ID, category, app, status, dates and compliance frameworks
- Severity: Adaptive Shield's
Notes¶
- Applications and findings are not tied to IP addresses, so all of them are created on the host
0.0.0.0. The app name, vendor and instance (for applications) or the app, check and category (for findings) are added as hostnames. - All vulnerabilities are created as open.
- By default the executor imports at most 5 pages of 100 records from each endpoint. Raise
AS_PAGESfor larger tenants. - An unknown
AS_MIN_SEVERITYvalue is ignored (all severities are imported) and written to the agent log. - The run fails on a
401response (invalid API key). A403,429or other error stops the import of that endpoint and keeps what was already read. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor. UseAS_MIN_SEVERITYto filter by severity.