API
API: güvenlik açıkları ve saldırgan IP'leri
Açık güvenlik açıklarını gerçek riske göre sıralı sorgulayın ve tyrosec ağındaki saldırgan IP'lerini kendi güvenlik duvarlarınıza aktarın.
GET /vulnerabilities
Açık güvenlik açıkları · Okuma
Sistem paketleri, WordPress, Composer, npm ve mağaza modüllerindeki açık güvenlik açıkları – aktif istismara (kev) ve önem derecesine göre sıralı; EPSS, istismar durumu ve düzeltilmiş sürüm bilgisiyle.
| Parametre | Konum | Tür | Zorunlu | Açıklama |
|---|---|---|---|---|
host | Query | uuid | hayır | yalnızca bir sunucu |
fixable | Query | boolean | hayır | yalnızca güncellemesi mevcut olan açıklar |
Örnek istek
cURL
curl -sSf "https://app.tyrosec.com/api/v1/vulnerabilities?host=7c1b6092-482b-48d9-b40f-fb476bd98176&fixable=1" \
-H "Authorization: Bearer $TYROSEC_TOKEN" \
-H "Accept: application/json"Python
import os
import requests
resp = requests.request(
"GET",
"https://app.tyrosec.com/api/v1/vulnerabilities",
headers={"Authorization": f"Bearer {os.environ['TYROSEC_TOKEN']}", "Accept": "application/json"},
params={"host": "7c1b6092-482b-48d9-b40f-fb476bd98176", "fixable": 1},
timeout=30,
)
resp.raise_for_status()
print(resp.json())PHP
<?php
$ch = curl_init('https://app.tyrosec.com/api/v1/vulnerabilities?host=7c1b6092-482b-48d9-b40f-fb476bd98176&fixable=1');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FAILONERROR => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('TYROSEC_TOKEN'), 'Accept: application/json'],
]);
$out = curl_exec($ch);
if ($out === false) { throw new RuntimeException(curl_error($ch)); }
print_r(json_decode($out, true));JavaScript
const res = await fetch("https://app.tyrosec.com/api/v1/vulnerabilities?host=7c1b6092-482b-48d9-b40f-fb476bd98176&fixable=1", {
headers: {
Authorization: `Bearer ${process.env.TYROSEC_TOKEN}`,
Accept: "application/json",
},
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(await res.json());Örnek yanıt HTTP 200
{
"data": [
{
"host_id": "7c1b6092-482b-48d9-b40f-fb476bd98176",
"ecosystem": "Packagist",
"package": "magento/product-community-edition",
"version": "2.4.7-p3",
"fixed_version": "2.4.7-p4",
"location": "/var/www",
"id": "GHSA-demo-x7m2-cosmicsting",
"severity": "critical",
"score": 9.8,
"kev": true,
"exploit": "automated",
"epss": 0.94,
"url": null
}
]
}GET /threats/ips
tyrosec ağından saldırgan IP'ler · Okuma
En az iki müşteride şüpheli davranış gösteren adresler; puan, kategoriler ve etkilenen sunucu sayısıyla – örneğin kendi güvenlik duvarınız veya WAF'ınız için.
| Parametre | Konum | Tür | Zorunlu | Açıklama |
|---|---|---|---|---|
min_score | Query | integer 1–1000 | hayır | en düşük puan, varsayılan 50 |
limit | Query | integer 1–10000 | hayır | kayıt sayısı, varsayılan 1000 |
Örnek istek
cURL
curl -sSf "https://app.tyrosec.com/api/v1/threats/ips?min_score=80&limit=2" \
-H "Authorization: Bearer $TYROSEC_TOKEN" \
-H "Accept: application/json"Python
import os
import requests
resp = requests.request(
"GET",
"https://app.tyrosec.com/api/v1/threats/ips",
headers={"Authorization": f"Bearer {os.environ['TYROSEC_TOKEN']}", "Accept": "application/json"},
params={"min_score": 80, "limit": 2},
timeout=30,
)
resp.raise_for_status()
print(resp.json())PHP
<?php
$ch = curl_init('https://app.tyrosec.com/api/v1/threats/ips?min_score=80&limit=2');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FAILONERROR => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('TYROSEC_TOKEN'), 'Accept: application/json'],
]);
$out = curl_exec($ch);
if ($out === false) { throw new RuntimeException(curl_error($ch)); }
print_r(json_decode($out, true));JavaScript
const res = await fetch("https://app.tyrosec.com/api/v1/threats/ips?min_score=80&limit=2", {
headers: {
Authorization: `Bearer ${process.env.TYROSEC_TOKEN}`,
Accept: "application/json",
},
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(await res.json());Örnek yanıt HTTP 200
{
"data": [
{
"ip": "198.51.100.23",
"score": 96,
"tenants": 9,
"hosts": 23,
"categories": {
"ssh": 23
},
"last_seen": "2026-11-16 17:39:41.950601+00"
},
{
"ip": "198.51.100.140",
"score": 92,
"tenants": 14,
"hosts": 61,
"categories": {
"scanner": 61
},
"last_seen": "2026-11-16 17:39:41.950601+00"
}
]
}Sunucunuzda neler olup bittiğini iki dakikada görün.
Agent'ı tek satırlık bir komutla kurun, başlangıç taramasını bekleyin, hepsi bu. 14 gün ücretsiz, 3 sunucuya kadar, kredi kartı gerekmez.