---
updatedAt: 2026-06-04T21:20:59.000Z
agentTools:
  projectIndex: https://docs.query.ai/llms.txt
---

# Operating System (OS)

<code>os</code>

The Operating System (OS) object describes characteristics of an OS, such as Linux or Windows.

## Attributes

<table>
    <tr><th>Caption</th><th>Name</th><th>Type</th><th>Description</th></tr>
    <tr id="attr-build">
        <td>OS Build</td>
        <td><code>build</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
        The operating system build number.
        
        </td>
    </tr>
    <tr id="attr-country">
        <td>Country</td>
        <td><code>country</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
            <strong>Entity:</strong><code>COUNTRY</code><br/>
        The operating system country code, as defined by the ISO 3166-1 standard (Alpha-2 code).Note: The two letter country code should be capitalized. For example: US or CA.
        
        </td>
    </tr>
    <tr id="attr-cpe_name">
        <td>The product CPE identifier</td>
        <td><code>cpe_name</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
        The Common Platform Enumeration (CPE) name as described by (NIST) For example: cpe:/a:apple:safari:16.2.
        
        </td>
    </tr>
    <tr id="attr-cpu_bits">
        <td>CPU Bits</td>
        <td><code>cpu_bits</code></td>
        <td>
            <a href="/docs/types#integer_t">Integer</a>
        </td>
        <td>
        The cpu architecture, the number of bits used for addressing in memory. For example: 32 or 64.
        
        </td>
    </tr>
    <tr id="attr-edition">
        <td>OS Edition</td>
        <td><code>edition</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
        The operating system edition. For example: Professional.
        
        </td>
    </tr>
    <tr id="attr-kernel_release">
        <td>Kernel Release</td>
        <td><code>kernel_release</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
        The kernel release of the operating system. On Unix-based systems, this is determined from the uname -r command output, for example &#34;5.15.0-122-generic&#34;.
        
        </td>
    </tr>
    <tr id="attr-lang">
        <td>Language</td>
        <td><code>lang</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
        The two letter lower case language codes, as defined by ISO 639-1. For example: en (English), de (German), or fr (French).
        
        </td>
    </tr>
    <tr id="attr-name">
        <td>Name</td>
        <td><code>name</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
        The operating system name.
        
        </td>
    </tr>
    <tr id="attr-raw_data">
        <td>Raw Data</td>
        <td><code>raw_data</code></td>
        <td>
            <a href="/docs/types#json_t">JSON</a>
        </td>
        <td>
            <strong>Group:</strong><code>context</code><br/>
        The event data as received from the event source.
        
        </td>
    </tr>
    <tr id="attr-record_id">
        <td>Record ID</td>
        <td><code>record_id</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
            <strong>Group:</strong><code>primary</code><br/>
        Unique identifier for the object
        
        </td>
    </tr>
    <tr id="attr-sp_name">
        <td>OS Service Pack</td>
        <td><code>sp_name</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
        The name of the latest Service Pack.
        
        </td>
    </tr>
    <tr id="attr-sp_ver">
        <td>OS Service Pack Version</td>
        <td><code>sp_ver</code></td>
        <td>
            <a href="/docs/types#integer_t">Integer</a>
        </td>
        <td>
        The version number of the latest Service Pack.
        
        </td>
    </tr>
    <tr id="attr-type">
        <td>Type</td>
        <td><code>type</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
        The type of the operating system.
        
        </td>
    </tr>
    <tr id="attr-type_id">
        <td>Type ID</td>
        <td><code>type_id</code></td>
        <td>
            <a href="/docs/types#integer_t">Integer</a>
        </td>
        <td>
        The type identifier of the operating system.
        
            <ul>
                <li><code>100</code>: Windows (<code>WINDOWS</code>)</li>
                <li><code>101</code>: Windows Mobile (<code>WINDOWS_MOBILE</code>)</li>
                <li><code>200</code>: Linux (<code>LINUX</code>)</li>
                <li><code>201</code>: Android (<code>ANDROID</code>)</li>
                <li><code>300</code>: macOS (<code>MACOS</code>)</li>
                <li><code>301</code>: iOS (<code>IOS</code>)</li>
                <li><code>302</code>: iPadOS (<code>IPADOS</code>)</li>
                <li><code>400</code>: Solaris (<code>SOLARIS</code>)</li>
                <li><code>401</code>: AIX (<code>AIX</code>)</li>
                <li><code>402</code>: HP-UX (<code>HP_UX</code>)</li>
                <li><code>0</code>: Unknown (<code>UNKNOWN</code>)</li>
                <li><code>99</code>: Other (<code>OTHER</code>)</li>
            </ul>
        </td>
    </tr>
    <tr id="attr-unmapped">
        <td>Unmapped</td>
        <td><code>unmapped</code></td>
        <td>
            <a href="/docs/obj-unmapped">Unmapped[]</a>
        </td>
        <td>
        Data from the source that was not mapped into the schema.
        
        </td>
    </tr>
    <tr id="attr-version">
        <td>Version</td>
        <td><code>version</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
        The version of the OS running on the device that originated the event. For example: &#34;Windows 10&#34;, &#34;OS X 10.7&#34;, or &#34;iOS 9&#34;.
        
        </td>
    </tr>
</table>

## Relationships

<img src="https://schema.query.ai/images/obj-os.svg" alt="Operating System (OS) shown in context" />

### Inbound Relationships

These objects and events reference Operating System (OS) in their attributes:

<ul>
    <li><a href="/docs/obj-kb_article">KB Article</a></li>
    <li><a href="/docs/obj-advisory">Advisory</a></li>
    <li><a href="/docs/obj-endpoint">Endpoint</a></li>
    <li><a href="/docs/obj-network_endpoint">Network Endpoint</a></li>
    <li><a href="/docs/obj-device">Device</a></li>
    <li><a href="/docs/obj-network_proxy">Network Proxy Endpoint</a></li>
</ul>

### Outbound Relationships

Operating System (OS) references the following objects and events in its attributes:

<ul>
    <li><a href="/docs/obj-unmapped">Unmapped</a></li>
</ul>

<p><small><i>This page describes qdm-1.5.1+ocsf-1.6.0</i></small></p>