When I did a POST to /api/fleet/package_policies referencing a valid policy
with (partially redacted with XXX)
{
"name": "Endpoint",
"description": "",
"namespace": "XXXX",
"policy_id": "XXXX",
"enabled": true,
"output_id": "",
"inputs": [
{
"streams": [],
"type": "endpoint",
"config": {
"artifact_manifest": {
"value": {
"schema_version": "v1",
"manifest_version": "1.0.43",
"artifacts": {
"endpoint-trustlist-windows-v1": {
"relative_url": "/api/fleet/artifacts/endpoint-trustlist-windows-v1/XXX",
"compression_algorithm": "zlib",
"decoded_size": 311,
"decoded_sha256": "XXX",
"encryption_algorithm": "none",
"encoded_sha256": "XXX",
"encoded_size": 153
},
"endpoint-eventfilterlist-windows-v1": {
"relative_url": "/api/fleet/artifacts/endpoint-eventfilterlist-windows-v1/XXX",
"compression_algorithm": "zlib",
"decoded_size": 4205,
"decoded_sha256": "XXX",
"encryption_algorithm": "none",
"encoded_sha256": "XXX",
"encoded_size": 495
},
"endpoint-exceptionlist-linux-v1": {
"relative_url": "/api/fleet/artifacts/endpoint-exceptionlist-linux-v1/XXX",
"compression_algorithm": "zlib",
"decoded_size": 14,
"decoded_sha256": "XXX",
"encryption_algorithm": "none",
"encoded_sha256": "XXX",
"encoded_size": 22
},
"endpoint-trustlist-macos-v1": {
"relative_url": "/api/fleet/artifacts/endpoint-trustlist-macos-v1/XXX",
"compression_algorithm": "zlib",
"decoded_size": 14,
"decoded_sha256": "XXX",
"encryption_algorithm": "none",
"encoded_sha256": "XXX",
"encoded_size": 22
},
"endpoint-exceptionlist-macos-v1": {
"relative_url": "/api/fleet/artifacts/endpoint-exceptionlist-macos-v1/XXX",
"compression_algorithm": "zlib",
"decoded_size": 14,
"decoded_sha256": "XXX",
"encryption_algorithm": "none",
"encoded_sha256": "XXX",
"encoded_size": 22
},
"endpoint-trustlist-linux-v1": {
"relative_url": "/api/fleet/artifacts/endpoint-trustlist-linux-v1/XXX",
"compression_algorithm": "zlib",
"decoded_size": 14,
"decoded_sha256": "XXXX",
"encryption_algorithm": "none",
"encoded_sha256": "XXX",
"encoded_size": 22
},
"endpoint-eventfilterlist-linux-v1": {
"relative_url": "/api/fleet/artifacts/endpoint-eventfilterlist-linux-v1/XXX",
"compression_algorithm": "zlib",
"decoded_size": 14,
"decoded_sha256": "XXX",
"encryption_algorithm": "none",
"encoded_sha256": "XXX",
"encoded_size": 22
},
"endpoint-exceptionlist-windows-v1": {
"relative_url": "/api/fleet/artifacts/endpoint-exceptionlist-windows-v1/XXX",
"compression_algorithm": "zlib",
"decoded_size": 14,
"decoded_sha256": "XXX",
"encryption_algorithm": "none",
"encoded_sha256": "XXX",
"encoded_size": 22
},
"endpoint-eventfilterlist-macos-v1": {
"relative_url": "/api/fleet/artifacts/endpoint-eventfilterlist-macos-v1/XXX",
"compression_algorithm": "zlib",
"decoded_size": 14,
"decoded_sha256": "XXX",
"encryption_algorithm": "none",
"encoded_sha256": "XXX",
"encoded_size": 22
}
}
}
},
"policy": {
"value": {
"linux": {
"popup": {
"malware": {
"message": "Todyl {action} {filename}",
"enabled": true
}
},
"malware": {
"mode": "detect"
},
"logging": {
"file": "info"
},
"events": {
"process": true,
"file": true,
"network": true
}
},
"windows": {
"popup": {
"malware": {
"message": "Todyl {action} {filename}",
"enabled": true
},
"ransomware": {
"message": "Todyl {action} {filename}",
"enabled": true
}
},
"malware": {
"mode": "prevent"
},
"logging": {
"file": "info"
},
"antivirus_registration": {
"enabled": true
},
"events": {
"registry": true,
"process": true,
"security": true,
"file": true,
"dns": true,
"dll_and_driver_load": true,
"network": true
},
"ransomware": {
"mode": "prevent",
"supported": true
}
},
"mac": {
"popup": {
"malware": {
"message": "Todyl {action} {filename}",
"enabled": true
}
},
"malware": {
"mode": "prevent"
},
"logging": {
"file": "info"
},
"events": {
"process": true,
"file": true,
"network": true
}
}
}
}
},
"enabled": true
}
],
"package": {
"name": "endpoint",
"title": "Endpoint Security",
"version": "1.0.0"
}
}
the settings
"antivirus_registration": {
"enabled": true
},
...
"popup": {
"malware": {
"message": "Todyl {action} {filename}",
...
didn't stick. When I Re-Ran the exact same json through a PUT to /api/fleet/package_policies/{{item-ID}} using the item id from the previous response the 2 settings were set.
As for the second half of my question (and the most important part) there doesn't seem to be ANY API to change the agent monitoring settings.