v1
latestOpenAPI 3.0.02026-07-17166300328.1 KBAttributes
Get attribute(s) by value
Search for attributes by their value and return full attribute details including ID. This endpoint allows efficient lookup of attributes directly in the database using indexed columns. The attribute value must be base64 encoded in the URL path.
Example usage:
# Encode the attribute value to base64
VALUE="192.168.1.1"
BASE64=$(echo -n "$VALUE" | base64 -w0)
# Query the API
curl -H "Authorization: YOUR_API_KEY" \
-H "Accept: application/json" \
"https://misp.local/attributes/getid/${BASE64}"
get/attributes/getAttributeByB64Value/{base64Value}
Path parameters
base64Valuestring byte required
Example:MTkyLjE2OC4xLjE=
Base64 encoded attribute value to search for (use echo -n 'value' | base64 -w0)
Response
List of matching attributes
Example response
[
{
"id": "12345",
"event_id": "12345",
"object_id": "12345",
"object_relation": "sensor",
"value": "127.0.0.1",
"uuid": "c99506a6-1255-4b71-afa5-7b8ba48c3b1b",
"timestamp": "1617875568",
"distribution": "4",
"sharing_group_id": "1",
"comment": "logged source ip",
"first_seen": "1581984000000000",
"last_seen": "1581984000000000",
"Tag": [
{
"id": "12345",
"name": "tlp:white",
"colour": "#ffffff",
"org_id": "12345",
"user_id": "12345",
"numerical_value": "12345"
}
],
"Galaxy": [
{
"id": "12345",
"uuid": "c99506a6-1255-4b71-afa5-7b8ba48c3b1b",
"name": "Ransomware",
"type": "ransomware",
"description": "Ransomware galaxy based on ...",
"version": "1",
"icon": "globe",
"namespace": "misp",
"kill_chain_order": {
"fraud-tactics": [
"Initiation",
"Target Compromise",
"Perform Fraud",
"Obtain Fraudulent Assets",
"Assets Transfer",
"Monetisation"
]
}
}
]
}
]