API
API : vulnérabilités et IP attaquantes
Interrogez les vulnérabilités ouvertes triées par risque réel et reprenez les IP attaquantes du réseau tyrosec dans vos propres pare-feux.
GET /vulnerabilities
Vulnérabilités ouvertes · Lecture
Vulnérabilités ouvertes des paquets système, WordPress, Composer, npm et modules de boutique – triées par exploitation active (kev) et gravité, avec EPSS, état des exploits et version corrigée.
| Paramètre | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
host | query | uuid | non | un seul serveur |
fixable | query | boolean | non | uniquement celles pour lesquelles une mise à jour existe |
Exemple d’appel
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());Exemple de réponse 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
IP attaquantes du réseau tyrosec · Lecture
Adresses repérées chez au moins deux clients, avec score, catégories et nombre de serveurs touchés – par exemple pour votre pare-feu ou WAF.
| Paramètre | Emplacement | Type | Obligatoire | Description |
|---|---|---|---|---|
min_score | query | integer 1–1000 | non | score minimal, 50 par défaut |
limit | query | integer 1–10000 | non | nombre, 1000 par défaut |
Exemple d’appel
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());Exemple de réponse 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"
}
]
}En deux minutes, voyez ce qui se passe sur votre serveur.
Installez l'agent en une ligne de commande, attendez l'inventaire initial, c'est tout. 14 jours gratuits, jusqu'à 3 serveurs, sans carte bancaire.