pySigma-backend-elasticsearch
pySigma-backend-elasticsearch copied to clipboard
How to close subfields when convert a sigma rule to dsl?
When convert a sigma rule to dsl with the following command, the generated dsl contains subfields, like "ParentImage.keyword". Is there anyone know how to remove the ".keyword" part from "ParentImage.keyword"?
python sigmac.py -t es-dsl -c sysmon /home/kali/Downloads/proc_creation_win_java_susp_child_process.yml
The result show as follows:
{
"query": {
"constant_score": {
"filter": {
"bool": {
"must": [
{
"match_phrase": {
"EventID": "1"
}
},
{
"wildcard": {
"ParentImage.keyword": "*\\\\java.exe"
}
},
{
"bool": {
"should": [
{
"wildcard": {
"Image.keyword": "*\\\\sh.exe"
}
},
{
"wildcard": {
"Image.keyword": "*\\\\bash.exe"
}
}
]
}
}
]
}
}
}
}
}