from typing import List
from typing import Dict
from typing import Any


def filter_executables(items: List[Dict[str, Any]], executables: List[str]) -> List[Dict[str, Any]]:
    """Returns only payloads for given list of executables."""
    if not executables:
        return items

    filtered = []
    for item in items:
        if item["cmd"]["executable"] in executables:
            filtered.append(item)
    return filtered