---
title: security query | Wartiva GraphQL API
description: Retrieves an endpoint's Security posture by its graph object id: firewall, antivirus, and antispyware products, Windows Firewall profiles.
url: https://wartiva.com/api-docs/queries/security.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL query

# `security` query

Retrieves an endpoint's [Security](https://wartiva.com/api-docs/types/security.html) posture by its graph object id: firewall, antivirus, and antispyware products, Windows Firewall profiles, Linux nftables rules, and per-volume disk encryption, each summarized as a health rating. Each [Endpoint](https://wartiva.com/api-docs/types/endpoint.html) on Windows, macOS, or Linux has at most one, also reachable through its `security` field; find them across endpoints with [graphSearch](https://wartiva.com/api-docs/queries/graph-search.html) on the SECURITY object type. Returns a not-found error when no object has the id, and an error when the id belongs to another object type.

## Response

Returns a [`SecurityPayload!`](https://wartiva.com/api-docs/types/security-payload.html)

## Arguments

| Name | Description |
|---|---|
| `id` - [`ID!`](https://wartiva.com/api-docs/types/id.html) | The Security identifier. |
| `mockOptions` - [`MockDataInput`](https://wartiva.com/api-docs/types/mock-data-input.html) | Options for mock data generation. Options supported: key: "PLATFORM", value: OsPlatform example: "mockOptions": { "options": [ { "key": "PLATFORM", "value": "WINDOWS" } ] } |

## Example

### Query

```graphql
query security(
  $id: ID!,
  $mockOptions: MockDataInput
) {
  security(
    id: $id,
    mockOptions: $mockOptions
  ) {
    node {
      id
      orgId
      seen {
        ...SeenOnlineFragment
      }
      objectType
      objectTypeLabel
      displayName
      firstSeen
      lastSeen
      createdAt
      updatedAt
      snapshotInfo {
        ...GraphObjectSnapshotInfoFragment
      }
      endpoint {
        ...EndpointFragment
      }
      firewallProducts {
        ...FirewallFragment
      }
      firewallPrivateProfile {
        ...FirewallPrivateProfileFragment
      }
      firewallPublicProfile {
        ...FirewallPublicProfileFragment
      }
      antivirusProducts {
        ...AntivirusFragment
      }
      antispywareProducts {
        ...AntispywareFragment
      }
      health {
        ...HealthFragment
      }
      tables {
        ...TableFragment
      }
      diskEncryption {
        ...DiskEncryptionFragment
      }
      findings {
        ...FindingsPayloadFragment
      }
      issues {
        ...IssuesPayloadFragment
      }
      issuesSummary {
        ...IssuesSummaryFragment
      }
    }
  }
}

```

### Variables

```json
{"id": 4, "mockOptions": MockDataInput}

```

### Response

```json
{"data": {"security": {"node": Security}}}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
