Integrations
Send Pentesys events to the tools your teams use, and bring assets, misconfigurations, secrets, vulnerabilities and security incidents from your cloud, code platforms, scanners and SOC into Pentesys.
Available connections#
| Kind | Provider | What it does |
|---|---|---|
| Outbound delivery | Webhooks | Signed JSON POST to your HTTPS endpoint. |
| Microsoft Teams | Posts an Adaptive Card to a channel. | |
| Jira | Creates an issue in a project. | |
| ServiceNow | Creates a record (an incident by default). | |
| Cloud discovery | Amazon Web Services | Imports cloud resources as assets and misconfigurations into Exposure → Cloud & SaaS. |
| Microsoft Azure | ||
| Google Cloud | ||
| Code | GitHub | Imports repositories as assets, leaked secrets into Exposure → Secrets and Critical and High dependency and code alerts into Vulnerabilities. Gives AI code reviews access to private repositories. |
| GitLab | ||
| Scanners | Tenable | Imports scanned hosts and web apps as assets, and their Critical and High vulnerabilities. |
| Qualys | ||
| Acunetix | ||
| SOC | Microsoft Sentinel | Imports security incidents so Adversary campaigns can measure detection. |
Each provider can have several named connections, for example "AWS production" and "AWS staging". Everything imported is labelled not validated by Pentesys, and discovery connections are read-only: Pentesys never changes anything in your accounts.
Connection lifecycle#
- Draft configurationAdded, not yet set up
- Test requiredSettings saved
- Test passedA real call succeeded
- Connected · HealthyActivated and working
| Status | Health | Meaning |
|---|---|---|
| Not connected | Draft configuration | Just added; fill in the settings. |
| Not connected | Test required | Settings saved but not yet tested. Any change to settings requires a new test. |
| Connected | Healthy | Tested and activated. |
| Needs attention | Test failed | A test on an active connection failed. Fix the settings and test again. |
| Connected | Delivery failing | Automation deliveries keep failing. See Delivery and retries. |
| Not connected | Disconnected | Credentials deleted; nothing is sent or imported. |
Adding a connection#
- Go to Integrations → Add connection and choose the provider (needs
integrations.manage). - 1. Connect: give it a Connection name (unique per provider) and a Connection owner, and fill in the provider's fields. Each field explains what to enter and the least access to grant.
- Choose where the credentials are kept (see below) and save.
- 2. Test & activate: select Test connection. Pentesys makes a real call to the provider and shows Passed or Failed with the provider's reply.
- Select Activate (only possible after a passing test). Delivery connections can now be used by automations; discovery connections start syncing.
Provider settings#
| Provider | Fields | Least access to grant |
|---|---|---|
| Webhooks | Endpoint URL | HTTPS only; no credentials in the URL; must not point to a private or reserved network. |
| Microsoft Teams | Workflow URL | Add the workflow "Post to a channel when a webhook request is received" to the channel and paste its URL. |
| Jira | Jira site, Atlassian account email, API token, project key, issue type (default Task) | A service account with access to that project only. |
| ServiceNow | Instance URL, integration user, password, table (default incident), assignment group | A user with rights to create records in that table only. |
| AWS | Read-only role ARN, regions (up to 10) | A role with the AWS managed SecurityAudit policy, trusting Pentesys with your organisation's external ID (the trust policy is shown). |
| Azure | Tenant ID or domain, subscription IDs | Approve the Pentesys application, grant Reader on each subscription, and tag each subscription pentesys-org with the value shown. |
| Google Cloud | Project IDs (up to 50), service account key (JSON) | A service account with Viewer and Security Reviewer on those projects. |
| GitHub | Organisation, access token, API URL (optional, for GitHub Enterprise) | A fine-grained, read-only token: metadata, contents, secret scanning, Dependabot and code scanning alerts. |
| GitLab | Group path, access token, GitLab URL (optional) | A group token with read_api; add read_repository for code reviews. |
| Tenable | Access key, secret key | Keys of a read-only user. |
| Qualys | API server URL, user name, password | A Reader user with API access. |
| Acunetix | Acunetix URL, API key | The key of a read-only user. |
| Microsoft Sentinel | Tenant ID or domain, subscription ID, resource group, Log Analytics workspace | Approve the Pentesys application and grant Microsoft Sentinel Reader on the workspace; tag the subscription pentesys-org. |
Where credentials are kept#
- Stored in Pentesys (encrypted)
- The default. Write-only: never shown again after saving.
- My Azure Key Vault
- Enter the tenant, Key Vault name and secret name. Approve the Pentesys application, grant it Key Vault Secrets User on the secret, and tag the secret
pentesys-orgwith your organisation's value (untagged secrets are refused). - My AWS Secrets Manager
- Enter the role ARN Pentesys assumes, the region and the secret name or ARN. The role trusts Pentesys with your external ID and allows
secretsmanager:GetSecretValueon that secret only.
Vault credentials are read each time they are needed and held only briefly in memory. Store either the credential on its own, or JSON whose keys match the field names. The vault options appear only where Pentesys offers them.
Discovery and imports#
- Choose a Sync interval: Daily (default), Every 6 hours or Every hour. Sync now runs one immediately.
- New resources become assets; problems become exposure records. Records no longer reported become Healthy.
- Sync & delivery history shows the last 30 runs, overall or per connection: Successful, Failed, Retrying or Stopped.
- If a cloud discovery fails, the workspace is notified ("Cloud discovery failed: …").
Disconnecting and deleting#
| Disconnect | Delete connection | |
|---|---|---|
| Credentials | Deleted | Deleted |
| Automations using it | Stop delivering until you reconnect | Paused; waiting deliveries are marked failed |
| History and imported assets and exposures | Kept | Kept |
| Reversible | Yes: reconnect and test | No |
Receiving webhooks#
Pentesys sends each event as a JSON POST with a 15-second timeout. Redirects are not followed.
POST /hooks/pentesys HTTP/1.1
Host: hooks.acme.example
Content-Type: application/json
User-Agent: Pentesys-Webhooks/1.0
X-Pentesys-Event: finding.confirmed
X-Pentesys-Signature: t=1767225600,v1=5f2b9c…c9a1
{
"id": "evt_3f9a1c2b7d4e5f60",
"type": "finding.confirmed",
"created": "2026-11-26T10:15:00+00:00",
"data": {
"event": "finding.confirmed",
"label": "Critical or High finding confirmed during testing",
"title": "Critical finding: SQL injection in product search",
"text": "Confirmed on shop.acme.example during Web shop and API, Q4.",
"severity": "Critical",
"url": "/findings/FND-1042",
"facts": { "Asset": "shop.acme.example", "Engagement": "VAL-P012" },
"occurred_at": "2026-11-26T10:14:52+00:00",
"test": false
}
}
The data object can also carry refs and organisation. Event types: finding.confirmed, report.released, remediation.created, remediation.verified, exposure.detected, and ping for tests.
Verifying the signature#
The signing secret (it starts whsec_) is shown in step 2 of the connection. Compute HMAC-SHA256 of <t>.<raw body> with the secret, compare it with v1 in constant time, and reject requests older than five minutes.
import hashlib, hmac, time
def verify(raw_body: bytes, header: str, secret: str) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
if abs(time.time() - int(parts["t"])) > 300:
return False
expected = hmac.new(secret.encode(), f'{parts["t"]}.'.encode() + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts["v1"])
const crypto = require("crypto");
function verify(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(",").map(p => p.split("=", 2)));
if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false;
const expected = crypto.createHmac("sha256", secret).update(`${parts.t}.`).update(rawBody).digest("hex");
return expected.length === parts.v1.length &&
crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}
Reply with any 2xx status within 15 seconds; do slow work after replying. Network errors, 429 and 5xx responses are retried; other 4xx responses fail at once. See Delivery and retries.
What Teams, Jira and ServiceNow receive#
- Teams: an Adaptive Card headed "PENTESYS · <event>" with the title, text, facts and an Open in Pentesys button.
- Jira: an issue whose summary is the title, with the text, facts and link in the description and the label
pentesys. - ServiceNow: a record with a short description and description; urgency and impact are 1 for Critical and High, 2 for Medium, 3 for Low and Info.
For remediation events, the Jira or ServiceNow reference is written to the remediation action's Ticket field if it is empty.