تقييم مخاطر ATO
curl --request POST \
--url https://api.truthlocks.com/v1/risk/ato/evaluate \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"event_type": "<string>",
"subject_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({event_type: '<string>', subject_id: '<string>'})
};
fetch('https://api.truthlocks.com/v1/risk/ato/evaluate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/ato/evaluate"
payload = {
"event_type": "<string>",
"subject_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/risk/ato/evaluate"
payload := strings.NewReader("{\n \"event_type\": \"<string>\",\n \"subject_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"risk_score": 123,
"decision": "<string>",
"signals": [
{}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}الاستيلاء على الحساب
تقييم مخاطر الاستيلاء على الحساب (ATO)
تقييم حدث تسجيل الدخول مقابل استدلالات الاستيلاء على الحساب. يتتبع سرعة تسجيل الدخول الفاشلة لكل موضوع ويطلق تنبيهات عند تجاوز العتبات.
POST
/
v1
/
risk
/
ato
/
evaluate
تقييم مخاطر ATO
curl --request POST \
--url https://api.truthlocks.com/v1/risk/ato/evaluate \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"event_type": "<string>",
"subject_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({event_type: '<string>', subject_id: '<string>'})
};
fetch('https://api.truthlocks.com/v1/risk/ato/evaluate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/ato/evaluate"
payload = {
"event_type": "<string>",
"subject_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/risk/ato/evaluate"
payload := strings.NewReader("{\n \"event_type\": \"<string>\",\n \"subject_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"risk_score": 123,
"decision": "<string>",
"signals": [
{}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}تقييم حدث تسجيل الدخول مقابل محرك الاستدلال الخاص بـ ATO. تتعقب المنصة عمليات تسجيل الدخول الفاشلة لكل موضوع في نافذة متجددة مدتها ساعة واحدة وتستمد مستوى المخاطر من العدد الحالي. عند تجاوز العتبة، يتم إنشاء تنبيه ويتم استيعاب إشارة المخاطر تلقائيًا في risk signal pipeline.
راجع دليل اكتشاف الاستيلاء على الحساب لسير العمل الكامل، ومرجع العتبة، وأنماط التكامل.
قواعد العتبة
| عمليات تسجيل الدخول الفاشلة (نافذة ساعة واحدة) | مستوى المخاطرة | تنبيه تلقائي |
|---|---|---|
| 0–4 | عادي | لا |
| 5–9 | مرتفع | نعم — velocity_exceeded |
| 10–19 | مرتفع | نعم - velocity_exceeded |
| 20+ | حرج | نعم - credential_stuffing |

