feat: add collectors and rules
This commit is contained in:
38
schemas/rule_result.schema.json
Normal file
38
schemas/rule_result.schema.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "vm-cc rule_result v1",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"version",
|
||||
"rule_id",
|
||||
"passed",
|
||||
"severity",
|
||||
"timestamp",
|
||||
"evidence",
|
||||
"details"
|
||||
],
|
||||
"properties": {
|
||||
"version": { "type": "string" },
|
||||
"rule_id": { "type": "string" },
|
||||
"passed": { "type": "boolean" },
|
||||
"severity": {
|
||||
"type": "string",
|
||||
"enum": ["LOW", "MEDIUM", "HIGH", "CRITICAL"]
|
||||
},
|
||||
"timestamp": { "type": "string" },
|
||||
"control_ids": { "type": "array", "items": { "type": "string" } },
|
||||
"evidence": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["path"],
|
||||
"properties": {
|
||||
"path": { "type": "string" },
|
||||
"sha256": { "type": "string" }
|
||||
}
|
||||
}
|
||||
},
|
||||
"details": { "type": "object" },
|
||||
"remediation": { "type": ["object", "null"] }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user