curl --request POST \
--url https://app.blockgence.com/v1/compromise \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"victim": "<string>",
"chains": [
"<string>"
],
"from_ts": 0,
"to_ts": 0,
"loss_txs": [
{
"chain": "<string>",
"tx": "<string>"
}
]
}
'import requests
url = "https://app.blockgence.com/v1/compromise"
payload = {
"victim": "<string>",
"chains": ["<string>"],
"from_ts": 0,
"to_ts": 0,
"loss_txs": [
{
"chain": "<string>",
"tx": "<string>"
}
]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
victim: '<string>',
chains: ['<string>'],
from_ts: 0,
to_ts: 0,
loss_txs: [{chain: '<string>', tx: '<string>'}]
})
};
fetch('https://app.blockgence.com/v1/compromise', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.blockgence.com/v1/compromise",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'victim' => '<string>',
'chains' => [
'<string>'
],
'from_ts' => 0,
'to_ts' => 0,
'loss_txs' => [
[
'chain' => '<string>',
'tx' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.blockgence.com/v1/compromise"
payload := strings.NewReader("{\n \"victim\": \"<string>\",\n \"chains\": [\n \"<string>\"\n ],\n \"from_ts\": 0,\n \"to_ts\": 0,\n \"loss_txs\": [\n {\n \"chain\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ]\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))
}HttpResponse<String> response = Unirest.post("https://app.blockgence.com/v1/compromise")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"victim\": \"<string>\",\n \"chains\": [\n \"<string>\"\n ],\n \"from_ts\": 0,\n \"to_ts\": 0,\n \"loss_txs\": [\n {\n \"chain\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/compromise")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"victim\": \"<string>\",\n \"chains\": [\n \"<string>\"\n ],\n \"from_ts\": 0,\n \"to_ts\": 0,\n \"loss_txs\": [\n {\n \"chain\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>",
"error": "<string>"
}{
"error": "source_unavailable",
"detail": "<string>",
"source": "<string>",
"reason": "<string>",
"retryable": true,
"chain": "<string>",
"primitive": "<string>",
"operation": "<string>",
"target": "<string>",
"http_status": 123,
"retry_after": 123,
"upstream_message": "<string>",
"source_fault": true,
"failure_cause": "<string>"
}Vector de compromiso
Determina, para cada transacción en la que la víctima perdió fondos, quién autorizó la salida, con la evidencia y las alternativas descartadas. Describe el mecanismo técnico observado, nunca una responsabilidad.
Cuerpo (JSON):
victim: la dirección EVM que perdió los fondos.loss_txs: las transacciones de pérdida,[{chain, tx}], hasta 25. Si vienen, se clasifican solo esas.chains,from_tsyto_ts: sinloss_txs, dónde y cuándo buscar las pérdidas (hasta 6 redes; fechas en segundos Unix;to_tsigual a0significa hasta hoy). Sinloss_txs,from_tses obligatorio.
Campos principales de la respuesta:
primary_vector,primary_labelyprimary_determinism(deterministic,heuristiconone): el vector que explica más pérdidas. Los vectores posibles soneip7702_delegation,authority_change,ownership_transfer,deceptive_signature_offchain,onchain_approval,key_compromise,deceptive_contract_call,address_poisoningyundetermined.per_tx: cada transacción con quién la firmó, las salidas, la contrapartida, las reglas que se cumplen (rule_hits) y su evidencia.excludedindica por qué una salida no cuenta como pérdida.vectors: cada vector con sus transacciones y sus reglas.alternatives: cada otro vector,discarded(con el hecho que lo descarta),not_excludedonot_evaluated.signals: las señales de barrido que sugieren una clave comprometida. Es una heurística sin tasa de error medida.delegation_7702,authority,limits,not_coveredydegraded_sources. Una lista vacía de una fuente significa «sin datos», nunca «no ocurrió».
Una clave comprometida nunca se descarta si hay una delegación EIP-7702: la autorización la firma quien tenga la clave.
No cubre: Tron, una confianza numérica, las órdenes NFT firmadas fuera de los marketplaces registrados, una llamada de un Safe que no emite eventos ni el software de billetera comprometido.
Errores: una dirección o un hash inválidos, más de 25 transacciones, más de 6 redes o una ventana inválida
responden 400.
Costo: 30 créditos de base. Algunas operaciones cobran menos si reutilizan un resultado guardado; nunca más.
curl --request POST \
--url https://app.blockgence.com/v1/compromise \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"victim": "<string>",
"chains": [
"<string>"
],
"from_ts": 0,
"to_ts": 0,
"loss_txs": [
{
"chain": "<string>",
"tx": "<string>"
}
]
}
'import requests
url = "https://app.blockgence.com/v1/compromise"
payload = {
"victim": "<string>",
"chains": ["<string>"],
"from_ts": 0,
"to_ts": 0,
"loss_txs": [
{
"chain": "<string>",
"tx": "<string>"
}
]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
victim: '<string>',
chains: ['<string>'],
from_ts: 0,
to_ts: 0,
loss_txs: [{chain: '<string>', tx: '<string>'}]
})
};
fetch('https://app.blockgence.com/v1/compromise', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.blockgence.com/v1/compromise",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'victim' => '<string>',
'chains' => [
'<string>'
],
'from_ts' => 0,
'to_ts' => 0,
'loss_txs' => [
[
'chain' => '<string>',
'tx' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.blockgence.com/v1/compromise"
payload := strings.NewReader("{\n \"victim\": \"<string>\",\n \"chains\": [\n \"<string>\"\n ],\n \"from_ts\": 0,\n \"to_ts\": 0,\n \"loss_txs\": [\n {\n \"chain\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ]\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))
}HttpResponse<String> response = Unirest.post("https://app.blockgence.com/v1/compromise")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"victim\": \"<string>\",\n \"chains\": [\n \"<string>\"\n ],\n \"from_ts\": 0,\n \"to_ts\": 0,\n \"loss_txs\": [\n {\n \"chain\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/compromise")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"victim\": \"<string>\",\n \"chains\": [\n \"<string>\"\n ],\n \"from_ts\": 0,\n \"to_ts\": 0,\n \"loss_txs\": [\n {\n \"chain\": \"<string>\",\n \"tx\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>",
"error": "<string>"
}{
"error": "source_unavailable",
"detail": "<string>",
"source": "<string>",
"reason": "<string>",
"retryable": true,
"chain": "<string>",
"primitive": "<string>",
"operation": "<string>",
"target": "<string>",
"http_status": 123,
"retry_after": 123,
"upstream_message": "<string>",
"source_fault": true,
"failure_cause": "<string>"
}Autorizaciones
Encabezados
Cuerpo
Respuesta
El vector de compromiso, con la evidencia por transacción y las alternativas.