ThreatEntry
pojedyncza groźba, np. złośliwy adres URL lub jego reprezentacja w postaci hasha; Należy ustawić tylko jedno z tych pól.
Zapis JSON |
{
"hash": string,
"url": string,
"digest": string
} |
Pola |
hash |
string (bytes format)
Prefiks skrótu, który składa się z 4–32 najbardziej znaczących bajtów identyfikatora SHA256. To pole ma format binarny. W przypadku żądań JSON hasze są zakodowane w formacie base64. Ciąg zakodowany w formacie base64.
|
url |
string
Adres URL.
|
digest |
string (bytes format)
Skrót pliku wykonywalnego w formacie SHA256. Interfejs API obsługuje zarówno sumę kontrolną w postaci binarnej, jak i szesnastkowej. W przypadku żądań JSON skróty są zakodowane w formacie base64. Ciąg zakodowany w formacie base64.
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-10-11 UTC.
[null,null,["Ostatnia aktualizacja: 2024-10-11 UTC."],[[["ThreatEntry defines an individual threat using either a hash, a URL, or a digest, but only one field should be populated at a time."],["The `hash` field represents a SHA256 hash prefix in binary format (base64-encoded for JSON)."],["The `url` field simply contains a URL string to specify the threat."],["The `digest` field holds the SHA256 digest of an executable, supporting both binary and hex formats (base64-encoded for JSON)."]]],["The JSON data represents a single threat, using either a `hash`, `url`, or `digest`. The `hash` is a base64-encoded SHA256 hash prefix (4-32 bytes). The `url` is a string representing a URL. The `digest` is a base64-encoded SHA256 digest of an executable, supporting both binary and hex. Only one of these fields should be populated in any given representation of this threat data.\n"]]