Endpoint isolation state flag
Check Command:
curl -s -X GET "https://api.crowdstrike.com/devices/entities/devices/v1?ids=$TARGET_AID" -H "Authorization: Bearer $FALCON_TOKEN" | jq '.resources[0].status'Expected Target State: "contained"
Executes remote API-driven host isolation via CrowdStrike Falcon, Microsoft Defender for Endpoint, or SentinelOne, disabling all local network adapters except for the authenticated EDR Cloud Live Response channel.
Execute CrowdStrike Falcon RTR containment request
curl -s -X POST "https://api.crowdstrike.com/devices/entities/devices-actions/v2?action_name=contain" \ -H "Authorization: Bearer $FALCON_TOKEN" \ -H "Content-Type: application/json" \ -d '{"ids": ["'"$TARGET_AID"'"]}'Expected Telemetry: "status_code": 200, "action_name": "contain"
Execute Microsoft Defender for Endpoint Machine Isolation
curl -s -X POST "https://api.securitycenter.microsoft.com/api/machines/$MACHINE_ID/isolate" \ -H "Authorization: Bearer $MDE_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "Comment": "Emergency CSIRT Isolation - Incident P1", "IsolationType": "Full" }'Expected Telemetry: "status": "InProgress" or "Succeeded"
# Initiates remote read-only live triage shell without exposing endpoint to LANpython3 scripts/edr_connect.py --target-aid $TARGET_AID --action attach-sessionInteractive authenticated session established.Endpoint isolation state flag
Check Command:
curl -s -X GET "https://api.crowdstrike.com/devices/entities/devices/v1?ids=$TARGET_AID" -H "Authorization: Bearer $FALCON_TOKEN" | jq '.resources[0].status'Expected Target State: "contained"
Validation: EDR state reverts to โnormalโ within 60 seconds.