wazuh / wazuh-agent

The Wazuh agent for endpoints.
https://wazuh.com
GNU Affero General Public License v3.0
32 stars 19 forks source link

Attach agent information in communication to the server #256

Closed vikman90 closed 2 weeks ago

vikman90 commented 4 weeks ago

Parent Issue: https://github.com/wazuh/wazuh-agent/issues/241

When the agent registers, it must send information about itself to the server:

This information must also be attached to the metadata headers in stateful and stateless messages.

TomasTurina commented 3 weeks ago

Update

Working on new definition (new message structure). The structure of the registration request is still missing.

TomasTurina commented 2 weeks ago

Messages format

Registration request

Authentication:

Example: WazuhXDR/5.0.0 (Endpoint; x86_64; Linux)

Registration

Example: WazuhXDR/5.0.0 (Endpoint; x86_64; Linux)

Example:

{
    "agent": {
        "groups": [],
        "host": {
            "architecture": "aarch64",
            "hostname": "tomas",
            "ip": "172.20.0.1",
            "os": {
                "name": "Ubuntu",
                "platform": "Linux"
            }
        },
        "id": "sldkfjoqwvnskdsoif",
        "key": "oiefsakjndwreoguiweo",
        "type": "Endpoint",
        "version": "5.0.0"
    }
}

Stateful/stateless requests

Authentication:

Example: WazuhXDR/5.0.0 (Endpoint; x86_64; Linux)

Example:

{ 
    "uuid": "UUID", 
    "key": "7b8276c3bf96aff5709346d368f04fed"
} 

Sateful/stateless

Example: WazuhXDR/5.0.0 (Endpoint; x86_64; Linux)

Example:

{
    "agent": {
        "groups": [],
        "host": {
            "architecture": "aarch64",
            "hostname": "tomas",
            "ip": "172.20.0.1",
            "os": {
                "name": "Ubuntu",
                "platform": "Linux"
            }
        },
        "id": "sldkfjoqwvnskdsoif",
        "type": "Endpoint",
        "version": "5.0.0"
    }
}
Nicogp commented 2 weeks ago

Work update

2024/11/05

2024/11/06

2024/11/07

2024/11/08

TomasTurina commented 2 weeks ago

PR ready for review. Pending some tests.