repository
stringclasses
528 values
commit
stringlengths
40
40
commitDate
timestamp[s]
path
stringlengths
11
149
repoStars
int64
5
94.9k
repoLastFetched
stringclasses
528 values
content
stringlengths
48
736k
license
stringclasses
14 values
language
stringclasses
7 values
DataDog/datadog-agent
2fb9282d2f325ee40c168cebc5da07cd3710e582
2022-05-13T12:06:49
pkg/security/tests/schemas/event.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "event.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "date": { "$ref": "/schemas/datetime.json" }, "evt": { "properties": { "async": { "type": "boolean" }, "category": { "type": "string" }, "name": { "type": "string" }, "outcome": { "type": "string" } }, "required": [ "name", "category", "outcome" ], "type": "object" } }, "required": [ "evt", "date" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
5f6f0ea721e01c5d670529a02d7285fb6bc90003
2022-01-27T15:28:47
pkg/security/tests/schemas/open.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "exec.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "required": [ "flags" ], "type": "object" } }, "required": [ "file" ] } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
2d5f075c8ece4bdfa33ab233afb1fe5c9c2eec27
2024-02-15T07:55:16
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "origin": { "description": "Origin of the event", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "description": "Mount ID of the source of a bind mount", "type": "integer" }, "device": { "description": "Device associated with the file", "type": "integer" }, "fs_type": { "description": "Filesystem type", "type": "string" }, "mount_id": { "description": "Mount ID of the new mount", "type": "integer" }, "mountpoint.path": { "description": "Mount point path", "type": "string" }, "mountpoint.path_error": { "description": "Mount point path error", "type": "string" }, "mp": { "$ref": "#/$defs/File", "description": "Mount point file information" }, "parent_mount_id": { "description": "Mount ID of the parent mount", "type": "integer" }, "root": { "$ref": "#/$defs/File", "description": "Root file information" }, "source.path": { "description": "Mount source path", "type": "string" }, "source.path_error": { "description": "Mount source path error", "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "event_in_profile": { "description": "True if the corresponding event is part of this profile", "type": "boolean" }, "name": { "description": "Name of the security profile", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "version", "tags", "event_in_profile" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" }, "UserSessionContext": { "additionalProperties": false, "description": "UserSessionContextSerializer serializes the user session context to JSON", "properties": { "id": { "description": "Unique identifier of the user session on the host", "type": "string" }, "k8s_extra": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "description": "Extra of the Kubernetes \"kubectl exec\" session", "type": "object" }, "k8s_groups": { "description": "Groups of the Kubernetes \"kubectl exec\" session", "items": { "type": "string" }, "type": "array" }, "k8s_uid": { "description": "UID of the Kubernetes \"kubectl exec\" session", "type": "string" }, "k8s_username": { "description": "Username of the Kubernetes \"kubectl exec\" session", "type": "string" }, "session_type": { "description": "Type of the user session", "type": "string" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
bdf3da7a268567e2112e3095188e3d0dbaa02216
2022-02-18T14:51:17
pkg/security/tests/schemas/container_event_no_file.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "container_event_no_file.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/host_event_no_file.json" }, { "$ref": "/schemas/container_context.json" } ] }
Apache-2.0
en
DataDog/datadog-agent
c438dc206a70a0d75469656ce66076985672e457
2024-05-28T13:03:19
pkg/security/tests/schemas/event.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "event.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "date": { "$ref": "/schemas/datetime.json" }, "evt": { "properties": { "async": { "type": "boolean" }, "category": { "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" }, "outcome": { "type": "string" } }, "required": [ "name", "category", "outcome" ], "type": "object" }, "syscall": { "type": "object" } }, "required": [ "evt", "date" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
76b2d8850f14e65eea1f34b5c5da803063c977e5
2021-04-16T22:09:14
pkg/security/tests/schemas/container_context.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "container_context.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "container": { "$ref": "file:///container.json" } }, "required": [ "container" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
ded01043e6063c6df7862575cf96c6c7b5776704
2021-09-30T14:37:39
pkg/security/tests/schemas/exec.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "exec.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "process": { "not": { "required": [ "exit_time" ] }, "type": "object" } } } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
5d21c7bd4793e091801303c44c45c430b6d3442d
2021-06-23T07:31:08
pkg/security/tests/schemas/exec.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "exec.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "if": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } }, "then": { "required": [ "container" ] } }, { "if": { "required": [ "container" ] }, "then": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } } } ], "anyOf": [ { "$ref": "file:///container_event.json" }, { "$ref": "file:///host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
5f95945cc5bcbefca1b654b9313362a46cab8e8f
2023-06-27T10:00:34
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "type": "integer" }, "device": { "type": "integer" }, "fs_type": { "type": "string" }, "mount_id": { "type": "integer" }, "mountpoint.path": { "type": "string" }, "mountpoint.path_error": { "type": "string" }, "mp": { "$ref": "#/$defs/File" }, "parent_mount_id": { "type": "integer" }, "root": { "$ref": "#/$defs/File" }, "source.path": { "type": "string" }, "source.path_error": { "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "name": { "description": "Name of the security profile", "type": "string" }, "status": { "description": "Status defines in which state the security profile was when the event was triggered", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "status", "version", "tags" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
2bb28e5ccc5f46642a5dd206c1d1fb70f30c59cc
2021-10-01T18:37:01
pkg/security/tests/schemas/span.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "exec.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ] }, { "$ref": "/schemas/span_context.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
9b66e3698f885e103b8cb182e5ad04eb2d2f8d81
2021-07-28T15:39:41
pkg/security/tests/schemas/selinux.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "selinux.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "if": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } }, "then": { "required": [ "container" ] } }, { "if": { "required": [ "container" ] }, "then": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } } } ], "anyOf": [ { "$ref": "file:///container_event.json" }, { "$ref": "file:///host_event.json" } ], "definitions": { "bool": { "properties": { "bool": { "properties": { "name": { "type": "string" }, "state": { "enum": [ "on", "off" ] } }, "required": [ "name", "state" ], "type": "object" } }, "required": [ "bool" ], "type": "object" }, "bool_commit": { "properties": { "bool_commit": { "properties": { "state": { "type": "boolean" } }, "required": [ "state" ], "type": "object" } }, "required": [ "bool_commit" ], "type": "object" }, "enforce": { "properties": { "enforce": { "properties": { "status": { "enum": [ "enforcing", "permissive", "disabled" ] } }, "required": [ "status" ], "type": "object" } }, "required": [ "enforce" ], "type": "object" } }, "properties": { "selinux": { "oneOf": [ { "$ref": "#/definitions/bool" }, { "$ref": "#/definitions/enforce" }, { "$ref": "#/definitions/bool_commit" } ], "type": "object" } }, "required": [ "selinux" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
d4ca694454ea10fa389ab2ebebba7fc6e1224cd1
2023-10-17T13:32:04
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "description": "Mount ID of the source of a bind mount", "type": "integer" }, "device": { "description": "Device associated with the file", "type": "integer" }, "fs_type": { "description": "Filesystem type", "type": "string" }, "mount_id": { "description": "Mount ID of the new mount", "type": "integer" }, "mountpoint.path": { "description": "Mount point path", "type": "string" }, "mountpoint.path_error": { "description": "Mount point path error", "type": "string" }, "mp": { "$ref": "#/$defs/File", "description": "Mount point file information" }, "parent_mount_id": { "description": "Mount ID of the parent mount", "type": "integer" }, "root": { "$ref": "#/$defs/File", "description": "Root file information" }, "source.path": { "description": "Mount source path", "type": "string" }, "source.path_error": { "description": "Mount source path error", "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates wether the process is an exec child of its parent", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates wether the process is an exec child of its parent", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "name": { "description": "Name of the security profile", "type": "string" }, "status": { "description": "Status defines in which state the security profile was when the event was triggered", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "status", "version", "tags" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
06da51f1a523624ca589c0cf6b20dc3d426c704a
2023-10-11T15:35:41
pkg/networkdevice/profile/profiledefinition/schema/profile_rc_schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "DeviceMeta": { "additionalProperties": false, "properties": { "vendor": { "type": "string" } }, "type": "object" }, "DeviceProfileRcConfig": { "additionalProperties": false, "properties": { "profile_definition": { "$ref": "#/$defs/ProfileDefinition" } }, "required": [ "profile_definition" ], "type": "object" }, "ListMap[string]": { "items": { "additionalProperties": false, "properties": { "key": { "type": "string" }, "value": { "type": "string" } }, "required": [ "key", "value" ], "type": "object" }, "type": "array" }, "MetricIndexTransform": { "additionalProperties": false, "properties": { "end": { "type": "integer" }, "start": { "type": "integer" } }, "required": [ "start", "end" ], "type": "object" }, "MetricTagConfig": { "additionalProperties": false, "properties": { "index": { "type": "integer" }, "index_transform": { "items": { "$ref": "#/$defs/MetricIndexTransform" }, "type": "array" }, "mapping": { "$ref": "#/$defs/ListMap[string]" }, "symbol": { "$ref": "#/$defs/SymbolConfigCompat" }, "tag": { "type": "string" } }, "required": [ "tag" ], "type": "object" }, "MetricTagConfigList": { "items": { "$ref": "#/$defs/MetricTagConfig" }, "type": "array" }, "MetricsConfig": { "additionalProperties": false, "properties": { "MIB": { "type": "string" }, "metric_tags": { "$ref": "#/$defs/MetricTagConfigList" }, "metric_type": { "type": "string" }, "symbol": { "$ref": "#/$defs/SymbolConfig" }, "symbols": { "items": { "$ref": "#/$defs/SymbolConfig" }, "type": "array" }, "table": { "$ref": "#/$defs/SymbolConfig" } }, "type": "object" }, "ProfileDefinition": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "device": { "$ref": "#/$defs/DeviceMeta" }, "extends": { "items": { "type": "string" }, "type": "array" }, "metric_tags": { "items": { "$ref": "#/$defs/MetricTagConfig" }, "type": "array" }, "metrics": { "items": { "$ref": "#/$defs/MetricsConfig" }, "type": "array" }, "name": { "type": "string" }, "static_tags": { "items": { "type": "string" }, "type": "array" }, "sysobjectid": { "$ref": "#/$defs/StringArray" } }, "required": [ "name" ], "type": "object" }, "StringArray": { "items": { "type": "string" }, "type": "array" }, "SymbolConfig": { "additionalProperties": false, "properties": { "OID": { "type": "string" }, "constant_value_one": { "type": "boolean" }, "extract_value": { "type": "string" }, "format": { "type": "string" }, "metric_type": { "type": "string" }, "name": { "type": "string" }, "scale_factor": { "type": "number" } }, "type": "object" }, "SymbolConfigCompat": { "additionalProperties": false, "properties": { "OID": { "type": "string" }, "constant_value_one": { "type": "boolean" }, "extract_value": { "type": "string" }, "format": { "type": "string" }, "metric_type": { "type": "string" }, "name": { "type": "string" }, "scale_factor": { "type": "number" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/networkdevice/profile/profiledefinition/device-profile-rc-config", "$ref": "#/$defs/DeviceProfileRcConfig", "$schema": "https://json-schema.org/draft/2020-12/schema" }
Apache-2.0
en
DataDog/datadog-agent
76b2d8850f14e65eea1f34b5c5da803063c977e5
2021-04-16T22:09:14
pkg/security/tests/schemas/process.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "process.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "dependencies": { "container": [ "executable_container_path" ], "executable_container_path": [ "container" ] }, "oneOf": [ { "properties": { "pid": { "enum": [ 1 ], "type": "integer" } }, "required": [ "pid" ] }, { "properties": { "pid": { "minimum": 2, "type": "integer" }, "ppid": { "type": "integer" } }, "required": [ "pid", "ppid" ] } ], "properties": { "comm": { "type": "string" }, "container": { "$ref": "file:///container.json" }, "credentials": { "properties": { "cap_effective": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "cap_permitted": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "egid": { "type": "integer" }, "egroup": { "type": "string" }, "euid": { "type": "integer" }, "euser": { "type": "string" }, "fsgid": { "type": "integer" }, "fsgroup": { "type": "string" }, "fsuid": { "type": "integer" }, "fsuser": { "type": "string" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "uid", "gid", "euid", "euser", "egid", "egroup", "fsuid", "fsuser", "fsgid", "fsgroup", "cap_effective", "cap_permitted" ], "type": "object" }, "executable": { "properties": { "change_time": { "type": "string" }, "container_path": { "$ref": "file:///container_path.json" }, "filesystem": { "type": "string" }, "gid": { "type": "integer" }, "inode": { "type": "integer" }, "mode": { "type": "integer" }, "modification_time": { "type": "string" }, "mount_id": { "type": "integer" }, "name": { "type": "string" }, "path": { "type": "string" }, "uid": { "type": "integer" } }, "required": [ "path", "name", "inode", "mode", "mount_id", "filesystem", "uid", "gid", "modification_time", "change_time" ], "type": "object" }, "executable_container_path": { "$ref": "file:///container_path.json" }, "executable_inode": { "type": "integer" }, "executable_mount_id": { "type": "integer" }, "executable_path": { "type": "string" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "tid": { "type": "integer" }, "tty": { "type": "string" }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "tid", "uid", "gid", "executable_path", "comm", "executable_inode", "executable_mount_id", "credentials", "executable" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
cf4d890a358642480fd23b55ea01ab1247b41570
2022-06-03T13:19:21
pkg/security/tests/schemas/signal.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "signal.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "date": { "$ref": "/schemas/datetime.json" } }, { "properties": { "signal": { "properties": { "pid": { "type": "integer" }, "target": { "$ref": "/schemas/process.json" }, "type": { "type": "string" } }, "required": [ "type", "pid", "target" ], "type": "object" } } } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
bdf3da7a268567e2112e3095188e3d0dbaa02216
2022-02-18T14:51:17
pkg/security/tests/schemas/host_event_no_file.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "host_event_no_file.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "date": { "$ref": "/schemas/datetime.json" } } ] }
Apache-2.0
en
DataDog/datadog-agent
76b2d8850f14e65eea1f34b5c5da803063c977e5
2021-04-16T22:09:14
pkg/security/tests/schemas/file.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "file.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "file": { "properties": { "change_time": { "type": "string" }, "container_path": { "$ref": "file:///container_path.json" }, "filesystem": { "type": "string" }, "group": { "type": "string" }, "inode": { "type": "integer" }, "mode": { "type": "integer" }, "modification_time": { "type": "string" }, "mount_id": { "type": "integer" }, "name": { "type": "string" }, "path": { "type": "string" }, "user": { "type": "string" } }, "required": [ "path", "name", "inode", "mode", "mount_id", "filesystem", "user", "group", "modification_time", "change_time" ], "type": "object" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
76b2d8850f14e65eea1f34b5c5da803063c977e5
2021-04-16T22:09:14
pkg/security/tests/schemas/process_context.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "process_context.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "process": { "allOf": [ { "$ref": "file:///process.json" }, { "properties": { "ancestors": { "items": { "$ref": "file:///process.json" }, "type": "array" }, "container": { "$ref": "file:///container.json" }, "parent": { "$ref": "file:///process.json" } }, "required": [ "parent", "ancestors" ] } ] } }, "required": [ "process" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
9d9a14eb4309792a233be5907c97a9b307bdd203
2024-02-14T19:32:15
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "origin": { "description": "Origin of the event", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "description": "Mount ID of the source of a bind mount", "type": "integer" }, "device": { "description": "Device associated with the file", "type": "integer" }, "fs_type": { "description": "Filesystem type", "type": "string" }, "mount_id": { "description": "Mount ID of the new mount", "type": "integer" }, "mountpoint.path": { "description": "Mount point path", "type": "string" }, "mountpoint.path_error": { "description": "Mount point path error", "type": "string" }, "mp": { "$ref": "#/$defs/File", "description": "Mount point file information" }, "parent_mount_id": { "description": "Mount ID of the parent mount", "type": "integer" }, "root": { "$ref": "#/$defs/File", "description": "Root file information" }, "source.path": { "description": "Mount source path", "type": "string" }, "source.path_error": { "description": "Mount source path error", "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "event_in_profile": { "description": "True if the corresponding event is part of this profile", "type": "boolean" }, "name": { "description": "Name of the security profile", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "version", "tags", "event_in_profile" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" }, "UserSessionContext": { "additionalProperties": false, "description": "UserSessionContextSerializer serializes the user session context to JSON", "properties": { "id": { "description": "Unique identifier of the user session on the host", "type": "string" }, "k8s_extra": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "description": "Extra of the Kubernetes \"kubectl exec\" session", "type": "object" }, "k8s_groups": { "description": "Groups of the Kubernetes \"kubectl exec\" session", "items": { "type": "string" }, "type": "array" }, "k8s_uid": { "description": "UID of the Kubernetes \"kubectl exec\" session", "type": "string" }, "k8s_username": { "description": "Username of the Kubernetes \"kubectl exec\" session", "type": "string" }, "session_type": { "description": "Type of the user session", "type": "string" } }, "type": "object" }, "Variables": { "description": "Variables serializes the variable values", "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
ad028547ddf6bd81dbbd3b6635638a6ae7c18a15
2023-10-27T09:22:54
pkg/networkdevice/profile/profiledefinition/schema/profile_rc_schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "DeviceMeta": { "additionalProperties": false, "properties": { "vendor": { "type": "string" } }, "type": "object" }, "DeviceProfileRcConfig": { "additionalProperties": false, "properties": { "profile_definition": { "$ref": "#/$defs/ProfileDefinition" } }, "required": [ "profile_definition" ], "type": "object" }, "ListMap[string]": { "items": { "additionalProperties": false, "properties": { "key": { "type": "string" }, "value": { "type": "string" } }, "required": [ "key", "value" ], "type": "object" }, "type": "array" }, "MetricIndexTransform": { "additionalProperties": false, "properties": { "end": { "type": "integer" }, "start": { "type": "integer" } }, "required": [ "start", "end" ], "type": "object" }, "MetricTagConfig": { "additionalProperties": false, "properties": { "index": { "type": "integer" }, "index_transform": { "items": { "$ref": "#/$defs/MetricIndexTransform" }, "type": "array" }, "mapping": { "$ref": "#/$defs/ListMap[string]" }, "symbol": { "$ref": "#/$defs/SymbolConfigCompat" }, "tag": { "type": "string" } }, "required": [ "tag" ], "type": "object" }, "MetricTagConfigList": { "items": { "$ref": "#/$defs/MetricTagConfig" }, "type": "array" }, "MetricsConfig": { "additionalProperties": false, "properties": { "MIB": { "type": "string" }, "metric_tags": { "$ref": "#/$defs/MetricTagConfigList" }, "metric_type": { "type": "string" }, "symbol": { "$ref": "#/$defs/SymbolConfig" }, "symbols": { "items": { "$ref": "#/$defs/SymbolConfig" }, "type": "array" }, "table": { "$ref": "#/$defs/SymbolConfig" } }, "type": "object" }, "ProfileDefinition": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "device": { "$ref": "#/$defs/DeviceMeta" }, "extends": { "items": { "type": "string" }, "type": "array" }, "metric_tags": { "items": { "$ref": "#/$defs/MetricTagConfig" }, "type": "array" }, "metrics": { "items": { "$ref": "#/$defs/MetricsConfig" }, "type": "array" }, "name": { "type": "string" }, "static_tags": { "items": { "type": "string" }, "type": "array" }, "sysobjectid": { "$ref": "#/$defs/StringArray" }, "version": { "type": "integer" } }, "required": [ "name", "version" ], "type": "object" }, "StringArray": { "items": { "type": "string" }, "type": "array" }, "SymbolConfig": { "additionalProperties": false, "properties": { "OID": { "type": "string" }, "constant_value_one": { "type": "boolean" }, "extract_value": { "type": "string" }, "format": { "type": "string" }, "metric_type": { "type": "string" }, "name": { "type": "string" }, "scale_factor": { "type": "number" } }, "type": "object" }, "SymbolConfigCompat": { "additionalProperties": false, "properties": { "OID": { "type": "string" }, "constant_value_one": { "type": "boolean" }, "extract_value": { "type": "string" }, "format": { "type": "string" }, "metric_type": { "type": "string" }, "name": { "type": "string" }, "scale_factor": { "type": "number" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/networkdevice/profile/profiledefinition/device-profile-rc-config", "$ref": "#/$defs/DeviceProfileRcConfig", "$schema": "https://json-schema.org/draft/2020-12/schema" }
Apache-2.0
en
DataDog/datadog-agent
7dc3a9b2d4bbfd8d0db7b4ef45e9055df6959592
2021-05-28T17:27:42
pkg/security/tests/schemas/exec.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "exec.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "if": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } }, "then": { "required": [ "container" ] } }, { "if": { "required": [ "container" ] }, "then": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } } } ], "anyOf": [ { "$ref": "file:///container_event.json" }, { "$ref": "file:///host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
df5e952e8913cdb902eede93b660b1ed805f64f3
2021-07-01T10:56:01
pkg/security/tests/schemas/exec.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "exec.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "anyOf": [ { "$ref": "file:///container_event.json" }, { "$ref": "file:///host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
ded01043e6063c6df7862575cf96c6c7b5776704
2021-09-30T14:37:39
pkg/security/tests/schemas/chown.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "chown.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "required": [ "destination" ], "type": "object" } } } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
186d25a97d5a4eb2eef9a7d5006d88ef24795d39
2022-03-24T16:40:36
pkg/security/tests/schemas/network.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "network.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "network": { "properties": { "destination": { "properties": { "ip": { "type": "string" }, "port": { "type": "number" } }, "required": [ "ip", "port" ], "type": "object" }, "device": { "properties": { "ifindex": { "type": "number" }, "ifname": { "type": "string" }, "netns": { "type": "number" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "l3_protocol": { "type": "string" }, "l4_protocol": { "type": "string" }, "size": { "type": "number" }, "source": { "properties": { "ip": { "type": "string" }, "port": { "type": "number" } }, "required": [ "ip", "port" ], "type": "object" } }, "required": [ "device", "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
7cd0047e87f7969055391204c8068bc843d1bbe6
2024-02-27T10:13:40
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "origin": { "description": "Origin of the event", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "description": "Mount ID of the source of a bind mount", "type": "integer" }, "device": { "description": "Device associated with the file", "type": "integer" }, "fs_type": { "description": "Filesystem type", "type": "string" }, "mount_id": { "description": "Mount ID of the new mount", "type": "integer" }, "mountpoint.path": { "description": "Mount point path", "type": "string" }, "mountpoint.path_error": { "description": "Mount point path error", "type": "string" }, "mp": { "$ref": "#/$defs/File", "description": "Mount point file information" }, "parent_mount_id": { "description": "Mount ID of the parent mount", "type": "integer" }, "root": { "$ref": "#/$defs/File", "description": "Root file information" }, "source.path": { "description": "Mount source path", "type": "string" }, "source.path_error": { "description": "Mount source path error", "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "event_in_profile": { "description": "True if the corresponding event is part of this profile", "type": "boolean" }, "name": { "description": "Name of the security profile", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "version", "tags", "event_in_profile" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" }, "UserSessionContext": { "additionalProperties": false, "description": "UserSessionContextSerializer serializes the user session context to JSON", "properties": { "id": { "description": "Unique identifier of the user session on the host", "type": "string" }, "k8s_extra": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "description": "Extra of the Kubernetes \"kubectl exec\" session", "type": "object" }, "k8s_groups": { "description": "Groups of the Kubernetes \"kubectl exec\" session", "items": { "type": "string" }, "type": "array" }, "k8s_uid": { "description": "UID of the Kubernetes \"kubectl exec\" session", "type": "string" }, "k8s_username": { "description": "Username of the Kubernetes \"kubectl exec\" session", "type": "string" }, "session_type": { "description": "Type of the user session", "type": "string" } }, "type": "object" }, "Variables": { "description": "Variables serializes the variable values", "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/tree/main/pkg/security/serializers", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
ded01043e6063c6df7862575cf96c6c7b5776704
2021-09-30T14:37:39
pkg/security/tests/schemas/container_event.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "container_event.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/host_event.json" }, { "$ref": "/schemas/container_context.json" } ] }
Apache-2.0
en
DataDog/datadog-agent
b12f96f63cac9a26e2deb1642167d84ff56f9b13
2024-02-27T10:47:54
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "description": "Mount ID of the source of a bind mount", "type": "integer" }, "device": { "description": "Device associated with the file", "type": "integer" }, "fs_type": { "description": "Filesystem type", "type": "string" }, "mount_id": { "description": "Mount ID of the new mount", "type": "integer" }, "mountpoint.path": { "description": "Mount point path", "type": "string" }, "mountpoint.path_error": { "description": "Mount point path error", "type": "string" }, "mp": { "$ref": "#/$defs/File", "description": "Mount point file information" }, "parent_mount_id": { "description": "Mount ID of the parent mount", "type": "integer" }, "root": { "$ref": "#/$defs/File", "description": "Root file information" }, "source.path": { "description": "Mount source path", "type": "string" }, "source.path_error": { "description": "Mount source path error", "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "event_in_profile": { "description": "True if the corresponding event is part of this profile", "type": "boolean" }, "name": { "description": "Name of the security profile", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "version", "tags", "event_in_profile" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" }, "UserSessionContext": { "additionalProperties": false, "description": "UserSessionContextSerializer serializes the user session context to JSON", "properties": { "id": { "description": "Unique identifier of the user session on the host", "type": "string" }, "k8s_extra": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "description": "Extra of the Kubernetes \"kubectl exec\" session", "type": "object" }, "k8s_groups": { "description": "Groups of the Kubernetes \"kubectl exec\" session", "items": { "type": "string" }, "type": "array" }, "k8s_uid": { "description": "UID of the Kubernetes \"kubectl exec\" session", "type": "string" }, "k8s_username": { "description": "Username of the Kubernetes \"kubectl exec\" session", "type": "string" }, "session_type": { "description": "Type of the user session", "type": "string" } }, "type": "object" }, "Variables": { "description": "Variables serializes the variable values", "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/tree/main/pkg/security/serializers", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
35671c28f1f01d35e914f3e08c53d957d0c790a2
2022-02-16T16:16:01
pkg/security/tests/schemas/bpf.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "bpf.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "date": { "$ref": "/schemas/datetime.json" } }, { "properties": { "bpf": { "properties": { "cmd": { "type": "string" }, "map": { "properties": { "map_type": { "type": "string" }, "name": { "type": "string" } }, "required": [ "name", "map_type" ], "type": "object" }, "prog": { "properties": { "attach_type": { "type": "string" }, "name": { "type": "string" }, "program_type": { "type": "string" }, "tag": { "type": "string" } }, "required": [ "name", "tag", "program_type", "attach_type" ], "type": "object" } }, "required": [ "cmd" ], "type": "object" } }, "required": [ "bpf" ] } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
5f6f0ea721e01c5d670529a02d7285fb6bc90003
2022-01-27T15:28:47
pkg/security/tests/schemas/chown.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "chown.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "required": [ "destination" ], "type": "object" } }, "required": [ "file" ] } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
7dc3a9b2d4bbfd8d0db7b4ef45e9055df6959592
2021-05-28T17:27:42
pkg/security/tests/schemas/datetime.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "datetime.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}", "type": "string" }, { "not": { "pattern": "^0001-01-01", "type": "string" } } ] }
Apache-2.0
en
DataDog/datadog-agent
5f6f0ea721e01c5d670529a02d7285fb6bc90003
2022-01-27T15:28:47
pkg/security/tests/schemas/mprotect.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "mprotect.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "date": { "$ref": "/schemas/datetime.json" } }, { "properties": { "mprotect": { "properties": { "req_protection": { "type": "string" }, "vm_end": { "type": "string" }, "vm_protection": { "type": "string" }, "vm_start": { "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "new_protection" ], "type": "object" } }, "required": [ "mprotect" ] } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
a0ac42a12752518922a413c4cab2f87788107937
2023-05-10T08:42:40
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "name": { "description": "Event name", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "group_id": { "description": "Group ID", "type": "integer" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "type": "integer" }, "device": { "type": "integer" }, "fs_type": { "type": "string" }, "group_id": { "type": "integer" }, "mount_id": { "type": "integer" }, "mountpoint.path": { "type": "string" }, "mountpoint.path_error": { "type": "string" }, "mp": { "$ref": "#/$defs/File" }, "parent_mount_id": { "type": "integer" }, "root": { "$ref": "#/$defs/File" }, "source.path": { "type": "string" }, "source.path_error": { "type": "string" } }, "required": [ "mount_id", "group_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "name": { "description": "Name of the security profile", "type": "string" }, "status": { "description": "Status defines in which state the security profile was when the event was triggered", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "status", "version", "tags" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
b7f11bbffa4f1bab1d2447a25274f075e75b7ed4
2024-02-15T11:42:20
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "origin": { "description": "Origin of the event", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "description": "Mount ID of the source of a bind mount", "type": "integer" }, "device": { "description": "Device associated with the file", "type": "integer" }, "fs_type": { "description": "Filesystem type", "type": "string" }, "mount_id": { "description": "Mount ID of the new mount", "type": "integer" }, "mountpoint.path": { "description": "Mount point path", "type": "string" }, "mountpoint.path_error": { "description": "Mount point path error", "type": "string" }, "mp": { "$ref": "#/$defs/File", "description": "Mount point file information" }, "parent_mount_id": { "description": "Mount ID of the parent mount", "type": "integer" }, "root": { "$ref": "#/$defs/File", "description": "Root file information" }, "source.path": { "description": "Mount source path", "type": "string" }, "source.path_error": { "description": "Mount source path error", "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "event_in_profile": { "description": "True if the corresponding event is part of this profile", "type": "boolean" }, "name": { "description": "Name of the security profile", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "version", "tags", "event_in_profile" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" }, "UserSessionContext": { "additionalProperties": false, "description": "UserSessionContextSerializer serializes the user session context to JSON", "properties": { "id": { "description": "Unique identifier of the user session on the host", "type": "string" }, "k8s_extra": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "description": "Extra of the Kubernetes \"kubectl exec\" session", "type": "object" }, "k8s_groups": { "description": "Groups of the Kubernetes \"kubectl exec\" session", "items": { "type": "string" }, "type": "array" }, "k8s_uid": { "description": "UID of the Kubernetes \"kubectl exec\" session", "type": "string" }, "k8s_username": { "description": "Username of the Kubernetes \"kubectl exec\" session", "type": "string" }, "session_type": { "description": "Type of the user session", "type": "string" } }, "type": "object" }, "Variables": { "description": "Variables serializes the variable values", "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
dda69fe3b24e953456027e55abf65f82f45016d4
2023-09-19T09:56:09
pkg/networkdevice/profile/profiledefinition/schema/profile_rc_schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "DeviceProfileRcConfig": { "additionalProperties": false, "properties": { "profile_definition": { "$ref": "#/$defs/ProfileDefinition" } }, "required": [ "profile_definition" ], "type": "object" }, "MetadataConfig": { "additionalProperties": { "$ref": "#/$defs/MetadataResourceConfig" }, "type": "object" }, "MetadataField": { "additionalProperties": false, "properties": { "symbol": { "$ref": "#/$defs/SymbolConfig" }, "symbols": { "items": { "$ref": "#/$defs/SymbolConfig" }, "type": "array" }, "value": { "type": "string" } }, "type": "object" }, "MetadataResourceConfig": { "additionalProperties": false, "properties": { "fields": { "additionalProperties": { "$ref": "#/$defs/MetadataField" }, "type": "object" }, "id_tags": { "$ref": "#/$defs/MetricTagConfigList" } }, "required": [ "fields" ], "type": "object" }, "MetricIndexTransform": { "additionalProperties": false, "properties": { "end": { "type": "integer" }, "start": { "type": "integer" } }, "required": [ "start", "end" ], "type": "object" }, "MetricTagConfig": { "additionalProperties": false, "properties": { "OID": { "type": "string" }, "column": { "$ref": "#/$defs/SymbolConfig" }, "index": { "type": "integer" }, "index_transform": { "items": { "$ref": "#/$defs/MetricIndexTransform" }, "type": "array" }, "mapping": { "additionalProperties": { "type": "string" }, "type": "object" }, "match": { "type": "string" }, "symbol": { "type": "string" }, "tag": { "type": "string" }, "tags": { "additionalProperties": { "type": "string" }, "type": "object" } }, "required": [ "tag" ], "type": "object" }, "MetricTagConfigList": { "items": { "$ref": "#/$defs/MetricTagConfig" }, "type": "array" }, "MetricsConfig": { "additionalProperties": false, "properties": { "metric_tags": { "$ref": "#/$defs/MetricTagConfigList" }, "metric_type": { "type": "string" }, "options": { "$ref": "#/$defs/MetricsConfigOption" }, "static_tags": { "items": { "type": "string" }, "type": "array" }, "symbol": { "$ref": "#/$defs/SymbolConfig" }, "symbols": { "items": { "$ref": "#/$defs/SymbolConfig" }, "type": "array" } }, "type": "object" }, "MetricsConfigOption": { "additionalProperties": false, "properties": { "metric_suffix": { "type": "string" }, "placement": { "type": "integer" } }, "type": "object" }, "ProfileDefinition": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "extends": { "items": { "type": "string" }, "type": "array" }, "metadata": { "$ref": "#/$defs/MetadataConfig" }, "metric_tags": { "items": { "$ref": "#/$defs/MetricTagConfig" }, "type": "array" }, "metrics": { "items": { "$ref": "#/$defs/MetricsConfig" }, "type": "array" }, "name": { "type": "string" }, "static_tags": { "items": { "type": "string" }, "type": "array" }, "sysobjectid": { "$ref": "#/$defs/StringArray" } }, "required": [ "name" ], "type": "object" }, "StringArray": { "items": { "type": "string" }, "type": "array" }, "SymbolConfig": { "additionalProperties": false, "properties": { "OID": { "type": "string" }, "constant_value_one": { "type": "boolean" }, "extract_value": { "type": "string" }, "format": { "type": "string" }, "match_pattern": { "type": "string" }, "match_value": { "type": "string" }, "metric_type": { "type": "string" }, "name": { "type": "string" }, "scale_factor": { "type": "number" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/networkdevice/profile/profiledefinition/device-profile-rc-config", "$ref": "#/$defs/DeviceProfileRcConfig", "$schema": "https://json-schema.org/draft/2020-12/schema" }
Apache-2.0
en
DataDog/datadog-agent
5f6f0ea721e01c5d670529a02d7285fb6bc90003
2022-01-27T15:28:47
pkg/security/tests/schemas/ptrace.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "mprotect.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "date": { "$ref": "/schemas/datetime.json" } }, { "properties": { "ptrace": { "properties": { "address": { "type": "string" }, "request": { "type": "string" }, "tracee": { "$ref": "/schemas/process.json" } }, "required": [ "request" ], "type": "object" } }, "required": [ "ptrace" ] } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
7dc3a9b2d4bbfd8d0db7b4ef45e9055df6959592
2021-05-28T17:27:42
pkg/security/tests/schemas/container_event.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "container_event.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "file:///host_event.json" }, { "$ref": "file:///container_context.json" } ] }
Apache-2.0
en
DataDog/datadog-agent
59c183b60b11fa1f989f31b6b5e0df55d65385b7
2023-12-07T17:38:51
pkg/security/tests/schemas/event.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "event.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "date": { "$ref": "/schemas/datetime.json" }, "evt": { "properties": { "async": { "type": "boolean" }, "category": { "type": "string" }, "name": { "type": "string" }, "origin": { "type": "string" }, "outcome": { "type": "string" } }, "required": [ "name", "category", "outcome" ], "type": "object" } }, "required": [ "evt", "date" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
ded01043e6063c6df7862575cf96c6c7b5776704
2021-09-30T14:37:39
pkg/security/tests/schemas/container_context.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "container_context.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "container": { "$ref": "/schemas/container.json" } }, "required": [ "container" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
5f6f0ea721e01c5d670529a02d7285fb6bc90003
2022-01-27T15:28:47
pkg/security/tests/schemas/rename.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "rename.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "properties": { "destination": { "$ref": "/schemas/file.json" } }, "required": [ "destination" ], "type": "object" } }, "required": [ "file" ] } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
df5e952e8913cdb902eede93b660b1ed805f64f3
2021-07-01T10:56:01
pkg/security/tests/schemas/open.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "exec.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "required": [ "destination" ], "type": "object" } } }, { "properties": { "file": { "required": [ "flags" ], "type": "object" } } } ], "anyOf": [ { "$ref": "file:///container_event.json" }, { "$ref": "file:///host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
a65179f0a341ec81fda9290b25a54d23f80c9d29
2024-01-05T11:43:34
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "origin": { "description": "Origin of the event", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" }, "suppressed": { "description": "True if the event has been suppressed", "type": "boolean" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "description": "Mount ID of the source of a bind mount", "type": "integer" }, "device": { "description": "Device associated with the file", "type": "integer" }, "fs_type": { "description": "Filesystem type", "type": "string" }, "mount_id": { "description": "Mount ID of the new mount", "type": "integer" }, "mountpoint.path": { "description": "Mount point path", "type": "string" }, "mountpoint.path_error": { "description": "Mount point path error", "type": "string" }, "mp": { "$ref": "#/$defs/File", "description": "Mount point file information" }, "parent_mount_id": { "description": "Mount ID of the parent mount", "type": "integer" }, "root": { "$ref": "#/$defs/File", "description": "Root file information" }, "source.path": { "description": "Mount source path", "type": "string" }, "source.path_error": { "description": "Mount source path error", "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates wether the process is an exec child of its parent", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates wether the process is an exec child of its parent", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "name": { "description": "Name of the security profile", "type": "string" }, "status": { "description": "Status defines in which state the security profile was when the event was triggered", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "status", "version", "tags" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" }, "UserSessionContext": { "additionalProperties": false, "description": "UserSessionContextSerializer serializes the user session context to JSON", "properties": { "id": { "description": "Unique identifier of the user session on the host", "type": "string" }, "k8s_extra": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "description": "Extra of the Kubernetes \"kubectl exec\" session", "type": "object" }, "k8s_groups": { "description": "Groups of the Kubernetes \"kubectl exec\" session", "items": { "type": "string" }, "type": "array" }, "k8s_uid": { "description": "UID of the Kubernetes \"kubectl exec\" session", "type": "string" }, "k8s_username": { "description": "Username of the Kubernetes \"kubectl exec\" session", "type": "string" }, "session_type": { "description": "Type of the user session", "type": "string" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
2cbbed984fd66ef9bc20babefe2a11e2a1d2f7f1
2023-11-09T23:42:37
pkg/security/tests/schemas/user_session_context.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "user_session_context.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "process": { "required": [ "user_session" ], "type": "object", "user_session": { "id": { "type": "integer" }, "k8s_extra": { "type": "object" }, "k8s_groups": { "type": "array" }, "k8s_uid": { "type": "string" }, "k8s_username": { "type": "string" }, "required": [ "id", "k8s_username", "k8s_uid", "k8s_groups", "k8s_extra" ], "type": "object" } } }, "required": [ "process" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
186d25a97d5a4eb2eef9a7d5006d88ef24795d39
2022-03-24T16:40:36
pkg/security/tests/schemas/dns.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "dns.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "$ref": "/schemas/network.json" }, { "date": { "$ref": "/schemas/datetime.json" } }, { "properties": { "dns": { "properties": { "id": { "type": "number" }, "question": { "properties": { "class": { "type": "string" }, "count": { "type": "number" }, "name": { "type": "string" }, "size": { "type": "number" }, "type": { "type": "string" } }, "required": [ "count", "class", "type", "size", "name" ], "type": "object" } }, "required": [ "id" ], "type": "object" } } } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
5d21c7bd4793e091801303c44c45c430b6d3442d
2021-06-23T07:31:08
pkg/security/tests/schemas/chmod.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "chmod.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "if": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } }, "then": { "required": [ "container" ] } }, { "if": { "required": [ "container" ] }, "then": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } } }, { "properties": { "file": { "properties": { "destination": { "required": [ "mode" ], "type": "object" } }, "required": [ "destination" ], "type": "object" } } } ], "anyOf": [ { "$ref": "file:///container_event.json" }, { "$ref": "file:///host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
3d2fc0ca5e195bf5882e8b685a7520d8267a003f
2024-05-21T12:50:28
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AgentContext": { "additionalProperties": false, "properties": { "arch": { "type": "string" }, "origin": { "type": "string" }, "os": { "type": "string" }, "policy_name": { "type": "string" }, "policy_version": { "type": "string" }, "rule_actions": { "items": true, "type": "array" }, "rule_id": { "type": "string" }, "rule_version": { "type": "string" }, "version": { "type": "string" } }, "required": [ "rule_id" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "description": "Mount ID of the source of a bind mount", "type": "integer" }, "device": { "description": "Device associated with the file", "type": "integer" }, "fs_type": { "description": "Filesystem type", "type": "string" }, "mount_id": { "description": "Mount ID of the new mount", "type": "integer" }, "mountpoint.path": { "description": "Mount point path", "type": "string" }, "mountpoint.path_error": { "description": "Mount point path error", "type": "string" }, "mp": { "$ref": "#/$defs/File", "description": "Mount point file information" }, "parent_mount_id": { "description": "Mount ID of the parent mount", "type": "integer" }, "root": { "$ref": "#/$defs/File", "description": "Root file information" }, "source.path": { "description": "Mount source path", "type": "string" }, "source.path_error": { "description": "Mount source path error", "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "syscalls": { "$ref": "#/$defs/SyscallsEvent", "description": "List of syscalls captured to generate the event" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "syscalls": { "$ref": "#/$defs/SyscallsEvent", "description": "List of syscalls captured to generate the event" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "event_in_profile": { "description": "True if the corresponding event is part of this profile", "type": "boolean" }, "name": { "description": "Name of the security profile", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "version", "tags", "event_in_profile" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "Syscall": { "additionalProperties": false, "description": "SyscallSerializer serializes a syscall", "properties": { "id": { "description": "ID of the syscall in the host architecture", "type": "integer" }, "name": { "description": "Name of the syscall", "type": "string" } }, "required": [ "name", "id" ], "type": "object" }, "SyscallsEvent": { "description": "SyscallsEventSerializer serializes the syscalls from a syscalls event", "items": { "$ref": "#/$defs/Syscall" }, "type": "array" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" }, "UserSessionContext": { "additionalProperties": false, "description": "UserSessionContextSerializer serializes the user session context to JSON", "properties": { "id": { "description": "Unique identifier of the user session on the host", "type": "string" }, "k8s_extra": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "description": "Extra of the Kubernetes \"kubectl exec\" session", "type": "object" }, "k8s_groups": { "description": "Groups of the Kubernetes \"kubectl exec\" session", "items": { "type": "string" }, "type": "array" }, "k8s_uid": { "description": "UID of the Kubernetes \"kubectl exec\" session", "type": "string" }, "k8s_username": { "description": "Username of the Kubernetes \"kubectl exec\" session", "type": "string" }, "session_type": { "description": "Type of the user session", "type": "string" } }, "type": "object" }, "Variables": { "description": "Variables serializes the variable values", "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/tree/main/pkg/security/serializers", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "agent": { "$ref": "#/$defs/AgentContext" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "syscalls": { "$ref": "#/$defs/SyscallsEvent" }, "title": { "type": "string" }, "usr": { "$ref": "#/$defs/UserContext" } }, "required": [ "agent", "title" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
75a97cf5fa9bf8d105ce7bed4eea79aab5a09e34
2023-04-07T13:39:08
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "name": { "description": "Event name", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "group_id": { "description": "Group ID", "type": "integer" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "type": "integer" }, "device": { "type": "integer" }, "fs_type": { "type": "string" }, "group_id": { "type": "integer" }, "mount_id": { "type": "integer" }, "mountpoint.path": { "type": "string" }, "mountpoint.path_error": { "type": "string" }, "mp": { "$ref": "#/$defs/File" }, "parent_mount_id": { "type": "integer" }, "root": { "$ref": "#/$defs/File" }, "source.path": { "type": "string" }, "source.path_error": { "type": "string" } }, "required": [ "mount_id", "group_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "name": { "description": "Name of the security profile", "type": "string" }, "status": { "description": "Status defines in which state the security profile was when the event was triggered", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "status", "version", "tags" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
ded01043e6063c6df7862575cf96c6c7b5776704
2021-09-30T14:37:39
pkg/security/tests/schemas/host_event.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "host_event.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "file": { "$ref": "/schemas/file.json" } }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "date": { "$ref": "/schemas/datetime.json" } } ] }
Apache-2.0
en
DataDog/datadog-agent
ded01043e6063c6df7862575cf96c6c7b5776704
2021-09-30T14:37:39
pkg/security/tests/schemas/process_context.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "process_context.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "process": { "allOf": [ { "$ref": "/schemas/process.json" }, { "properties": { "ancestors": { "items": { "$ref": "/schemas/process.json" }, "type": "array" }, "container": { "$ref": "/schemas/container.json" }, "parent": { "$ref": "/schemas/process.json" } }, "required": [ "parent", "ancestors" ] } ] } }, "required": [ "process" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
5d21c7bd4793e091801303c44c45c430b6d3442d
2021-06-23T07:31:08
pkg/security/tests/schemas/process.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "process.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "dependencies": { "container": [ "executable_container_path" ], "executable_container_path": [ "container" ] }, "oneOf": [ { "properties": { "pid": { "enum": [ 1 ], "type": "integer" } }, "required": [ "pid" ] }, { "properties": { "pid": { "minimum": 2, "type": "integer" }, "ppid": { "type": "integer" } }, "required": [ "pid", "ppid" ] } ], "properties": { "comm": { "type": "string" }, "container": { "$ref": "file:///container.json" }, "credentials": { "properties": { "cap_effective": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "cap_permitted": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "egid": { "type": "integer" }, "egroup": { "type": "string" }, "euid": { "type": "integer" }, "euser": { "type": "string" }, "fsgid": { "type": "integer" }, "fsgroup": { "type": "string" }, "fsuid": { "type": "integer" }, "fsuser": { "type": "string" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "exec_time": { "$ref": "file:///datetime.json" }, "executable": { "properties": { "change_time": { "$ref": "file:///datetime.json" }, "container_path": { "$ref": "file:///container_path.json" }, "filesystem": { "type": "string" }, "gid": { "type": "integer" }, "inode": { "type": "integer" }, "mode": { "type": "integer" }, "modification_time": { "$ref": "file:///datetime.json" }, "mount_id": { "type": "integer" }, "name": { "type": "string" }, "path": { "type": "string" }, "uid": { "type": "integer" } }, "required": [ "path", "name", "inode", "mode", "mount_id", "filesystem", "uid", "gid", "modification_time", "change_time" ], "type": "object" }, "executable_container_path": { "$ref": "file:///container_path.json" }, "executable_inode": { "type": "integer" }, "executable_mount_id": { "type": "integer" }, "executable_path": { "type": "string" }, "fork_time": { "$ref": "file:///datetime.json" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "tid": { "type": "integer" }, "tty": { "allOf": [ { "type": "string" }, { "not": { "enum": [ "null" ], "type": "string" } } ] }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "tid", "uid", "gid", "executable_path", "comm", "executable_inode", "executable_mount_id", "credentials", "executable" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
ded01043e6063c6df7862575cf96c6c7b5776704
2021-09-30T14:37:39
pkg/security/tests/schemas/chmod.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "chmod.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "properties": { "destination": { "required": [ "mode" ], "type": "object" } }, "required": [ "destination" ], "type": "object" } } } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
0c6d1c108743e41f1020235f7a13a3fcccd644f7
2022-01-07T16:36:42
pkg/security/tests/schemas/ptrace.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "mprotect.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "date": { "$ref": "/schemas/datetime.json" } }, { "properties": { "bpf": { "properties": { "address": { "type": "string" }, "request": { "type": "string" }, "tracee": { "$ref": "/schemas/process_context.json" } }, "required": [ "request" ], "type": "object" } } } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
bdf3da7a268567e2112e3095188e3d0dbaa02216
2022-02-18T14:51:17
pkg/security/tests/schemas/unload_module.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "delete_module.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "module": { "properties": { "name": { "type": "string" } }, "required": [ "name" ], "type": "object" } } } ], "anyOf": [ { "$ref": "/schemas/container_event_no_file.json" }, { "$ref": "/schemas/host_event_no_file.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
7dc3a9b2d4bbfd8d0db7b4ef45e9055df6959592
2021-05-28T17:27:42
pkg/security/tests/schemas/process.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "process.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "dependencies": { "container": [ "executable_container_path" ], "executable_container_path": [ "container" ] }, "oneOf": [ { "properties": { "pid": { "enum": [ 1 ], "type": "integer" } }, "required": [ "pid" ] }, { "properties": { "pid": { "minimum": 2, "type": "integer" }, "ppid": { "type": "integer" } }, "required": [ "pid", "ppid" ] } ], "properties": { "comm": { "type": "string" }, "container": { "$ref": "file:///container.json" }, "credentials": { "properties": { "cap_effective": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "cap_permitted": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "egid": { "type": "integer" }, "egroup": { "type": "string" }, "euid": { "type": "integer" }, "euser": { "type": "string" }, "fsgid": { "type": "integer" }, "fsgroup": { "type": "string" }, "fsuid": { "type": "integer" }, "fsuser": { "type": "string" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "uid", "gid", "euid", "euser", "egid", "egroup", "fsuid", "fsuser", "fsgid", "fsgroup", "cap_effective", "cap_permitted" ], "type": "object" }, "exec_time": { "$ref": "file:///datetime.json" }, "executable": { "properties": { "change_time": { "$ref": "file:///datetime.json" }, "container_path": { "$ref": "file:///container_path.json" }, "filesystem": { "type": "string" }, "gid": { "type": "integer" }, "inode": { "type": "integer" }, "mode": { "type": "integer" }, "modification_time": { "$ref": "file:///datetime.json" }, "mount_id": { "type": "integer" }, "name": { "type": "string" }, "path": { "type": "string" }, "uid": { "type": "integer" } }, "required": [ "path", "name", "inode", "mode", "mount_id", "filesystem", "uid", "gid", "modification_time", "change_time" ], "type": "object" }, "executable_container_path": { "$ref": "file:///container_path.json" }, "executable_inode": { "type": "integer" }, "executable_mount_id": { "type": "integer" }, "executable_path": { "type": "string" }, "fork_time": { "$ref": "file:///datetime.json" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "tid": { "type": "integer" }, "tty": { "allOf": [ { "type": "string" }, { "not": { "enum": [ "null" ], "type": "string" } } ] }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "tid", "uid", "gid", "executable_path", "comm", "executable_inode", "executable_mount_id", "credentials", "executable" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
1ef81c71e5060da98ca1d6ad5d238e47a3644273
2023-09-05T08:34:31
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "type": "integer" }, "device": { "type": "integer" }, "fs_type": { "type": "string" }, "mount_id": { "type": "integer" }, "mountpoint.path": { "type": "string" }, "mountpoint.path_error": { "type": "string" }, "mp": { "$ref": "#/$defs/File" }, "parent_mount_id": { "type": "integer" }, "root": { "$ref": "#/$defs/File" }, "source.path": { "type": "string" }, "source.path_error": { "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates wether the process is an exec child of its parent", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates wether the process is an exec child of its parent", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "name": { "description": "Name of the security profile", "type": "string" }, "status": { "description": "Status defines in which state the security profile was when the event was triggered", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "status", "version", "tags" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
ded01043e6063c6df7862575cf96c6c7b5776704
2021-09-30T14:37:39
pkg/security/tests/schemas/link.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "rename.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "properties": { "destination": { "$ref": "/schemas/file.json" } }, "required": [ "destination" ], "type": "object" } } } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
4f794fabb7fa84d79e647ae91f8d335233790f67
2024-03-06T18:22:39
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AgentContext": { "additionalProperties": false, "properties": { "arch": { "type": "string" }, "origin": { "type": "string" }, "os": { "type": "string" }, "policy_name": { "type": "string" }, "policy_version": { "type": "string" }, "rule_actions": { "items": true, "type": "array" }, "rule_id": { "type": "string" }, "rule_version": { "type": "string" }, "version": { "type": "string" } }, "required": [ "rule_id" ], "type": "object" }, "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "description": "Mount ID of the source of a bind mount", "type": "integer" }, "device": { "description": "Device associated with the file", "type": "integer" }, "fs_type": { "description": "Filesystem type", "type": "string" }, "mount_id": { "description": "Mount ID of the new mount", "type": "integer" }, "mountpoint.path": { "description": "Mount point path", "type": "string" }, "mountpoint.path_error": { "description": "Mount point path error", "type": "string" }, "mp": { "$ref": "#/$defs/File", "description": "Mount point file information" }, "parent_mount_id": { "description": "Mount ID of the parent mount", "type": "integer" }, "root": { "$ref": "#/$defs/File", "description": "Root file information" }, "source.path": { "description": "Mount source path", "type": "string" }, "source.path_error": { "description": "Mount source path error", "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" }, "variables": { "$ref": "#/$defs/Variables", "description": "Variables values" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "event_in_profile": { "description": "True if the corresponding event is part of this profile", "type": "boolean" }, "name": { "description": "Name of the security profile", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "version", "tags", "event_in_profile" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" }, "UserSessionContext": { "additionalProperties": false, "description": "UserSessionContextSerializer serializes the user session context to JSON", "properties": { "id": { "description": "Unique identifier of the user session on the host", "type": "string" }, "k8s_extra": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "description": "Extra of the Kubernetes \"kubectl exec\" session", "type": "object" }, "k8s_groups": { "description": "Groups of the Kubernetes \"kubectl exec\" session", "items": { "type": "string" }, "type": "array" }, "k8s_uid": { "description": "UID of the Kubernetes \"kubectl exec\" session", "type": "string" }, "k8s_username": { "description": "Username of the Kubernetes \"kubectl exec\" session", "type": "string" }, "session_type": { "description": "Type of the user session", "type": "string" } }, "type": "object" }, "Variables": { "description": "Variables serializes the variable values", "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/tree/main/pkg/security/serializers", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "agent": { "$ref": "#/$defs/AgentContext" }, "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "title": { "type": "string" }, "usr": { "$ref": "#/$defs/UserContext" } }, "required": [ "agent", "title" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
6fd2c6e971c6c9eb9aa5227675b08acd9aa1d7e8
2023-06-13T08:33:50
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "name": { "description": "Event name", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "type": "integer" }, "device": { "type": "integer" }, "fs_type": { "type": "string" }, "mount_id": { "type": "integer" }, "mountpoint.path": { "type": "string" }, "mountpoint.path_error": { "type": "string" }, "mp": { "$ref": "#/$defs/File" }, "parent_mount_id": { "type": "integer" }, "root": { "$ref": "#/$defs/File" }, "source.path": { "type": "string" }, "source.path_error": { "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "name": { "description": "Name of the security profile", "type": "string" }, "status": { "description": "Status defines in which state the security profile was when the event was triggered", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "status", "version", "tags" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
6b4c83520c8854e2caf3fd140c0f827b662455b9
2021-09-28T11:23:27
pkg/security/tests/schemas/rename.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "rename.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "properties": { "destination": { "$ref": "file:///file.json" } }, "required": [ "destination" ], "type": "object" } } } ], "anyOf": [ { "$ref": "file:///container_event.json" }, { "$ref": "file:///host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
0fbdbfbf4406346a0bd898e92654861d9751439f
2022-05-13T23:16:53
pkg/security/tests/schemas/bind.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "bind.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "date": { "$ref": "/schemas/datetime.json" } }, { "bind": { "properties": { "addr": { "type": "string" }, "addr_family": { "type": "integer" }, "addr_port": { "type": "integer" }, "request": { "type": "string" } }, "required": [ "request" ], "type": "object" }, "required": [ "bind" ] } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
59c183b60b11fa1f989f31b6b5e0df55d65385b7
2023-12-07T17:38:51
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "origin": { "description": "Origin of the event", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "description": "Mount ID of the source of a bind mount", "type": "integer" }, "device": { "description": "Device associated with the file", "type": "integer" }, "fs_type": { "description": "Filesystem type", "type": "string" }, "mount_id": { "description": "Mount ID of the new mount", "type": "integer" }, "mountpoint.path": { "description": "Mount point path", "type": "string" }, "mountpoint.path_error": { "description": "Mount point path error", "type": "string" }, "mp": { "$ref": "#/$defs/File", "description": "Mount point file information" }, "parent_mount_id": { "description": "Mount ID of the parent mount", "type": "integer" }, "root": { "$ref": "#/$defs/File", "description": "Root file information" }, "source.path": { "description": "Mount source path", "type": "string" }, "source.path_error": { "description": "Mount source path error", "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates wether the process is an exec child of its parent", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates wether the process is an exec child of its parent", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "name": { "description": "Name of the security profile", "type": "string" }, "status": { "description": "Status defines in which state the security profile was when the event was triggered", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "status", "version", "tags" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" }, "UserSessionContext": { "additionalProperties": false, "description": "UserSessionContextSerializer serializes the user session context to JSON", "properties": { "id": { "description": "Unique identifier of the user session on the host", "type": "string" }, "k8s_extra": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "description": "Extra of the Kubernetes \"kubectl exec\" session", "type": "object" }, "k8s_groups": { "description": "Groups of the Kubernetes \"kubectl exec\" session", "items": { "type": "string" }, "type": "array" }, "k8s_uid": { "description": "UID of the Kubernetes \"kubectl exec\" session", "type": "string" }, "k8s_username": { "description": "Username of the Kubernetes \"kubectl exec\" session", "type": "string" }, "session_type": { "description": "Type of the user session", "type": "string" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
0f50a93c6447ad230c612206f1e7219ed1121325
2023-07-17T15:38:51
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "type": "integer" }, "device": { "type": "integer" }, "fs_type": { "type": "string" }, "mount_id": { "type": "integer" }, "mountpoint.path": { "type": "string" }, "mountpoint.path_error": { "type": "string" }, "mp": { "$ref": "#/$defs/File" }, "parent_mount_id": { "type": "integer" }, "root": { "$ref": "#/$defs/File" }, "source.path": { "type": "string" }, "source.path_error": { "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates wether the process is an exec child of its parent", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates wether the process is an exec child of its parent", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "name": { "description": "Name of the security profile", "type": "string" }, "status": { "description": "Status defines in which state the security profile was when the event was triggered", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "status", "version", "tags" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
7dc3a9b2d4bbfd8d0db7b4ef45e9055df6959592
2021-05-28T17:27:42
pkg/security/tests/schemas/open.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "exec.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "if": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } }, "then": { "required": [ "container" ] } }, { "if": { "required": [ "container" ] }, "then": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } } }, { "properties": { "file": { "required": [ "destination" ], "type": "object" } } }, { "properties": { "file": { "required": [ "flags" ], "type": "object" } } } ], "anyOf": [ { "$ref": "file:///container_event.json" }, { "$ref": "file:///host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
a2d2703c6627c8c8dcfbd4156a0443fc16b7072d
2023-09-27T16:45:45
pkg/networkdevice/profile/profiledefinition/schema/profile_rc_schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "DeviceProfileRcConfig": { "additionalProperties": false, "properties": { "profile_definition": { "$ref": "#/$defs/ProfileDefinition" } }, "required": [ "profile_definition" ], "type": "object" }, "MetadataConfig": { "additionalProperties": { "$ref": "#/$defs/MetadataResourceConfig" }, "type": "object" }, "MetadataField": { "additionalProperties": false, "properties": { "symbol": { "$ref": "#/$defs/SymbolConfig" }, "symbols": { "items": { "$ref": "#/$defs/SymbolConfig" }, "type": "array" }, "value": { "type": "string" } }, "type": "object" }, "MetadataResourceConfig": { "additionalProperties": false, "properties": { "fields": { "additionalProperties": { "$ref": "#/$defs/MetadataField" }, "type": "object" }, "id_tags": { "$ref": "#/$defs/MetricTagConfigList" } }, "required": [ "fields" ], "type": "object" }, "MetricIndexTransform": { "additionalProperties": false, "properties": { "end": { "type": "integer" }, "start": { "type": "integer" } }, "required": [ "start", "end" ], "type": "object" }, "MetricTagConfig": { "additionalProperties": false, "properties": { "OID": { "type": "string" }, "column": { "$ref": "#/$defs/SymbolConfig" }, "index": { "type": "integer" }, "index_transform": { "items": { "$ref": "#/$defs/MetricIndexTransform" }, "type": "array" }, "mapping": { "additionalProperties": { "type": "string" }, "type": "object" }, "symbol": { "type": "string" }, "tag": { "type": "string" } }, "required": [ "tag" ], "type": "object" }, "MetricTagConfigList": { "items": { "$ref": "#/$defs/MetricTagConfig" }, "type": "array" }, "MetricsConfig": { "additionalProperties": false, "properties": { "MIB": { "type": "string" }, "metric_tags": { "$ref": "#/$defs/MetricTagConfigList" }, "metric_type": { "type": "string" }, "symbol": { "$ref": "#/$defs/SymbolConfig" }, "symbols": { "items": { "$ref": "#/$defs/SymbolConfig" }, "type": "array" }, "table": { "$ref": "#/$defs/SymbolConfig" } }, "type": "object" }, "ProfileDefinition": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "extends": { "items": { "type": "string" }, "type": "array" }, "metadata": { "$ref": "#/$defs/MetadataConfig" }, "metric_tags": { "items": { "$ref": "#/$defs/MetricTagConfig" }, "type": "array" }, "metrics": { "items": { "$ref": "#/$defs/MetricsConfig" }, "type": "array" }, "name": { "type": "string" }, "static_tags": { "items": { "type": "string" }, "type": "array" }, "sysobjectid": { "$ref": "#/$defs/StringArray" } }, "required": [ "name" ], "type": "object" }, "StringArray": { "items": { "type": "string" }, "type": "array" }, "SymbolConfig": { "additionalProperties": false, "properties": { "OID": { "type": "string" }, "constant_value_one": { "type": "boolean" }, "extract_value": { "type": "string" }, "format": { "type": "string" }, "metric_type": { "type": "string" }, "name": { "type": "string" }, "scale_factor": { "type": "number" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/networkdevice/profile/profiledefinition/device-profile-rc-config", "$ref": "#/$defs/DeviceProfileRcConfig", "$schema": "https://json-schema.org/draft/2020-12/schema" }
Apache-2.0
en
DataDog/datadog-agent
6294adc25e841d566a78bc7fc2db08b2f3491d87
2024-04-02T09:48:30
pkg/security/tests/schemas/agent_context.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "agent_context.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "arch": { "type": "string" }, "origin": { "type": "string" }, "os": { "type": "string" }, "policy_name": { "type": "string" }, "policy_version": { "type": "string" }, "rule_actions": { "items": { "oneOf": [ { "$ref": "/schemas/kill.schema.json" } ] }, "type": "array" }, "rule_id": { "type": "string" }, "rule_version": { "type": "string" }, "version": { "type": "string" } }, "required": [ "rule_id", "policy_name", "policy_version", "version", "os", "arch", "origin" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
156a35e51866c1bc4c2a0a2a6b0a8881116e6021
2022-01-31T12:40:50
pkg/security/tests/schemas/process.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "process.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "properties": { "pid": { "enum": [ 1 ], "type": "integer" } }, "required": [ "pid" ] }, { "properties": { "pid": { "minimum": 2, "type": "integer" }, "ppid": { "type": "integer" } }, "required": [ "pid", "ppid" ] } ], "properties": { "comm": { "type": "string" }, "container": { "$ref": "/schemas/container.json" }, "credentials": { "properties": { "cap_effective": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "cap_permitted": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "egid": { "type": "integer" }, "egroup": { "type": "string" }, "euid": { "type": "integer" }, "euser": { "type": "string" }, "fsgid": { "type": "integer" }, "fsgroup": { "type": "string" }, "fsuid": { "type": "integer" }, "fsuser": { "type": "string" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "exec_time": { "$ref": "/schemas/datetime.json" }, "executable": { "properties": { "args": { "items": { "type": "string" }, "type": "array" }, "argv0": { "type": "string" }, "change_time": { "$ref": "/schemas/datetime.json" }, "envs": { "items": { "type": "string" }, "type": "array" }, "filesystem": { "type": "string" }, "gid": { "type": "integer" }, "inode": { "type": "integer" }, "mode": { "type": "integer" }, "modification_time": { "$ref": "/schemas/datetime.json" }, "mount_id": { "type": "integer" }, "name": { "type": "string" }, "path": { "type": "string" }, "uid": { "type": "integer" } }, "required": [ "path", "name", "inode", "mode", "mount_id", "filesystem", "uid", "gid", "modification_time", "change_time" ], "type": "object" }, "fork_time": { "$ref": "/schemas/datetime.json" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "tid": { "type": "integer" }, "tty": { "allOf": [ { "type": "string" }, { "not": { "enum": [ "null" ], "type": "string" } } ] }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "tid", "uid", "gid", "comm", "credentials", "executable" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
a93aea1efdfca80b0d8628a52966ef3442ac51d3
2023-05-02T10:21:44
pkg/security/tests/schemas/unload_module.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "unload_module.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "module": { "properties": { "name": { "type": "string" } }, "required": [ "name" ], "type": "object" } } } ], "anyOf": [ { "$ref": "/schemas/container_event_no_file.json" }, { "$ref": "/schemas/host_event_no_file.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
24f70e669761e8dd7d9ff778472f4989a42da2ed
2023-07-04T15:22:26
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "type": "integer" }, "device": { "type": "integer" }, "fs_type": { "type": "string" }, "mount_id": { "type": "integer" }, "mountpoint.path": { "type": "string" }, "mountpoint.path_error": { "type": "string" }, "mp": { "$ref": "#/$defs/File" }, "parent_mount_id": { "type": "integer" }, "root": { "$ref": "#/$defs/File" }, "source.path": { "type": "string" }, "source.path_error": { "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "name": { "description": "Name of the security profile", "type": "string" }, "status": { "description": "Status defines in which state the security profile was when the event was triggered", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "status", "version", "tags" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
9c6216904450ffa637afa3472b96afd1e201972a
2022-12-09T18:34:22
pkg/security/tests/schemas/mount.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "mount.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "mount": { "properties": { "fs_type": { "type": "string" }, "mount_id": { "type": "integer" }, "mountpoint": { "properties": { "path": { "type": "string" } }, "required": [ "path" ] }, "parent_mount_id": { "type": "integer" }, "source": { "properties": { "path": { "type": "string" } } } }, "required": [ "mountpoint", "mount_id", "parent_mount_id", "fs_type" ], "type": "object" } }, "required": [ "mount" ] } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
e696701aed1c442f56b29c312e0c74fa1a23aa49
2023-07-20T14:25:58
pkg/security/tests/schemas/self_test_schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "self_test.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "required": [ "succeeded_tests" ] }, { "required": [ "failed_tests" ] }, { "required": [ "succeeded_tests", "failed_tests" ] } ], "properties": { "agent": { "properties": { "rule_id": { "type": "string" }, "version": { "type": "string" } }, "required": [ "rule_id", "version" ], "type": "object" }, "date": { "$ref": "/schemas/datetime.json" }, "failed_tests": { "items": { "type": "string" }, "type": "array" }, "hostname": { "type": "string" }, "service": { "type": "string" }, "status": { "type": "string" }, "succeeded_tests": { "items": { "type": "string" }, "type": "array" }, "test_events": { "properties": { "datadog_agent_cws_self_test_rule_chmod": { "$ref": "/schemas/chmod.json" }, "datadog_agent_cws_self_test_rule_chown": { "$ref": "/schemas/chown.json" }, "datadog_agent_cws_self_test_rule_open": { "$ref": "/schemas/open.json" } }, "type": "object" }, "timestamp": { "type": "number" }, "title": { "type": "string" } }, "required": [ "agent", "date", "hostname", "service", "status", "timestamp", "title", "test_events" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
d348a91950a97daee4eb492783ad8f49dea346c1
2023-09-21T11:55:18
pkg/networkdevice/profile/profiledefinition/schema/profile_rc_schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "DeviceProfileRcConfig": { "additionalProperties": false, "properties": { "profile_definition": { "$ref": "#/$defs/ProfileDefinition" } }, "required": [ "profile_definition" ], "type": "object" }, "MetadataConfig": { "additionalProperties": { "$ref": "#/$defs/MetadataResourceConfig" }, "type": "object" }, "MetadataField": { "additionalProperties": false, "properties": { "symbol": { "$ref": "#/$defs/SymbolConfig" }, "symbols": { "items": { "$ref": "#/$defs/SymbolConfig" }, "type": "array" }, "value": { "type": "string" } }, "type": "object" }, "MetadataResourceConfig": { "additionalProperties": false, "properties": { "fields": { "additionalProperties": { "$ref": "#/$defs/MetadataField" }, "type": "object" }, "id_tags": { "$ref": "#/$defs/MetricTagConfigList" } }, "required": [ "fields" ], "type": "object" }, "MetricIndexTransform": { "additionalProperties": false, "properties": { "end": { "type": "integer" }, "start": { "type": "integer" } }, "required": [ "start", "end" ], "type": "object" }, "MetricTagConfig": { "additionalProperties": false, "properties": { "OID": { "type": "string" }, "column": { "$ref": "#/$defs/SymbolConfig" }, "index": { "type": "integer" }, "index_transform": { "items": { "$ref": "#/$defs/MetricIndexTransform" }, "type": "array" }, "mapping": { "additionalProperties": { "type": "string" }, "type": "object" }, "match": { "type": "string" }, "symbol": { "type": "string" }, "tag": { "type": "string" }, "tags": { "additionalProperties": { "type": "string" }, "type": "object" } }, "required": [ "tag" ], "type": "object" }, "MetricTagConfigList": { "items": { "$ref": "#/$defs/MetricTagConfig" }, "type": "array" }, "MetricsConfig": { "additionalProperties": false, "properties": { "MIB": { "type": "string" }, "metric_tags": { "$ref": "#/$defs/MetricTagConfigList" }, "metric_type": { "type": "string" }, "options": { "$ref": "#/$defs/MetricsConfigOption" }, "static_tags": { "items": { "type": "string" }, "type": "array" }, "symbol": { "$ref": "#/$defs/SymbolConfig" }, "symbols": { "items": { "$ref": "#/$defs/SymbolConfig" }, "type": "array" }, "table": { "$ref": "#/$defs/SymbolConfig" } }, "type": "object" }, "MetricsConfigOption": { "additionalProperties": false, "properties": { "metric_suffix": { "type": "string" }, "placement": { "type": "integer" } }, "type": "object" }, "ProfileDefinition": { "additionalProperties": false, "properties": { "description": { "type": "string" }, "extends": { "items": { "type": "string" }, "type": "array" }, "metadata": { "$ref": "#/$defs/MetadataConfig" }, "metric_tags": { "items": { "$ref": "#/$defs/MetricTagConfig" }, "type": "array" }, "metrics": { "items": { "$ref": "#/$defs/MetricsConfig" }, "type": "array" }, "name": { "type": "string" }, "static_tags": { "items": { "type": "string" }, "type": "array" }, "sysobjectid": { "$ref": "#/$defs/StringArray" } }, "required": [ "name" ], "type": "object" }, "StringArray": { "items": { "type": "string" }, "type": "array" }, "SymbolConfig": { "additionalProperties": false, "properties": { "OID": { "type": "string" }, "constant_value_one": { "type": "boolean" }, "extract_value": { "type": "string" }, "format": { "type": "string" }, "match_pattern": { "type": "string" }, "match_value": { "type": "string" }, "metric_type": { "type": "string" }, "name": { "type": "string" }, "scale_factor": { "type": "number" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/networkdevice/profile/profiledefinition/device-profile-rc-config", "$ref": "#/$defs/DeviceProfileRcConfig", "$schema": "https://json-schema.org/draft/2020-12/schema" }
Apache-2.0
en
DataDog/datadog-agent
6b4c83520c8854e2caf3fd140c0f827b662455b9
2021-09-28T11:23:27
pkg/security/tests/schemas/open.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "exec.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "required": [ "flags" ], "type": "object" } } } ], "anyOf": [ { "$ref": "file:///container_event.json" }, { "$ref": "file:///host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
91a441378c85be0849951ec49e50411c82787030
2024-02-13T19:23:41
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id", "question" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "matched_rules": { "description": "The list of rules that the event matched (only valid in the context of an anomaly)", "items": { "$ref": "#/$defs/MatchedRule" }, "type": "array" }, "name": { "description": "Event name", "type": "string" }, "origin": { "description": "Origin of the event", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "hash_state": { "description": "State of the hashes or reason why they weren't computed", "type": "string" }, "hashes": { "description": "List of cryptographic hashes of the file", "items": { "type": "string" }, "type": "array" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "MatchedRule": { "additionalProperties": false, "description": "MatchedRuleSerializer serializes a rule", "properties": { "id": { "description": "ID of the rule", "type": "string" }, "policy_name": { "description": "Name of the policy that introduced the rule", "type": "string" }, "policy_version": { "description": "Version of the policy that introduced the rule", "type": "string" }, "tags": { "description": "Tags of the rule", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the rule", "type": "string" } }, "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "description": "Mount ID of the source of a bind mount", "type": "integer" }, "device": { "description": "Device associated with the file", "type": "integer" }, "fs_type": { "description": "Filesystem type", "type": "string" }, "mount_id": { "description": "Mount ID of the new mount", "type": "integer" }, "mountpoint.path": { "description": "Mount point path", "type": "string" }, "mountpoint.path_error": { "description": "Mount point path error", "type": "string" }, "mp": { "$ref": "#/$defs/File", "description": "Mount point file information" }, "parent_mount_id": { "description": "Mount ID of the parent mount", "type": "integer" }, "root": { "$ref": "#/$defs/File", "description": "Root file information" }, "source.path": { "description": "Mount source path", "type": "string" }, "source.path_error": { "description": "Mount source path error", "type": "string" } }, "required": [ "mount_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_exec_child": { "description": "Indicates whether the process is an exec following another exec", "type": "boolean" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" }, "user_session": { "$ref": "#/$defs/UserSessionContext", "description": "Context of the user session for this event" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "event_in_profile": { "description": "True if the corresponding event is part of this profile", "type": "boolean" }, "name": { "description": "Name of the security profile", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "version", "tags", "event_in_profile" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" }, "UserSessionContext": { "additionalProperties": false, "description": "UserSessionContextSerializer serializes the user session context to JSON", "properties": { "id": { "description": "Unique identifier of the user session on the host", "type": "string" }, "k8s_extra": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "description": "Extra of the Kubernetes \"kubectl exec\" session", "type": "object" }, "k8s_groups": { "description": "Groups of the Kubernetes \"kubectl exec\" session", "items": { "type": "string" }, "type": "array" }, "k8s_uid": { "description": "UID of the Kubernetes \"kubectl exec\" session", "type": "string" }, "k8s_username": { "description": "Username of the Kubernetes \"kubectl exec\" session", "type": "string" }, "session_type": { "description": "Type of the user session", "type": "string" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
5d21c7bd4793e091801303c44c45c430b6d3442d
2021-06-23T07:31:08
pkg/security/tests/schemas/chown.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "chown.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "if": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } }, "then": { "required": [ "container" ] } }, { "if": { "required": [ "container" ] }, "then": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } } }, { "properties": { "file": { "required": [ "destination" ], "type": "object" } } } ], "anyOf": [ { "$ref": "file:///container_event.json" }, { "$ref": "file:///host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
c337ac0dbc97ad7714c6b8e5ed22f5a382a7ee29
2022-02-17T22:25:22
pkg/security/tests/schemas/mprotect.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "mprotect.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "date": { "$ref": "/schemas/datetime.json" } }, { "properties": { "mprotect": { "properties": { "req_protection": { "type": "string" }, "vm_end": { "type": "string" }, "vm_protection": { "type": "string" }, "vm_start": { "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" } }, "required": [ "mprotect" ] } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
a93aea1efdfca80b0d8628a52966ef3442ac51d3
2023-05-02T10:21:44
pkg/security/tests/schemas/open.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "open.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "required": [ "flags" ], "type": "object" } }, "required": [ "file" ] } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
df5e952e8913cdb902eede93b660b1ed805f64f3
2021-07-01T10:56:01
pkg/security/tests/schemas/rename.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "rename.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "properties": { "destination": { "required": [ "mode" ], "type": "object" } }, "required": [ "destination" ], "type": "object" } } } ], "anyOf": [ { "$ref": "file:///container_event.json" }, { "$ref": "file:///host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
a93aea1efdfca80b0d8628a52966ef3442ac51d3
2023-05-02T10:21:44
pkg/security/tests/schemas/span.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "span.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ] }, { "$ref": "/schemas/span_context.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
7c4f575184866ead64fca1b3988293483b0c51b9
2022-07-27T14:22:24
pkg/security/tests/schemas/exit.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "exit.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "exit": { "required": [ "cause", "code" ], "type": "object" }, "process": { "required": [ "pid", "ppid", "tid", "uid", "gid", "user", "group", "comm", "tty", "fork_time", "exec_time", "exit_time" ], "type": "object" } }, "required": [ "exit", "process" ] } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
ded01043e6063c6df7862575cf96c6c7b5776704
2021-09-30T14:37:39
pkg/security/tests/schemas/selinux.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "selinux.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "if": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } }, "then": { "required": [ "container" ] } }, { "if": { "required": [ "container" ] }, "then": { "properties": { "file": { "required": [ "container_path" ], "type": "object" } } } } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "definitions": { "bool": { "properties": { "bool": { "properties": { "name": { "type": "string" }, "state": { "enum": [ "on", "off" ] } }, "required": [ "name", "state" ], "type": "object" } }, "required": [ "bool" ], "type": "object" }, "bool_commit": { "properties": { "bool_commit": { "properties": { "state": { "type": "boolean" } }, "required": [ "state" ], "type": "object" } }, "required": [ "bool_commit" ], "type": "object" }, "enforce": { "properties": { "enforce": { "properties": { "status": { "enum": [ "enforcing", "permissive", "disabled" ] } }, "required": [ "status" ], "type": "object" } }, "required": [ "enforce" ], "type": "object" } }, "properties": { "selinux": { "oneOf": [ { "$ref": "#/definitions/bool" }, { "$ref": "#/definitions/enforce" }, { "$ref": "#/definitions/bool_commit" } ], "type": "object" } }, "required": [ "selinux" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
b679009c30ae68fb1b36f5c769956bc91aaa7521
2023-06-07T14:54:53
pkg/security/tests/schemas/process.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "process.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "properties": { "pid": { "enum": [ 1 ], "type": "integer" } }, "required": [ "pid" ] }, { "properties": { "pid": { "minimum": 2, "type": "integer" }, "ppid": { "type": "integer" } }, "required": [ "pid", "ppid" ] } ], "properties": { "args": { "items": { "type": "string" }, "type": "array" }, "argv0": { "type": "string" }, "comm": { "type": "string" }, "container": { "$ref": "/schemas/container.json" }, "credentials": { "properties": { "cap_effective": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "cap_permitted": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "egid": { "type": "integer" }, "egroup": { "type": "string" }, "euid": { "type": "integer" }, "euser": { "type": "string" }, "fsgid": { "type": "integer" }, "fsgroup": { "type": "string" }, "fsuid": { "type": "integer" }, "fsuser": { "type": "string" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "exec_time": { "$ref": "/schemas/datetime.json" }, "executable": { "properties": { "change_time": { "$ref": "/schemas/datetime.json" }, "envs": { "items": { "type": "string" }, "type": "array" }, "filesystem": { "type": "string" }, "gid": { "type": "integer" }, "inode": { "type": "integer" }, "mode": { "type": "integer" }, "modification_time": { "$ref": "/schemas/datetime.json" }, "mount_id": { "type": "integer" }, "name": { "type": "string" }, "path": { "type": "string" }, "uid": { "type": "integer" } }, "required": [ "path", "name", "inode", "mode", "mount_id", "filesystem", "uid", "gid", "modification_time", "change_time" ], "type": "object" }, "fork_time": { "$ref": "/schemas/datetime.json" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "is_kthread": { "type": "boolean" }, "is_kworker": { "type": "boolean" }, "tid": { "type": "integer" }, "tty": { "allOf": [ { "type": "string" }, { "not": { "enum": [ "null" ], "type": "string" } } ] }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "tid", "uid", "gid", "comm", "credentials", "executable" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
1353690ae9748c82e51ed889760f02e9856d9ed6
2022-04-20T16:06:32
pkg/security/tests/schemas/process.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "process.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "properties": { "pid": { "enum": [ 1 ], "type": "integer" } }, "required": [ "pid" ] }, { "properties": { "pid": { "minimum": 2, "type": "integer" }, "ppid": { "type": "integer" } }, "required": [ "pid", "ppid" ] } ], "properties": { "comm": { "type": "string" }, "container": { "$ref": "/schemas/container.json" }, "credentials": { "properties": { "cap_effective": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "cap_permitted": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "egid": { "type": "integer" }, "egroup": { "type": "string" }, "euid": { "type": "integer" }, "euser": { "type": "string" }, "fsgid": { "type": "integer" }, "fsgroup": { "type": "string" }, "fsuid": { "type": "integer" }, "fsuser": { "type": "string" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "exec_time": { "$ref": "/schemas/datetime.json" }, "executable": { "properties": { "args": { "items": { "type": "string" }, "type": "array" }, "argv0": { "type": "string" }, "change_time": { "$ref": "/schemas/datetime.json" }, "envs": { "items": { "type": "string" }, "type": "array" }, "filesystem": { "type": "string" }, "gid": { "type": "integer" }, "inode": { "type": "integer" }, "mode": { "type": "integer" }, "modification_time": { "$ref": "/schemas/datetime.json" }, "mount_id": { "type": "integer" }, "name": { "type": "string" }, "path": { "type": "string" }, "uid": { "type": "integer" } }, "required": [ "path", "name", "inode", "mode", "mount_id", "filesystem", "uid", "gid", "modification_time", "change_time", "argv0" ], "type": "object" }, "fork_time": { "$ref": "/schemas/datetime.json" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "tid": { "type": "integer" }, "tty": { "allOf": [ { "type": "string" }, { "not": { "enum": [ "null" ], "type": "string" } } ] }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "tid", "uid", "gid", "comm", "credentials", "executable" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
73fe025eb8d2b5acaacb77b5089762eb4e852e1f
2024-04-24T12:21:11
pkg/security/tests/schemas/self_test_schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "self_test.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "required": [ "succeeded_tests" ] }, { "required": [ "failed_tests" ] }, { "required": [ "succeeded_tests", "failed_tests" ] } ], "properties": { "agent": { "properties": { "rule_id": { "type": "string" }, "version": { "type": "string" } }, "required": [ "rule_id", "version" ], "type": "object" }, "date": { "$ref": "/schemas/datetime.json" }, "failed_tests": { "items": { "type": "string" }, "type": "array" }, "hostname": { "type": "string" }, "service": { "type": "string" }, "status": { "type": "string" }, "succeeded_tests": { "items": { "type": "string" }, "type": "array" }, "test_events": { "properties": { "datadog_agent_cws_self_test_rule_chmod": { "$ref": "/schemas/chmod.schema.json" }, "datadog_agent_cws_self_test_rule_chown": { "$ref": "/schemas/chown.schema.json" }, "datadog_agent_cws_self_test_rule_exec": { "$ref": "/schemas/exec.schema.json" }, "datadog_agent_cws_self_test_rule_open": { "$ref": "/schemas/open.schema.json" } }, "type": "object" }, "timestamp": { "type": "number" }, "title": { "type": "string" } }, "required": [ "agent", "date", "hostname", "service", "status", "timestamp", "title", "test_events" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
a93aea1efdfca80b0d8628a52966ef3442ac51d3
2023-05-02T10:21:44
pkg/security/tests/schemas/link.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "link.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "properties": { "destination": { "$ref": "/schemas/file.json" } }, "required": [ "destination" ], "type": "object" } }, "required": [ "file" ] } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
5f6f0ea721e01c5d670529a02d7285fb6bc90003
2022-01-27T15:28:47
pkg/security/tests/schemas/bpf.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "bpf.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "date": { "$ref": "/schemas/datetime.json" } }, { "properties": { "bpf": { "properties": { "cmd": { "type": "string" }, "map": { "properties": { "map_type": { "type": "string" }, "name": { "type": "string" } }, "required": [ "name", "map_type" ], "type": "object" }, "prog": { "properties": { "attach_type": { "type": "string" }, "name": { "type": "string" }, "program_type": { "type": "string" } }, "required": [ "name", "program_type", "attach_type" ], "type": "object" } }, "required": [ "cmd" ], "type": "object" } }, "required": [ "bpf" ] } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
5b2240d99519c35689fbdd5bb7d92c4d9cf7bb05
2021-11-12T17:27:30
pkg/security/tests/schemas/bpf.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "bpf.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "date": { "$ref": "/schemas/datetime.json" } }, { "properties": { "bpf": { "properties": { "cmd": { "type": "string" }, "map": { "properties": { "map_type": { "type": "string" }, "name": { "type": "string" } }, "required": [ "name", "map_type" ], "type": "object" }, "prog": { "properties": { "attach_type": { "type": "string" }, "name": { "type": "string" }, "program_type": { "type": "string" } }, "required": [ "name", "program_type", "attach_type" ], "type": "object" } }, "required": [ "cmd" ], "type": "object" } } } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
76b2d8850f14e65eea1f34b5c5da803063c977e5
2021-04-16T22:09:14
pkg/security/tests/schemas/usr.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "file.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "usr": { "properties": { "group": { "type": "string" }, "id": { "type": "string" } }, "required": [ "id", "group" ], "type": "object" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
7e428dd539ece635156b8774f392daacb8394f5a
2022-09-01T13:05:51
pkg/security/tests/schemas/exit.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "exit.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "exit": { "properties": { "cause": { "type": "string" }, "code": { "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" } }, "required": [ "exit" ] } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
865eaab8cd458dcfcb0b14a2bb4cd0ae30d3e09e
2021-05-11T10:37:14
pkg/security/tests/schemas/process.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "process.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "dependencies": { "container": [ "executable_container_path" ], "executable_container_path": [ "container" ] }, "oneOf": [ { "properties": { "pid": { "enum": [ 1 ], "type": "integer" } }, "required": [ "pid" ] }, { "properties": { "pid": { "minimum": 2, "type": "integer" }, "ppid": { "type": "integer" } }, "required": [ "pid", "ppid" ] } ], "properties": { "comm": { "type": "string" }, "container": { "$ref": "file:///container.json" }, "credentials": { "properties": { "cap_effective": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "cap_permitted": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "egid": { "type": "integer" }, "egroup": { "type": "string" }, "euid": { "type": "integer" }, "euser": { "type": "string" }, "fsgid": { "type": "integer" }, "fsgroup": { "type": "string" }, "fsuid": { "type": "integer" }, "fsuser": { "type": "string" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "uid", "gid", "euid", "euser", "egid", "egroup", "fsuid", "fsuser", "fsgid", "fsgroup", "cap_effective", "cap_permitted" ], "type": "object" }, "executable": { "properties": { "change_time": { "type": "string" }, "container_path": { "$ref": "file:///container_path.json" }, "filesystem": { "type": "string" }, "gid": { "type": "integer" }, "inode": { "type": "integer" }, "mode": { "type": "integer" }, "modification_time": { "type": "string" }, "mount_id": { "type": "integer" }, "name": { "type": "string" }, "path": { "type": "string" }, "uid": { "type": "integer" } }, "required": [ "path", "name", "inode", "mode", "mount_id", "filesystem", "uid", "gid", "modification_time", "change_time" ], "type": "object" }, "executable_container_path": { "$ref": "file:///container_path.json" }, "executable_inode": { "type": "integer" }, "executable_mount_id": { "type": "integer" }, "executable_path": { "type": "string" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "tid": { "type": "integer" }, "tty": { "allOf": [ { "type": "string" }, { "not": { "enum": [ "null" ], "type": "string" } } ] }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "tid", "uid", "gid", "executable_path", "comm", "executable_inode", "executable_mount_id", "credentials", "executable" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
7dc3a9b2d4bbfd8d0db7b4ef45e9055df6959592
2021-05-28T17:27:42
pkg/security/tests/schemas/host_event.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "host_event.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "file:///event.json" }, { "$ref": "file:///file.json" }, { "$ref": "file:///usr.json" }, { "$ref": "file:///process_context.json" }, { "date": { "$ref": "file:///datetime.json" } } ] }
Apache-2.0
en
DataDog/datadog-agent
0c6d1c108743e41f1020235f7a13a3fcccd644f7
2022-01-07T16:36:42
pkg/security/tests/schemas/mprotect.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "mprotect.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "date": { "$ref": "/schemas/datetime.json" } }, { "properties": { "bpf": { "properties": { "req_protection": { "type": "string" }, "vm_end": { "type": "string" }, "vm_protection": { "type": "string" }, "vm_start": { "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" } } } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
5f6f0ea721e01c5d670529a02d7285fb6bc90003
2022-01-27T15:28:47
pkg/security/tests/schemas/mmap.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "mmap.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "$ref": "/schemas/event.json" }, { "$ref": "/schemas/usr.json" }, { "$ref": "/schemas/process_context.json" }, { "date": { "$ref": "/schemas/datetime.json" } }, { "properties": { "mmap": { "properties": { "address": { "type": "string" }, "length": { "type": "integer" }, "protection": { "type": "string" } }, "required": [ "address", "length", "protection" ], "type": "object" } }, "required": [ "mmap" ] } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
5f6f0ea721e01c5d670529a02d7285fb6bc90003
2022-01-27T15:28:47
pkg/security/tests/schemas/chmod.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "chmod.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "properties": { "destination": { "required": [ "mode" ], "type": "object" } }, "required": [ "destination" ], "type": "object" } }, "required": [ "file" ] } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
76b2d8850f14e65eea1f34b5c5da803063c977e5
2021-04-16T22:09:14
pkg/security/tests/schemas/container.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "container.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "id": { "type": "string" } }, "required": [ "id" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
6294adc25e841d566a78bc7fc2db08b2f3491d87
2024-04-02T09:48:30
pkg/security/tests/schemas/message.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "message.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "agent": { "$ref": "/schemas/agent_context.json" } } }, { "properties": { "evt": { "type": "object" } }, "required": [ "evt" ] } ] }
Apache-2.0
en
DataDog/datadog-agent
df5e952e8913cdb902eede93b660b1ed805f64f3
2021-07-01T10:56:01
pkg/security/tests/schemas/process.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "process.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "properties": { "pid": { "enum": [ 1 ], "type": "integer" } }, "required": [ "pid" ] }, { "properties": { "pid": { "minimum": 2, "type": "integer" }, "ppid": { "type": "integer" } }, "required": [ "pid", "ppid" ] } ], "properties": { "comm": { "type": "string" }, "container": { "$ref": "file:///container.json" }, "credentials": { "properties": { "cap_effective": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "cap_permitted": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "egid": { "type": "integer" }, "egroup": { "type": "string" }, "euid": { "type": "integer" }, "euser": { "type": "string" }, "fsgid": { "type": "integer" }, "fsgroup": { "type": "string" }, "fsuid": { "type": "integer" }, "fsuser": { "type": "string" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "exec_time": { "$ref": "file:///datetime.json" }, "executable": { "properties": { "change_time": { "$ref": "file:///datetime.json" }, "filesystem": { "type": "string" }, "gid": { "type": "integer" }, "inode": { "type": "integer" }, "mode": { "type": "integer" }, "modification_time": { "$ref": "file:///datetime.json" }, "mount_id": { "type": "integer" }, "name": { "type": "string" }, "path": { "type": "string" }, "uid": { "type": "integer" } }, "required": [ "path", "name", "inode", "mode", "mount_id", "filesystem", "uid", "gid", "modification_time", "change_time" ], "type": "object" }, "executable_inode": { "type": "integer" }, "executable_mount_id": { "type": "integer" }, "executable_path": { "type": "string" }, "fork_time": { "$ref": "file:///datetime.json" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "tid": { "type": "integer" }, "tty": { "allOf": [ { "type": "string" }, { "not": { "enum": [ "null" ], "type": "string" } } ] }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "tid", "uid", "gid", "executable_path", "comm", "executable_inode", "executable_mount_id", "credentials", "executable" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
2cbbed984fd66ef9bc20babefe2a11e2a1d2f7f1
2023-11-09T23:42:37
pkg/security/tests/schemas/user_session.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "user_session.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ] }, { "$ref": "/schemas/user_session_context.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
bdf3da7a268567e2112e3095188e3d0dbaa02216
2022-02-18T14:51:17
pkg/security/tests/schemas/load_module.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "load_module.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "module": { "properties": { "loaded_from_memory": { "type": "boolean" }, "name": { "type": "string" } }, "required": [ "name", "loaded_from_memory" ], "type": "object" } } } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
07434dac3f28a4e50cd8983b5dfd90b518b9e4d2
2022-04-21T10:31:46
pkg/security/tests/schemas/process.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "process.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "oneOf": [ { "properties": { "pid": { "enum": [ 1 ], "type": "integer" } }, "required": [ "pid" ] }, { "properties": { "pid": { "minimum": 2, "type": "integer" }, "ppid": { "type": "integer" } }, "required": [ "pid", "ppid" ] } ], "properties": { "comm": { "type": "string" }, "container": { "$ref": "/schemas/container.json" }, "credentials": { "properties": { "cap_effective": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "cap_permitted": { "items": { "type": "string" }, "type": "array", "uniqueItems": true }, "egid": { "type": "integer" }, "egroup": { "type": "string" }, "euid": { "type": "integer" }, "euser": { "type": "string" }, "fsgid": { "type": "integer" }, "fsgroup": { "type": "string" }, "fsuid": { "type": "integer" }, "fsuser": { "type": "string" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "exec_time": { "$ref": "/schemas/datetime.json" }, "executable": { "properties": { "args": { "items": { "type": "string" }, "type": "array" }, "argv0": { "type": "string" }, "change_time": { "$ref": "/schemas/datetime.json" }, "envs": { "items": { "type": "string" }, "type": "array" }, "filesystem": { "type": "string" }, "gid": { "type": "integer" }, "inode": { "type": "integer" }, "mode": { "type": "integer" }, "modification_time": { "$ref": "/schemas/datetime.json" }, "mount_id": { "type": "integer" }, "name": { "type": "string" }, "path": { "type": "string" }, "uid": { "type": "integer" } }, "required": [ "path", "name", "inode", "mode", "mount_id", "filesystem", "uid", "gid", "modification_time", "change_time" ], "type": "object" }, "fork_time": { "$ref": "/schemas/datetime.json" }, "gid": { "type": "integer" }, "group": { "type": "string" }, "tid": { "type": "integer" }, "tty": { "allOf": [ { "type": "string" }, { "not": { "enum": [ "null" ], "type": "string" } } ] }, "uid": { "type": "integer" }, "user": { "type": "string" } }, "required": [ "tid", "uid", "gid", "comm", "credentials", "executable" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
b71b5221ea76698084975826c86d456123ed5261
2023-05-03T13:40:25
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AnomalyDetectionSyscallEvent": { "additionalProperties": false, "description": "AnomalyDetectionSyscallEventSerializer serializes an anomaly detection for a syscall event", "properties": { "syscall": { "description": "Name of the syscall that triggered the anomaly detection event", "type": "string" } }, "required": [ "syscall" ], "type": "object" }, "BPFEvent": { "additionalProperties": false, "description": "BPFEventSerializer serializes a BPF event to JSON", "properties": { "cmd": { "description": "BPF command", "type": "string" }, "map": { "$ref": "#/$defs/BPFMap", "description": "BPF map" }, "program": { "$ref": "#/$defs/BPFProgram", "description": "BPF program" } }, "required": [ "cmd" ], "type": "object" }, "BPFMap": { "additionalProperties": false, "description": "BPFMapSerializer serializes a BPF map to JSON", "properties": { "map_type": { "description": "Type of the BPF map", "type": "string" }, "name": { "description": "Name of the BPF map", "type": "string" } }, "type": "object" }, "BPFProgram": { "additionalProperties": false, "description": "BPFProgramSerializer serializes a BPF map to JSON", "properties": { "attach_type": { "description": "Attach type of the BPF program", "type": "string" }, "helpers": { "description": "List of helpers used by the BPF program", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the BPF program", "type": "string" }, "program_type": { "description": "Type of the BPF program", "type": "string" }, "tag": { "description": "Hash (sha1) of the BPF program", "type": "string" } }, "type": "object" }, "BindEvent": { "additionalProperties": false, "description": "BindEventSerializer serializes a bind event to JSON", "properties": { "addr": { "$ref": "#/$defs/IPPortFamily", "description": "Bound address (if any)" } }, "required": [ "addr" ], "type": "object" }, "ContainerContext": { "additionalProperties": false, "description": "ContainerContextSerializer serializes a container context to JSON", "properties": { "created_at": { "description": "Creation time of the container", "format": "date-time", "type": "string" }, "id": { "description": "Container ID", "type": "string" } }, "type": "object" }, "DDContext": { "additionalProperties": false, "description": "DDContextSerializer serializes a span context to JSON", "properties": { "span_id": { "description": "Span ID used for APM correlation", "type": "integer" }, "trace_id": { "description": "Trace ID used for APM correlation", "type": "integer" } }, "type": "object" }, "DNSEvent": { "additionalProperties": false, "description": "DNSEventSerializer serializes a DNS event to JSON", "properties": { "id": { "description": "id is the unique identifier of the DNS request", "type": "integer" }, "question": { "$ref": "#/$defs/DNSQuestion", "description": "question is a DNS question for the DNS request" } }, "required": [ "id" ], "type": "object" }, "DNSQuestion": { "additionalProperties": false, "description": "DNSQuestionSerializer serializes a DNS question to JSON", "properties": { "class": { "description": "class is the class looked up by the DNS question", "type": "string" }, "count": { "description": "count is the total count of questions in the DNS request", "type": "integer" }, "name": { "description": "name is the queried domain name", "type": "string" }, "size": { "description": "size is the total DNS request size in bytes", "type": "integer" }, "type": { "description": "type is a two octet code which specifies the DNS question type", "type": "string" } }, "required": [ "class", "type", "name", "size", "count" ], "type": "object" }, "EventContext": { "additionalProperties": false, "description": "EventContextSerializer serializes an event context to JSON", "properties": { "async": { "description": "True if the event was asynchronous", "type": "boolean" }, "category": { "description": "Event category", "type": "string" }, "name": { "description": "Event name", "type": "string" }, "outcome": { "description": "Event outcome", "type": "string" } }, "type": "object" }, "ExitEvent": { "additionalProperties": false, "description": "ExitEventSerializer serializes an exit event to JSON", "properties": { "cause": { "description": "Cause of the process termination (one of EXITED, SIGNALED, COREDUMPED)", "type": "string" }, "code": { "description": "Exit code of the process or number of the signal that caused the process to terminate", "type": "integer" } }, "required": [ "cause", "code" ], "type": "object" }, "File": { "additionalProperties": false, "description": "FileSerializer serializes a file to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "FileEvent": { "additionalProperties": false, "description": "FileEventSerializer serializes a file event to JSON", "properties": { "access_time": { "description": "File access time", "format": "date-time", "type": "string" }, "attribute_name": { "description": "File extended attribute name", "type": "string" }, "attribute_namespace": { "description": "File extended attribute namespace", "type": "string" }, "change_time": { "description": "File change time", "format": "date-time", "type": "string" }, "destination": { "$ref": "#/$defs/File", "description": "Target file information" }, "device": { "description": "Device associated with the file", "type": "integer" }, "filesystem": { "description": "File filesystem name", "type": "string" }, "flags": { "description": "File flags", "items": { "type": "string" }, "type": "array" }, "fstype": { "description": "Filesystem type", "type": "string" }, "gid": { "description": "File Group ID", "type": "integer" }, "group": { "description": "File group", "type": "string" }, "group_id": { "description": "Group ID", "type": "integer" }, "in_upper_layer": { "description": "Indicator of file OverlayFS layer", "type": "boolean" }, "inode": { "description": "File inode number", "type": "integer" }, "mode": { "description": "File mode", "type": "integer" }, "modification_time": { "description": "File modified time", "format": "date-time", "type": "string" }, "mount_id": { "description": "File mount ID", "type": "integer" }, "name": { "description": "File basename", "type": "string" }, "new_mount_id": { "description": "New Mount ID", "type": "integer" }, "package_name": { "description": "System package name", "type": "string" }, "package_version": { "description": "System package version", "type": "string" }, "path": { "description": "File path", "type": "string" }, "path_resolution_error": { "description": "Error message from path resolution", "type": "string" }, "uid": { "description": "File User ID", "type": "integer" }, "user": { "description": "File user", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "IPPort": { "additionalProperties": false, "description": "IPPortSerializer is used to serialize an IP and Port context to JSON", "properties": { "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "ip", "port" ], "type": "object" }, "IPPortFamily": { "additionalProperties": false, "description": "IPPortFamilySerializer is used to serialize an IP, port, and address family context to JSON", "properties": { "family": { "description": "Address family", "type": "string" }, "ip": { "description": "IP address", "type": "string" }, "port": { "description": "Port number", "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" }, "MMapEvent": { "additionalProperties": false, "description": "MMapEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "memory segment address", "type": "string" }, "flags": { "description": "memory segment flags", "type": "string" }, "length": { "description": "memory segment length", "type": "integer" }, "offset": { "description": "file offset", "type": "integer" }, "protection": { "description": "memory segment protection", "type": "string" } }, "required": [ "address", "offset", "length", "protection", "flags" ], "type": "object" }, "MProtectEvent": { "additionalProperties": false, "description": "MProtectEventSerializer serializes a mmap event to JSON", "properties": { "req_protection": { "description": "new memory segment protection", "type": "string" }, "vm_end": { "description": "memory segment end address", "type": "string" }, "vm_protection": { "description": "initial memory segment protection", "type": "string" }, "vm_start": { "description": "memory segment start address", "type": "string" } }, "required": [ "vm_start", "vm_end", "vm_protection", "req_protection" ], "type": "object" }, "ModuleEvent": { "additionalProperties": false, "description": "ModuleEventSerializer serializes a module event to JSON", "properties": { "args_truncated": { "type": "boolean" }, "argv": { "items": { "type": "string" }, "type": "array" }, "loaded_from_memory": { "description": "indicates if a module was loaded from memory, as opposed to a file", "type": "boolean" }, "name": { "description": "module name", "type": "string" } }, "required": [ "name" ], "type": "object" }, "MountEvent": { "additionalProperties": false, "description": "MountEventSerializer serializes a mount event to JSON", "properties": { "bind_src_mount_id": { "type": "integer" }, "device": { "type": "integer" }, "fs_type": { "type": "string" }, "group_id": { "type": "integer" }, "mount_id": { "type": "integer" }, "mountpoint.path": { "type": "string" }, "mountpoint.path_error": { "type": "string" }, "mp": { "$ref": "#/$defs/File" }, "parent_mount_id": { "type": "integer" }, "root": { "$ref": "#/$defs/File" }, "source.path": { "type": "string" }, "source.path_error": { "type": "string" } }, "required": [ "mount_id", "group_id", "parent_mount_id", "bind_src_mount_id", "device" ], "type": "object" }, "NetworkContext": { "additionalProperties": false, "description": "NetworkContextSerializer serializes the network context to JSON", "properties": { "destination": { "$ref": "#/$defs/IPPort", "description": "destination is the receiver of the network event" }, "device": { "$ref": "#/$defs/NetworkDevice", "description": "device is the network device on which the event was captured" }, "l3_protocol": { "description": "l3_protocol is the layer 3 protocol name", "type": "string" }, "l4_protocol": { "description": "l4_protocol is the layer 4 protocol name", "type": "string" }, "size": { "description": "size is the size in bytes of the network event", "type": "integer" }, "source": { "$ref": "#/$defs/IPPort", "description": "source is the emitter of the network event" } }, "required": [ "l3_protocol", "l4_protocol", "source", "destination", "size" ], "type": "object" }, "NetworkDevice": { "additionalProperties": false, "description": "NetworkDeviceSerializer serializes the network device context to JSON", "properties": { "ifindex": { "description": "ifindex is the network interface ifindex", "type": "integer" }, "ifname": { "description": "ifname is the network interface name", "type": "string" }, "netns": { "description": "netns is the interface ifindex", "type": "integer" } }, "required": [ "netns", "ifindex", "ifname" ], "type": "object" }, "PTraceEvent": { "additionalProperties": false, "description": "PTraceEventSerializer serializes a mmap event to JSON", "properties": { "address": { "description": "address at which the ptrace request was executed", "type": "string" }, "request": { "description": "ptrace request", "type": "string" }, "tracee": { "$ref": "#/$defs/ProcessContext", "description": "process context of the tracee" } }, "required": [ "request", "address" ], "type": "object" }, "Process": { "additionalProperties": false, "description": "ProcessSerializer serializes a process to JSON", "properties": { "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessContext": { "additionalProperties": false, "description": "ProcessContextSerializer serializes a process context to JSON", "properties": { "ancestors": { "description": "Ancestor processes", "items": { "$ref": "#/$defs/Process" }, "type": "array" }, "args": { "description": "Command line arguments", "items": { "type": "string" }, "type": "array" }, "args_truncated": { "description": "Indicator of arguments truncation", "type": "boolean" }, "argv0": { "description": "First command line argument", "type": "string" }, "comm": { "description": "Command name", "type": "string" }, "container": { "$ref": "#/$defs/ContainerContext", "description": "Container context" }, "credentials": { "$ref": "#/$defs/ProcessCredentials", "description": "Credentials associated with the process" }, "envs": { "description": "Environment variables of the process", "items": { "type": "string" }, "type": "array" }, "envs_truncated": { "description": "Indicator of environments variable truncation", "type": "boolean" }, "exec_time": { "description": "Exec time of the process", "format": "date-time", "type": "string" }, "executable": { "$ref": "#/$defs/File", "description": "File information of the executable" }, "exit_time": { "description": "Exit time of the process", "format": "date-time", "type": "string" }, "fork_time": { "description": "Fork time of the process", "format": "date-time", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "interpreter": { "$ref": "#/$defs/File", "description": "File information of the interpreter" }, "is_kworker": { "description": "Indicates whether the process is a kworker", "type": "boolean" }, "is_thread": { "description": "Indicates whether the process is considered a thread (that is, a child process that hasn't executed another program)", "type": "boolean" }, "parent": { "$ref": "#/$defs/Process", "description": "Parent process" }, "path_resolution_error": { "description": "Description of an error in the path resolution", "type": "string" }, "pid": { "description": "Process ID", "type": "integer" }, "ppid": { "description": "Parent Process ID", "type": "integer" }, "source": { "description": "Process source", "type": "string" }, "tid": { "description": "Thread ID", "type": "integer" }, "tty": { "description": "TTY associated with the process", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid" ], "type": "object" }, "ProcessCredentials": { "additionalProperties": false, "description": "ProcessCredentialsSerializer serializes the process credentials to JSON", "properties": { "cap_effective": { "description": "Effective Capability set", "items": { "type": "string" }, "type": "array" }, "cap_permitted": { "description": "Permitted Capability set", "items": { "type": "string" }, "type": "array" }, "destination": { "description": "Credentials after the operation" }, "egid": { "description": "Effective Group ID", "type": "integer" }, "egroup": { "description": "Effective Group name", "type": "string" }, "euid": { "description": "Effective User ID", "type": "integer" }, "euser": { "description": "Effective User name", "type": "string" }, "fsgid": { "description": "Filesystem Group ID", "type": "integer" }, "fsgroup": { "description": "Filesystem Group name", "type": "string" }, "fsuid": { "description": "Filesystem User ID", "type": "integer" }, "fsuser": { "description": "Filesystem User name", "type": "string" }, "gid": { "description": "Group ID", "type": "integer" }, "group": { "description": "Group name", "type": "string" }, "uid": { "description": "User ID", "type": "integer" }, "user": { "description": "User name", "type": "string" } }, "required": [ "uid", "gid", "euid", "egid", "fsuid", "fsgid", "cap_effective", "cap_permitted" ], "type": "object" }, "SELinuxBoolChange": { "additionalProperties": false, "description": "SELinuxBoolChangeSerializer serializes a SELinux boolean change to JSON", "properties": { "name": { "description": "SELinux boolean name", "type": "string" }, "state": { "description": "SELinux boolean state ('on' or 'off')", "type": "string" } }, "type": "object" }, "SELinuxBoolCommit": { "additionalProperties": false, "description": "SELinuxBoolCommitSerializer serializes a SELinux boolean commit to JSON", "properties": { "state": { "description": "SELinux boolean commit operation", "type": "boolean" } }, "type": "object" }, "SELinuxEnforceStatus": { "additionalProperties": false, "description": "SELinuxEnforceStatusSerializer serializes a SELinux enforcement status change to JSON", "properties": { "status": { "description": "SELinux enforcement status (one of 'enforcing', 'permissive' or 'disabled')", "type": "string" } }, "type": "object" }, "SELinuxEvent": { "additionalProperties": false, "description": "SELinuxEventSerializer serializes a SELinux context to JSON", "properties": { "bool": { "$ref": "#/$defs/SELinuxBoolChange", "description": "SELinux boolean operation" }, "bool_commit": { "$ref": "#/$defs/SELinuxBoolCommit", "description": "SELinux boolean commit" }, "enforce": { "$ref": "#/$defs/SELinuxEnforceStatus", "description": "SELinux enforcement change" } }, "type": "object" }, "SecurityProfileContext": { "additionalProperties": false, "description": "SecurityProfileContextSerializer serializes the security profile context in an event", "properties": { "name": { "description": "Name of the security profile", "type": "string" }, "status": { "description": "Status defines in which state the security profile was when the event was triggered", "type": "string" }, "tags": { "description": "List of tags associated to this profile", "items": { "type": "string" }, "type": "array" }, "version": { "description": "Version of the profile in use", "type": "string" } }, "required": [ "name", "status", "version", "tags" ], "type": "object" }, "SignalEvent": { "additionalProperties": false, "description": "SignalEventSerializer serializes a signal event to JSON", "properties": { "pid": { "description": "signal target pid", "type": "integer" }, "target": { "$ref": "#/$defs/ProcessContext", "description": "process context of the signal target" }, "type": { "description": "signal type", "type": "string" } }, "required": [ "type", "pid" ], "type": "object" }, "SpliceEvent": { "additionalProperties": false, "description": "SpliceEventSerializer serializes a splice event to JSON", "properties": { "pipe_entry_flag": { "description": "Entry flag of the fd_out pipe passed to the splice syscall", "type": "string" }, "pipe_exit_flag": { "description": "Exit flag of the fd_out pipe passed to the splice syscall", "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" }, "UserContext": { "additionalProperties": false, "description": "UserContextSerializer serializes a user context to JSON", "properties": { "group": { "description": "Group name", "type": "string" }, "id": { "description": "User name", "type": "string" } }, "type": "object" } }, "$id": "https://github.com/DataDog/datadog-agent/pkg/security/serializers/event", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "EventSerializer serializes an event to JSON", "properties": { "anomaly_detection_syscall": { "$ref": "#/$defs/AnomalyDetectionSyscallEvent" }, "bind": { "$ref": "#/$defs/BindEvent" }, "bpf": { "$ref": "#/$defs/BPFEvent" }, "container": { "$ref": "#/$defs/ContainerContext" }, "date": { "format": "date-time", "type": "string" }, "dd": { "$ref": "#/$defs/DDContext" }, "dns": { "$ref": "#/$defs/DNSEvent" }, "evt": { "$ref": "#/$defs/EventContext" }, "exit": { "$ref": "#/$defs/ExitEvent" }, "file": { "$ref": "#/$defs/FileEvent" }, "mmap": { "$ref": "#/$defs/MMapEvent" }, "module": { "$ref": "#/$defs/ModuleEvent" }, "mount": { "$ref": "#/$defs/MountEvent" }, "mprotect": { "$ref": "#/$defs/MProtectEvent" }, "network": { "$ref": "#/$defs/NetworkContext" }, "process": { "$ref": "#/$defs/ProcessContext" }, "ptrace": { "$ref": "#/$defs/PTraceEvent" }, "security_profile": { "$ref": "#/$defs/SecurityProfileContext" }, "selinux": { "$ref": "#/$defs/SELinuxEvent" }, "signal": { "$ref": "#/$defs/SignalEvent" }, "splice": { "$ref": "#/$defs/SpliceEvent" }, "usr": { "$ref": "#/$defs/UserContext" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
df5e952e8913cdb902eede93b660b1ed805f64f3
2021-07-01T10:56:01
pkg/security/tests/schemas/chmod.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "chmod.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "file": { "properties": { "destination": { "required": [ "mode" ], "type": "object" } }, "required": [ "destination" ], "type": "object" } } } ], "anyOf": [ { "$ref": "file:///container_event.json" }, { "$ref": "file:///host_event.json" } ], "type": "object" }
Apache-2.0
en