Skip to content

fukusuket/base64-utf-detect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base64-utf-detect

What-is

This is a tool to check if the data in the evtx file is base64 encoded and if it is, it will decode(utf-8/utf-16 le/utf-16 be) it and print it out.

Target EventID

if ch == "Security" && id == 4688 {
    let v = data["Event"]["EventData"]["CommandLine"].clone();
    values.push(v);
} else if ch == "Microsoft-Windows-Sysmon/Operational" && id == 1 {
    let v = data["Event"]["EventData"]["CommandLine"].clone();
    values.push(v);
    let v = data["Event"]["EventData"]["ParentCommandLine"].clone();
    values.push(v);
} else if ch == "Microsoft-Windows-PowerShell/Operational" && id == 4104 {
    let v = data["Event"]["EventData"]["ScriptBlockText"].clone();
    values.push(v);
} else if ch == "Microsoft-Windows-PowerShell/Operational" && id == 4103 {
    let v = data["Event"]["EventData"]["Payload"].clone();
    values.push(v);
}

How-to-use

cargo build --release
./target/release/base64-utf-detect <evtx-directory>

Output

Stdout

 % ./target/release/base64-utf-detect /hayabusa-sample-evtx
Possible Base64 + UTF-8("Powershell-Invoke-Obfuscation-many.evtx"): 0C S
Possible Base64 + UTF-8("Powershell-Invoke-Obfuscation-many.evtx"): 0C S
Possible Base64 + UTF-8("Powershell-Invoke-Obfuscation-many.evtx"): wlZ+a
Possible Base64 + UTF-8("Powershell-Invoke-Obfuscation-many.evtx"): wlZ+a
Possible Base64 + UTF-8("Powershell-Invoke-Obfuscation-many.evtx"): wlZ+a
Possible Base64 + UTF-8("Powershell-Invoke-Obfuscation-many.evtx"): wlZ+a
Possible Base64 + UTF-8("Powershell-Invoke-Obfuscation-many.evtx"): wlZ+a

File

Simply output output.csv in the current directory

Type,Filename,Decoded Text,Original Text

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages