|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://schemas.srcos.ai/v2/RuntimeIdentityGraph.json", |
| 4 | + "title": "RuntimeIdentityGraph", |
| 5 | + "description": "A runtime identity graph connecting process, package, executable, helper, broker, profile, session, and audit-token identity observations.", |
| 6 | + "type": "object", |
| 7 | + "additionalProperties": false, |
| 8 | + "required": [ |
| 9 | + "id", |
| 10 | + "type", |
| 11 | + "specVersion", |
| 12 | + "observedAt", |
| 13 | + "rootComponentRef", |
| 14 | + "identityVerdict", |
| 15 | + "nodes" |
| 16 | + ], |
| 17 | + "properties": { |
| 18 | + "id": { "type": "string", "pattern": "^urn:srcos:runtime-identity-graph:" }, |
| 19 | + "type": { "const": "RuntimeIdentityGraph" }, |
| 20 | + "specVersion": { "type": "string" }, |
| 21 | + "observedAt": { "type": "string", "format": "date-time" }, |
| 22 | + "rootComponentRef": { "type": "string", "minLength": 1 }, |
| 23 | + "identityVerdict": { "enum": ["valid", "degraded", "missing", "ambiguous", "invalid", "unknown"] }, |
| 24 | + "nodes": { |
| 25 | + "type": "array", |
| 26 | + "minItems": 1, |
| 27 | + "items": { |
| 28 | + "type": "object", |
| 29 | + "additionalProperties": false, |
| 30 | + "required": ["nodeId", "nodeKind", "displayName"], |
| 31 | + "properties": { |
| 32 | + "nodeId": { "type": "string", "minLength": 1 }, |
| 33 | + "nodeKind": { "enum": ["app", "daemon", "xpc-service", "browser-child", "terminal-helper", "broker", "extension", "package", "profile", "session", "audit-token", "executable"] }, |
| 34 | + "displayName": { "type": "string", "minLength": 1 }, |
| 35 | + "processId": { "type": "integer", "minimum": 0 }, |
| 36 | + "bundleOrPackageId": { "type": "string" }, |
| 37 | + "executableDigest": { "type": "string" }, |
| 38 | + "auditIdentity": { "type": "string" }, |
| 39 | + "verificationVerdict": { "enum": ["valid", "degraded", "missing", "ambiguous", "invalid", "unknown"] } |
| 40 | + } |
| 41 | + } |
| 42 | + }, |
| 43 | + "edges": { |
| 44 | + "type": "array", |
| 45 | + "items": { |
| 46 | + "type": "object", |
| 47 | + "additionalProperties": false, |
| 48 | + "required": ["from", "to", "relationship"], |
| 49 | + "properties": { |
| 50 | + "from": { "type": "string" }, |
| 51 | + "to": { "type": "string" }, |
| 52 | + "relationship": { "enum": ["spawned", "owns", "brokers", "uses-profile", "runs-as", "attests", "packages", "observed-as", "unknown"] } |
| 53 | + } |
| 54 | + } |
| 55 | + }, |
| 56 | + "evidenceRefs": { "type": "array", "items": { "type": "string" } }, |
| 57 | + "userVisibleImpact": { "type": "string" }, |
| 58 | + "remediationHint": { "type": "string" } |
| 59 | + } |
| 60 | +} |
0 commit comments