Slack¶
Slack yaygın olarak kullanılan bulut tabanlı ekip işbirliği ve mesajlaşma platformudur. Kurumlar içerisinde ekiplerin mesaj alışverişi yapabilmesi, dosya paylaşabilmesi ve diğer araçlar ile hizmetler entegrasyonu gerçekleştirebilmesi için merkezi bir alan sağlayarak iletişimi ve işbirliğini kolaylaştırmak üzere tasarlanmıştır. Wallarm'ı, Slack kanal(lar)ınıza bildirim gönderecek şekilde yapılandırabilirsiniz. Farklı Slack kanallarına veya hesaplarına bildirim göndermek istiyorsanız, birden fazla Slack entegrasyonu oluşturun.
Entegrasyonun Ayarlanması¶
-
Entegrasyonlar bölümünü açın.
-
Slack bloğuna tıklayın veya Entegrasyon ekle butonuna tıklayın ve Slack seçeneğini belirleyin.
-
Bir entegrasyon adı girin.
-
Slack'deki Webhook ayarlarını açın ve mesajların gönderileceği kanalı seçerek yeni bir Webhook ekleyin.
-
Verilen Webhook URL'sini kopyalayın ve değeri Wallarm UI'deki Webhook URL alanına yapıştırın.
-
Bildirimleri tetiklemek için olay türlerini seçin.
Mevcut olaylar hakkında ayrıntılar:
- System related:
- User changes (newly created, deleted, role change)
- Integration changes (disabled, deleted)
- Application changes (newly created, deleted, name change)
- Vulnerabilities detected, all by default or only for the selected risk level(s):
- High risk
- Medium risk
- Low risk
- Rules and triggers changed (creating, updating, or deleting the rule or trigger)
- Scope (exposed assets) changed: updates in hosts, services, and domains
- (Requires AASM Enterprise) Security issues detected, all or only for the selected risk level(s):
- Critical risk
- High risk
- Medium risk
- Low risk
- Info risk
- System related:
-
Yapılandırmanın doğruluğunu, Wallarm Cloud'un kullanılabilirliğini ve bildirim formatını kontrol etmek için Entegrasyonu Test Et butonuna tıklayın.
Bu, önek
[Test message]
ile test bildirimleri gönderecektir: -
Entegrasyonu Ekle butonuna tıklayın.
Ekstra Uyarıların Ayarlanması¶
Besides the notifications you have already set up through the integration card, Wallarm triggers allow you to select additional events for notifications:
-
Number of attacks, hits or incidents per time interval (day, hour, etc.) exceeds the set number
What is not counted
- For attacks:
- The experimental attacks based on the custom regular expressions.
- For hits:
- The experimental hits based on the custom regular expressions.
- Hits not saved in the sample.
- For attacks:
-
Changes in API took place
-
IP address was denylisted
-
New rogue API (shadow, orphan, zombie) was detected
-
New user was added to the company account
For condition detailing, you can add one or more filters. As soon, as condition and filters are set, select the integration through which the selected alert should be sent. You can select several integrations simultaneously.
Örnek: Bir dakikada 2 veya daha fazla SQLi hits tespit edilirse Slack bildirimi¶
Eğer 2 veya daha fazla SQLi hits korumalı kaynağa gönderilirse, bu olay hakkında bildirim Slack kanalına gönderilecektir.
Tetikleyiciyi test etmek için:
Korumalı kaynağa aşağıdaki istekleri gönderin:
curl 'http://localhost/?id=1%27%20UNION%20SELECT%20username,%20password%20FROM%20users--<script>prompt(1)</script>'
curl 'http://localhost/?id=1%27%20select%20version();'
Slack kanalını açın ve wallarm kullanıcısından gelen aşağıdaki bildirimin alındığını kontrol edin:
[Wallarm] Trigger: The number of detected hits exceeded the threshold
Notification type: attacks_exceeded
The number of detected hits exceeded 1 in 1 minute.
This notification was triggered by the "Notification about SQLi hits" trigger.
Additional trigger’s clauses:
Attack type: SQLi.
View events:
https://my.wallarm.com/attacks?q=attacks&time_from=XXXXXXXXXX&time_to=XXXXXXXXXX
Client: TestCompany
Cloud: EU
-
Notification about SQLi hits
tetikleyici adıdır -
TestCompany
, Wallarm Console'daki şirket hesabınızın adıdır -
EU
, şirket hesabınızın kayıtlı olduğu Wallarm Cloud'dur
Örnek: Hesaba yeni kullanıcı eklenirse Slack ve e-posta bildirimi¶
Wallarm Console'daki şirket hesabına Administrator veya Analyst rolüne sahip yeni bir kullanıcı eklendiğinde, bu olay hakkında bildirim entegrasyonda belirtilen e-posta adresine ve Slack kanalına gönderilecektir.
Tetikleyiciyi test etmek için:
-
Wallarm Console → Ayarlar → Kullanıcılar bölümünü açın ve yeni bir kullanıcı ekleyin. Örneğin:
-
E-posta gelen kutunuzu açın ve aşağıdaki mesajın alındığını kontrol edin:
-
Slack kanalını açın ve wallarm kullanıcısından gelen aşağıdaki bildirimin alındığını kontrol edin:
[Wallarm] Trigger: New user was added to the company account Notification type: create_user Yeni kullanıcı John Smith <johnsmith@example.com>, rolü Analyst olarak, John Doe <johndoe@example.com> tarafından şirket hesabına eklendi. This notification was triggered by the "Added user" trigger. Client: TestCompany Cloud: EU
John Smith
vejohnsmith@example.com
eklenen kullanıcı hakkında bilgilerdirAnalyst
, eklenen kullanıcının rolüdürJohn Doe
vejohndoe@example.com
, yeni kullanıcı ekleyen kullanıcıya ait bilgilerdirAdded user
tetikleyici adıdırTestCompany
, Wallarm Console'daki şirket hesabınızın adıdırEU
, şirket hesabınızın kayıtlı olduğu Wallarm Cloud'dur
Bir entegrasyonun devre dışı bırakılması ve silinmesi¶
You can delete or temporarily disable the integration. While deleting stops sending notificatioins and completely deletes all configuration, disabling just stops sending notifications which you can at any moment re-enable with the same settings.
If for the integration the System related events are selected to trigger notifications, Wallarm will notify about both of these actions.
Sistem kullanılamazlığı ve hatalı entegrasyon parametreleri¶
Notifications to the system are sent via requests. If the system is unavailable or integration parameters are configured incorrectly, the error code is returned in the response to the request.
If the system responds to Wallarm request with any code other than 2xx
, Wallarm resends the request with the interval until the 2xx
code is received:
-
The first cycle intervals: 1, 3, 5, 10, 10 seconds
-
The second cycle intervals: 0, 1, 3, 5, 30 seconds
-
The third cycle intervals: 1, 1, 3, 5, 10, 30 minutes
If the percentage of unsuccessful requests reaches 60% in 12 hours, the integration is automatically disabled. If you receive system notifications, you will get a message about automatically disabled integration.