March 10, 2023 in threat hunting
So you finished writing your perfect threat hunting query.
Done and dusted, right?
Hmm, sorry… chances are, it is… broken.
How come?
One reason, but it has many acronyms: L10N, T9N, I18N or G11N.
If you are mostly dealing with English-centric versions of the operating systems you may now stop reading. But… You will be missing out.
Why?
THERE ARE OTHER LANGUAGES OUT THERE. And they come with a luggage…
The acronyms listed earlier expand into:
They define a different world. The world that is quite esoteric to monoglots. The world that embraces the world of ‘other languages in use’. The whole lot of new devices ‘suddenly in scope’, too. The world of foreigners who do not use English as their MAIN language. Most of Europe really. Many places in the world, REALLY!
In this world, your c:\Program Files becomes… an item from this table.
Pfff… and suddenly, all your queries relying on hard-coded ‘program files’ string need to be adjusted.
You are welcome! 🙂
And it’s not the only artifact that changes.
What about ‘New folder”? This thread shows some examples of “New Folder” string represented in various languages:
And again, this is just one of many ‘not so subtle’ localization changes to the OS that affects the way you should be writing your threat hunting queries or doing your DFIR engagement. And yes, it complicates things A LOT. And yes, Hebrew, Arabic, Chinese and Japanese versions of these do exist as well, and they complicate things even more.
Where does it leave us?
Simple answer: pay attention. More responsible answer: explore the environment & adjust queries as per need.
As long as your results generating framework/language supports Unicode you should be seeing these localized “things”, but only IF YOU EXPECT THEM. Once you see them, bundle them together and use them as a template, f.ex. use combos like this for a c:\program files folder name:
"\Program Files", "\Programme", "\Archivos de programa", "\Programmes", "\Programmi", "\Arquivos de Programas", "\Programmer", "\Programfiler", "\Fisiere Program"
These are not all the possibilities, of course, but they are good enough to make us all ‘aware’.
Going forward, we will all be localizing our queries. Oui?