It's quite possible that the query being run by Kibana (the one that "works") looks more like the following, behind the scenes:
"query": {
"bool": {
"must": [],
"filter": [
{
"bool": {
"should": [
{
"match_phrase": {
"event.action": "EXECVE"
}
}
],
"minimum_should_match": 1
}
}
],
"should": [],
"must_not": []
}
}