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
gperdomor/nx-tools
e7b073f95bf1c3d185537039a0b77f1734ac65d3
2024-05-26T03:51:18
plugins/nx-graphql-codegen/src/generators/configuration/schema.json
331
2024-05-28T04:22:13.75087Z
{ "$id": "Configuration", "$schema": "https://json-schema.org/schema", "properties": { "configFileType": { "$default": { "index": 1 }, "alias": "e", "default": "ts", "description": "Options file type for GraphQL Code Generator configuration", "type": "string", "x-priority": "important", "x-prompt": { "items": [ { "label": "ts", "value": "ts" }, { "label": "yml", "value": "yml" } ], "message": "Which type of file would you like to use?", "type": "list" } }, "directory": { "description": "A directory where the GraphQL Code Generator config file is placed.", "type": "string", "x-prompt": "What directory would you like the GraphQL Code Generator config file is placed?" }, "project": { "description": "The name of the project to add the GraphQL Code Generator setup to.", "type": "string", "x-dropdown": "projects", "x-prompt": "What project would you like to add the GraphQL Code Generator setup to?" }, "schema": { "description": "A URL to your GraphQL endpoint.", "type": "string", "x-prompt": "What URL would you like to your GraphQL endpoint?" }, "skipFormat": { "description": "Skips formatting the workspace after the generator completes.", "type": "boolean" }, "skipPackageJson": { "default": false, "description": "Do not add dependencies to `package.json`", "type": "boolean" } }, "required": [ "project", "configFileType" ], "title": "", "type": "object" }
MIT
en
gperdomor/nx-tools
08ea098716e2287a875281b67b42f26f7f374724
2024-05-26T03:49:39
plugins/nx-prisma/src/executors/resolve/schema.json
331
2024-05-28T04:22:13.75087Z
{ "$schema": "https://json-schema.org/schema", "description": "The migrate resolve command allows you to solve migration history issues in production by marking a failed migration as already applied (supports baselining) or rolled back.", "properties": { "applied": { "description": "Record a specific migration as applied - for example --applied '20201231000000_add_users_table'", "type": "string" }, "rolled-back": { "description": "Record a specific migration as rolled back - for example --rolled-back '20201231000000_add_users_table'.", "type": "string" }, "schema": { "description": "Specifies the path to the desired schema.prisma file to be processed instead of the default path. Both absolute and relative paths are supported.", "type": "string" } }, "required": [], "title": "Prisma migrate resolve executor", "type": "object", "version": 2 }
MIT
en
gperdomor/nx-tools
08ea098716e2287a875281b67b42f26f7f374724
2024-05-26T03:49:39
plugins/nx-prisma/src/executors/status/schema.json
331
2024-05-28T04:22:13.75087Z
{ "$schema": "https://json-schema.org/schema", "description": "The prisma migrate status command looks up the migrations in migrations folder and the entries in the _prisma_migrations table and compiles information about the state of the migrations in your database.", "properties": { "schema": { "description": "Specifies the path to the desired schema.prisma file to be processed instead of the default path. Both absolute and relative paths are supported.", "type": "string" } }, "required": [], "title": "Prisma migrate status executor", "type": "object", "version": 2 }
MIT
en
gperdomor/nx-tools
08ea098716e2287a875281b67b42f26f7f374724
2024-05-26T03:49:39
plugins/nx-prisma/src/executors/validate/schema.json
331
2024-05-28T04:22:13.75087Z
{ "$schema": "https://json-schema.org/schema", "description": "Validates the Prisma Schema Language of the Prisma schema file.", "properties": { "schema": { "description": "Specifies the path to the desired schema.prisma file to be processed instead of the default path. Both absolute and relative paths are supported.", "type": "string" } }, "required": [], "title": "Prisma validate executor", "type": "object", "version": 2 }
MIT
en
gperdomor/nx-tools
08ea098716e2287a875281b67b42f26f7f374724
2024-05-26T03:49:39
plugins/nx-prisma/src/executors/seed/schema.json
331
2024-05-28T04:22:13.75087Z
{ "$schema": "https://json-schema.org/schema", "description": "Seed your database.", "properties": { "executeWith": { "default": "ts-node", "description": "Tool to use for executing the seeding script. Currently `ts-node` and `tsx` are supported", "enum": [ "ts-node", "tsx" ], "type": "string" }, "script": { "description": "The path to the seeding script", "type": "string" }, "tsConfig": { "description": "TypeScript config to use for seeding", "type": "string" } }, "required": [ "script" ], "title": "Prisma db seed executor", "type": "object", "version": 2 }
MIT
en
gperdomor/nx-tools
08ea098716e2287a875281b67b42f26f7f374724
2024-05-26T03:49:39
plugins/nx-prisma/src/executors/reset/schema.json
331
2024-05-28T04:22:13.75087Z
{ "$schema": "https://json-schema.org/schema", "description": "This command deletes and recreates the database, or performs a 'soft reset' by removing all data, tables, indexes, and other artifacts.", "properties": { "force": { "description": "Skip the confirmation prompt.", "type": "boolean" }, "schema": { "description": "Specifies the path to the desired schema.prisma file to be processed instead of the default path. Both absolute and relative paths are supported.", "type": "string" }, "skip-generate": { "description": "Skip triggering generators (for example, Prisma Client).", "type": "boolean" }, "skip-seed": { "description": "Skip triggering seed.", "type": "boolean" } }, "required": [ "force" ], "title": "Prisma migrate reset executor", "type": "object", "version": 2 }
MIT
en
gperdomor/nx-tools
08ea098716e2287a875281b67b42f26f7f374724
2024-05-26T03:49:39
plugins/nx-prisma/src/executors/migrate/schema.json
331
2024-05-28T04:22:13.75087Z
{ "$schema": "https://json-schema.org/schema", "description": "The migrate dev command updates your database using migrations during development and creates the database if it does not exist.", "properties": { "create-only": { "description": "Creates a new migration based on the changes in the schema but does not apply that migration.", "type": "boolean" }, "name": { "description": "The name of the migration.", "type": "string" }, "schema": { "description": "Specifies the path to the desired schema.prisma file to be processed instead of the default path. Both absolute and relative paths are supported.", "type": "string" }, "skip-generate": { "description": "Skip triggering generators (for example, Prisma Client).", "type": "boolean" }, "skip-seed": { "description": "Skip triggering seed.", "type": "boolean" } }, "required": [ "name" ], "title": "Prisma migrate dev executor", "type": "object", "version": 2 }
MIT
en
gperdomor/nx-tools
08ea098716e2287a875281b67b42f26f7f374724
2024-05-26T03:49:39
plugins/nx-prisma/src/executors/deploy/schema.json
331
2024-05-28T04:22:13.75087Z
{ "$schema": "https://json-schema.org/schema", "description": "The migrate deploy command applies all pending migrations, and creates the database if it does not exist. Primarily used in non-development environments.", "properties": { "schema": { "description": "Specifies the path to the desired schema.prisma file to be processed instead of the default path. Both absolute and relative paths are supported.", "type": "string" } }, "required": [], "title": "Prisma migrate deploy executor", "type": "object", "version": 2 }
MIT
en
gperdomor/nx-tools
08ea098716e2287a875281b67b42f26f7f374724
2024-05-26T03:49:39
plugins/nx-prisma/src/executors/push/schema.json
331
2024-05-28T04:22:13.75087Z
{ "$schema": "https://json-schema.org/schema", "description": "The db push command pushes the state of your Prisma schema file to the database without using migrations. It creates the database if the database does not exist.", "properties": { "accept-data-loss": { "description": "Ignore data loss warnings. This option is required if as a result of making the schema changes, data may be lost.", "type": "boolean" }, "force-reset": { "description": "Resets the database and then updates the schema - useful if you need to start from scratch due to unexecutable migrations.", "type": "boolean" }, "schema": { "description": "Specifies the path to the desired schema.prisma file to be processed instead of the default path. Both absolute and relative paths are supported.", "type": "string" }, "skip-generate": { "description": "Skip generation of artifacts such as Prisma Client.", "type": "boolean" } }, "required": [], "title": "Prisma db push executor", "type": "object", "version": 2 }
MIT
en
gperdomor/nx-tools
e76e9561a6be8e47a46f50bf813bcf5912195f7e
2024-05-26T03:45:31
plugins/nx-container/src/generators/configuration/schema.json
331
2024-05-28T04:22:13.75087Z
{ "$id": "Configuration", "$schema": "https://json-schema.org/schema", "properties": { "engine": { "alias": "e", "default": "docker", "description": "Provide the container engine to be used.", "enum": [ "docker", "podman", "kaniko" ], "type": "string", "x-prompt": { "items": [ { "label": "Docker", "value": "docker" }, { "label": "Podman", "value": "podman" }, { "label": "Kaniko", "value": "kaniko" } ], "message": "Which type of engine would you like to use?", "type": "list" } }, "project": { "description": "The name of the project to add the Container setup to.", "type": "string", "x-dropdown": "projects", "x-prompt": "What project would you like to add the Container setup to?" }, "skipFormat": { "default": false, "description": "Skips formatting the workspace after the generator completes.", "type": "boolean" }, "template": { "alias": "t", "default": "empty", "description": "Which type of app you are building?.", "enum": [ "empty", "nest", "next", "nginx" ], "type": "string", "x-prompt": { "items": [ { "label": "Empty Dockerfile", "value": "empty" }, { "label": "Nest Application", "value": "nest" }, { "label": "Next Application", "value": "next" }, { "label": "Single Page Application", "value": "nginx" } ], "message": "Which type of app you are building?", "type": "list" } } }, "required": [ "project" ], "title": "", "type": "object" }
MIT
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/library/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/library/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "lib_version": { "type": "string" }, "runtime_type": { "type": "string" }, "runtime_version": { "type": "string" } }, "required": [ "context_version", "runtime_type", "runtime_version", "lib_version" ], "title": "Library", "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/service_entry_span/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/service_entry_span/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "id": { "description": "[INDEXED]", "type": [ "string", "number" ] } }, "required": [ "context_version", "id" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/events/_definitions/rule/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/events/_definitions/rule/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "id": { "description": "[INDEXED] The unique identifier of the rule that triggered the event", "type": "string" }, "name": { "description": "The friendly name of the rule that triggered the event", "type": "string" }, "set": { "description": "This field should hold the name of the rule set. This concept is not currently in the new rule format", "type": [ "string", "null" ] } }, "required": [ "id", "name" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/library/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/library/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "lib_version": { "type": "string" }, "runtime_type": { "type": "string" }, "runtime_version": { "type": "string" } }, "required": [ "context_version", "runtime_type", "runtime_version", "lib_version" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/service/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/service/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "environment": { "type": [ "string", "null" ] }, "name": { "type": "string" }, "version": { "type": [ "string", "null" ] } }, "required": [ "context_version", "name" ], "title": "Service", "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/code_location/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/code_location/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "definitions": { "StackTraceItem": { "abs_path": { "type": [ "string", "null" ] }, "function": { "type": [ "string", "null" ] }, "in_app": { "type": [ "boolean", "null" ] }, "line_no": { "type": [ "number", "null" ] }, "module": { "type": [ "string", "null" ] } } }, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "stacktrace": { "items": { "$ref": "#/definitions/StackTraceItem" }, "type": "array" } }, "required": [ "context_version" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
6763fa1e90ad1d1c93b35c60a653565437a954cc
2021-10-05T11:31:41
utils/interfaces/schemas/miscs/appsec/contexts/_definitions/all_context.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/_definitions/all_context.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "actor": { "oneOf": [ { "$ref": "../actor/0.1.0.json" } ] }, "agent": { "oneOf": [ { "$ref": "../agent/0.1.0.json" } ] }, "code_location": { "oneOf": [ { "$ref": "../code_location/0.1.0.json" } ] }, "host": { "oneOf": [ { "$ref": "../host/0.1.0.json" } ] }, "http": { "oneOf": [ { "$ref": "../http/0.1.0.json" }, { "$ref": "../http/1.0.0.json" } ] }, "library": { "oneOf": [ { "$ref": "../library/0.1.0.json" } ] }, "service": { "oneOf": [ { "$ref": "../service/0.1.0.json" } ] }, "service_entry_span": { "oneOf": [ { "$ref": "../service_entry_span/0.1.0.json" } ] }, "span": { "oneOf": [ { "$ref": "../span/0.1.0.json" } ] }, "sqreen": { "oneOf": [ { "$ref": "../sqreen/0.1.0.json" } ] }, "tags": { "oneOf": [ { "$ref": "../tags/0.1.0.json" } ] }, "trace": { "oneOf": [ { "$ref": "../trace/0.1.0.json" } ] } }, "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/service/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/service/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "environment": { "type": [ "string", "null" ] }, "name": { "type": "string" }, "version": { "type": [ "string", "null" ] } }, "required": [ "context_version", "name" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/host/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/host/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "hostname": { "type": "string" }, "os_type": { "type": "string" } }, "required": [ "context_version" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/events/_definitions/rule_match/1.0.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/events/_definitions/rule_match/1.0.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "highlight": { "description": "The part of the value that triggered the rule. It is currently optional to provide this value until we have a PII strategy.", "items": { "type": "string" }, "type": "array" }, "operator": { "description": "The rule operator that triggered this event. For example, ``match_regex`` or ``phrase_match``.", "type": "string" }, "operator_value": { "description": "The rule operator operand that triggered this event. For example, the word that triggered using the ``phrase_match`` operator.", "type": "string" }, "parameters": { "items": { "properties": { "address": { "description": "The address containing the value that triggered the rule. For example ``http.server.query``.", "type": "string" }, "key_path": { "description": "The path of the value that triggered the rule. For example ``[\"query\", 0]`` to refer to the value in ``{\"query\": [\"triggering value\"]}``.", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] }, "type": "array" }, "value": { "description": "The value that triggered the rule. It is currently optional to provide this value until we have a PII strategy.", "type": "string" } }, "required": [ "address" ], "type": "object" }, "type": "array" } }, "required": [ "operator", "operator_value", "parameters" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/events/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/events/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "deprecated": true, "properties": { "blocked": { "description": "[INDEXED]", "type": "boolean" }, "context": { "allOf": [ { "$ref": "../contexts/_definitions/all_context.json" }, { "required": [ "actor", "service", "span", "trace", "tracer" ], "title": "Required context" } ] }, "detected_at": { "description": "[INDEXED]", "format": "date-time", "type": "string" }, "event_id": { "type": "string" }, "event_type": { "const": "appsec.threat.attack", "description": "[INDEXED]", "type": "string" }, "event_version": { "const": "0.1.0", "type": "string" }, "rule": { "$ref": "_definitions/rule/0.1.0.json" }, "rule_match": { "$ref": "_definitions/rule_match/0.1.0.json" }, "type": { "description": "[INDEXED] The type of the triggered rule.", "type": "string" } }, "required": [ "event_id", "event_type", "event_version", "detected_at", "type", "blocked", "rule", "rule_match", "context" ], "title": "AppSec Event 0.1.0", "type": "object" }
Apache-2.0
en
DataDog/system-tests
a84062f308e670dd5bf7cdf96cd29a49b6e464c1
2021-10-05T11:40:47
utils/interfaces/schemas/miscs/appsec/contexts/_definitions/all_context.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/_definitions/all_context.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "actor": { "oneOf": [ { "$ref": "../actor/0.1.0.json" } ] }, "agent": { "oneOf": [ { "$ref": "../agent/0.1.0.json" } ] }, "code_location": { "oneOf": [ { "$ref": "../code_location/0.1.0.json" } ] }, "host": { "oneOf": [ { "$ref": "../host/0.1.0.json" } ] }, "http": { "allOf": [ { "if": { "properties": { "context_version": { "const": "0.1.0" } } }, "then": { "$ref": "../http/0.1.0.json" } }, { "if": { "properties": { "context_version": { "const": "1.0.0" } } }, "then": { "$ref": "../http/1.0.0.json" } } ] }, "library": { "oneOf": [ { "$ref": "../library/0.1.0.json" } ] }, "service": { "oneOf": [ { "$ref": "../service/0.1.0.json" } ] }, "service_entry_span": { "oneOf": [ { "$ref": "../service_entry_span/0.1.0.json" } ] }, "span": { "oneOf": [ { "$ref": "../span/0.1.0.json" } ] }, "sqreen": { "oneOf": [ { "$ref": "../sqreen/0.1.0.json" } ] }, "tags": { "oneOf": [ { "$ref": "../tags/0.1.0.json" } ] }, "trace": { "oneOf": [ { "$ref": "../trace/0.1.0.json" } ] } }, "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/events/_definitions/rule/1.0.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/events/_definitions/rule/1.0.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "id": { "description": "The unique identifier of the rule that triggered the event. For example, ``ua-910-xax``.", "type": "string" }, "name": { "description": "The friendly name of the rule that triggered the event.", "type": "string" }, "tags": { "description": "The tags associated to the rule in the event rules file.", "patternProperties": { "^.+$": { "type": "string" } }, "type": "object" } }, "required": [ "id", "name", "tags" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/http/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/http/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "definitions": { "HttpHeaders": { "patternProperties": { "^.*$": { "type": "string" } }, "type": [ "object", "null" ] }, "HttpRequest": { "properties": { "end_processing_time": { "format": "date-time", "type": [ "string", "null" ] }, "headers": { "$ref": "#/definitions/HttpHeaders" }, "host": { "description": "[INDEXED]The authority part of the URL that generated the security event.", "type": "string" }, "id": { "description": "Request id", "type": [ "string", "null" ] }, "method": { "$comment": "Sqreen name: verb", "description": "The verb part of the http header that generated the security event.", "type": "string" }, "parameters": { "description": "TODO Formalize this when more context.", "properties": { "form": { "patternProperties": { "^.+$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] }, "json": { "$comment": "This is a dictionary and seems hard to describe consistently at the moment.", "patternProperties": { "^.+$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] }, "other": { "$comment": "This is a dictionary and seems hard to describe consistently at the moment.", "patternProperties": { "^.+$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] }, "query": { "$comment": "This is a dictionary and seems hard to describe consistently at the moment.", "patternProperties": { "^.+$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] } }, "type": [ "object", "null" ] }, "path": { "description": "The path of the URL that generated the security event.", "type": "string" }, "port": { "description": "The port in the authority part of the URL that generated the security event.", "type": "integer" }, "referer": { "type": [ "string", "null" ] }, "remote_ip": { "anyOf": [ { "format": "ipv4" }, { "format": "ipv6" } ], "type": "string" }, "remote_port": { "type": "integer" }, "resource": { "$comment": "Sqreen name: endpoint", "description": "[INDEXED]", "type": [ "string", "null" ] }, "scheme": { "description": "The scheme part of the URL that generated the security event.", "type": "string" }, "start_processing_time": { "format": "date-time", "type": [ "string", "null" ] }, "url": { "description": "The URL that generated the security event. It should not include the query string for PII reasons.", "type": "string" }, "useragent": { "$comment": "Single word without underscore, to be consistent with how the related datadog facet is spelled.", "type": [ "string", "null" ] } }, "required": [ "scheme", "method", "host", "port", "url", "remote_ip", "remote_port", "path" ], "type": "object" }, "HttpResponse": { "$comments": "FIXME May not be complete", "properties": { "blocked": { "type": "boolean" }, "content_length": { "type": [ "number", "null" ] }, "content_type": { "type": [ "string", "null" ] }, "headers": { "$ref": "#/definitions/HttpHeaders" }, "status": { "type": [ "integer", "null" ] } }, "type": "object" } }, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "request": { "$ref": "#/definitions/HttpRequest" }, "response": { "$ref": "#/definitions/HttpResponse" } }, "required": [ "context_version", "request" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/http/1.0.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/http/1.0.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "definitions": { "HttpHeaders": { "patternProperties": { "^.*$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] }, "HttpRequest": { "properties": { "headers": { "$ref": "#/definitions/HttpHeaders" }, "id": { "description": "Request id", "type": [ "string", "null" ] }, "method": { "$comment": "Sqreen name: verb", "description": "The verb part of the http header that generated the security event.", "type": "string" }, "parameters": { "description": "TODO Formalize this when more context.", "properties": { "form": { "patternProperties": { "^.+$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] }, "json": { "$comment": "This is a dictionary and seems hard to describe consistently at the moment.", "patternProperties": { "^.+$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] }, "other": { "$comment": "This is a dictionary and seems hard to describe consistently at the moment.", "patternProperties": { "^.+$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] }, "query": { "$comment": "This is a dictionary and seems hard to describe consistently at the moment.", "patternProperties": { "^.+$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] } }, "type": [ "object", "null" ] }, "remote_ip": { "anyOf": [ { "format": "ipv4" }, { "format": "ipv6" } ], "type": "string" }, "remote_port": { "type": "integer" }, "resource": { "$comment": "Sqreen name: endpoint", "description": "[INDEXED]", "type": [ "string", "null" ] }, "url": { "description": "The URL that generated the security event. It should not include the query string for PII reasons.", "type": "string" } }, "required": [ "method", "url", "headers", "remote_ip", "remote_port" ], "type": "object" }, "HttpResponse": { "properties": { "blocked": { "type": "boolean" }, "headers": { "$ref": "#/definitions/HttpHeaders" }, "status": { "type": [ "integer", "null" ] } }, "required": [ "status", "headers" ], "type": "object" } }, "properties": { "context_version": { "const": "1.0.0", "type": "string" }, "request": { "$ref": "#/definitions/HttpRequest" }, "response": { "$ref": "#/definitions/HttpResponse" } }, "required": [ "context_version", "request" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/tags/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/tags/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "values": { "description": "A list of tags.", "items": { "$comment": "See https://docs.datadoghq.com/getting_started/tagging/#defining-tags", "description": "A tag as described in https://docs.datadoghq.com/getting_started/tagging/#defining-tags.", "type": "string" }, "type": "array", "uniqueItems": true } }, "required": [ "context_version", "values" ], "title": "Tags", "type": "object" }
Apache-2.0
en
DataDog/system-tests
89d36cd56dd9148dfda0d385fc048da92e08afb5
2021-11-26T11:28:09
utils/interfaces/schemas/miscs/appsec/contexts/http/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/http/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "definitions": { "HttpHeaders": { "existingJavaType": "java.lang.String", "patternProperties": { "^.*$": { "type": "string" } }, "type": [ "object", "null" ] }, "HttpRequest": { "properties": { "end_processing_time": { "format": "date-time", "type": [ "string", "null" ] }, "headers": { "$ref": "#/definitions/HttpHeaders" }, "host": { "description": "[INDEXED]The authority part of the URL that generated the security event.", "type": "string" }, "id": { "description": "Request id", "type": [ "string", "null" ] }, "method": { "$comment": "Sqreen name: verb", "description": "The verb part of the http header that generated the security event.", "type": "string" }, "parameters": { "$ref": "parameters.json" }, "path": { "description": "The path of the URL that generated the security event.", "type": "string" }, "port": { "description": "The port in the authority part of the URL that generated the security event.", "type": "integer" }, "referer": { "type": [ "string", "null" ] }, "remote_ip": { "anyOf": [ { "format": "ipv4" }, { "format": "ipv6" } ], "type": "string" }, "remote_port": { "type": "integer" }, "resource": { "$comment": "Sqreen name: endpoint", "description": "[INDEXED]", "type": [ "string", "null" ] }, "scheme": { "description": "The scheme part of the URL that generated the security event.", "type": "string" }, "start_processing_time": { "format": "date-time", "type": [ "string", "null" ] }, "url": { "description": "The URL that generated the security event. It should not include the query string for PII reasons.", "type": "string" }, "useragent": { "$comment": "Single word without underscore, to be consistent with how the related datadog facet is spelled.", "type": [ "string", "null" ] } }, "required": [ "scheme", "method", "host", "port", "url", "remote_ip", "path" ], "title": "HttpRequest 0.1.0", "type": "object" }, "HttpResponse": { "$comments": "FIXME May not be complete", "properties": { "blocked": { "type": "boolean" }, "content_length": { "type": [ "number", "null" ] }, "content_type": { "type": [ "string", "null" ] }, "headers": { "$ref": "#/definitions/HttpHeaders" }, "status": { "type": [ "integer", "null" ] } }, "title": "HttpResponse 0.1.0", "type": "object" } }, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "request": { "$ref": "#/definitions/HttpRequest" }, "response": { "$ref": "#/definitions/HttpResponse" } }, "required": [ "context_version", "request" ], "title": "Http 0.1.0", "type": "object" }
Apache-2.0
en
DataDog/system-tests
2f154d089c6654dc97fb329ae7432975807d2030
2021-10-05T11:20:43
utils/interfaces/schemas/miscs/appsec/events/_definitions/all_events.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/events/_definitions/all_events.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "if": { "properties": { "event_version": { "const": "1.0.0" } } }, "then": { "$ref": "../1.0.0.json" } }, { "if": { "properties": { "event_version": { "const": "0.1.0" } } }, "then": { "$ref": "../0.1.0.json" } } ] }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/trace/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/trace/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "id": { "type": [ "string", "number" ] } }, "required": [ "context_version", "id" ], "title": "Trace", "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/trace/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/trace/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "id": { "type": [ "string", "number" ] } }, "required": [ "context_version", "id" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/http/1.0.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/http/1.0.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "definitions": { "HttpHeaders": { "existingJavaType": "java.util.Map<String, ? extends java.util.Collection<String>>", "patternProperties": { "^.*$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] }, "HttpRequest": { "properties": { "headers": { "$ref": "#/definitions/HttpHeaders" }, "id": { "description": "Request id", "type": [ "string", "null" ] }, "method": { "$comment": "Sqreen name: verb", "description": "The verb part of the http header that generated the security event.", "type": "string" }, "parameters": { "$ref": "parameters.json" }, "remote_ip": { "anyOf": [ { "format": "ipv4" }, { "format": "ipv6" } ], "type": "string" }, "remote_port": { "type": "integer" }, "resource": { "$comment": "Sqreen name: endpoint", "description": "[INDEXED]", "type": [ "string", "null" ] }, "url": { "description": "The URL that generated the security event. It should not include the query string for PII reasons.", "type": "string" } }, "required": [ "method", "url", "headers", "remote_ip", "remote_port" ], "title": "HttpRequest 1.0.0", "type": "object" }, "HttpResponse": { "properties": { "blocked": { "type": "boolean" }, "headers": { "$ref": "#/definitions/HttpHeaders" }, "status": { "type": [ "integer", "null" ] } }, "required": [ "status", "headers" ], "title": "HttpResponse 1.0.0", "type": "object" } }, "properties": { "context_version": { "const": "1.0.0", "type": "string" }, "request": { "$ref": "#/definitions/HttpRequest" }, "response": { "$ref": "#/definitions/HttpResponse" } }, "required": [ "context_version", "request" ], "title": "Http 1.0.0", "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/http/parameters.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/http/parameters.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "description": "TODO Formalize this when more context.", "properties": { "form": { "existingJavaType": "java.util.Map<String, String>", "patternProperties": { "^.+$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] }, "json": { "$comment": "This is a dictionary and seems hard to describe consistently at the moment.", "existingJavaType": "java.util.Map<String, String>", "patternProperties": { "^.+$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] }, "other": { "$comment": "This is a dictionary and seems hard to describe consistently at the moment.", "existingJavaType": "java.util.Map<String, String>", "patternProperties": { "^.+$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] }, "query": { "$comment": "This is a dictionary and seems hard to describe consistently at the moment.", "existingJavaType": "java.util.Map<String, String>", "patternProperties": { "^.+$": { "items": { "type": "string" }, "type": "array" } }, "type": [ "object", "null" ] } }, "title": "Parameters", "type": [ "object", "null" ] }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/sqreen/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/sqreen/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "application_id": { "type": "string" }, "context_version": { "const": "0.1.0", "type": "string" }, "instance_id": { "type": "string" }, "is_from_backend": { "type": "boolean" }, "organization_id": { "type": "string" }, "signal_id": { "type": "string" }, "trace_id": { "type": "string" } }, "required": [ "context_version", "application_id", "organization_id", "instance_id", "signal_id", "is_from_backend" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/_definitions/all_context.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/_definitions/all_context.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "actor": { "oneOf": [ { "$ref": "../actor/0.1.0.json" } ] }, "agent": { "oneOf": [ { "$ref": "../agent/0.1.0.json" } ] }, "code_location": { "oneOf": [ { "$ref": "../code_location/0.1.0.json" } ] }, "host": { "oneOf": [ { "$ref": "../host/0.1.0.json" } ] }, "http": { "oneOf": [ { "$ref": "../http/1.0.0.json" } ] }, "library": { "oneOf": [ { "$ref": "../library/0.1.0.json" } ] }, "service": { "oneOf": [ { "$ref": "../service/0.1.0.json" } ] }, "service_entry_span": { "oneOf": [ { "$ref": "../service_entry_span/0.1.0.json" } ] }, "span": { "oneOf": [ { "$ref": "../span/0.1.0.json" } ] }, "sqreen": { "oneOf": [ { "$ref": "../sqreen/0.1.0.json" } ] }, "tags": { "oneOf": [ { "$ref": "../tags/0.1.0.json" } ] }, "trace": { "oneOf": [ { "$ref": "../trace/0.1.0.json" } ] } }, "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/span/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/span/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "id": { "description": "[INDEXED]", "type": [ "string", "number" ] } }, "required": [ "context_version", "id" ], "title": "Span", "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/events/_definitions/rule_match/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/events/_definitions/rule_match/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "has_server_side_match": { "description": "This field is not currently used, it was added for backward compatibility", "type": "boolean" }, "highlight": { "items": { "type": "string" }, "type": "array" }, "operator": { "type": "string" }, "operator_value": { "description": "This field should hold the operator of the rule match. It should use the new rule format", "type": "string" }, "parameters": { "items": { "properties": { "name": { "type": "string" }, "value": { "type": "string" } }, "title": "Parameter 0.1.0", "type": "object" }, "type": "array" } }, "title": "Rule Match 0.1.0", "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/actor/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/actor/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "definitions": {}, "properties": { "_id": { "$comment": "Previously `sqreen_identifier`: b64(json(identifiers)) or sha512(b64(json(identifiers))) if too long.", "description": "An internal identifier for the actor.", "type": [ "string", "null" ] }, "context_version": { "const": "0.1.0", "type": "string" }, "identifiers": { "patternProperties": { "^.+$": { "type": "string" } }, "type": [ "object", "null" ] }, "ip": { "properties": { "address": { "anyOf": [ { "format": "ipv4" }, { "format": "ipv6" } ], "type": "string" } }, "required": [ "address" ], "type": "object" } }, "required": [ "context_version", "ip" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/events/_definitions/all_events.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/events/_definitions/all_events.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "if": { "event_version": { "const": "1.0.0" } }, "then": { "$ref": "../1.0.0.json" } }, { "if": { "event_version": { "const": "0.1.0" } }, "then": { "$ref": "../0.1.0.json" } } ] }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/events/_definitions/rule_match/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/events/_definitions/rule_match/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "has_server_side_match": { "description": "This field is not currently used, it was added for backward compatibility", "type": "boolean" }, "highlight": { "items": { "type": "string" }, "type": "array" }, "operator": { "type": "string" }, "operator_value": { "description": "This field should hold the operator of the rule match. It should use the new rule format", "type": "string" }, "parameters": { "items": { "properties": { "name": { "type": "string" }, "value": { "type": "string" } }, "type": "object" }, "type": "array" } }, "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/agent/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/agent/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "agent_version": { "type": "string" }, "context_version": { "const": "0.1.0", "type": "string" } }, "required": [ "context_version", "agent_version" ], "title": "Agent", "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/events/_definitions/rule/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/events/_definitions/rule/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "id": { "description": "[INDEXED] The unique identifier of the rule that triggered the event", "type": "string" }, "name": { "description": "The friendly name of the rule that triggered the event", "type": "string" }, "set": { "description": "This field should hold the name of the rule set. This concept is not currently in the new rule format", "type": [ "string", "null" ] } }, "required": [ "id", "name" ], "title": "Rule 0.1.0", "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/http/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/http/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "definitions": { "HttpHeaders": { "existingJavaType": "java.lang.String", "patternProperties": { "^.*$": { "type": "string" } }, "type": [ "object", "null" ] }, "HttpRequest": { "properties": { "end_processing_time": { "format": "date-time", "type": [ "string", "null" ] }, "headers": { "$ref": "#/definitions/HttpHeaders" }, "host": { "description": "[INDEXED]The authority part of the URL that generated the security event.", "type": "string" }, "id": { "description": "Request id", "type": [ "string", "null" ] }, "method": { "$comment": "Sqreen name: verb", "description": "The verb part of the http header that generated the security event.", "type": "string" }, "parameters": { "$ref": "parameters.json" }, "path": { "description": "The path of the URL that generated the security event.", "type": "string" }, "port": { "description": "The port in the authority part of the URL that generated the security event.", "type": "integer" }, "referer": { "type": [ "string", "null" ] }, "remote_ip": { "anyOf": [ { "format": "ipv4" }, { "format": "ipv6" } ], "type": "string" }, "remote_port": { "type": "integer" }, "resource": { "$comment": "Sqreen name: endpoint", "description": "[INDEXED]", "type": [ "string", "null" ] }, "scheme": { "description": "The scheme part of the URL that generated the security event.", "type": "string" }, "start_processing_time": { "format": "date-time", "type": [ "string", "null" ] }, "url": { "description": "The URL that generated the security event. It should not include the query string for PII reasons.", "type": "string" }, "useragent": { "$comment": "Single word without underscore, to be consistent with how the related datadog facet is spelled.", "type": [ "string", "null" ] } }, "required": [ "scheme", "method", "host", "port", "url", "remote_ip", "remote_port", "path" ], "title": "HttpRequest 0.1.0", "type": "object" }, "HttpResponse": { "$comments": "FIXME May not be complete", "properties": { "blocked": { "type": "boolean" }, "content_length": { "type": [ "number", "null" ] }, "content_type": { "type": [ "string", "null" ] }, "headers": { "$ref": "#/definitions/HttpHeaders" }, "status": { "type": [ "integer", "null" ] } }, "title": "HttpResponse 0.1.0", "type": "object" } }, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "request": { "$ref": "#/definitions/HttpRequest" }, "response": { "$ref": "#/definitions/HttpResponse" } }, "required": [ "context_version", "request" ], "title": "Http 0.1.0", "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/events/_definitions/rule/1.0.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/events/_definitions/rule/1.0.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "id": { "description": "The unique identifier of the rule that triggered the event. For example, ``ua-910-xax``.", "type": "string" }, "name": { "description": "The friendly name of the rule that triggered the event.", "type": "string" }, "tags": { "description": "The tags associated to the rule in the event rules file.", "existingJavaType": "java.util.Map<String, String>", "patternProperties": { "^.+$": { "type": "string" } }, "type": "object" } }, "required": [ "id", "name", "tags" ], "title": "Rule 1.0.0", "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/span/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/span/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "id": { "description": "[INDEXED]", "type": [ "string", "number" ] } }, "required": [ "context_version", "id" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/service_entry_span/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/service_entry_span/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "id": { "description": "[INDEXED]", "type": [ "string", "number" ] } }, "required": [ "context_version", "id" ], "title": "Service Entry Span", "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/sqreen/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/sqreen/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "application_id": { "type": "string" }, "context_version": { "const": "0.1.0", "type": "string" }, "instance_id": { "type": "string" }, "is_from_backend": { "type": "boolean" }, "organization_id": { "type": "string" }, "signal_id": { "type": "string" }, "trace_id": { "type": "string" } }, "required": [ "context_version", "application_id", "organization_id", "instance_id", "signal_id", "is_from_backend" ], "title": "Sqreen", "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/events/1.0.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/events/1.0.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "context": { "allOf": [ { "$ref": "../contexts/_definitions/all_context.json" }, { "required": [ "http", "service", "span", "trace" ], "title": "Required context" } ] }, "detected_at": { "description": "Time of the event detection using the format defined in RFC 3339, section 5.6. For example, ``2018-11-13T20:20:39+00:00``.", "format": "date-time", "type": "string" }, "event_id": { "description": "Random UUID uniquely identifying this event.", "type": "string" }, "event_type": { "const": "appsec", "type": "string" }, "event_version": { "const": "1.0.0", "type": "string" }, "rule": { "$ref": "_definitions/rule/1.0.0.json" }, "rule_match": { "$ref": "_definitions/rule_match/1.0.0.json" } }, "required": [ "event_id", "event_type", "event_version", "detected_at", "rule", "rule_match", "context" ], "title": "AppSec Event 1.0.0", "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/events/_definitions/rule_match/1.0.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/events/_definitions/rule_match/1.0.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "highlight": { "description": "The part of the value that triggered the rule. It is currently optional to provide this value until we have a PII strategy.", "items": { "type": "string" }, "type": "array" }, "operator": { "description": "The rule operator that triggered this event. For example, ``match_regex`` or ``phrase_match``.", "type": "string" }, "operator_value": { "description": "The rule operator operand that triggered this event. For example, the word that triggered using the ``phrase_match`` operator.", "type": "string" }, "parameters": { "items": { "properties": { "address": { "description": "The address containing the value that triggered the rule. For example ``http.server.query``.", "type": "string" }, "key_path": { "description": "The path of the value that triggered the rule. For example ``[\"query\", 0]`` to refer to the value in ``{\"query\": [\"triggering value\"]}``.", "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] }, "type": "array" }, "value": { "description": "The value that triggered the rule. It is currently optional to provide this value until we have a PII strategy.", "type": "string" } }, "required": [ "address" ], "title": "Parameter 1.0.0", "type": "object" }, "type": "array" } }, "required": [ "operator", "operator_value", "parameters" ], "title": "Rule Match 1.0.0", "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/actor/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/actor/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "definitions": {}, "properties": { "_id": { "$comment": "Previously `sqreen_identifier`: b64(json(identifiers)) or sha512(b64(json(identifiers))) if too long.", "description": "An internal identifier for the actor.", "type": [ "string", "null" ] }, "context_version": { "const": "0.1.0", "type": "string" }, "identifiers": { "existingJavaType": "java.util.Map<String, Object>", "patternProperties": { "^.+$": { "type": "string" } }, "type": [ "object", "null" ] }, "ip": { "properties": { "address": { "anyOf": [ { "format": "ipv4" }, { "format": "ipv6" } ], "type": "string" } }, "required": [ "address" ], "type": "object" } }, "required": [ "context_version", "ip" ], "title": "Actor", "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/host/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/host/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "hostname": { "type": "string" }, "os_type": { "type": "string" } }, "required": [ "context_version" ], "title": "Host", "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/agent/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/agent/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "agent_version": { "type": "string" }, "context_version": { "const": "0.1.0", "type": "string" } }, "required": [ "context_version", "agent_version" ], "type": "object" }
Apache-2.0
en
DataDog/system-tests
0b288fc1003d9f34569f72a27861a83cea3fab79
2021-11-07T22:08:56
utils/interfaces/schemas/miscs/appsec/contexts/code_location/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/code_location/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "definitions": { "StackTraceItem": { "abs_path": { "type": [ "string", "null" ] }, "function": { "type": [ "string", "null" ] }, "in_app": { "type": [ "boolean", "null" ] }, "line_no": { "type": [ "number", "null" ] }, "module": { "type": [ "string", "null" ] } } }, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "stacktrace": { "items": { "$ref": "#/definitions/StackTraceItem" }, "type": "array" } }, "required": [ "context_version" ], "title": "Code Location", "type": "object" }
Apache-2.0
en
DataDog/system-tests
4472b54bc8d4fc77b423ea7123c9c25c5a10c3d9
2021-10-05T09:24:32
utils/interfaces/schemas/miscs/appsec/contexts/tags/0.1.0.json
20
2024-05-27T10:17:02.236855Z
{ "$id": "/miscs/appsec/contexts/tags/0.1.0.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "properties": { "context_version": { "const": "0.1.0", "type": "string" }, "values": { "description": "A list of tags.", "items": { "$comment": "See https://docs.datadoghq.com/getting_started/tagging/#defining-tags", "description": "A tag as described in https://docs.datadoghq.com/getting_started/tagging/#defining-tags.", "type": "string" }, "type": "array", "uniqueItems": true } }, "required": [ "context_version", "values" ], "type": "object" }
Apache-2.0
en
DataDog/threatest
b65fbd3117daa6ae996b151bb43787c3fc5d15e9
2022-11-15T22:01:19
schemas/threatest.schema.json
311
2024-05-27T06:08:14.469898Z
{ "$id": "https://github.com/datadog/threatest/threatest.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "description": "Schema for a Threatest test suite", "properties": { "scenarios": { "description": "The display name of the vulnerability", "items": { "description": "The list of scenarios", "properties": { "description": { "description": "Description of the scenario", "type": "string" }, "detonate": { "description": "How to detonate the attack", "oneOf": [ { "required": [ "localDetonator" ] }, { "required": [ "remoteDetonator" ] }, { "required": [ "stratusRedTeamDetonator" ] } ], "properties": { "localDetonator": { "$ref": "localDetonator.schema.json" }, "remoteDetonator": { "$ref": "remoteDetonator.schema.json" }, "stratusRedTeamDetonator": { "$ref": "stratusRedTeamDetonator.schema.json" } }, "type": "object" }, "expectations": { "items": { "description": "Expectations", "oneOf": [ { "required": [ "datadogSecuritySignal" ] } ], "properties": { "datadogSecuritySignal": { "$ref": "datadogSecuritySignal.schema.json" }, "timeout": { "default": "5m", "description": "The maximal time to wait for the assertion, written as a Go duration (e.g. 5m)", "type": "string" } }, "type": "object" }, "type": "array" } }, "required": [ "description", "detonate", "expectations" ], "type": "object" }, "type": "array" } }, "required": [ "scenarios" ], "title": "Threatest Test Suite", "type": "object" }
Apache-2.0
en
DataDog/threatest
aaf8c50798dedec8651fb885dae957bad21e1508
2022-11-21T12:43:32
schemas/threatest.schema.json
311
2024-05-27T06:08:14.469898Z
{ "$id": "https://github.com/datadog/threatest/threatest.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "description": "Schema for a Threatest test suite", "properties": { "scenarios": { "description": "The display name of the vulnerability", "items": { "description": "The list of scenarios", "properties": { "detonate": { "description": "How to detonate the attack", "oneOf": [ { "required": [ "localDetonator" ] }, { "required": [ "remoteDetonator" ] }, { "required": [ "stratusRedTeamDetonator" ] } ], "properties": { "localDetonator": { "$ref": "localDetonator.schema.json" }, "remoteDetonator": { "$ref": "remoteDetonator.schema.json" }, "stratusRedTeamDetonator": { "$ref": "stratusRedTeamDetonator.schema.json" } }, "type": "object" }, "expectations": { "items": { "description": "Expectations", "oneOf": [ { "required": [ "datadogSecuritySignal" ] } ], "properties": { "datadogSecuritySignal": { "$ref": "datadogSecuritySignal.schema.json" }, "timeout": { "default": "5m", "description": "The maximal time to wait for the assertion, written as a Go duration (e.g. 5m)", "type": "string" } }, "type": "object" }, "type": "array" }, "name": { "description": "Description of the scenario", "type": "string" } }, "required": [ "name", "detonate", "expectations" ], "type": "object" }, "type": "array" } }, "required": [ "scenarios" ], "title": "Threatest Test Suite", "type": "object" }
Apache-2.0
en
DataDog/threatest
d0835621e49387b4d3341faf3d0c371714648fd6
2023-05-08T06:48:42
schemas/threatest.schema.json
311
2024-05-27T06:08:14.469898Z
{ "$id": "https://github.com/datadog/threatest/threatest.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "description": "Schema for a Threatest test suite", "properties": { "scenarios": { "description": "The display name of the vulnerability", "items": { "description": "The list of scenarios", "properties": { "detonate": { "description": "How to detonate the attack", "oneOf": [ { "required": [ "localDetonator" ] }, { "required": [ "remoteDetonator" ] }, { "required": [ "stratusRedTeamDetonator" ] }, { "required": [ "awsCliDetonator" ] } ], "properties": { "awsCliDetonator": { "$ref": "awsCliDetonator.schema.json" }, "localDetonator": { "$ref": "localDetonator.schema.json" }, "remoteDetonator": { "$ref": "remoteDetonator.schema.json" }, "stratusRedTeamDetonator": { "$ref": "stratusRedTeamDetonator.schema.json" } }, "type": "object" }, "expectations": { "items": { "description": "Expectations", "oneOf": [ { "required": [ "datadogSecuritySignal" ] } ], "properties": { "datadogSecuritySignal": { "$ref": "datadogSecuritySignal.schema.json" }, "timeout": { "default": "5m", "description": "The maximal time to wait for the assertion, written as a Go duration (e.g. 5m)", "type": "string" } }, "type": "object" }, "type": "array" }, "name": { "description": "Description of the scenario", "type": "string" } }, "required": [ "name", "detonate", "expectations" ], "type": "object" }, "type": "array" } }, "required": [ "scenarios" ], "title": "Threatest Test Suite", "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
58685414de2b1dece8d147d60c0e9262fc64f1c2
2021-09-29T09:05:04
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": "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
69736970d8bc873edc38949fdc0b0afe7ce186c7
2024-01-17T19:21:36
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" }, "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" ], "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
6576cbad04d526fb4e9e907c1b0c065005422e89
2023-01-18T09:05:35
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" }, "mp": { "properties": { "path": { "type": "string" } }, "required": [ "path" ] }, "parent_mount_id": { "type": "integer" }, "root": { "properties": { "path": { "type": "string" } } } }, "required": [ "mp", "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
27b82fb0983f1990b0186f2815dedb7032f8d47b
2022-02-02T14:38:04
pkg/security/tests/schemas/ptrace.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "ptrace.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
8055a932a6a9d153ed8c28f42a39459a30613d36
2023-04-05T15:47:07
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": { "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
a67238a998b3a37cfb3f3850575848b1dde1a5a4
2023-09-29T08:42:53
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": { "OID": { "type": "string" }, "column": { "$ref": "#/$defs/SymbolConfig" }, "index": { "type": "integer" }, "index_transform": { "items": { "$ref": "#/$defs/MetricIndexTransform" }, "type": "array" }, "mapping": { "$ref": "#/$defs/ListMap[string]" }, "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" }, "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" } }, "$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
7a13fc27bbc8429dc419650429afcb2a6a88f207
2022-02-18T17:12:44
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" } }, { "required": [ "signal" ], "signal": { "properties": { "pid": { "type": "integer" }, "request": { "type": "string" }, "target": { "$ref": "/schemas/process_context.json" } }, "required": [ "request" ], "type": "object" } } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
cbffc41be534959b84002f3a692ed02c76667851
2024-05-24T09:43:31
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AWSIMDSEvent": { "additionalProperties": false, "description": "AWSIMDSEventSerializer serializes an AWS IMDS event to JSON", "properties": { "is_imds_v2": { "description": "is_imds_v2 reports if the IMDS event follows IMDSv1 or IMDSv2 conventions", "type": "boolean" }, "security_credentials": { "$ref": "#/$defs/AWSSecurityCredentials", "description": "SecurityCredentials holds the scrubbed data collected on the security credentials" } }, "required": [ "is_imds_v2" ], "type": "object" }, "AWSSecurityCredentials": { "additionalProperties": false, "description": "AWSSecurityCredentialsSerializer serializes the security credentials from an AWS IMDS request", "properties": { "access_key_id": { "description": "access_key_id is the unique access key ID of the credentials", "type": "string" }, "code": { "description": "code is the IMDS server code response", "type": "string" }, "expiration": { "description": "expiration is the expiration date of the credentials", "type": "string" }, "last_updated": { "description": "last_updated is the last time the credentials were updated", "type": "string" }, "type": { "description": "type is the security credentials type", "type": "string" } }, "required": [ "code", "type", "access_key_id", "last_updated", "expiration" ], "type": "object" }, "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" }, "mount_origin": { "description": "MountOrigin origin of the mount", "type": "string" }, "mount_path": { "description": "MountPath path of the mount", "type": "string" }, "mount_source": { "description": "MountSource source of the mount", "type": "string" }, "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" }, "mount_origin": { "description": "MountOrigin origin of the mount", "type": "string" }, "mount_path": { "description": "MountPath path of the mount", "type": "string" }, "mount_source": { "description": "MountSource source of the mount", "type": "string" }, "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" }, "IMDSEvent": { "additionalProperties": false, "description": "IMDSEventSerializer serializes an IMDS event to JSON", "properties": { "aws": { "$ref": "#/$defs/AWSIMDSEvent", "description": "AWS holds the AWS specific data parsed from the IMDS event" }, "cloud_provider": { "description": "cloud_provider is the intended cloud provider of the IMDS event", "type": "string" }, "host": { "description": "host is the host of the HTTP protocol", "type": "string" }, "server": { "description": "server is the server header of a response", "type": "string" }, "type": { "description": "type is the type of IMDS event", "type": "string" }, "url": { "description": "url is the url of the IMDS request", "type": "string" }, "user_agent": { "description": "user_agent is the user agent of the HTTP client", "type": "string" } }, "required": [ "type", "cloud_provider" ], "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" }, "aws_security_credentials": { "description": "List of AWS Security Credentials that the process had access to", "items": { "$ref": "#/$defs/AWSSecurityCredentials" }, "type": "array" }, "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" }, "aws_security_credentials": { "description": "List of AWS Security Credentials that the process had access to", "items": { "$ref": "#/$defs/AWSSecurityCredentials" }, "type": "array" }, "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" }, "truncated_ancestors": { "description": "True if the ancestors list was truncated because it was too big", "type": "boolean" }, "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" }, "imds": { "$ref": "#/$defs/IMDSEvent" }, "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
ded01043e6063c6df7862575cf96c6c7b5776704
2021-09-30T14:37:39
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" } } } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
2f5a7b92731c170b0a4c94c94d6233a1c3f4a3b4
2024-05-24T09:26:52
pkg/security/tests/schemas/imds.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "imds.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": { "imds": { "properties": { "aws": { "properties": { "is_imds_v2": { "type": "boolean" }, "security_credentials": { "properties": { "access_key_id": { "type": "string" }, "code": { "type": "string" }, "expiration": { "type": "string" }, "last_updated": { "type": "string" }, "type": { "type": "string" } }, "required": [ "code", "type", "access_key_id", "last_updated", "expiration" ], "type": "object" } }, "required": [ "is_imds_v2" ], "type": "object" }, "cloud_provider": { "type": "string" }, "host": { "type": "string" }, "server": { "type": "string" }, "type": { "type": "string" }, "url": { "type": "string" }, "user_agent": { "type": "string" } }, "required": [ "cloud_provider", "type" ], "type": "object" } } } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
2bb28e5ccc5f46642a5dd206c1d1fb70f30c59cc
2021-10-01T18:37:01
pkg/security/tests/schemas/span_context.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "span_context.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "dd": { "required": [ "span_id", "trace_id" ], "span_id": { "type": "integer" }, "trace_id": { "type": "interger" } } }, "required": [ "dd" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
c68c8624f6d9ec81973f1a1711983be24480b255
2024-02-15T12:40: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/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
5f6f0ea721e01c5d670529a02d7285fb6bc90003
2022-01-27T15:28:47
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" } }, "required": [ "file" ] } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
94ebb93e678ef6781b44533c4205104c0d129b23
2021-08-06T09:36:51
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" }, "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", "comm", "credentials", "executable" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
694c78ba89bf5de81abd563bccf1ede3e42b009b
2023-10-10T14:30:50
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": { "column": { "$ref": "#/$defs/SymbolConfig" }, "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
8fcd408010e2c605f1c6c5c9fd892bfe281098ec
2022-06-24T12:12:38
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" } }, { "properties": { "bind": { "properties": { "addr": { "properties": { "family": { "type": "string" }, "ip": { "type": "string" }, "port": { "type": "integer" } }, "required": [ "family", "ip", "port" ], "type": "object" } }, "required": [ "addr" ], "type": "object" } } } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
27b0239556d6ce0b632bfaf618c9e34e69e79771
2022-08-05T08:14:24
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" }, "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
76b2d8850f14e65eea1f34b5c5da803063c977e5
2021-04-16T22:09:14
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": [ { "allOf": [ { "$ref": "file:///event.json" }, { "$ref": "file:///file.json" }, { "$ref": "file:///usr.json" }, { "$ref": "file:///process_context.json" }, { "$ref": "file:///container_context.json" } ] }, { "allOf": [ { "$ref": "file:///event.json" }, { "$ref": "file:///file.json" }, { "$ref": "file:///usr.json" }, { "$ref": "file:///process_context.json" } ] } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
fba22d73829a85fd7d6a1308d1db7bfaeb4b3d53
2024-05-22T15:08:35
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" }, "mount_origin": { "description": "MountOrigin origin of the mount", "type": "string" }, "mount_path": { "description": "MountPath path of the mount", "type": "string" }, "mount_source": { "description": "MountSource source of the mount", "type": "string" }, "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" }, "mount_origin": { "description": "MountOrigin origin of the mount", "type": "string" }, "mount_path": { "description": "MountPath path of the mount", "type": "string" }, "mount_source": { "description": "MountSource source of the mount", "type": "string" }, "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
7179066b03698f110a18cb38a7b6c5d98324f268
2024-02-08T16:46: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 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": { "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
c26e0fce62b31fc5d85950966f20ec664ba67937
2023-05-11T11:46:29
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" }, "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
c22fafbbf53084f9b833e60d43711f55a1f4ecdd
2022-03-11T17:41:28
pkg/security/tests/schemas/splice.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "splice.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "allOf": [ { "properties": { "splice": { "properties": { "pipe_entry_flag": { "type": "string" }, "pipe_exit_flag": { "type": "string" } }, "required": [ "pipe_entry_flag", "pipe_exit_flag" ], "type": "object" } }, "required": [ "splice" ] } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
bdf3da7a268567e2112e3095188e3d0dbaa02216
2022-02-18T14:51:17
pkg/security/tests/schemas/load_module_no_file.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "load_module_no_file.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_no_file.json" }, { "$ref": "/schemas/host_event_no_file.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
5d21c7bd4793e091801303c44c45c430b6d3442d
2021-06-23T07:31:08
pkg/security/tests/schemas/usr.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "usr.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "usr": { "properties": { "group": { "type": "string" }, "id": { "type": "string" } }, "type": "object" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
7dc3a9b2d4bbfd8d0db7b4ef45e9055df6959592
2021-05-28T17:27:42
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": "file:///datetime.json" }, "evt": { "properties": { "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
5d21c7bd4793e091801303c44c45c430b6d3442d
2021-06-23T07:31:08
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": [ { "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
0c6d1c108743e41f1020235f7a13a3fcccd644f7
2022-01-07T16:36:42
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": { "bpf": { "properties": { "address": { "type": "string" }, "length": { "type": "integer" }, "protection": { "type": "string" } }, "required": [ "address", "length", "protection" ], "type": "object" } } } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
6b4c83520c8854e2caf3fd140c0f827b662455b9
2021-09-28T11:23:27
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" }, { "file": { "$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
2f5a7b92731c170b0a4c94c94d6233a1c3f4a3b4
2024-05-24T09:26:52
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AWSIMDSEvent": { "additionalProperties": false, "description": "AWSIMDSEventSerializer serializes an AWS IMDS event to JSON", "properties": { "is_imds_v2": { "description": "is_imds_v2 reports if the IMDS event follows IMDSv1 or IMDSv2 conventions", "type": "boolean" }, "security_credentials": { "$ref": "#/$defs/AWSSecurityCredentials", "description": "SecurityCredentials holds the scrubbed data collected on the security credentials" } }, "required": [ "is_imds_v2" ], "type": "object" }, "AWSSecurityCredentials": { "additionalProperties": false, "description": "AWSSecurityCredentialsSerializer serializes the security credentials from an AWS IMDS request", "properties": { "access_key_id": { "description": "access_key_id is the unique access key ID of the credentials", "type": "string" }, "code": { "description": "code is the IMDS server code response", "type": "string" }, "expiration": { "description": "expiration is the expiration date of the credentials", "type": "string" }, "last_updated": { "description": "last_updated is the last time the credentials were updated", "type": "string" }, "type": { "description": "type is the security credentials type", "type": "string" } }, "required": [ "code", "type", "access_key_id", "last_updated", "expiration" ], "type": "object" }, "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" }, "mount_origin": { "description": "MountOrigin origin of the mount", "type": "string" }, "mount_path": { "description": "MountPath path of the mount", "type": "string" }, "mount_source": { "description": "MountSource source of the mount", "type": "string" }, "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" }, "mount_origin": { "description": "MountOrigin origin of the mount", "type": "string" }, "mount_path": { "description": "MountPath path of the mount", "type": "string" }, "mount_source": { "description": "MountSource source of the mount", "type": "string" }, "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" }, "IMDSEvent": { "additionalProperties": false, "description": "IMDSEventSerializer serializes an IMDS event to JSON", "properties": { "aws": { "$ref": "#/$defs/AWSIMDSEvent", "description": "AWS holds the AWS specific data parsed from the IMDS event" }, "cloud_provider": { "description": "cloud_provider is the intended cloud provider of the IMDS event", "type": "string" }, "host": { "description": "host is the host of the HTTP protocol", "type": "string" }, "server": { "description": "server is the server header of a response", "type": "string" }, "type": { "description": "type is the type of IMDS event", "type": "string" }, "url": { "description": "url is the url of the IMDS request", "type": "string" }, "user_agent": { "description": "user_agent is the user agent of the HTTP client", "type": "string" } }, "required": [ "type", "cloud_provider" ], "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" }, "aws_security_credentials": { "description": "List of AWS Security Credentials that the process had access to", "items": { "$ref": "#/$defs/AWSSecurityCredentials" }, "type": "array" }, "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" }, "aws_security_credentials": { "description": "List of AWS Security Credentials that the process had access to", "items": { "$ref": "#/$defs/AWSSecurityCredentials" }, "type": "array" }, "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" }, "imds": { "$ref": "#/$defs/IMDSEvent" }, "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
15265cf3ac208c4f4e026d3e00df02f21f8aa3de
2023-11-27T17:11:04
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", "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
ded01043e6063c6df7862575cf96c6c7b5776704
2021-09-30T14:37:39
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": { "change_time": { "$ref": "/schemas/datetime.json" }, "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
d8f3f489fe7acafaef64b7cee97283984fe2061a
2021-07-26T14:09:19
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": "file:///container_event.json" }, { "$ref": "file:///host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
6294adc25e841d566a78bc7fc2db08b2f3491d87
2024-04-02T09:48:30
pkg/security/tests/schemas/kill.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "kill.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "anyOf": [ { "properties": { "signal": { "const": "SIGKILL" } }, "required": [ "type", "signal", "created_at", "detected_at", "killed_at", "exited_at" ] }, { "properties": { "signal": { "const": "SIGUSR2" } }, "required": [ "type", "signal", "created_at", "detected_at", "killed_at" ] } ], "properties": { "created_at": { "$ref": "/schemas/datetime.json" }, "detected_at": { "$ref": "/schemas/datetime.json" }, "exited_at": { "$ref": "/schemas/datetime.json" }, "killed_at": { "$ref": "/schemas/datetime.json" }, "scope": { "type": "string" }, "signal": { "type": "string" }, "ttr": { "type": "string" }, "type": { "type": "string" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
76b2d8850f14e65eea1f34b5c5da803063c977e5
2021-04-16T22:09:14
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": { "type": "string" }, "evt": { "properties": { "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
91b73ef419ede0951bdb26f20e48e68e8e4233ee
2023-11-07T11:28:21
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
27b82fb0983f1990b0186f2815dedb7032f8d47b
2022-02-02T14:38:04
pkg/security/tests/schemas/span_context.json
2,683
2024-05-29T13:13:35.263199Z
{ "$id": "span_context.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "dd": { "required": [ "span_id", "trace_id" ], "span_id": { "type": "integer" }, "trace_id": { "type": "integer" } } }, "required": [ "dd" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
8560fc1631ec6825b7b24e75534f5fdb68727b01
2021-07-09T07:11:25
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": { "changed": { "type": "boolean" }, "name": { "type": "string" }, "state": { "enum": [ "on", "off" ] } }, "required": [ "name", "state", "changed" ], "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": { "changed": { "type": "boolean" }, "status": { "enum": [ "enforcing", "permissive", "disabled" ] } }, "required": [ "status", "changed" ], "type": "object" } }, "required": [ "enforce" ], "type": "object" } }, "properties": { "selinux": { "oneOf": [ { "$ref": "#/definitions/bool" }, { "$ref": "#/definitions/enforce" }, { "$ref": "#/definitions/bool_commit" } ], "type": "object" } }, "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
ded01043e6063c6df7862575cf96c6c7b5776704
2021-09-30T14:37:39
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": { "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
df5e952e8913cdb902eede93b660b1ed805f64f3
2021-07-01T10:56:01
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": "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/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": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
fba22d73829a85fd7d6a1308d1db7bfaeb4b3d53
2024-05-22T15:08:35
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" }, "filesystem": { "type": "string" }, "gid": { "type": "integer" }, "inode": { "type": "integer" }, "mode": { "type": "integer" }, "modification_time": { "$ref": "/schemas/datetime.json" }, "mount_id": { "type": "integer" }, "mount_origin": { "enum": [ "procfs", "event", "unshare" ], "type": "string" }, "mount_path": { "type": "string" }, "mount_source": { "enum": [ "device", "mount_id", "snapshot" ], "type": "string" }, "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
5f6f0ea721e01c5d670529a02d7285fb6bc90003
2022-01-27T15:28:47
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" } }, "required": [ "process" ] } ], "anyOf": [ { "$ref": "/schemas/container_event.json" }, { "$ref": "/schemas/host_event.json" } ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
c438dc206a70a0d75469656ce66076985672e457
2024-05-28T13:03:19
docs/cloud-workload-security/backend.schema.json
2,683
2024-05-29T13:13:35.263199Z
{ "$defs": { "AWSIMDSEvent": { "additionalProperties": false, "description": "AWSIMDSEventSerializer serializes an AWS IMDS event to JSON", "properties": { "is_imds_v2": { "description": "is_imds_v2 reports if the IMDS event follows IMDSv1 or IMDSv2 conventions", "type": "boolean" }, "security_credentials": { "$ref": "#/$defs/AWSSecurityCredentials", "description": "SecurityCredentials holds the scrubbed data collected on the security credentials" } }, "required": [ "is_imds_v2" ], "type": "object" }, "AWSSecurityCredentials": { "additionalProperties": false, "description": "AWSSecurityCredentialsSerializer serializes the security credentials from an AWS IMDS request", "properties": { "access_key_id": { "description": "access_key_id is the unique access key ID of the credentials", "type": "string" }, "code": { "description": "code is the IMDS server code response", "type": "string" }, "expiration": { "description": "expiration is the expiration date of the credentials", "type": "string" }, "last_updated": { "description": "last_updated is the last time the credentials were updated", "type": "string" }, "type": { "description": "type is the security credentials type", "type": "string" } }, "required": [ "code", "type", "access_key_id", "last_updated", "expiration" ], "type": "object" }, "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" }, "mount_origin": { "description": "MountOrigin origin of the mount", "type": "string" }, "mount_path": { "description": "MountPath path of the mount", "type": "string" }, "mount_source": { "description": "MountSource source of the mount", "type": "string" }, "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" }, "mount_origin": { "description": "MountOrigin origin of the mount", "type": "string" }, "mount_path": { "description": "MountPath path of the mount", "type": "string" }, "mount_source": { "description": "MountSource source of the mount", "type": "string" }, "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" }, "IMDSEvent": { "additionalProperties": false, "description": "IMDSEventSerializer serializes an IMDS event to JSON", "properties": { "aws": { "$ref": "#/$defs/AWSIMDSEvent", "description": "AWS holds the AWS specific data parsed from the IMDS event" }, "cloud_provider": { "description": "cloud_provider is the intended cloud provider of the IMDS event", "type": "string" }, "host": { "description": "host is the host of the HTTP protocol", "type": "string" }, "server": { "description": "server is the server header of a response", "type": "string" }, "type": { "description": "type is the type of IMDS event", "type": "string" }, "url": { "description": "url is the url of the IMDS request", "type": "string" }, "user_agent": { "description": "user_agent is the user agent of the HTTP client", "type": "string" } }, "required": [ "type", "cloud_provider" ], "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" }, "aws_security_credentials": { "description": "List of AWS Security Credentials that the process had access to", "items": { "$ref": "#/$defs/AWSSecurityCredentials" }, "type": "array" }, "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" }, "aws_security_credentials": { "description": "List of AWS Security Credentials that the process had access to", "items": { "$ref": "#/$defs/AWSSecurityCredentials" }, "type": "array" }, "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" }, "truncated_ancestors": { "description": "True if the ancestors list was truncated because it was too big", "type": "boolean" }, "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" }, "SyscallArgs": { "additionalProperties": false, "description": "SyscallArgsSerializer args serializer", "properties": { "mode": { "description": "Mode argument", "type": "integer" }, "path": { "description": "Path argument", "type": "string" } }, "type": "object" }, "SyscallContext": { "additionalProperties": false, "description": "SyscallContextSerializer serializes syscall context", "properties": { "chdir": { "$ref": "#/$defs/SyscallArgs" }, "chmod": { "$ref": "#/$defs/SyscallArgs" }, "exec": { "$ref": "#/$defs/SyscallArgs" } }, "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" }, "imds": { "$ref": "#/$defs/IMDSEvent" }, "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" }, "syscall": { "$ref": "#/$defs/SyscallContext" }, "syscalls": { "$ref": "#/$defs/SyscallsEvent" }, "title": { "type": "string" }, "usr": { "$ref": "#/$defs/UserContext" } }, "required": [ "agent", "title" ], "type": "object" }
Apache-2.0
en
DataDog/datadog-agent
2cbbed984fd66ef9bc20babefe2a11e2a1d2f7f1
2023-11-09T23:42:37
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" }, "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