Webhook'lar
Slack ve Microsoft Teams bildirimlerine ek olarak, Zen olayları için Webhook'lar kurmak da mümkündür. Bir Webhook oluşturmak veya değiştirmek için Webhooks sayfasını açın.
İstek başarısız olursa Aikido bildirimi 5 kez yeniden göndermeyi dener. 200 dışında bir HTTP durum kodu döndürülürse veya zaman aşımı oluşursa istek başarısız kabul edilir. Bu sayfa, webhook olaylarının nasıl doğrulanabileceğini açıklar.
#Webhook Olayları
Şu anda aşağıdaki olaylar gönderilmektedir:
Saldırı tespit edildi (Örnek)
{
"event_type": "zen.attack",
"created_at": 1760015974,
"payload": {
"url": "http://app.aikido.dev/runtime/services/X/events?groupId=X&eventId=X",
"eventId": 123,
"attack": {
"blocked": false,
"kind": "sql_injection"
},
"request": {
"method": "POST",
"route":"/add",
"ip_address": "::ffff:127.0.0.1",
"user_agent": "Mozilla/5.0 ..."
},
"service": {
"id": 1,
"name": "Test",
"environment": "production"
},
"instance":{
"id": 1,
"ip_address": "172.17.0.123",
"hostname": "hostname.local"
},
"user": {
"id": "123abc",
"blocked_at": 0
},
"message": "SQL injection detected in Test"
},
"dispatched_at": 1760016033,
"workspace_id": 123
}Saldırı dalgası tespit edildi (Örnek)
{
"event_type": "zen.attack_wave",
"created_at": 1760015974,
"payload": {
"url": "http://app.aikido.dev/runtime/services/X/events?groupId=X&eventId=X",
"eventId": 123,
"attack": [],
"request": {
"ip_address": "::ffff:127.0.0.1",
"user_agent": "Mozilla/5.0 ..."
},
"service": {
"id": 1,
"name": "Test",
"environment": "production"
},
"instance":{
"id": 1,
"ip_address": "172.17.0.123",
"hostname": "hostname.local"
},
"user": {
"id": "123abc",
"blocked_at": 0
},
"message": "Attack wave detected in Test"
},
"dispatched_at": 1760016033,
"workspace_id": 123
}Yeni giden bağlantı (Örnek)
{
"event_type": "zen.outbound.discovered",
"created_at": 1760016813,
"payload": {
"hostname": "aikido.dev",
"port": 443,
"service": {
"id": 123,
"name": "Test",
"environment": "production"
},
"message": "New outbound connection detected in Test"
},
"timestamp": 1757599746000
}