Threats

Use the ThreatDetections query to export threat detections from Tenable One Cloud Exposure to third-party tools for investigation and analytics.

Use the queries in this article to export threat data from Cloud Exposure to third-party tools for investigation and analytics. For more information about threat data in the Console, see Threat Stories in the Tenable Cloud Exposure User Guide and Threat Detections.

List threat stories

The Threats query returns threat stories. The following query returns the first five threat stories with their title, summary, severity, status, verdict, update times, ticket links, and Console link.

query {
  Threats(first: 5) {
    nodes {
      Id
      Title
      Summary
      Severity
      Status
      UpdateTime
      Verdict
      Detections {Rule {
        Description
        Name
        ScopeId
      }}
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}

Sample response

{
  "data": {
    "Threats": {
      "nodes": [
        {
          "Id": "4856ace4-f77b-48dd-8f48-7bab0257dccc",
          "Title": "User deleted multiple CloudTrail Trails",
          "Summary": "A User deleted multiple CloudTrail Trails via the DeleteTrail API call, removing trail configurations and stopping logging for each trail.",
          "Severity": "Medium",
          "Status": "Closed",
          "UpdateTime": "2026-07-12T12:03:20.292Z",
          "Verdict": "Archived",
          "Detections": [
            {
              "Rule": {
                "Description": "Deleting a CloudTrail Trail via the DeleteTrail API call removes the trail’s configuration and stops logging for that trail. While previously recorded events remain in the destination bucket (if configured), no new activity is logged.",
                "Name": "AWS CloudTrail Trail deleted",
                "ScopeId": "e933b8c8-f647-468b-81b3-901cc3a270f3"
              }
            },
            {
              "Rule": {
                "Description": "Deleting a CloudTrail Trail via the DeleteTrail API call removes the trail’s configuration and stops logging for that trail. While previously recorded events remain in the destination bucket (if configured), no new activity is logged.",
                "Name": "AWS CloudTrail Trail deleted",
                "ScopeId": "e933b8c8-f647-468b-81b3-901cc3a270f3"
              }
            }
          ]
        }
      ]
    }
  }
}

List all threat detections

The following query returns the ID, actor, rule, severity, start time, end time, event origin type, account name, and Console link for each threat detection.

query {
  ThreatDetections(filter: {}) {
    nodes {
      Id
      Actor {
        Name
      }
      EndTime
      EventOriginType
      Link
      Severity
      StartTime
      Rule {
        Name
      }
      AccountName
    }
  }
}

Sample response

{
  "data": {
    "ThreatDetections": {
      "nodes": [
        {
          "Id": "02348c59-40c9-479e-8575-5863f8e2ab59",
          "Actor": {
            "Name": "ADM-DevAdministrators-Role"
          },
          "EndTime": "2026-10-02T22:40:36.000Z",
          "EventOriginType": "AwsCloudTrail",
          "Link": "https://cloud.tenable.com/cns/findings/example",
          "Severity": "Medium",
          "StartTime": "2026-10-02T21:20:34.000Z",
          "Rule": {
            "Name": "AWS EC2 Security Group modified to expose port 22 (SSH) to the internet"
          },
          "AccountName": "111122223333"
        }
      ]
    }
  }
}

List threat rules

The ThreatRules query returns all threat rules in a single list. The following query returns the ID, name, description, providers, and scope ID for each rule.

query {
  ThreatRules {
    Id
    Name
    Description
    Providers
    ScopeId
  }
}

Sample response

{
  "data": {
    "ThreatRules": [
      {
        "Id": "898793d2-563d-4d63-8900-a4464bde01ef",
        "Name": "AWS Security Hub disabled or finding aggregator deleted",
        "Description": "Security Hub was disabled (DisableSecurityHub) or its cross-region finding aggregator was deleted (DeleteFindingAggregator). Both actions remove central visibility into security findings. A threat actor may use these to evade detection across regions or hide malicious operations.",
        "Providers": [
          "AWS"
        ],
        "ScopeId": "e933b8c8-f647-468b-81b3-901cc3a270f3"
      },
      {
        "Id": "898793d2-563d-4d63-8900-a4464bde01ef",
        "Name": "GCP Compute Firewall rule updated",
        "Description": "Modification of a GCP firewall rule for VPC or App Engine via the compute.firewalls.patch API call alters network access controls. Changes may broaden access or weaken existing restrictions. If performed by a threat actor, it could be used to expand attack surface or enable unauthorized network access.",
        "Providers": [
          "GCP"
        ],
        "ScopeId": "e933b8c8-f647-468b-81b3-901cc3a270f3"
            }
    ]
  }
}

Did this page help you?