Real-time intelligence
Threat intelligence dashboard
Community and engine reports, as they land on-chain · refreshes every 30 seconds · updated 10:26:04 AM
—
total threats
flagged to the on-chain registry
by category
by severity
live feed
Recent threats
Integration example
SHOW →
poll-threats.ts
// Subscribe to threat feed (Sui GraphQL)
const GRAPHQL_URL = 'https://graphql.testnet.sui.io/graphql';
async function pollThreats() {
const res = await fetch(GRAPHQL_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
query: '{ events(last: 10, filter: { type: "0xa706a721c2e2684834fd60623ad87ee43be42e241cffb038edd70fb527b494de::registry::ThreatReported" }) { edges { node { contents { json } } } } }',
}),
});
const { data } = await res.json();
for (const { node } of data.events.edges) {
const { malicious_package_id, walrus_blob_id } = node.contents.json;
// handle new threat
onThreat({ malicious_package_id, walrus_blob_id });
}
}
setInterval(pollThreats, 15000);